AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 13.58.176.91   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/mu-plugins/vendor/wpex/expert-banner/build/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/mu-plugins/vendor/wpex/expert-banner/build/index.js
!function(){"use strict";var e=window.wp.element,t=window.lodash,n=window.wp.data,o=window.wp.compose,i=window.wp.components,r=function(t){let{icon:n,size:o=24,...i}=t;return(0,e.cloneElement)(n,{width:o,height:o,...i})},d=window.wp.primitives,l=(0,e.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(d.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),c=window.wp.i18n;const s=window._expDataLayer||[];var a=window.wp.plugins,p=(0,e.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(d.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),u=window.wp.editPost,w=window.wp.coreData;const m="wpex-expert-banner-hidden";(0,a.registerPlugin)("wpex-eb-settings-plugin",{icon:"",render:function(){const{saveEditedEntityRecord:t}=(0,n.useDispatch)("core"),[o,r]=(0,w.useEntityProp)("root","site",wpexExpertBanner.optionHidden);return(0,e.createElement)(u.PluginMoreMenuItem,{as:i.MenuItem,id:m,icon:o?null:p,onClick:()=>{r(!o),t("root","site")}},(0,c.__)("Hire an expert","gd-system-plugin"))}});const g=(0,o.pure)((0,o.compose)([(0,n.withSelect)((e=>{var n;const{getPostType:o,getEntityRecord:i}=e("core"),{getEditedPostAttribute:r}=e("core/editor"),d=o(r("type"));return{hireExpertHidden:null!==(n=i("root","site")?.[wpexExpertBanner.optionHidden])&&void 0!==n&&n,isViewable:(0,t.get)(d,["viewable"],!1),editorToolbar:document.querySelector(".edit-post-header__settings")}})),(0,o.ifCondition)((e=>{let{hireExpertHidden:t}=e;return!t})),(0,o.ifCondition)((e=>{let{isViewable:t}=e;return t})),(0,o.ifCondition)((e=>{let{editorToolbar:t}=e;return!!t}))])((function(t){const{editorToolbar:n}=t,[o,d]=(0,e.useState)(null),[a,p]=(0,e.useState)(!1),[u,w]=(0,e.useState)(!1),[g,E]=(0,e.useState)(null),h=(0,e.useRef)(null);(0,e.useEffect)((()=>{const e=document.createElement("div");e.id="wpex-eb-container",n.parentNode.insertBefore(e,n),d(e)}),[n]),(0,e.useEffect)((function(){u&&(document.querySelector(".interface-more-menu-dropdown > button")?.click?.(),setTimeout((()=>{const e=document.getElementById(m);if(!e)return;e.focus();const t=e.getBoundingClientRect();E(new DOMRect(t.x+20,t.y,t.width,t.height))}),200),w(!1))}),[u,E]);const x=e=>{e.stopPropagation(),e.preventDefault()};if((0,e.useEffect)((()=>{if(g)return document.addEventListener("mousedown",x),document.addEventListener("click",x),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("click",x)}}),[g]),!o)return null;const v=h.current?.getBoundingClientRect(),b=new DOMRect(v?.x,v?.y+10,v?.width,v?.height);return(0,e.createPortal)((0,e.createElement)(e.Fragment,null,g&&(0,e.createElement)(i.Popover,{anchorRect:g,className:"wpex-eb-tooltip",focusOnMount:!1,noArrow:!1,offset:50,position:"middle right"},(0,e.createElement)("p",{className:"wpex-eb-tooltip__title"},(0,c.__)("Just so you know…","gd-system-plugin")),(0,e.createElement)("p",{className:"wpex-eb-tooltip__description"},(0,c.__)('Here you can enable or disable "Hire an expert"',"gd-system-plugin")),(0,e.createElement)("button",{className:"wpex-eb-tooltip__button",onClick:e=>E(null)},(0,c.__)("Got it","gd-system-plugin"))),(0,e.createElement)("span",{ref:h},(0,e.createElement)(r,{icon:l,onClick:()=>p((e=>!e))})),a&&(0,e.createElement)(i.Popover,{className:"wpex-eb-tooltip wpex-eb-tooltip--black",anchorRect:b,noArrow:!1,focusOnMount:!1,position:"middle top"},(0,e.createElement)("div",null,(0,e.createInterpolateElement)((0,c.__)("To disable this option, go to the <button>Tools</button> menu.","gd-system-plugin"),{button:(0,e.createElement)(i.Button,{variant:"link",id:"wpex-eb-open-settings",onClick:()=>{p(!1),w(!0)}})}))),(0,e.createElement)("a",{id:"wpex-expert-banner",target:"_blank",href:"https://www.godaddy.com/websites/web-design",rel:"noopener noreferrer",onClick:()=>(e=>{let{eid:t,type:n="click",data:o=null}=e;s.push({schema:"add_event",version:"v1",data:{eid:`${t}.${n}`,type:n,custom_properties:o}})})({eid:"wp.editor.expert/wpex_expert/expert.link"})},(0,c.__)("Hire an expert","gd-system-plugin")),(0,e.createElement)("div",{id:"wpex-eb-divider"})),o)})));document.addEventListener("DOMContentLoaded",(()=>{const t=document.createElement("div");document.getElementById("editor").appendChild(t),(0,e.render)((0,e.createElement)(g,null),t)}))}();

Anon7 - 2022
AnonSec Team