NG1NDEX
Server IP : 150.95.80.236  /  Your IP : 3.144.114.223
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/src/plugins/formvalidation/dist/es6/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/plugins/formvalidation/dist/es6/plugins/Recaptcha3Token.js
import e from"../core/Plugin";export default class t extends e{constructor(e){super(e);this.opts=Object.assign({},{action:"submit",hiddenTokenName:"___hidden-token___"},e);this.onValidHandler=this.onFormValid.bind(this)}install(){this.core.on("core.form.valid",this.onValidHandler);this.hiddenTokenEle=document.createElement("input");this.hiddenTokenEle.setAttribute("type","hidden");this.core.getFormElement().appendChild(this.hiddenTokenEle);const e=typeof window[t.LOADED_CALLBACK]==="undefined"?()=>{}:window[t.LOADED_CALLBACK];window[t.LOADED_CALLBACK]=()=>{e()};const o=this.getScript();if(!document.body.querySelector(`script[src="${o}"]`)){const e=document.createElement("script");e.type="text/javascript";e.async=true;e.defer=true;e.src=o;document.body.appendChild(e)}}uninstall(){this.core.off("core.form.valid",this.onValidHandler);const e=this.getScript();const t=[].slice.call(document.body.querySelectorAll(`script[src="${e}"]`));t.forEach((e=>e.parentNode.removeChild(e)));this.core.getFormElement().removeChild(this.hiddenTokenEle)}onFormValid(){window["grecaptcha"].execute(this.opts.siteKey,{action:this.opts.action}).then((e=>{this.hiddenTokenEle.setAttribute("name",this.opts.hiddenTokenName);this.hiddenTokenEle.value=e;const t=this.core.getFormElement();if(t instanceof HTMLFormElement){t.submit()}}))}getScript(){const e=this.opts.language?`&hl=${this.opts.language}`:"";return"https://www.google.com/recaptcha/api.js?"+`onload=${t.LOADED_CALLBACK}&render=${this.opts.siteKey}${e}`}}t.LOADED_CALLBACK="___reCaptcha3Loaded___";

Anon7 - 2022
AnonSec Team