1"use strict";document.addEventListener("DOMContentLoaded",function(){const form=document.querySelector("[data-form-validate]");if(typeof Pristine==="undefined"||!form)return;const validationConfig={classTo:"formInput",errorClass:"has-error",successClass:"is-valid",errorTextParent:"formInput",errorTextTag:"div",errorTextClass:"errorMessage"};Pristine.addValidator("phone",function(phone){let trimmedPhone=phone.replace("-","").replace(" ","").replace("+","");return!isNaN(trimmedPhone)},"Telefonn\xED \u010D\xEDslo nen\xED ve spr\xE1vn\xE9m form\xE1tu.");Pristine.addMessages("cs",{required:"Toto pole je povinn\xE9.",email:"Toto pole neobsahuje validn\xED e-mailovou adresu.",number:"Toto pole neobsahuje validn\xED \u010D\xEDslo.",integer:"Toto pole neobsahuje validn\xED cel\xE9 \u010D\xEDslo.",url:"Toto pole neobsahuje validn\xED URl adresu.",tel:"Toto pole neobsahuje validn\xED telefonn\xED \u010D\xEDslo.",maxlength:"Text tohoto pole p\u0159ekro\u010Dil d\xE9lku ${1}.",minlength:"Text tohoto pole mus\xED m\xEDt d\xE9lku alespo\u0148 ${1}.",min:"Toto pole mus\xED m\xEDt hodnotu alespo\u0148 ${1}.",max:"Toto pole m\u016F\u017Ee m\xEDt hodnotu nejv\xFD\u0161e ${1}.",pattern:"Toto pole neobsahuje pot\u0159ebn\xFD form\xE1t.",equals:"Tyto dv\u011B pole se neshoduj\xED."});Pristine.setLocale("cs");let pristine=new Pristine(form,validationConfig);form.addEventListener("submit",e=>{if(!pristine.validate()){e.preventDefault()}else{let button=document.querySelector("[data-wait-for-response]");if(typeof button==="undefined"||button===null){return}button.classList.add("waitForResponse")}})});const dataMaxSize=()=>{const fileList=document.querySelectorAll("[data-max-size]");for(let i=0;i<fileList.length;i++){const form=fileList[i].closest("form");fileList[i].addEventListener("change",ev=>{var _form$querySelector;(_form$querySelector=form.querySelector("[data-file-alert]"))===null||_form$querySelector===void 0?void 0:_form$querySelector.remove();const fileListArr=Array.from(fileList[i].files);let files=[];for(var x in fileListArr){if(!(fileListArr[x].name!="item"&&typeof fileListArr[x].name!="undefined"&&fileListArr[x].size<=fileList[i].getAttribute("data-max-size"))){files.push(fileListArr[x]);fileListArr.splice(x,1)}}if(files.length>0){let alertFiles="";files.forEach((val,i,array)=>{alertFiles=alertFiles+val.name;if(i<array.length-1){alertFiles=alertFiles+", "}});form.innerHTML="<div class=\"alert alert-danger\" data-file-alert>Soubor "+alertFiles+" p\u0159ekro\u010Dil maxim\xE1ln\xED povolenou velikost a byl odebr\xE1n</div>"+form.innerHTML;dataMaxSize()}})}};document.addEventListener("DOMContentLoaded",()=>{dataMaxSize()}); 2//# sourceMappingURL=form-validate.min.js.map
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.