(()=>{"use strict";const e=window.wp.editor,s=window.wp.components,i=window.wp.element,n=window.wp.i18n,t=window.wp.plugins,r=window.ReactJSXRuntime;class l extends i.Component{render(){const i=wp.data.select("core/editor").getPostTypeLabel();return(0,r.jsx)(e.PluginPostStatusInfo,{children:(0,r.jsxs)("div",{className:"searchwp-exclude-preview",style:{position:"relative",padding:"10px",borderRadius:"2px",backgroundColor:"#f0f0f0",color:"#7f7f7f"},children:[(0,r.jsx)("span",{style:{display:"block",position:"absolute",top:"0",right:"0"},onClick:this.dismissPreview,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,r.jsx)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})}),(0,r.jsx)(s.CheckboxControl,{label:(0,n.__)("Exclude from SearchWP"),checked:!1,disabled:!0,onChange:()=>{},style:{border:"1px solid rgba(0,0,0,.5)"},__nextHasNoMarginBottom:!0}),(0,r.jsxs)("span",{style:{display:"block",marginTop:"10px"},children:[(0,r.jsxs)("span",{children:[(0,n.sprintf)((0,n.__)("Activate the SearchWP Exclude UI extension and exclude any %s from your search results."),i)," "]}),(0,r.jsx)("br",{}),(0,r.jsx)(s.ExternalLink,{href:"https://searchwp.com/extensions/exclude-ui/",children:(0,n.__)("View Docs")}),(0,r.jsx)(s.ExternalLink,{href:"/wp-admin/admin.php?page=searchwp-extensions",style:{display:"inline-block",marginLeft:"10px"},children:(0,n.__)("Activate")})]})]})})}dismissPreview(e){e.preventDefault(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"searchwp_exclude_ui_preview_dismissed"},success:function(s){s.success&&(e.target.closest(".components-panel__row").style.display="none")}})}}(0,t.registerPlugin)("searchwp-exclude-ui-preview",{render:l})})();