text: !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=472)}({472:function(e,t,r){e.exports=r(473)},473:function(e,t){var r={init:function(){!function(){var e=KTUtil.getById("kt_apps_fichecompte-personnel_form");if(KTUtil.attr(e,"action"),$(".kt_form_submit_utilisateurs"),e){var t=document.getElementById("passwordMeter"),r=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)};FormValidation.formValidation(e,{fields:{username:{validators:{notEmpty:{message:_LANG_.champs_is_required}}},firstname:{validators:{notEmpty:{message:_LANG_.champs_is_required}}},lastname:{validators:{notEmpty:{message:_LANG_.champs_is_required}}},email:{validators:{notEmpty:{message:_LANG_.email_is_required},emailAddress:{message:_LANG_.the_value_is_not_address_valid}}},password:{validators:{different:{message:_LANG_.password_cannot_be_the_same_as_username,compare:function(){return e.querySelector('[name="username"]').value}}}},pass_confirm:{validators:{identical:{compare:function(){return e.querySelector('[name="password"]').value},message:_LANG_.password_not_ecal_pass_confirm}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap,submitButton:new FormValidation.plugins.SubmitButton,passwordStrength:new FormValidation.plugins.PasswordStrength({field:"password",message:_LANG_.the_password_is_weak,minimalScore:3,onValidated:function(e,n,o){switch(o){case 0:t.style.width=r(1,20)+"%",t.style.backgroundColor="#ff4136";break;case 1:t.style.width=r(20,40)+"%",t.style.backgroundColor="#ff4136";break;case 2:t.style.width=r(40,60)+"%",t.style.backgroundColor="#ff4136";break;case 3:t.style.width=r(60,80)+"%",t.style.backgroundColor="#ffb700";break;case 4:t.style.width="100%",t.style.backgroundColor="#19a974"}}})}}).on("core.form.valid",(function(){$(e).submit()})).on("core.form.invalid",(function(t){1==t.error&&$(e).before(t.message)}))}}()}};jQuery(document).ready((function(){r.init()})),$(document).on("click",".generer_mot_passe",(function(e){var t,r,n;$.post(baseController+"/getPassword",(t={},r=crsftoken,n=$('meta[name="X-CSRF-TOKEN"]').attr("content"),r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t),(function(e,t){0==e.error&&($(".pass_confirm").val(""),$(".datapassword").val(""),$("#password").html(""),$(".datapassword").val(e.success.password),$(".pass_confirm").val(e.success.password),$("#password").html(e.success.password))}))})),$(".show-password").click((function(){"password"==$(this).prev("input").prop("type")?($(this).prev("input").prop("type","text"),$(this).html('<i class="far fa-eye-slash"></i>')):($(this).prev("input").prop("type","password"),$(this).html('<i class="far fa-eye"></i>'))}));var n=document.querySelector("#phone"),o=document.querySelector(".invalid-feedback-phone"),a=["Invalid number","Invalid country code","Too short","Too long","Invalid number"],i=intlTelInput(n,{initialCountry:"auto",allowDropdown:!0,geoIpLookup:function(e){$.get("https://ipinfo.io",(function(){}),"jsonp").always((function(t){var r=t&&t.country?t.country:"";e(r)}))},hiddenInput:"full_phone",utilsScript:utils}),s=function(){n.classList.remove("error"),o.innerHTML="",o.classList.add("hide")};n.addEventListener("blur",(function(){if(s(),n.value.trim()&&!i.isValidNumber()){n.classList.add("error");var e=i.getValidationError();o.innerHTML=a[e],o.classList.remove("hide")}})),n.addEventListener("countrychange",(function(e,t){var r=$(this).attr("placeholder").replace(/[0-9+]/gi,"9");$(this).attr("placeholder",r),$(n).inputmask({mask:r,keepStatic:!0})})),n.addEventListener("change",s),n.addEventListener("keyup",s);var l=document.querySelector("#phone_mobile"),u=document.querySelector(".invalid-feedback-phone_mobile"),d=intlTelInput(l,{initialCountry:"auto",geoIpLookup:function(e){$.get("https://ipinfo.io",(function(){}),"jsonp").always((function(t){var r=t&&t.country?t.country:"";e(r)}))},hiddenInput:"full_phone_mobile",utilsScript:utils}),c=function(){l.classList.remove("error"),u.innerHTML="",u.classList.add("hide")};l.addEventListener("blur",(function(){if(c(),l.value.trim()&&!d.isValidNumber()){l.classList.add("error");var e=d.getValidationError();u.innerHTML=a[e],u.classList.remove("hide")}})),l.addEventListener("countrychange",(function(e,t){var r=$(this).attr("placeholder").replace(/[0-9+]/gi,"9");$(this).attr("placeholder",r),$(l).inputmask({mask:r,keepStatic:!0})})),l.addEventListener("change",c),l.addEventListener("keyup",c)}});
  //# sourceMappingURL=page.outils.fiche.js.map