HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: agritoday (1002)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/agritoday/www/wp-content/plugins/td-composer/mobile/js/js_mob_files_for_admin.min.js
var __=wp.i18n.__,_wp$components=wp.components,FormToggle=_wp$components.FormToggle,Panel=_wp$components.Panel,PanelBody=_wp$components.PanelBody,PanelRow=_wp$components.PanelRow,_wp$element=wp.element,Fragment=_wp$element.Fragment,_wp$data=wp.data,withSelect=_wp$data.withSelect,withDispatch=_wp$data.withDispatch,_wp$compose=wp.compose,compose=_wp$compose.compose,withInstanceId=_wp$compose.withInstanceId,withState=_wp$compose.withState,_window$wpTdEditor=window.wpTdEditor,possibleStates=_window$wpTdEditor.possibleStates,
defaultStatusMobTheme=_window$wpTdEditor.defaultStatusMobTheme,defaultStatusPageGrid=_window$wpTdEditor.defaultStatusGrid,el=wp.element.createElement,PluginSidebar=wp.editPost.PluginSidebar,PluginSidebarMoreMenuItem=wp.editPost.PluginSidebarMoreMenuItem,registerPlugin=wp.plugins.registerPlugin;
function MobileThemeGridStatus(a){var b=a.enabledStatus,c=a.onMobileThemeGridStatusChange;return el(Fragment,null,el("label",{htmlFor:"tdm-page-grid-status-toggle"},"Enable/Disable Mobile Theme Page Grid"),el(FormToggle,{checked:"enabled"===b,onChange:function(){return c(b)},id:"tdm-page-grid-status-toggle"}))}
function MobileThemeStatus(a){var b=a.enabledStatus,c=a.onMobileThemeStatusChange;return el(Fragment,null,el("label",{htmlFor:"tdm-status-toggle"},"Enable/Disable Mobile Theme"),el(FormToggle,{checked:"enabled"===b,onChange:function(){return c(b)},id:"tdm-status-toggle"}))}
var mobile_theme_status=compose([withSelect(function(a){a=(a=a("core/editor").getEditedPostAttribute("meta"))&&a.tdm_status&&possibleStates.includes(a.tdm_status)?a.tdm_status:defaultStatusMobTheme;return{enabledStatus:a}}),withDispatch(function(a){return{onMobileThemeStatusChange:function(b){b="enabled"===b?"disabled":"enabled";var c=_wp$data.select("core/editor").getEditedPostAttribute("meta");b=Object.assign({},c,{tdm_status:b});a("core/editor").editPost({meta:b})}}}),withInstanceId])(MobileThemeStatus),
mobile_theme_page_grid_status=compose([withSelect(function(a){a=(a=a("core/editor").getEditedPostAttribute("meta"))&&a.tdm_grid_status&&possibleStates.includes(a.tdm_grid_status)?a.tdm_grid_status:defaultStatusPageGrid;return{enabledStatus:a}}),withDispatch(function(a){return{onMobileThemeGridStatusChange:function(b){b="enabled"===b?"disabled":"enabled";var c=_wp$data.select("core/editor").getEditedPostAttribute("meta");b=Object.assign({},c,{tdm_grid_status:b});a("core/editor").editPost({meta:b})}}}),
withInstanceId])(MobileThemeGridStatus);
registerPlugin("td-mobile-theme",{icon:"smartphone",render:function(){var a=_wp$data.select("core/editor").getCurrentPostType();return el(Fragment,null,el(PluginSidebarMoreMenuItem,{target:"td-mobile-theme-settings",icon:"smartphone"},__("Mobile Theme Settings")),el(PluginSidebar,{name:"td-mobile-theme-settings",className:"td-mobile-theme-settings",title:__("Mobile Theme Settings"),isPinnable:!0,icon:"smartphone"},el(PanelBody,null,el(PanelRow,null,el(mobile_theme_status,null))),"page"===a&&el(PanelBody,
null,el(PanelRow,null,el(mobile_theme_page_grid_status,null)))))}});