403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wp-content/plugins/file-manager-advanced/application/assets/dist/608.ea7f9d45.chunk.js
/*! For license information please see 608.ea7f9d45.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunkafm_react_admin=self.webpackChunkafm_react_admin||[]).push([[608],{4608(e,t,n){n.r(t),n.d(t,{default:()=>h});var r=n(6540),o=n(961),i=n(7554),a=n(5688),l=n(4848);function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,d=Object.create(c.prototype);return s(d,"_invoke",function(n,r,o){var i,l,c,s=0,d=o||[],p=!1,u={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,u.n=n,a}};function f(n,r){for(l=n,c=r,t=0;!p&&s&&!o&&t<d.length;t++){var o,i=d[t],f=u.p,h=i[2];n>3?(o=h===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(l=0,u.v=r,u.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,u.n=h,l=0))}if(o||n>1)return a;throw p=!0,r}return function(o,d,h){if(s>1)throw TypeError("Generator is already running");for(p&&1===d&&f(d,h),l=d,c=h;(t=l<2?e:c)||!p;){i||(l?l<3?(l>1&&(u.n=-1),f(l,c)):u.n=c:u.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(p=u.n<0)?c:n.call(r,u))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:p}}}(n,o,i),!0),d}var a={};function l(){}function d(){}function p(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),f=p.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=p,s(f,"constructor",p),s(p,"constructor",d),d.displayName="GeneratorFunction",s(p,o,"GeneratorFunction"),s(f),s(f,o,"Generator"),s(f,r,function(){return this}),s(f,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:h}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,n,r){function i(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},s(e,t,n,r)}function d(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,l,"next",e)}function l(e){d(i,r,o,a,l,"throw",e)}a(void 0)})}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,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.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(){var e,t,n,s,d,f=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onContentReady,h=(0,a.lA)(),m=(null===(e=window.wpApiSettings)||void 0===e?void 0:e.nonce)||(null===(t=window.afmReact)||void 0===t?void 0:t.nonce)||"",g=u((0,r.useState)([]),2),x=g[0],y=g[1],v=u((0,r.useState)(!0),2),b=v[0],w=v[1];(0,r.useEffect)(function(){b||null==f||f()},[b,f]);var j=u((0,r.useState)(1),2),k=j[0],S=j[1],C=u((0,r.useState)(1),2),A=C[0],R=C[1],D=u((0,r.useState)("all"),2),_=D[0],N=D[1],F=u((0,r.useState)(""),2),I=F[0],P=F[1],T=u((0,r.useState)(""),2),M=T[0],U=T[1],O=u((0,r.useState)(null),2),L=O[0],W=O[1],E=(0,r.useRef)(!1);(0,r.useEffect)(function(){if(h&&m){w(!0);var e,t=h.endsWith("/")?h:h+"/";if(t.includes("rest_route=")){var n=t.split("rest_route=")[0]+"rest_route=";if(e="".concat(n,"/file-manager-advanced/v1/file-logs&page=").concat(k,"&per_page=20"),_&&"all"!==_&&(e+="&filter=".concat(encodeURIComponent(_))),I&&"string"==typeof I&&""!==I.trim()){var r=I.split(" - ");if(2===r.length){var o=r[0].trim(),i=r[1].trim();o.match(/^\d{4}-\d{2}-\d{2}$/)&&i.match(/^\d{4}-\d{2}-\d{2}$/)&&(e+="&date_range=".concat(encodeURIComponent(I)))}}}else if(e="".concat(t,"file-manager-advanced/v1/file-logs?page=").concat(k,"&per_page=20"),_&&"all"!==_&&(e+="&filter=".concat(encodeURIComponent(_))),I&&"string"==typeof I&&""!==I.trim()){var a=I.split(" - ");if(2===a.length){var l=a[0].trim(),c=a[1].trim();l.match(/^\d{4}-\d{2}-\d{2}$/)&&c.match(/^\d{4}-\d{2}-\d{2}$/)&&(e+="&date_range=".concat(encodeURIComponent(I)))}}console.log("LogsPanel: Fetching URL:",e,"Root:",h),fetch(e,{credentials:"same-origin",headers:{"X-WP-Nonce":m}}).then(function(e){return e.ok?e.json():(console.error("LogsPanel: Response not OK:",e.status,e.statusText,"Final URL:",e.url),e.text().then(function(t){throw console.error("LogsPanel: Response body:",t),new Error("HTTP ".concat(e.status,": ").concat(e.statusText))}))}).then(function(e){y(e.logs||[]),R(e.total_pages||1),w(!1)}).catch(function(e){console.error("AFM Logs fetch error:",e),w(!1)})}else console.warn("AFM Logs: Missing API root or nonce")},[k,_,I,h,m]);var z=u((0,r.useState)(null),2),Y=z[0],H=z[1],B=function(){var e=p(c().m(function e(t){var n,r,o;return c().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=String(t||"")){e.n=1;break}return e.a(2,!1);case 1:if(e.p=1,!navigator.clipboard||!window.isSecureContext){e.n=3;break}return e.n=2,navigator.clipboard.writeText(n);case 2:return e.a(2,!0);case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.p=5,(r=document.createElement("textarea")).value=n,r.setAttribute("readonly",""),r.style.position="fixed",r.style.left="-9999px",r.style.opacity="0",document.body.appendChild(r),r.select(),o=document.execCommand("copy"),document.body.removeChild(r),e.a(2,o);case 6:return e.p=6,e.v,e.a(2,!1)}},e,null,[[5,6],[1,4]])}));return function(t){return e.apply(this,arguments)}}(),$=function(){var e=p(c().m(function e(t,n){return c().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,B(t);case 1:e.v&&(H(n),setTimeout(function(){return H(null)},2e3));case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),G=function(e){if(!e)return"—";var t=parseInt(e);if(!isNaN(t)&&t>0){var n=new Date(1e3*t);if(!isNaN(n.getTime())){var r=["January","February","March","April","May","June","July","August","September","October","November","December"][n.getMonth()],o=n.getDate(),i=n.getFullYear(),a=n.getHours(),l=n.getMinutes(),c=a>=12?"pm":"am";a=(a%=12)||12;var s=l<10?"0"+l:l;return"".concat(r," ").concat(o,", ").concat(i," ").concat(a,":").concat(s," ").concat(c)}}if("string"==typeof e){var d=new Date(e);if(!isNaN(d.getTime())){var p=["January","February","March","April","May","June","July","August","September","October","November","December"][d.getMonth()],u=d.getDate(),f=d.getFullYear(),h=d.getHours(),m=d.getMinutes(),g=h>=12?"pm":"am";h=(h%=12)||12;var x=m<10?"0"+m:m;return"".concat(p," ").concat(u,", ").concat(f," ").concat(h,":").concat(x," ").concat(g)}if(e.match(/[A-Za-z]+ \d+, \d{4}/))return e}return e};(0,r.useEffect)(function(){if(!b){var e=setTimeout(function(){if(void 0!==window.jQuery&&"function"==typeof window.jQuery.fn.daterangepicker){var e=window.jQuery("#date-range");e.length?e.data("daterangepicker")||(e.daterangepicker({autoUpdateInput:!1}),e.off("cancel.daterangepicker").on("cancel.daterangepicker",function(t,n){e.val(""),P(""),U(""),S(1)}),e.off("apply.daterangepicker").on("apply.daterangepicker",function(t,n){var r=n.startDate.format("MM/DD/YYYY")+" - "+n.endDate.format("MM/DD/YYYY"),o=n.startDate.format("YYYY-MM-DD")+" - "+n.endDate.format("YYYY-MM-DD");e.val(r),U(r),P(o),S(1)}),E.current=!0,console.log("Date picker initialized")):console.warn("Date range input not found")}else console.warn("jQuery or daterangepicker not available")},200);return function(){clearTimeout(e)}}},[b]),(0,r.useEffect)(function(){if(I){var e=I.split(" - ");if(2===e.length){var t=e[0].trim().split("-"),n=e[1].trim().split("-");if(3===t.length&&3===n.length){var r="".concat(t[1],"/").concat(t[2],"/").concat(t[0]," - ").concat(n[1],"/").concat(n[2],"/").concat(n[0]);U(r)}}}else U("")},[I]);var J,X,Q,V=(null===(n=window.afmReact)||void 0===n?void 0:n.hasPro)||!1,K=(null===(s=window.afmReact)||void 0===s?void 0:s.currentPlan)||"free",Z="boolean"==typeof(null===(d=window.afmReact)||void 0===d?void 0:d.hasFileLogs)?window.afmReact.hasFileLogs:V&&"free"!==K,q=Z?x:[{id:1001,user:"admin",email:"admin@example.com",time:(J=Math.floor(Date.now()/1e3))-3600,event:"Uploaded",file_path:"/wp-content/uploads/2024/11/demo-image.jpg",type:"Image",ip:"192.168.1.100"},{id:1002,user:"editor",email:"editor@example.com",time:J-7200,event:"Deleted",file_path:"/wp-content/uploads/old-document.pdf",type:"Document",ip:"192.168.1.101"},{id:1003,user:"admin",email:"admin@example.com",time:J-10800,event:"Created",file_path:"/wp-content/uploads/new-folder/",type:"Folder",ip:"192.168.1.100"},{id:1004,user:"author",email:"author@example.com",time:J-14400,event:"Renamed",file_path:"/wp-content/uploads/renamed-file.txt",type:"Text",ip:"192.168.1.102"},{id:1005,user:"admin",email:"admin@example.com",time:J-18e3,event:"Duplicated",file_path:"/wp-content/uploads/copy-of-file.png",type:"Image",ip:"192.168.1.100"},{id:1006,user:"editor",email:"editor@example.com",time:J-21600,event:"Pasted",file_path:"/wp-content/uploads/pasted-content.zip",type:"Archive",ip:"192.168.1.101"},{id:1007,user:"admin",email:"admin@example.com",time:J-25200,event:"Updated",file_path:"/wp-content/uploads/updated-file.css",type:"Code",ip:"192.168.1.100"},{id:1008,user:"author",email:"author@example.com",time:J-28800,event:"Uploaded",file_path:"/wp-content/uploads/video-sample.mp4",type:"Video",ip:"192.168.1.102"},{id:1009,user:"editor",email:"editor@example.com",time:J-32400,event:"Created",file_path:"/wp-content/uploads/archive-folder/",type:"Folder",ip:"192.168.1.101"},{id:1010,user:"admin",email:"admin@example.com",time:J-36e3,event:"Deleted",file_path:"/wp-content/uploads/temp-file.tmp",type:"Other",ip:"192.168.1.100"}],ee=!Z;return b?(0,l.jsxs)("div",{className:"afm-tab-panel",style:{padding:"20px"},children:[(0,l.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,l.jsxs)("div",{style:{background:"#fff",border:"1px solid #ccc",padding:"20px"},children:[(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"26px",width:"180px",borderRadius:"6px",marginBottom:"18px"}}),(0,l.jsxs)("div",{style:{display:"flex",gap:"10px",marginBottom:"16px",flexWrap:"wrap"},children:[(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"36px",width:"140px",borderRadius:"6px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"36px",width:"200px",borderRadius:"6px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"36px",width:"120px",borderRadius:"6px"}})]}),[1,2,3,4,5].map(function(e){return(0,l.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"80px 1fr 180px 120px 60px",gap:"10px",marginBottom:"10px"},children:[(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"14px",borderRadius:"4px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"14px",borderRadius:"4px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"14px",borderRadius:"4px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"14px",borderRadius:"4px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"14px",borderRadius:"4px"}})]},e)})]})]}):(0,l.jsx)("div",{className:"afm-tab-panel",children:(0,l.jsxs)("div",{className:"wrap",style:{background:"#fff",padding:"20px",border:"1px solid #ccc",position:"relative"},children:[(0,l.jsxs)(i.A,{shouldShow:ee,children:[(0,l.jsx)("h2",{style:{marginBottom:"20px"},children:"File Logs"}),(0,l.jsxs)("div",{className:"afm-filter-bar",children:[(0,l.jsxs)("select",{value:_,onChange:function(e){return N(e.target.value)},style:{padding:"0 30px 0 12px",border:"1px solid #ddd",borderRadius:"4px",fontSize:"14px",height:"36px",lineHeight:"36px",minWidth:"130px",verticalAlign:"middle",backgroundColor:"#fff",backgroundImage:'url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%233F6972%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E")',backgroundRepeat:"no-repeat",backgroundPosition:"right 12px center",backgroundSize:"10px",cursor:"pointer",WebkitAppearance:"none",MozAppearance:"none",appearance:"none"},children:[(0,l.jsx)("option",{value:"all",children:"All"}),(0,l.jsx)("option",{value:"uploaded",children:"Uploaded"}),(0,l.jsx)("option",{value:"created",children:"Created"}),(0,l.jsx)("option",{value:"deleted",children:"Deleted"}),(0,l.jsx)("option",{value:"renamed",children:"Renamed"}),(0,l.jsx)("option",{value:"duplicated",children:"Duplicated"}),(0,l.jsx)("option",{value:"pasted",children:"Pasted"}),(0,l.jsx)("option",{value:"updated",children:"Updated"})]}),(0,l.jsx)("input",{type:"text",placeholder:"Date Range",className:"afmp__input",style:{padding:"0 12px",border:"1px solid #ddd",borderRadius:"4px",fontSize:"14px",cursor:"pointer",height:"36px",lineHeight:"34px",verticalAlign:"middle"},id:"date-range",autoComplete:"off",readOnly:!0,value:M}),(0,l.jsx)("button",{type:"button",onClick:function(){N("all"),P(""),U(""),S(1)},className:"button button-secondary",style:{padding:"0 12px",fontSize:"14px",backgroundColor:"#3F6972",color:"#fff",borderColor:"#3F6972",height:"36px",lineHeight:"34px",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:"Reset Filters"}),(0,l.jsx)("button",{type:"button",onClick:function(){if(window.confirm("Are you sure you want to delete ALL file logs? This action cannot be undone.")){var e=h.endsWith("/")?h:h+"/";fetch("".concat(e,"file-manager-advanced/v1/file-logs/all"),{method:"DELETE",credentials:"same-origin",headers:{"X-WP-Nonce":m}}).then(function(e){return e.json()}).then(function(e){e.success&&(y([]),S(1),R(1))}).catch(function(e){return console.error("AFM Logs delete all error:",e)})}},disabled:ee,className:"button button-secondary",style:{padding:"0 12px",fontSize:"14px",backgroundColor:ee?"#999":"#dc3232",color:"#fff",borderColor:ee?"#999":"#dc3232",cursor:ee?"not-allowed":"pointer",opacity:ee?.5:1,height:"36px",lineHeight:"34px",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},title:ee?"Pro feature - Upgrade to unlock":"Delete all logs",children:"Delete All"})]}),(0,l.jsx)("div",{className:"afm-table-wrapper",children:(0,l.jsxs)("table",{className:"wp-list-table widefat fixed striped afm-logs-table",style:{width:"100%",tableLayout:"auto"},children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{scope:"col",style:{padding:"10px 6px",width:"50px",minWidth:"50px"},children:"ID"}),(0,l.jsx)("th",{scope:"col",style:{padding:"10px 6px",width:"180px",minWidth:"150px"},children:"User"}),(0,l.jsx)("th",{scope:"col",style:{padding:"10px"},children:"Date & Time"}),(0,l.jsx)("th",{scope:"col",style:{padding:"10px"},children:"Event"}),(0,l.jsx)("th",{scope:"col",style:{padding:"10px"},children:"File Path"}),(0,l.jsx)("th",{scope:"col",style:{padding:"10px"},children:"Type"}),(0,l.jsx)("th",{scope:"col",style:{padding:"10px"},children:"IP Address"}),(0,l.jsx)("th",{scope:"col",style:{padding:"10px"},children:"Actions"})]})}),(0,l.jsx)("tbody",{children:0===q.length?(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:"8",style:{padding:"20px",color:"#666",textAlign:"center"},children:"No logs found."})}):q.map(function(e){return(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{style:{padding:"10px 6px",width:"50px",minWidth:"50px"},children:e.id}),(0,l.jsxs)("td",{style:{padding:"10px 6px",width:"180px",minWidth:"150px"},children:[e.user||"—",e.email&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("br",{}),e.email]})]}),(0,l.jsx)("td",{style:{padding:"10px"},children:G(e.time)||"—"}),(0,l.jsx)("td",{style:{padding:"10px"},children:e.event||"—"}),(0,l.jsx)("td",{style:{padding:"10px",maxWidth:"300px"},children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,l.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"8px"},title:e.file_path,children:e.file_path||"—"}),e.file_path&&(0,l.jsxs)("div",{style:{position:"relative"},children:[(0,l.jsx)("button",{onClick:function(){return $(e.file_path,e.id)},style:{background:"none",border:"none",cursor:"pointer",padding:"2px 4px",flexShrink:0},title:"Copy file path",children:(0,l.jsx)("span",{className:Y===e.id?"dashicons dashicons-yes":"dashicons dashicons-admin-page",style:{fontSize:"16px",lineHeight:"1",color:Y===e.id?"#46b450":"inherit"}})}),Y===e.id&&(0,l.jsx)("span",{style:{position:"absolute",bottom:"100%",right:"50%",transform:"translateX(50%)",background:"#333",color:"#fff",padding:"4px 8px",borderRadius:"4px",fontSize:"11px",whiteSpace:"nowrap",marginBottom:"5px",zIndex:10},children:"Copied!"})]})]})}),(0,l.jsx)("td",{style:{padding:"10px"},children:e.type||"—"}),(0,l.jsx)("td",{style:{padding:"10px"},children:e.ip||"—"}),(0,l.jsx)("td",{style:{padding:"10px"},children:(0,l.jsx)("div",{style:{display:"flex",gap:"8px"},children:ee?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{disabled:!0,style:{background:"none",border:"none",cursor:"not-allowed",padding:"4px",color:"#999",opacity:.5},title:"View details (Pro feature)",children:(0,l.jsx)("span",{className:"dashicons dashicons-visibility",style:{fontSize:"16px",lineHeight:"1"}})}),(0,l.jsx)("button",{disabled:!0,style:{background:"none",border:"none",cursor:"not-allowed",padding:"4px",color:"#999",opacity:.5},title:"Delete log (Pro feature)",children:(0,l.jsx)("span",{className:"dashicons dashicons-trash",style:{fontSize:"16px",lineHeight:"1"}})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"button",onClick:function(){return W(e)},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:"#2271b1"},title:"View details",children:(0,l.jsx)("span",{className:"dashicons dashicons-visibility",style:{fontSize:"16px",lineHeight:"1"}})}),(0,l.jsx)("button",{onClick:function(){return function(e){if(window.confirm("Are you sure you want to delete this file log?")){var t=h.endsWith("/")?h:h+"/";fetch("".concat(t,"file-manager-advanced/v1/file-logs/").concat(e),{method:"DELETE",credentials:"same-origin",headers:{"X-WP-Nonce":m}}).then(function(e){return e.json()}).then(function(e){if(e.success){var t=h.endsWith("/")?h:h+"/",n="".concat(t,"file-manager-advanced/v1/file-logs?page=").concat(k,"&per_page=20");return _&&"all"!==_&&(n+="&filter=".concat(encodeURIComponent(_))),I&&(n+="&date_range=".concat(encodeURIComponent(I))),fetch(n,{credentials:"same-origin",headers:{"X-WP-Nonce":m}})}}).then(function(e){return e.ok?e.json():null}).then(function(e){e&&(y(e.logs||[]),R(e.total_pages||1))}).catch(function(e){return console.error("AFM Logs delete error:",e)})}}(e.id)},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:"#d63638"},title:"Delete log",children:(0,l.jsx)("span",{className:"dashicons dashicons-trash",style:{fontSize:"16px",lineHeight:"1"}})})]})})})]},e.id)})})]})})]}),!ee&&A>1&&(0,l.jsxs)("div",{style:{marginTop:"20px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"center"},children:[(0,l.jsx)("button",{disabled:1===k,onClick:function(){return S(k-1)},className:"button",children:"Previous"}),(0,l.jsxs)("span",{style:{padding:"0 10px"},children:["Page ",k," of ",A]}),(0,l.jsx)("button",{disabled:k>=A,onClick:function(){return S(k+1)},className:"button",children:"Next"})]}),L&&(0,o.createPortal)((0,l.jsx)("div",{className:"afm-log-detail-modal",style:{position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.5)",backdropFilter:"blur(2px)",WebkitBackdropFilter:"blur(2px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:123456789},onClick:function(){return W(null)},children:(0,l.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"afm-log-detail-title",style:{position:"relative",background:"#fff",borderRadius:"10px",minWidth:"320px",maxWidth:"700px",width:"90%",padding:"25px",boxShadow:"0 8px 30px rgba(0, 0, 0, 0.2)"},onClick:function(e){return e.stopPropagation()},children:[(0,l.jsx)("button",{type:"button",onClick:function(){return W(null)},"aria-label":"Close log details",style:{position:"absolute",top:"12px",right:"12px",background:"none",border:"none",cursor:"pointer",fontSize:"20px",lineHeight:1,color:"#1d2327"},children:"×"}),(0,l.jsx)("h3",{id:"afm-log-detail-title",style:{marginTop:0,marginRight:"24px"},children:"Log Detail"}),(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",marginBottom:0},children:(X=L.message,Q=String(X||"").trim(),Q?Q.split(/(\*\*\*.*?\*\*\*)/g).map(function(e,t){var n=e.match(/^\*\*\*(.*?)\*\*\*$/);return n?(0,l.jsx)("strong",{style:{fontWeight:700},children:n[1]},t):(0,l.jsx)(r.Fragment,{children:e},t)}):"No details available.")})]})}),document.body)]})})}},5688(e,t,n){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,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.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(){var e,t;return function(e){if(!e||"string"!=typeof e)return e;try{var t=new URL(e,window.location.origin);return t.protocol=window.location.protocol,t.host=window.location.host,t.toString()}catch(t){return e.startsWith("/")?"".concat(window.location.origin).concat(e):e}}((null===(e=window.wpApiSettings)||void 0===e?void 0:e.root)||(null===(t=window.afmReact)||void 0===t?void 0:t.jsonURL)||"".concat(window.location.origin,"/?rest_route=/"))}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(),o=n.endsWith("/")?n:"".concat(n,"/"),a=String(e||"").replace(/^\//,""),l=Object.entries(t).filter(function(e){var t=r(e,2)[1];return null!=t&&""!==t}).map(function(e){var t=r(e,2),n=t[0],o=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o)))});if(o.includes("rest_route=")){var c="".concat(o.split("rest_route=")[0],"rest_route="),s="".concat(c,"/").concat(a);return l.length&&(s+="&".concat(l.join("&"))),s}if(o.includes("/wp-json")){var d=function(e){try{return new URL(e,window.location.origin).origin}catch(e){return window.location.origin}}(o),p="".concat(d,"/?rest_route=/").concat(a);return l.length&&(p+="&".concat(l.join("&"))),p}var u="".concat(o).concat(a);return l.length&&(u+="?".concat(l.join("&"))),u}n.d(t,{_H:()=>a,lA:()=>i})}}]);
//# sourceMappingURL=608.ea7f9d45.chunk.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit