(()=>{"use strict";const t=window.React,e=window.wp.plugins,o=window.wp.editor,n=(window.wp.editPost,window.wp.components),_=window.wp.data,c=window.wp.i18n,r=()=>{const e=(0,_.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta")._pro_content_element)),o=(0,_.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta")._pro_content_element.cpt_auxiliary_content)),r=(0,_.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta")._pro_content_element.cpt_icon)),l=(0,_.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta")._pro_content_element.cpt_video)),i=(0,_.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta")._pro_content_element.cpt_video_platform)),p=(0,_.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta")._pro_content_element.cpt_url)),a=(0,_.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta")._pro_content_element.cpt_url_text)),m=(0,c.__)("Font awesome Icon (e.g fa-edit)","productive-forms")+" - https://fontawesome.com/search",{editPost:d}=(0,_.useDispatch)("core/editor");return(0,t.createElement)(n.PanelBody,{title:(0,c.__)("","productive-forms")},(0,t.createElement)(n.TextControl,{label:(0,c.__)("Auxilliary content","productive-forms"),value:o||"",onChange:t=>{let o=e;o={cpt_auxiliary_content:t,cpt_icon:r,cpt_video:l,cpt_video_platform:i,cpt_url:p,cpt_url_text:a},d({meta:{_pro_content_element:o}})}}),(0,t.createElement)(n.TextControl,{label:(0,c.__)("Icon","productive-forms"),value:r||"",onChange:t=>{let n=e;n={cpt_auxiliary_content:o,cpt_icon:t,cpt_video:l,cpt_video_platform:i,cpt_url:p,cpt_url_text:a},d({meta:{_pro_content_element:n}})},help:m}),(0,t.createElement)(n.TextControl,{label:(0,c.__)("Video ID","productive-forms"),value:l||"",onChange:t=>{let n=e;n={cpt_auxiliary_content:o,cpt_icon:r,cpt_video:t,cpt_video_platform:i,cpt_url:p,cpt_url_text:a},d({meta:{_pro_content_element:n}})}}),(0,t.createElement)(n.SelectControl,{label:(0,c.__)("Video Platform","productive-forms"),labelPosition:"top",value:i,options:[{label:(0,c.__)("YouTube","productive-forms"),value:"yt"}],onChange:t=>{let n=e;n={cpt_auxiliary_content:o,cpt_icon:r,cpt_video:l,cpt_video_platform:t,cpt_url:p,cpt_url_text:a},d({meta:{_pro_content_element:n}})},__nextHasNoMarginBottom:!0}),(0,t.createElement)(n.TextControl,{label:(0,c.__)("Url","productive-forms"),value:p||"",onChange:t=>{let n=e;n={cpt_auxiliary_content:o,cpt_icon:r,cpt_video:l,cpt_video_platform:i,cpt_url:t,cpt_url_text:a},d({meta:{_pro_content_element:n}})}}),(0,t.createElement)(n.TextControl,{label:(0,c.__)("CTA Text","productive-forms"),value:a||"",onChange:t=>{let n=e;n={cpt_auxiliary_content:o,cpt_icon:r,cpt_video:l,cpt_video_platform:i,cpt_url:p,cpt_url_text:t},d({meta:{_pro_content_element:n}})}}))};(0,e.registerPlugin)("productive-forms-content-element-meta",{render:()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(o.PluginDocumentSettingPanel,{name:"productive-forms-content-element-meta-settings-items",title:"Additional Content Element Fields"},(0,t.createElement)(r,null)))})})();