1 |
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.editPost},function(e,t){e.exports=window.wp.plugins},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(5),i=n(4),a=n(1),u=n(2),l=n(3),c=function(e){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(u.PanelBody,{title:Object(a.__)("Media URL","textdomain"),icon:"format-video",intialOpen:!0},Object(r.createElement)(u.TextControl,{value:e.text_metafield,label:Object(a.__)("video for meta","textdomain"),help:"( postmeta: dwp23_media_meta_url )",onChange:function(t){return e.onMetaFieldChange_media_url(t)}})))},d=function(e){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(u.PanelBody,{title:Object(a.__)("Poster Image URL","textdomain"),icon:"format-image",intialOpen:!0},Object(r.createElement)(u.TextControl,{value:e.text_metafield_poster_image_url,label:Object(a.__)("image for video poster","textdomain"),help:"( postmeta: dwp23_image_meta_url )",onChange:function(t){return e.onMetaFieldChange_poster_image_url(t)}})))};c=Object(l.withSelect)((function(e){return{text_metafield:e("core/editor").getEditedPostAttribute("meta").dwp23_media_url_meta}}))(c),c=Object(l.withDispatch)((function(e){return{onMetaFieldChange_media_url:function(t){e("core/editor").editPost({meta:{dwp23_media_url_meta:t}})}}}))(c),d=Object(l.withSelect)((function(e){return{text_metafield_featured_image_url:e("core/editor").getEditedPostAttribute("meta").dwp23_poster_url_meta}}))(d),d=Object(l.withDispatch)((function(e){return{onMetaFieldChange_poster_image_url:function(t){e("core/editor").editPost({meta:{dwp23_poster_url_meta:t}})}}}))(d),Object(o.registerPlugin)("dwp-guten-sidebar",{icon:"welcome-widgets-menus",render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginSidebarMoreMenuItem,{target:"dwp-guten-sidebar"},Object(a.__)("Meta Options","textdomain")),Object(r.createElement)(i.PluginSidebar,{name:"dwp-guten-sidebar",title:Object(a.__)("Post Meta","textdomain")},Object(r.createElement)(c,null),Object(r.createElement)(d,null)))}})}]);
|