| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/wpforms-lite/assets/js/admin/builder/modules/ |
Upload File : |
export default function(e,t,n,a,c){let o=c.$builder,i={init(){i.bcInit(),i.events(),i.captchaToggle()},bcInit(){["captchaToggle","captchaUpdate"].forEach(e=>{a[e]=i[e]})},events(){o.on("change","#wpforms-panel-field-settings-recaptcha",function(){i.captchaToggle()}),o.on("click",".wpforms-panel-content-also-available-item-add-captcha",function(e){e.preventDefault();e=o.find("#wpforms-add-fields-captcha");e.data("action")?e.trigger("click"):a.fieldAdd("captcha",{}).done(function(e){a.panelSwitch("fields"),n("#wpforms-field-"+e.data.field.id).trigger("click")})})},captchaToggle(){var e=o.find(".wpforms-field-recaptcha"),t=n("#wpforms-panel-field-settings-recaptcha"),a=t.data("provider")||"recaptcha";e.length&&(t.is(":checked")?e.show().toggleClass("is-recaptcha","recaptcha"===a):e.hide())},captchaUpdate(){var e={action:"wpforms_update_field_captcha",id:a.settings.formID,nonce:wpforms_builder.nonce};return n.post(wpforms_builder.ajax_url,e,function(c){if(c.success){let e={title:!1,content:!1,icon:"fa fa-exclamation-circle",type:"orange",boxWidth:"450px",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}},t=n("#wpforms-panel-field-settings-recaptcha"),a=c.data.current;t.data("provider",c.data.provider),"configured_not_enabled"!==a&&"configured_enabled"!==a||(a=t.prop("checked")?"configured_enabled":"configured_not_enabled",e.buttons.confirm.action=function(){t.prop("checked","configured_not_enabled"===a).trigger("change")}),e.title=c.data.cases[a].title,e.content=c.data.cases[a].content,c.data.cases[a].cancel&&(e.buttons.cancel={text:wpforms_builder.cancel,keys:["esc"]}),n.confirm(e)}else console.log(c)}).fail(function(e){console.log(e.responseText)})}};return i}