PluginProbe
ElasticPress / 4.7.2
ElasticPress v4.7.2
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
elasticpress / dist / js / status-report-script.js

status-report-script.js in ElasticPress 4.7.2, at dist/js/status-report-script.js

1 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(){"use strict";var e={5251:function(e,t,r){var n=r(9196),i=60103;if(60107,"function"===typeof Symbol&&Symbol.for){var s=Symbol.for;i=s("react.element"),s("react.fragment")}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,r){var n,s={},a=null,d=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(d=t.ref),t)l.call(t,n)&&!c.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:i,type:e,key:a,ref:d,props:s,_owner:o.current}}t.jsx=a,t.jsxs=a},5893:function(e,t,r){e.exports=r(5251)},9196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=window.wp.domReady,t=r.n(e),n=window.wp.element;const i=window.epStatusReport;var s=window.wp.components,o=window.wp.dom,l=window.wp.htmlEntities,c=r(5893),a=({value:e})=>{if("object"===typeof e){const t=JSON.stringify(e,null,2);return(0,c.jsx)("pre",{children:t})}if("string"===typeof e){if(0===e.indexOf("{"))try{const t=JSON.parse(e),r=JSON.stringify(t,null,2);return(0,c.jsx)("pre",{children:r})}catch(t){return(0,c.jsx)("pre",{children:e})}return(0,c.jsx)(n.RawHTML,{children:e})}return e.toString()},d=({actions:e,groups:t,id:r,messages:i,title:d})=>t.length<1?null:(0,c.jsxs)(s.Panel,{id:d,children:[(0,c.jsxs)(s.PanelHeader,{children:[(0,c.jsx)("h2",{id:r,children:d}),e.map((({href:e,label:t})=>(0,c.jsx)(s.Button,{href:(0,l.decodeEntities)(e),isDestructive:!0,isSecondary:!0,isSmall:!0,children:t},e)))]}),i.map((({message:e,type:t})=>(0,c.jsx)(s.Notice,{status:t,isDismissible:!1,children:(0,c.jsx)(n.RawHTML,{children:(0,o.safeHTML)(e)})}))),t.map((({fields:e,title:t})=>(0,c.jsx)(s.PanelBody,{title:(0,l.decodeEntities)(t),initialOpen:!1,children:(0,c.jsxs)("table",{cellPadding:"0",cellSpacing:"0",className:"wp-list-table widefat striped",children:[(0,c.jsxs)("colgroup",{children:[(0,c.jsx)("col",{}),(0,c.jsx)("col",{})]}),(0,c.jsx)("tbody",{children:Object.entries(e).map((([e,{description:t="",label:r,value:n}])=>(0,c.jsxs)("tr",{children:[(0,c.jsxs)("td",{children:[r,t?(0,c.jsx)("small",{children:t}):null]}),(0,c.jsx)("td",{children:(0,c.jsx)(a,{value:n})})]},e)))})]})},t)))]}),p=({reports:e})=>Object.entries(e).map((([e,{actions:t,groups:r,messages:n,title:i}])=>(0,c.jsx)(d,{actions:t,groups:r,id:e,messages:n,title:i},e)));t()((()=>{new ClipboardJS("#ep-copy-report").on("success",(e=>{e.trigger.nextElementSibling.style.display="initial",setTimeout((()=>{e.trigger.nextElementSibling.style.display="none"}),3e3),e.clearSelection()}));const e=document.getElementById("ep-status-reports");if("function"===typeof n.createRoot){(0,n.createRoot)(e).render((0,c.jsx)(p,{reports:i}))}else(0,n.render)((0,c.jsx)(p,{reports:i}),e)}))}()}();