PageSourceSearch

https://www.sfp-group.nl/App_Plugins/UmbracoForms/Assets/themes/default/umbracoforms.min.js

js sfp-group.nl collected 2026-10-08 08:07:48 UTC 10,062 bytes, 1 lines download raw bytes

1!function(){function e(){var e=document.getElementsByClassName("umbraco-forms-form-config");if(0<e.length){for(var t=[],r=0;r<e.length;r++){var n=e[r],n={formId:n.dataset.id,pageButtonConditions:JSON.parse(n.dataset.serializedPageButtonConditions),fieldSetConditions:JSON.parse(n.dataset.serializedFieldsetConditions),fieldConditions:JSON.parse(n.dataset.serializedFieldConditions),triggerConditionsCheckOn:n.dataset.triggerConditionsCheckOn,recordValues:JSON.parse(n.dataset.serializedFieldsNotDisplayed),formElementHtmlIdPrefix:n.dataset.formElementHtmlIdPrefix};t.push(n)}o(t,!0)}else"undefined"==typeof umbracoFormsCollection?document.addEventListener("umbracoFormLoaded",u):o(umbracoFormsCollection);document.getElementById("umbraco-forms-form-submitted")&&(document.onreadystatechange=function(){if("complete"==document.readyState){for(var e=document.querySelectorAll(".field-validation-error, .umbraco-forms-submitmessage"),t=0,r=0;r<e.length;r++){var n=function(e){for(var t=e;"BODY"!==t.tagName;){if(t.classList.contains("umbraco-forms-field"))return t;t=t.parentNode}return e}(e[r]).getBoundingClientRect().top;0<n&&(n<t||0===t)&&(t=n)}0<t&&window.scrollTo(0,t)}})}function o(e,t){if(void 0!==window.aspnetValidation){function r(e,t){if("checkbox"!==t.type.toLowerCase()&&"radio"!==t.type.toLowerCase())return Boolean(e);for(var r=t.form.querySelectorAll("input[name='"+t.name+"']"),n=0;n<r.length;n++)if(!0===r[n].checked)return!0;return!1}function n(){this.form.elements.PreviousClicked.value="clicked"}var o=new aspnetValidation.ValidationService,i=(o.addProvider("requiredcb",r),o.addProvider("required",r),o.addProvider("umbracoforms_regex",function(e,t,r){return!e||!r.pattern||new RegExp(r.pattern).test(e)}),window.addEventListener("load",function(){for(var e in o.providers)o.providers[e]=function(n){return function(e,t,r){return null===t.offsetParent||n(e,t,r)}}(o.providers[e])}),o.bootstrap(),document.querySelectorAll("[data-umb='prev-forms-form']"));0===i.length&&(i=document.getElementsByClassName("prev cancel"));for(var a=0;a<i.length;a++)i[a].form.elements.PreviousClicked.value="",i[a].addEventListener("click",n,!1)}else if("function"==typeof jQuery&&$.validator&&$.validator.unobtrusive){$.validator.setDefaults({ignore:":hidden"}),$.validator.unobtrusive.adapters.addBool("requiredcb","required"),$.validator.addMethod("umbracoforms_regex",function(e,t){var r=$(t).attr("data-regex"),t=$(t).val();return 0===t.length||t.match(r)}),$.validator.unobtrusive.adapters.addBool("regex","umbracoforms_regex");var l=document.querySelectorAll(".umbraco-forms-form input[type=submit]:not(.cancel)");for(let e=0;e<l.length;e++){var d=l[e];d.addEventListener("click",function(e){e.preventDefault();e=$(this).closest("form");c(e[0]),e.validate(),e.valid()&&(e.submit(),this.setAttribute("disabled","disabled"))}.bind(d))}}for(var s=0;s<e.length;s++)u({form:e[s]},t)}function u(e,t){for(var r,n,o,i,a=t?e.form:JSON.parse(decodeURI(e.form)),l=document.querySelectorAll(".umbraco-forms-form"),d=0;d<l.length;d++){var s=l[d];r=s,i=o=n=void 0,"undefined"!=typeof Umbraco&&void 0!==Umbraco.Sys||"tinymce"===document.body.id||((n=document.createElement("div")).className="umbraco-forms missing-library",n.style.color="#fff",n.style.backgroundColor="#9d261d",n.style.padding="15px",n.style.margin="10px 0",o="",!r)||0<r.getElementsByClassName("umbraco-forms missing-library").length||((i=!1)===(i=window.jQuery&&$&&void 0!==$.validator||void 0!==window.aspnetValidation?!0:i)&&(o+="Umbraco Forms requires a validation framework to run, please read documentation for posible options."),""!==o&&(n.innerHTML=o+'<br/> <a href="https://docs.umbraco.com/umbraco-forms/developer/prepping-frontend" target="_blank" style="text-decoration:underline; color:#fff;">See Umbraco Forms Documentation</a>',r.insertBefore(n,r.childNodes[0]))),new f(s.querySelector(".umbraco-forms-page"),a.pageButtonConditions,a.fieldSetConditions,a.fieldConditions,a.triggerConditionsCheckOn&&0<a.triggerConditionsCheckOn.length?a.triggerConditionsCheckOn:"change",a.recordValues,a.formElementHtmlIdPrefix).watch(),function(e){var t;"MutationObserver"in window!=!1&&(void 0!==window.aspnetValidation&&(t=e.getElementsByTagName("form")[0],t.addEventListener("submit",function(){c(t)},!1)),new MutationObserver(function(e){for(var t=0;t<e.length;t++){var r=e[t];if("field-validation-error"===r.target.className){a=i=o=n=void 0;for(var n=r.target,o=n.previousElementSibling;o;){if("input"===o.tagName.toLowerCase()||"textarea"===o.tagName.toLowerCase()||"select"===o.tagName.toLowerCase()){o.focus();break}if(o.classList.contains("radiobuttonlist")||o.classList.contains("checkboxlist")){for(var i=0;i<o.children.length;i++){var a=o.children[i];if("input"===a.tagName.toLowerCase()){a.focus();break}}break}o=o.previousElementSibling}break}}}).observe(e,{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1,subtree:!0}))}(s)}}function c(e){for(var t=e.getElementsByClassName("field-validation-error"),r=0;r<t.length;r++)t[r].className="field-validation-valid"}function f(e,t,r,n,o,i,a){var c={};function l(e,t,r){var n=e.querySelectorAll("select");for(let e=0;e<n.length;e++){var o=n[e];t[o.getAttribute("id")]=o.value,r[o.getAttribute("id")]="select"}var i=e.querySelectorAll("textarea");for(let e=0;e<i.length;e++){var a=i[e];t[a.getAttribute("id")]=a.value,r[a.getAttribute("id")]="textarea"}var l=e.querySelectorAll("input[type=checkbox]");for(let e=0;e<l.length;e++){var d=l[e];t[d.getAttribute("name")]=null,r[d.getAttribute("name")]="checkbox"}var s=e.querySelectorAll("input");for(let e=0;e<s.length;e++){var u=s[e];"text"!==u.getAttribute("type")&&"number"!==u.getAttribute("type")&&"email"!==u.getAttribute("type")&&"url"!==u.getAttribute("type")&&"tel"!==u.getAttribute("type")&&"date"!==u.getAttribute("type")&&"datetime-local"!==u.getAttribute("type")&&"hidden"
1!==u.getAttribute("type")||(t[u.getAttribute("id")]=u.value,r[u.getAttribute("id")]="text"),"radio"===u.getAttribute("type")&&u.matches(":checked")&&(t[u.getAttribute("name")]=u.value,r[u.getAttribute("name")]="radio"),"checkbox"===u.getAttribute("type")&&(u.getAttribute("id")!==u.getAttribute("name")?u.matches(":checked")&&(null===t[u.getAttribute("name")]?t[u.getAttribute("name")]=u.value:t[u.getAttribute("name")]+=";;"+u.value):t[u.getAttribute("id")]=u.matches(":checked")?"true":"false")}}return c.form=e,c.pageButtonConditions=t,c.fieldsetConditions=r,c.fieldConditions=n,c.triggerConditionsCheckOn=o,c.values=i,c.formElementHtmlIdPrefix=a,c.dataTypes={},c.operators={Is:function(e,t,r){return(e||"")===t||(null==e?t==e:("checkbox"===r&&("TRUE"===t.toUpperCase()||"ON"===t.toUpperCase()?t="true":"FALSE"!==t.toUpperCase()&&"OFF"!==t.toUpperCase()||(t="false")),0<e.split(";;").filter(function(e){return e===t}).length))},IsNot:function(e,t,r){var n;return null==e?t!=e:(n=e.split(";;").filter(function(e){return e===t}),"checkbox"===r&&("TRUE"===t.toUpperCase()||"ON"===t.toUpperCase()?t="true":"FALSE"!==t.toUpperCase()&&"OFF"!==t.toUpperCase()||(t="false")),(e||"")!==t&&0===n.length)},GreaterThen:function(e,t){return isNaN(e)||isNaN(t)?t<e:parseInt(e)>parseInt(t)},LessThen:function(e,t){return isNaN(e)||isNaN(t)?e<t:parseInt(e)<parseInt(t)},StartsWith:function(e,t){return e&&0===e.indexOf(t)},EndsWith:function(e,t){return e&&e.indexOf(t)===e.length-t.length},Contains:function(e,t){return e&&-1<e.indexOf(t)}},c.watch=function(){var t=c.form.querySelectorAll(".datepickerfield");for(let e=0;e<t.length;e++){var r=t[e];r.addEventListener("blur",function(){var e;""===this.value&&(e=(e=this.getAttribute("id")).substr(0,e.length-2),c.values[e]="",document.getElementById(e).value=""),l(c.form,c.values,c.dataTypes),c.run()}.bind(r))}var n=c.form.querySelectorAll("input, textarea, select");for(let e=0;e<n.length;e++){var o=n[e];o.addEventListener(c.triggerConditionsCheckOn,function(){l(c.form,c.values,c.dataTypes),c.run()}.bind(o))}l(c.form,c.values,c.dataTypes),c.run()},c.run=function(){var e,t,r,n,o,i={};function s(e){var t,r,n=!0;return!!(n=c.fieldConditions[e.field]?u(e.field,c.fieldConditions[e.field]):n)&&(e=c.values[c.formElementHtmlIdPrefix+(n=e).field],t=c.dataTypes[n.field],r=c.operators[n.operator],null!==e)&&r(e,n.value,t)}function a(e,t){var r="Show"===t.actionType,n=i[e],e=void 0===n?(i[e]=r,i[e]=function(e,t){var r,n,o="Any"===t.logicType,i="All"===t.logicType,a={},l=!1,d=!0;if(0===t.rules.length)return!1;for(n=0;n<t.rules.length;n++){if(e===(r=t.rules[n]).field||e===r.fieldsetId)throw new Error("Field or fieldset "+e+" has a condition on itself.");void 0===a[r.fieldsetId]&&(c.fieldsetConditions[r.fieldsetId]?(a[r.fieldsetId]=u(r.fieldsetId,c.fieldsetConditions[r.fieldsetId]),a[r.fieldsetId]||(l=!0)):a[r.fieldsetId]=!0)}if(i&&l)return!1;for(n=0;n<t.rules.length&&(d=!!a[(r=t.rules[n]).fieldsetId]&&s(t.rules[n]),!o||!d)&&(!i||d);n++);return d}(e,t)):n;return!(e^r)}function u(e,t){return!t||a(e,t)}function l(e,t,r){t=u(t,r);e&&(e.style.display=t?"":"none")}for(e in c.pageButtonConditions)Object.prototype.hasOwnProperty.call(c.pageButtonConditions,e)&&(o=document.getElementById(e))&&l(o.querySelector("input[name='__next'], button[name='__next'], input[data-form-navigate='next'], button[data-form-navigate='next']"),e,c.pageButtonConditions[e]);for(r in c.fieldsetConditions)Object.prototype.hasOwnProperty.call(c.fieldsetConditions,r)&&(t=c.formElementHtmlIdPrefix+r,l(document.getElementById(t),r,c.fieldsetConditions[r]));for(n in c.fieldConditions)Object.prototype.hasOwnProperty.call(c.fieldConditions,n)&&(t=c.formElementHtmlIdPrefix+n,document.getElementById(t))&&l(document.getElementById(t).closest(".umbraco-forms-field"),n,c.fieldConditions[n])},c}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?e():document.addEventListener("DOMContentLoaded",e)}();

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.