123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = "./src/index.js");
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "./src/index.js":
- /*!**********************!*\
- !*** ./src/index.js ***!
- \**********************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/plugins */ "@wordpress/plugins");
- /* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/edit-post */ "@wordpress/edit-post");
- /* harmony import */ var _wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
- var PluginMetaFields_media_url = function PluginMetaFields_media_url(props) {
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], {
- title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])("Media URL", "textdomain"),
- icon: "format-video",
- intialOpen: true
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["TextControl"], {
- value: props.text_metafield,
- label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])("video for meta", "textdomain"),
- help: "( postmeta: dwp23_media_meta_url )",
- onChange: function onChange(value) {
- return props.onMetaFieldChange_media_url(value);
- }
- })));
- };
- var PluginMetaFields_poster_image_url = function PluginMetaFields_poster_image_url(props) {
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], {
- title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])("Poster Image URL", "textdomain"),
- icon: "format-image",
- intialOpen: true
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["TextControl"], {
- value: props.text_metafield_poster_image_url,
- label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])("image for video poster", "textdomain"),
- help: "( postmeta: dwp23_image_meta_url )",
- onChange: function onChange(value) {
- return props.onMetaFieldChange_poster_image_url(value);
- }
- })));
- };
- PluginMetaFields_media_url = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withSelect"])(function (select) {
- return {
- text_metafield: select('core/editor').getEditedPostAttribute('meta')['dwp23_media_url_meta']
- };
- })(PluginMetaFields_media_url);
- PluginMetaFields_media_url = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withDispatch"])(function (dispatch) {
- return {
- onMetaFieldChange_media_url: function onMetaFieldChange_media_url(value) {
- dispatch('core/editor').editPost({
- meta: {
- dwp23_media_url_meta: value
- }
- });
- }
- };
- })(PluginMetaFields_media_url);
- PluginMetaFields_poster_image_url = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withSelect"])(function (select) {
- return {
- text_metafield_featured_image_url: select('core/editor').getEditedPostAttribute('meta')['dwp23_poster_url_meta']
- };
- })(PluginMetaFields_poster_image_url);
- PluginMetaFields_poster_image_url = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withDispatch"])(function (dispatch) {
- return {
- onMetaFieldChange_poster_image_url: function onMetaFieldChange_poster_image_url(value) {
- dispatch('core/editor').editPost({
- meta: {
- dwp23_poster_url_meta: value
- }
- });
- }
- };
- })(PluginMetaFields_poster_image_url);
- Object(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_1__["registerPlugin"])('dwp-guten-sidebar', {
- icon: 'welcome-widgets-menus',
- render: function render() {
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__["PluginSidebarMoreMenuItem"], {
- target: "dwp-guten-sidebar"
- }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Meta Options', 'textdomain')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_edit_post__WEBPACK_IMPORTED_MODULE_2__["PluginSidebar"], {
- name: "dwp-guten-sidebar",
- title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Post Meta', 'textdomain')
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(PluginMetaFields_media_url, null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(PluginMetaFields_poster_image_url, null)));
- }
- });
- /***/ }),
- /***/ "@wordpress/components":
- /*!************************************!*\
- !*** external ["wp","components"] ***!
- \************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["components"]; }());
- /***/ }),
- /***/ "@wordpress/data":
- /*!******************************!*\
- !*** external ["wp","data"] ***!
- \******************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["data"]; }());
- /***/ }),
- /***/ "@wordpress/edit-post":
- /*!**********************************!*\
- !*** external ["wp","editPost"] ***!
- \**********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["editPost"]; }());
- /***/ }),
- /***/ "@wordpress/element":
- /*!*********************************!*\
- !*** external ["wp","element"] ***!
- \*********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["element"]; }());
- /***/ }),
- /***/ "@wordpress/i18n":
- /*!******************************!*\
- !*** external ["wp","i18n"] ***!
- \******************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["i18n"]; }());
- /***/ }),
- /***/ "@wordpress/plugins":
- /*!*********************************!*\
- !*** external ["wp","plugins"] ***!
- \*********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["plugins"]; }());
- /***/ })
- /******/ });
- //# sourceMappingURL=index.js.map
|