| 1 |
!function(){"use strict";var e={5251:function(e,r,o){var t=o(9196),n=60103;if(60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),i("react.fragment")}var c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,o){var t,i={},a=null,f=null;for(t in void 0!==o&&(a=""+o),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(f=r.ref),r)s.call(r,t)&&!u.hasOwnProperty(t)&&(i[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:n,type:e,key:a,ref:f,props:i,_owner:c.current}}r.jsx=a},5893:function(e,r,o){e.exports=o(5251)},9196:function(e){e.exports=window.React}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}!function(){var e=window.wp.plugins,r=window.wp.components,t=window.wp.data,n=window.wp.editPost,i=window.wp.i18n,c=o(5893);(0,e.registerPlugin)("ep-exclude-from-search",{render:()=>{const{editPost:e}=(0,t.useDispatch)("core/editor"),{ep_exclude_from_search:o=!1,...s}=(0,t.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta")||{}));return(0,c.jsx)(n.PluginPostStatusInfo,{children:(0,c.jsx)(r.CheckboxControl,{label:(0,i.__)("Exclude from search","elasticpress"),checked:o,onChange:r=>{e({meta:{...s,ep_exclude_from_search:r}})}})})},icon:null})}()}(); |