HEX
Server: Apache
System: Linux web15f74.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: lucendi (859622)
PHP: 7.4.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/lucendi/www/wp-content/plugins/wpforms-lite/assets/js/admin/builder/modules/panels.min.js
export default function(e,t,o,n,a){let l=a.$builder,s={init(){s.bcInit(),s.events()},bcInit(){["panelSwitch","panelSectionSwitch"].forEach(e=>{n[e]=s[e]})},events(){l.on("click","#wpforms-panels-toggle > button, .wpforms-panel-switch",function(e){e.preventDefault(),s.panelSwitch(o(this).data("panel"))}),l.on("click",".wpforms-panel .wpforms-panel-sidebar-section",function(e){s.panelSectionSwitch(this,e)}),l.on("click",".wpforms-panel .wpforms-panel-content .wpforms-panel-content-section-tabs-list-item",function(e){s.panelSectionTabSwitch(this,e)}),l.on("click",".wpforms-panels .wpforms-panel-sidebar-content .wpforms-panel-sidebar-toggle",function(){o(this).parent().toggleClass("wpforms-panel-sidebar-closed")})},panelSwitch(t){var n=o("#wpforms-panel-"+t);if(!n.hasClass("active")){if(WPFormsUtils.triggerEvent(l,"wpformsPanelSwitch",[t]).isDefaultPrevented()||!wpforms_panel_switch)return!1;l.trigger("wpformsPanelSwitching",[t]),o("#wpforms-panels-toggle").find("button").removeClass("active"),o(".wpforms-panel").removeClass("active"),o(".wpforms-panel-"+t+"-button").addClass("active"),n.addClass("active"),history.replaceState({},null,wpf.updateQueryString("view",t));let e;n=n.find(".active");n.length&&"default"!==n.data("section")&&(e=n.data("section")),history.replaceState({},null,wpf.updateQueryString("section",e)),l.trigger("wpformsPanelSwitched",[t])}},panelSectionSwitch(e,t){t&&t.preventDefault();t=o(e);if(!t.hasClass("upgrade-modal")&&!t.hasClass("education-modal")){var e=t.parent().parent(),t=t.data("section"),n=e.find(`.wpforms-panel-sidebar-section[data-section="${t}"]`);if(!n.hasClass("active")){if(WPFormsUtils.triggerEvent(l,"wpformsPanelSectionSwitch",t).isDefaultPrevented()||!wpforms_panel_switch)return!1;e.find(".wpforms-panel-sidebar-section").removeClass("active"),n.addClass("active"),e.find(".wpforms-panel-content-section").hide().removeClass("active"),e.find(".wpforms-panel-content-section-"+t).show().addClass("active"),history.replaceState({},null,wpf.updateQueryString("section",t)),WPFormsUtils.triggerEvent(l,"wpformsPanelSectionSwitched",t)}}},panelSectionTabSwitch(e,t){t.preventDefault();var n,a,s,t=o(e),e="wpforms-panel-content-section-tabs-list-item-active",i=t.data("tab");!i||t.hasClass("wpforms-disabled")||t.hasClass(e)||WPFormsUtils.triggerEvent(l,"wpformsPanelSectionTabBeforeSwitch",[i,t]).isDefaultPrevented()||(n="wpforms-panel-content-section-tabs-content-tab-active",s=(a=t.closest(".wpforms-panel-content-section-tabs-list")).closest(".wpforms-panel-content").find(".wpforms-panel-content-section-tabs-content-tab"),a.find(".wpforms-panel-content-section-tabs-list-item").removeClass(e),t.addClass(e),s.removeClass(n),s.filter(`[data-tab="${i}"]`).addClass(n),WPFormsUtils.triggerEvent(l,"wpformsPanelSectionTabSwitch",[i,t]))}};return s}