| 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 : |
"use strict";(self.webpackChunkafm_react_admin=self.webpackChunkafm_react_admin||[]).push([[766],{6766(e,n,t){t.r(n),t.d(n,{default:()=>s});var i=t(6540),r=t(4848);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function a(e){var n,t,i=null!==(n=window.afm_object)&&void 0!==n&&n.plugin_url?"".concat(window.afm_object.plugin_url,"application/library/"):"";return function(e,n){if(!e||"en"===e||!n)return Promise.resolve();if(window.elFinder&&window.elFinder.prototype&&window.elFinder.prototype.i18&&window.elFinder.prototype.i18[e])return Promise.resolve();var t="elfinder-i18n-".concat(e);return document.getElementById(t)?Promise.resolve():new Promise(function(i){var r=document.createElement("script");r.id=t,r.src="".concat(n,"js/i18n/elfinder.").concat(e,".js"),r.onload=function(){return i()},r.onerror=function(){return i()},document.head.appendChild(r),setTimeout(i,1200)})}((null===(t=window.afm_object)||void 0===t?void 0:t.locale)||"en",i).then(function(){"function"==typeof window.afmMountElfinder&&window.afmMountElfinder(e),setTimeout(function(){"function"==typeof window.afmResizeElfinder&&window.afmResizeElfinder(),window.dispatchEvent(new Event("resize"))},100)})}function s(e){var n,t,s=e.activeTab,d=(0,i.useRef)(null),c=(n=(0,i.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,s=[],d=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(s.push(i.value),s.length!==n);d=!0);}catch(e){c=!0,r=e}finally{try{if(!d&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(n,t)||function(e,n){if(e){if("string"==typeof e)return o(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],f=c[1],m=function(){var e=document.getElementById("file_manager_advanced");if(!e||!window.jQuery)return!1;var n=window.jQuery(e);try{var t=n.elfinder("instance");if(t&&"function"==typeof t.exec)return t.exec("reload"),window.dispatchEvent(new Event("resize")),!0}catch(e){}return!1},u=function(){var e=document.getElementById("file_manager_advanced");if(!e||!window.jQuery)return!1;var n=window.jQuery(e);try{var t=n.elfinder("instance");if(!t)return!1;var i=Object.keys(t.roots||{});return i.length>0&&t.roots[i[0]]?t.request({data:{cmd:"open",target:t.roots[i[0]],init:1,tree:1},notify:{type:"open",cnt:1,hideCnt:!0},syncOnFail:!0}):t.exec("reload"),window.dispatchEvent(new Event("resize")),!0}catch(e){return!1}};return(0,i.useEffect)(function(){var e=document.getElementById("file_manager_advanced"),n=document.getElementById("file_manager_advanced_proxy");e&&n&&!n.hasChildNodes()&&n.appendChild(e);var t=document.getElementById("fma_rate_us"),i=document.getElementById("afm-top-banner-proxy");t&&t.parentElement&&i&&!i.hasChildNodes()&&i.appendChild(t);var r=document.querySelector(".afm__right-side");r&&r.parentElement&&r.parentElement.removeChild(r)},[]),(0,i.useEffect)(function(){var e=function(){setTimeout(function(){"true"!==sessionStorage.getItem("afm_force_fm_reinit")&&(u()||m())},120)};return window.addEventListener("afm-filemanager-tab-activated",e),function(){return window.removeEventListener("afm-filemanager-tab-activated",e)}},[]),(0,i.useEffect)(function(){if("filemanager"===s){var e=d.current;if(d.current=s,e&&"filemanager"!==e)return sessionStorage.setItem("afm-active-tab","filemanager"),sessionStorage.removeItem("afm-should-restore-tab"),void window.location.reload();if("true"===sessionStorage.getItem("afm_ai_settings_changed")&&(sessionStorage.removeItem("afm_ai_settings_changed"),sessionStorage.setItem("afm_force_fm_reinit","true")),"true"===sessionStorage.getItem("afm_onedrive_settings_changed"))return sessionStorage.removeItem("afm_onedrive_settings_changed"),sessionStorage.setItem("afm_force_fm_reinit","true"),void window.location.reload();if("true"===sessionStorage.getItem("afm_ui_options_changed")&&sessionStorage.removeItem("afm_ui_options_changed"),"true"===sessionStorage.getItem("afm_locale_changed"))return sessionStorage.removeItem("afm_locale_changed"),void window.location.reload();var n=sessionStorage.getItem("afm_force_fm_reinit"),t="true"===n;if(t&&sessionStorage.removeItem("afm_skip_reinit"),"true"!==sessionStorage.getItem("afm_skip_reinit")||"true"===n){var i=function(){if(window.jQuery&&window.jQuery.fn.elfinder)try{var e,n,t,r,o=document.getElementById("file_manager_advanced");if(!o)return void setTimeout(i,500);var s="true"===sessionStorage.getItem("afm_force_fm_reinit");s&&sessionStorage.removeItem("afm_force_fm_reinit");var d=o.querySelector(".elfinder"),c=window.jQuery(o);if((d||c.data("elfinder"))&&!s)return void m();if(d||c.data("elfinder")){try{c.elfinder&&c.elfinder("destroy")}catch(e){}o.innerHTML=""}var l,f=function(e){if(!e||"string"!=typeof e)return e;try{var n=new URL(e,window.location.origin);return n.protocol=window.location.protocol,n.host=window.location.host,n.toString()}catch(n){return e.startsWith("/")?"".concat(window.location.origin).concat(e):e}}((null===(e=window.wpApiSettings)||void 0===e?void 0:e.root)||(null===(n=window.afmReact)||void 0===n?void 0:n.jsonURL)||"/wp-json/"),u=(null===(t=window.wpApiSettings)||void 0===t?void 0:t.nonce)||(null===(r=window.afmReact)||void 0===r?void 0:r.nonce)||"",w=f.endsWith("/")?f:f+"/";if(w.includes("rest_route=")){var v=w.split("rest_route=")[0]+"rest_route=";l="".concat(v,"/file-manager-advanced/v1/settings&_=").concat(Date.now())}else l="".concat(w,"file-manager-advanced/v1/settings?_=").concat(Date.now());fetch(l,{credentials:"same-origin",headers:{"X-WP-Nonce":u}}).then(function(e){if(!e.ok)throw new Error("Failed to fetch settings");return e.json()}).then(function(e){if(!e||!e.settings){if(!window.afm_object)throw new Error("Invalid settings response");throw new Error("Using fallback settings")}return e}).then(function(e){if(window.afm_object){var n=e.settings;n.fma_locale?window.afm_object.locale=n.fma_locale:void 0!==window.afm_object.locale&&null!==window.afm_object.locale||(window.afm_object.locale="en"),window.afm_object.cm_theme=n.fma_cm_theme||window.afm_object.cm_theme,window.afm_object.theme=n.fma_theme||"light",window.afm_object.hide_path="1"==n.hide_path||1==n.hide_path?1:0,window.afm_object.debug_enabled="1"==n.fma_debug_enabled||1==n.fma_debug_enabled?"1":"0",void 0!==n.display_ui_options&&null!==n.display_ui_options?window.afm_object.ui=Array.isArray(n.display_ui_options)?n.display_ui_options:[]:e.ui_options&&Array.isArray(e.ui_options)&&(window.afm_object.ui=e.ui_options);var t="hide-path",i=document.getElementById(t);if(1==window.afm_object.hide_path){if(!i){var r='<style id="'.concat(t,'" type="text/css">.elfinder-info-path { display:none; } .elfinder-info-tb tr:nth-child(2) { display:none; }</style>');document.head.insertAdjacentHTML("beforeend",r)}}else i&&i.remove()}var o=e.settings.fma_theme||"light";document.querySelectorAll('link[href*="themes/"][href*="/css/theme.css"]').forEach(function(e){e.href.includes("/themes/")&&e.remove()});var s="elfinder-theme-css",d=document.getElementById(s);d&&d.remove();var l=Promise.resolve();if(["dark","grey","windows10","bootstrap","mono","m-light","moono"].includes(o)){var f,m=((null===(f=window.afm_object)||void 0===f?void 0:f.plugin_url)||"")+"application/library/themes/"+o+"/css/theme.css",u=document.createElement("link");u.id=s,u.rel="stylesheet",u.type="text/css",u.href=m,l=new Promise(function(e){u.onload=function(){return e()},u.onerror=function(){return e()},document.head.appendChild(u),setTimeout(function(){return e()},1e3)})}var w=e.settings.fma_cm_theme||"default";document.querySelectorAll('link[href*="codemirror/theme/"]').forEach(function(e){e.href.includes("/codemirror/theme/")&&!e.href.includes("/codemirror/lib/")&&e.remove()});var v="codemirror-theme-css",h=document.getElementById(v);h&&h.remove();var _=Promise.resolve();if("default"!==w){var g,p=((null===(g=window.afm_object)||void 0===g?void 0:g.plugin_url)||"")+"application/library/codemirror/theme/"+w+".css",y=document.createElement("link");y.id=v,y.rel="stylesheet",y.type="text/css",y.href=p,_=new Promise(function(e){y.onload=function(){return e()},y.onerror=function(){return e()},document.head.appendChild(y),setTimeout(function(){return e()},1e3)})}Promise.all([l,_]).then(function(){setTimeout(function(){if(window.afm_object)try{a(c).catch(function(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))})}catch(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))}},300)})}).catch(function(e){"Using fallback settings"!==e.message&&console.error("Failed to fetch settings for elFinder reinitialization:",e),window.afm_object&&setTimeout(function(){try{a(c).catch(function(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))})}catch(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))}},200)})}catch(e){console.error("elFinder reinitialize error:",e),window.dispatchEvent(new Event("resize"))}else setTimeout(i,500)},r=setTimeout(i,t?80:200);return function(){clearTimeout(r)}}sessionStorage.removeItem("afm_skip_reinit")}else d.current=s},[s]),(0,i.useEffect)(function(){var e=function(){"filemanager"===window.location.hash.replace(/^#\/?/,"").toLowerCase().split("/")[0]&&setTimeout(function(){"true"!==sessionStorage.getItem("afm_force_fm_reinit")&&m()},120)};return window.addEventListener("hashchange",e),function(){return window.removeEventListener("hashchange",e)}},[]),(0,i.useEffect)(function(){var e=function(e){!e.detail||"ui_options"!==e.detail.type&&"locale"!==e.detail.type||"filemanager"!==s||(sessionStorage.removeItem("afm_ui_options_changed"),sessionStorage.setItem("afm_force_fm_reinit","true"),setTimeout(function(){u()||m()},100))};return window.addEventListener("afm-settings-changed",e),function(){window.removeEventListener("afm-settings-changed",e)}},[s]),(0,i.useEffect)(function(){if("filemanager"===s){f(!0);var e=function(){var e=document.getElementById("file_manager_advanced_proxy"),n=document.getElementById("file_manager_advanced"),t=!!(e&&e.childNodes&&e.childNodes.length>0),i=!(!n||!n.querySelector(".elfinder"));return!(!t&&!i||(f(!1),0))},n=function(){f(!1),"function"==typeof window.afmResizeElfinder&&window.afmResizeElfinder()};if(!e()){window.addEventListener("afm-elfinder-loaded",n);var t=new MutationObserver(function(){e()});t.observe(document.body,{childList:!0,subtree:!0});var i=setInterval(function(){e()},250),r=setTimeout(function(){f(!1)},8e3);return function(){window.removeEventListener("afm-elfinder-loaded",n),t.disconnect(),clearInterval(i),clearTimeout(r)}}}},[s]),(0,r.jsxs)("div",{id:"afm-file-manager-tab",children:[l&&(0,r.jsxs)("div",{style:{padding:"20px 0"},children:[(0,r.jsx)("style",{children:"\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 "}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"40px",width:"260px",borderRadius:"6px",marginBottom:"16px"}}),(0,r.jsx)("div",{className:"afm-skeleton",style:{height:"560px",width:"100%",borderRadius:"8px"}})]}),(0,r.jsx)("div",{id:"afm-top-banner-proxy"}),(0,r.jsx)("div",{id:"file_manager_advanced_proxy"}),(0,r.jsx)("div",{id:"afm-right-banner-proxy",style:{marginTop:"16px"}})]})}}}]);
//# sourceMappingURL=766.2c140c98.chunk.js.map