Server IP : 150.95.80.236 / Your IP : 18.226.163.167 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/dist/assets/js/custom/account/settings/ |
Upload File : |
"use strict";var KTAccountSettingsSigninMethods={init:function(){var t,e;!function(){var t=document.getElementById("kt_signin_email"),e=document.getElementById("kt_signin_email_edit"),n=document.getElementById("kt_signin_password"),o=document.getElementById("kt_signin_password_edit"),i=document.getElementById("kt_signin_email_button"),s=document.getElementById("kt_signin_cancel"),r=document.getElementById("kt_signin_password_button"),a=document.getElementById("kt_password_cancel");i.querySelector("button").addEventListener("click",(function(){l()})),s.addEventListener("click",(function(){l()})),r.querySelector("button").addEventListener("click",(function(){d()})),a.addEventListener("click",(function(){d()}));var l=function(){t.classList.toggle("d-none"),i.classList.toggle("d-none"),e.classList.toggle("d-none")},d=function(){n.classList.toggle("d-none"),r.classList.toggle("d-none"),o.classList.toggle("d-none")}}(),e=document.getElementById("kt_signin_change_email"),t=FormValidation.formValidation(e,{fields:{emailaddress:{validators:{notEmpty:{message:"Email is required"},emailAddress:{message:"The value is not a valid email address"}}},confirmemailpassword:{validators:{notEmpty:{message:"Password is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row"})}}),e.querySelector("#kt_signin_submit").addEventListener("click",(function(n){n.preventDefault(),console.log("click"),t.validate().then((function(n){"Valid"==n?swal.fire({text:"Sent password reset. Please check your email",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn font-weight-bold btn-light-primary"}}).then((function(){e.reset(),t.resetForm()})):swal.fire({text:"Sorry, looks like there are some errors detected, please try again.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn font-weight-bold btn-light-primary"}})}))})),function(t){var e,n=document.getElementById("kt_signin_change_password");e=FormValidation.formValidation(n,{fields:{currentpassword:{validators:{notEmpty:{message:"Current Password is required"}}},newpassword:{validators:{notEmpty:{message:"New Password is required"}}},confirmpassword:{validators:{notEmpty:{message:"Confirm Password is required"},identical:{compare:function(){return n.querySelector('[name="newpassword"]').value},message:"The password and its confirm are not the same"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row"})}}),n.querySelector("#kt_password_submit").addEventListener("click",(function(t){t.preventDefault(),console.log("click"),e.validate().then((function(t){"Valid"==t?swal.fire({text:"Sent password reset. Please check your email",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn font-weight-bold btn-light-primary"}}).then((function(){n.reset(),e.resetForm()})):swal.fire({text:"Sorry, looks like there are some errors detected, please try again.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn font-weight-bold btn-light-primary"}})}))}))}()}};KTUtil.onDOMContentLoaded((function(){KTAccountSettingsSigninMethods.init()}));