ConvertForms.Helper.onReady(function(e){"undefined"!=typeof Inputmask&&e.forEach(function(e){var i=e.querySelectorAll(".cf-input[data-imask]");i&&(Inputmask.extendDefinitions({"&":{validator:"[0-9a-zA-ZΑ-Ωα-ω０-９]",definitionSymbol:"*"},A:{validator:"[A-Za-zΑ-Ωα-ωίϊΐόάέύϋΰήώА-яЁёÀ-ÿµ]",casing:"upper"},a:{validator:"[A-Za-zΑ-Ωα-ωίϊΐόάέύϋΰήώА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-9Α-Ωα-ωίϊΐόάέύϋΰήώ０-９A-Za-zА-яЁёÀ-ÿµ]"}}),i.forEach(function(e){Inputmask(e.dataset.imask,{rightAlign:!1,jitMasking:!1,showMaskOnHover:!1}).mask(e)}),e.addEventListener("beforeSubmit",function(e){if(!e.defaultPrevented)for(var t=0;t<i.length;t++){var a=i[t];if(!a.hasAttribute("required"))return;if(!a.inputmask.isComplete()){e.preventDefault(),e.detail.error=e.detail.instance.text("ERROR_INPUTMASK_INCOMPLETE"),a.focus();break}}}))})});

