(()=>{"use strict";const e=window.wp.plugins,i=window.ReactJSXRuntime,n=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 24 24",children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"11.29",fill:"#6817c5"}),(0,i.jsx)("path",{fill:"#d9d9d9",fillRule:"nonzero",d:"M8.962 11.117c0-.139.113-.252.253-.252h3.943c1.07 0 1.937.867 1.937 1.936h-4.449c-.93 0-1.684-.754-1.684-1.684z"}),(0,i.jsx)("path",{fill:"#fbf9ff",fillRule:"nonzero",d:"M8.792 12.672h6.197c.059 0 .106.047.106.106a3.51 3.51 0 01-3.51 3.509H5.388a.106.106 0 01-.106-.105 3.51 3.51 0 013.51-3.51zM12.472 7.766h6.197c.058 0 .105.047.105.106a3.509 3.509 0 01-3.509 3.509H9.068a.105.105 0 01-.106-.105 3.51 3.51 0 013.51-3.51z"})]}),o=window.wp.editPost,c=window.wp.i18n,l=window.wp.components,s=window.wp.data;(0,e.registerPlugin)("swpsp-cache",{render:()=>{const e=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta"))),{editPost:t}=(0,s.useDispatch)("core/editor");return void 0===e?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.PluginSidebarMoreMenuItem,{target:"swpsp-cache",icon:n,children:(0,c.__)("Cache Exclusion","solid-performance")}),(0,i.jsx)(o.PluginSidebar,{isPinnable:!1,icon:n,name:"swpsp-cache",title:(0,c.__)("Cache Exclusion","solid-performance"),children:(0,i.jsx)(l.PanelBody,{children:(0,i.jsx)(l.ToggleControl,{label:(0,c.__)("Exclude from Page Cache","solid-performance"),checked:e._swpsp_post_exclude,onChange:e=>t({meta:{_swpsp_post_exclude:e}})})})})]})},icon:n})})();