(()=>{"use strict";const e=window.wp.i18n,t=window.wp.components,i=window.wp.editor,o=window.wp.coreData,n=window.wp.data,a=window.wp.plugins,r=window.ReactJSXRuntime;(0,a.registerPlugin)("smartvideo-sidebar",{render:()=>{const a=(0,n.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),[s,d]=(0,o.useEntityProp)("postType",a,"meta");if(!s)return null;const l=s._smartvideo_disabled||!1;return(0,r.jsx)(i.PluginDocumentSettingPanel,{name:"smartvideo-settings",title:(0,e.__)("SmartVideo","swarmify"),children:(0,r.jsx)(t.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,e.__)("Disable SmartVideo on this page","swarmify"),help:l?(0,e.__)("SmartVideo player will not load on this page.","swarmify"):(0,e.__)("SmartVideo player will load normally.","swarmify"),checked:l,onChange:e=>{d({...s,_smartvideo_disabled:e})}})})},icon:"video-alt3"})})();