GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/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}