(()=>{"use strict";const e=window.React,t=window.wp.plugins,o=window.wp.editor,i=(window.wp.editPost,window.wp.components),l=window.wp.data,n=window.wp.i18n,r=()=>{const t=(0,l.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta")._blog_element_meta)),o=(0,l.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta")._blog_element_meta.cpt_video)),r=(0,l.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta")._blog_element_meta.cpt_video_platform)),{editPost:a}=(0,l.useDispatch)("core/editor");return(0,e.createElement)(i.PanelBody,{title:(0,n.__)("Video Options","productive-forms")},(0,e.createElement)(i.TextControl,{label:(0,n.__)("Video ID","productive-forms"),value:o||"",onChange:e=>{let o=t;o={cpt_video:e,cpt_video_platform:r},a({meta:{_blog_element_meta:o}})}}),(0,e.createElement)(i.SelectControl,{label:(0,n.__)("Video Platform","productive-forms"),labelPosition:"top",value:r,options:[{label:(0,n.__)("YouTube","productive-forms"),value:"yt"}],onChange:e=>{let i=t;i={cpt_video:o,cpt_video_platform:e},a({meta:{_blog_element_meta:i}})},__nextHasNoMarginBottom:!0}))};(0,t.registerPlugin)("productive-forms-blog-meta",{render:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.PluginDocumentSettingPanel,{name:"productive-forms-blog-meta-settings-items",title:"Productive Custom Fields"},(0,e.createElement)(r,null)))})})();