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