| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/file-manager-advanced/application/assets/dist/ |
Upload File : |
{"version":3,"file":"948.d106b8e8.chunk.js","mappings":"8qCAGe,SAASA,IAAkB,IAAAC,EAAAC,EACIC,EAAAC,GAAdC,EAAAA,EAAAA,WAAS,GAAK,GAArCC,EAAOH,EAAA,GAAEI,EAAUJ,EAAA,GACcK,EAAAJ,GAAdC,EAAAA,EAAAA,UAAS,MAAK,GAAjCI,EAAKD,EAAA,GAAEE,EAAQF,EAAA,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A,EAAM,GAAHzC,OAAMyD,GAASzD,OAAG2D,GAIzB,OAHIG,EAAWP,SACbd,GAAO,IAAJzC,OAAQ8D,EAAWc,KAAK,OAEtBnC,CACT,C","sources":["webpack://afm-react-admin/./src/components/PlanAccessPanel.js","webpack://afm-react-admin/./src/utils/api.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { getApiRoot } from '../utils/api';\n\nexport default function PlanAccessPanel() {\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(null);\n const [content, setContent] = useState(null);\n\n const root = getApiRoot();\n const nonce = window.wpApiSettings?.nonce || window.afmReact?.nonce || '';\n\n useEffect(() => {\n // Fetch Plan Access content via REST API\n fetch(`${root}file-manager-advanced/v1/plan-access`, {\n credentials: 'same-origin',\n headers: { 'X-WP-Nonce': nonce }\n })\n .then(r => {\n if (!r.ok) {\n throw new Error('Failed to fetch Plan Access content');\n }\n return r.json();\n })\n .then(res => {\n if (res && res.content) {\n setContent(res.content);\n setLoading(false);\n } else {\n throw new Error('Invalid response from server');\n }\n })\n .catch(err => {\n console.error('Plan Access fetch error:', err);\n setError('Failed to load Plan Access content. Please try refreshing the page.');\n setLoading(false);\n });\n }, [root, nonce]);\n\n if (loading) {\n return (\n <div className=\"afm-tab-panel\" style={{ \n minHeight: '600px',\n padding: '20px'\n }}>\n <style>{`\n @keyframes afm-skeleton-shimmer {\n 0% { background-position: -200% 0; }\n 100% { background-position: 200% 0; }\n }\n .afm-skeleton {\n background-color: #e2e8f0;\n background-image: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);\n background-size: 200% 100%;\n animation: afm-skeleton-shimmer 1.4s linear infinite;\n }\n `}</style>\n <div style={{ background: '#fff', border: '1px solid #ccc', padding: '20px' }}>\n <div className=\"afm-skeleton\" style={{ height: '24px', width: '240px', borderRadius: '6px', marginBottom: '18px' }} />\n <div className=\"afm-skeleton\" style={{ height: '220px', width: '100%', borderRadius: '6px', marginBottom: '14px' }} />\n <div className=\"afm-skeleton\" style={{ height: '220px', width: '100%', borderRadius: '6px' }} />\n </div>\n </div>\n );\n }\n\n if (error) {\n return (\n <div className=\"afm-tab-panel\" style={{ \n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n minHeight: '600px',\n padding: '40px'\n }}>\n <div style={{\n fontSize: '16px',\n color: '#dc3232',\n textAlign: 'center',\n background: '#fff',\n padding: '20px',\n borderRadius: '8px',\n boxShadow: '0 2px 8px rgba(0,0,0,0.1)'\n }}>\n {error}\n <br />\n <a \n href={`${window.location.origin}/wp-admin/admin.php?page=afmp-plan-features`}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n style={{ color: '#0061FF', textDecoration: 'underline', marginTop: '10px', display: 'inline-block' }}\n >\n Open Plan Access in new tab\n </a>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"afm-tab-panel\" style={{ \n width: '100%',\n padding: '0',\n margin: '0'\n }}>\n <style>\n {`\n .plan-feature-heading {\n display: none !important;\n }\n `}\n </style>\n <div \n dangerouslySetInnerHTML={{ __html: content }}\n style={{\n width: '100%',\n minHeight: '600px'\n }}\n />\n </div>\n );\n}\n\n","export function normalizeToCurrentOrigin(url) {\n if (!url || typeof url !== 'string') return url;\n try {\n const parsed = new URL(url, window.location.origin);\n parsed.protocol = window.location.protocol;\n parsed.host = window.location.host;\n return parsed.toString();\n } catch (e) {\n if (url.startsWith('/')) return `${window.location.origin}${url}`;\n return url;\n }\n}\n\nexport function getApiRoot() {\n return normalizeToCurrentOrigin(\n window.wpApiSettings?.root || window.afmReact?.jsonURL || `${window.location.origin}/?rest_route=/`\n );\n}\n\nfunction getRestRouteOrigin(root) {\n try {\n return new URL(root, window.location.origin).origin;\n } catch (e) {\n return window.location.origin;\n }\n}\n\n/**\n * Build a REST API URL for plain (?rest_route=) and pretty (/wp-json/) permalinks.\n *\n * @param {string} endpoint Route after the REST namespace root (no leading slash required).\n * @param {Record<string, string|number|boolean>} [params] Query parameters.\n * @returns {string}\n */\nexport function buildRestUrl(endpoint, params = {}) {\n const root = getApiRoot();\n const cleanRoot = root.endsWith('/') ? root : `${root}/`;\n const endpointPath = String(endpoint || '').replace(/^\\//, '');\n const queryParts = Object.entries(params)\n .filter(([, value]) => value !== undefined && value !== null && value !== '')\n .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n\n if (cleanRoot.includes('rest_route=')) {\n const baseUrl = `${cleanRoot.split('rest_route=')[0]}rest_route=`;\n let url = `${baseUrl}/${endpointPath}`;\n if (queryParts.length) {\n url += `&${queryParts.join('&')}`;\n }\n return url;\n }\n\n // Managed hosts (e.g. InstaWP) often expose REST only via ?rest_route=, not /wp-json/.\n if (cleanRoot.includes('/wp-json')) {\n const origin = getRestRouteOrigin(cleanRoot);\n let url = `${origin}/?rest_route=/${endpointPath}`;\n if (queryParts.length) {\n url += `&${queryParts.join('&')}`;\n }\n return url;\n }\n\n let url = `${cleanRoot}${endpointPath}`;\n if (queryParts.length) {\n url += `?${queryParts.join('&')}`;\n }\n return url;\n}\n\nexport function getAjaxUrl() {\n return normalizeToCurrentOrigin(window.ajaxurl || window.afm_object?.ajaxurl || '/wp-admin/admin-ajax.php');\n}\n"],"names":["PlanAccessPanel","_window$wpApiSettings","_window$afmReact","_useState2","_slicedToArray","useState","loading","setLoading","_useState4","error","setError","_useState6","content","setContent","root","getApiRoot","nonce","window","wpApiSettings","afmReact","useEffect","fetch","concat","credentials","headers","then","r","ok","Error","json","res","err","console","_jsxs","className","style","minHeight","padding","children","_jsx","background","border","height","width","borderRadius","marginBottom","display","alignItems","justifyContent","fontSize","color","textAlign","boxShadow","href","location","origin","target","rel","textDecoration","marginTop","margin","dangerouslySetInnerHTML","__html","url","parsed","URL","protocol","host","toString","e","startsWith","normalizeToCurrentOrigin","jsonURL","buildRestUrl","endpoint","params","arguments","length","undefined","cleanRoot","endsWith","endpointPath","String","replace","queryParts","Object","entries","filter","_ref","value","map","_ref3","_ref4","key","encodeURIComponent","includes","baseUrl","split","join","getRestRouteOrigin"],"sourceRoot":""}