PageSourceSearch

https://goalsforyourlife.com/wp-content/uploads/bitforms/form-scripts/13/bitform-js-13.js?bfv

js goalsforyourlife.com collected 2026-09-24 20:28:46 UTC 22,985 bytes, 1 lines download raw bytes

1 if(!window.bf_globals){ window.bf_globals={};}["bitforms_1_31648_1"].forEach(function(contentId){const form=document.getElementById(contentId);if(!form){ delete window.bf_globals[contentId];return;}if(!window.bf_globals[contentId]){window.bf_globals[contentId]={inits:{},contentId: contentId};}else{ window.bf_globals[contentId].inits={};window.bf_globals[contentId].contentId=contentId;}});var bfSelect=function(){"use strict";return function(e,t){return(t||document).querySelector(e)}}();var 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()}}();var 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))}}();var 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)}}();var 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)}}();var getFldKeyAndRowIndx=function(){"use strict";return function(n){const t=n.match(/([^\[]+)(?:\[(\d+)\])?/);return t?[t[1],t[2]||""]:[n]}}();var 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=>t?.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}))))}}();var 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))}}();var 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}}();var 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}
1).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","")}}();var setStyleProperty=function(){"use strict";return function(t,e,r){t?.style&&t.style.setProperty(e,r,"important")}}();var hidden_token_field=function(){"use strict";return function(e=null){try{(e?[e]:Object.keys(window?.bf_globals||{})).forEach((e=>{const n=window.bf_globals?.[e];n&&((e,n)=>{try{const t=bfSelect(`#form-${e}`);if(t){const o=new URL(n.ajaxURL);o.searchParams.append("action","bitforms_onload_added_field_and_property");const a={formId:n.formId};fetch(o,{method:"POST",body:JSON.stringify(a),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][n.name]=n.value})))})).catch((()=>{}))}}catch(e){}})(e,n)}))}catch(e){}}}();var bit_recaptcha_field=function(){"use strict";return class{#t=null;#e=null;#i={theme:"light",size:"normal"};constructor(t,e){Object.assign(this.#i,e),this.#t="string"==typeof t?document.querySelector(t):t,this.fieldKey=this.#i.fieldKey,this.init()}init(){this.#e=this.#c(".g-recaptcha"),this.#r(this.#e,"data-theme",this.#i.theme),this.#r(this.#e,"data-size",this.#i.size)}#c(t){return this.#t.querySelector(t)}#r(t,e,i){t.setAttribute(e,i)}destroy(){this.#e.innerHTML=""}}}();var scriptLoader=function(){"use strict";return function(t,e,n,r,c){const o=document.createElement("script");o.src=t,o.id=r,e&&(o.integrity=e,o.crossOrigin="anonymous"),n&&Object.entries(n).forEac
1h((([t,e])=>{o.setAttribute(t,e)})),o.onload=function(){c&&c()},document.querySelector(`script#${r}`)?c&&c():document.body.appendChild(o)}}();var initRecaptchaFld=function(){"use strict";return function(t,c,a){scriptLoader("https://www.google.com/recaptcha/api.js","",{async:!0,defer:!0},`bit_recaptcha_script-${t}`,(function(){bf_globals[t].inits[c]=getFldInstance(t,c,a)}))}}();var requiredFldValidation=function(){"use strict";return r=>r?.valid?.req?"req":""}();var generateBackslashPattern=function(){"use strict";return t=>(t||"").split("$_bf_$").join("\\")}();var emailFldValidation=function(){"use strict";return(e,t)=>t.err.invalid.show?new RegExp(generateBackslashPattern(t.pattern)).test(e)?"":"invalid":""}();var 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];if(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}}(); const customFldConfigPaths={"recaptcha":{}};const fldContainers={"recaptcha":".__$fk__-recaptcha-wrp"};function initAllCustomFlds(formContentId=null){const allContendIds=formContentId? [formContentId]: Object.keys(bf_globals);allContendIds.forEach((contentId)=>{const contentData=bf_globals[contentId];if(!contentData?.inits) contentData.inits={};const flds=bf_globals[contentId]?.fields ||{};const fldKeys=Object.keys(flds).reverse();fldKeys.forEach((fldKey)=>{const fldData=flds[fldKey];const fldType=fldData.typ;if(fldType==='paypal'){initPaypalFld(contentId,fldKey,fldData,fldType);} else if(fldType==='razorpay'){initRazorpayFld(contentId,fldKey,fldType);} else if(fldType==='recaptcha'){initRecaptchaFld(contentId,fldKey,fldType);} else if(fldType==='turnstile'){initTurnstileFld(contentId,fldKey);} else if(fldType==='hcaptcha'){initHCaptchaFld(contentId,fldKey,fldType);} else if(fldType==='stripe' || fldType==='mollie'){initStripeFld(contentId,fldKey,fldType);} else if(customFldConfigPaths[fldType]){contentData.inits[fldKey]=getFldInstance(contentId,fldKey,fldType);}});if(contentData.gRecaptchaVersion==='v3' && contentData.gRecaptchaSiteKey){initRecaptchaV3Fld(contentId,contentData);}});};function getFldInstance(contentId,fldKey,fldTyp,nestedSelector=''){const fldClass=this['bit_'+fldTyp.replace(/-/g,'_')+'_field'];const selector='#form-'+contentId+' '+nestedSelector+fldContainers[fldTyp].replace("__$fk__",fldKey);if(!fldClass || !bfSelect(selector)) return;return new fldClass(selector,getFldConf(contentId,fldKey,fldTyp));};function getFldConf(contentId,fieldKey,fldTyp){const fldData=bf_globals[contentId].fields[fieldKey];const fldConfPaths=Object.entries(customFldConfigPaths[fldTyp]);let fldConf={};const{ formId }=bf_globals[contentId];if(!("config" in customFldConfigPaths[fldTyp]) && "config" in fldData) fldConf=fldData.config;const varData={ contentId,fieldKey,formId };fldConfPaths.forEach(([ confPath,fldPath ])=>{let value="";if(fldPath.var) value=varData[fldPath.var];if(!value && fldPath.path){if(Array.isArray(fldPath.path)){fldPath.path.forEach((path)=>{if(!value) value=getDataFromNestedPath(fldData,path);});} else{value=getDataFromNestedPath(fldData,fldPath.path);}}if(!value && "val" in fldPath){value=fldPath.val;
1if(typeof value==='string'){Object.entries(varData).forEach(([key,val])=>{value=value.replace("__$"+key+"__",val);});}}fldConf=setDataToNestedPath(fldConf,confPath,value);});return fldConf;};function getDataFromNestedPath(data,key){const keys=key.split("->");const lastKey=keys.pop();let current={...data};for(const k of keys){if(!(k in current)) return null;current=current[k];}return current[lastKey] || null;}function setDataToNestedPath(data,key,value){const keys=key.split("->");const lastKey=keys.pop();let current={...data};keys.forEach((k)=>{if(!current[k]) current[k]={};current=current[k];});current[lastKey]=value;return current;}var bitform_init=function(){"use strict";function e(e=null){"undefined"!=typeof hidden_token_field&&hidden_token_field(e),"undefined"!=typeof initAllCustomFlds&&initAllCustomFlds(e),"undefined"!=typeof initAddOtherOpt&&initAddOtherOpt(e),"undefined"!=typeof setSliderFieldValue&&setSliderFieldValue(e),"undefined"!=typeof setBitInputMaskToInput&&setBitInputMaskToInput(e),"undefined"!=typeof initCheckDisableOnMax&&initCheckDisableOnMax(e),"undefined"!=typeof initTextLengthHelper&&initTextLengthHelper(e),"undefined"!=typeof initPasswordStrengthHelper&&initPasswordStrengthHelper(e),"undefined"!=typeof validate_focus&&validate_focus(e),"undefined"!=typeof submit_form&&submit_form(e),"undefined"!=typeof bit_form_abandonment&&bit_form_abandonment(e),"undefined"!=typeof setFieldValues&&setFieldValues(e),"undefined"!=typeof bit_multi_step_form&&bit_multi_step_form(e),"undefined"!=typeof bit_conversational_form&&bit_conversational_form(e),"undefined"!=typeof bfTogglePasswordVisibility&&bfTogglePasswordVisibility(e)}return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{e()})):e(),e}();let 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.