2018-10-24 13:48:53 +02:00
this [ "wp" ] = this [ "wp" ] || { } ; this [ "wp" ] [ "editPost" ] =
/******/ ( 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
2018-10-29 09:28:32 +01:00
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = "./node_modules/@wordpress/edit-post/build-module/index.js" ) ;
2018-10-24 13:48:53 +02:00
/******/ } )
/************************************************************************/
/******/ ( {
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / arrayWithHoles . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _arrayWithHoles ; } ) ;
function _arrayWithHoles ( arr ) {
if ( Array . isArray ( arr ) ) return arr ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / arrayWithoutHoles . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _arrayWithoutHoles ; } ) ;
function _arrayWithoutHoles ( arr ) {
if ( Array . isArray ( arr ) ) {
for ( var i = 0 , arr2 = new Array ( arr . length ) ; i < arr . length ; i ++ ) {
arr2 [ i ] = arr [ i ] ;
}
return arr2 ;
}
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / assertThisInitialized . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _assertThisInitialized ; } ) ;
function _assertThisInitialized ( self ) {
if ( self === void 0 ) {
throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ;
}
return self ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / classCallCheck . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _classCallCheck ; } ) ;
function _classCallCheck ( instance , Constructor ) {
if ( ! ( instance instanceof Constructor ) ) {
throw new TypeError ( "Cannot call a class as a function" ) ;
}
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / createClass . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _createClass ; } ) ;
function _defineProperties ( target , props ) {
for ( var i = 0 ; i < props . length ; i ++ ) {
var descriptor = props [ i ] ;
descriptor . enumerable = descriptor . enumerable || false ;
descriptor . configurable = true ;
if ( "value" in descriptor ) descriptor . writable = true ;
Object . defineProperty ( target , descriptor . key , descriptor ) ;
}
}
function _createClass ( Constructor , protoProps , staticProps ) {
if ( protoProps ) _defineProperties ( Constructor . prototype , protoProps ) ;
if ( staticProps ) _defineProperties ( Constructor , staticProps ) ;
return Constructor ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / defineProperty . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _defineProperty ; } ) ;
function _defineProperty ( obj , key , value ) {
if ( key in obj ) {
Object . defineProperty ( obj , key , {
value : value ,
enumerable : true ,
configurable : true ,
writable : true
} ) ;
} else {
obj [ key ] = value ;
}
return obj ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / extends . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _extends ; } ) ;
function _extends ( ) {
_extends = Object . assign || function ( target ) {
for ( var i = 1 ; i < arguments . length ; i ++ ) {
var source = arguments [ i ] ;
for ( var key in source ) {
if ( Object . prototype . hasOwnProperty . call ( source , key ) ) {
target [ key ] = source [ key ] ;
}
}
}
return target ;
} ;
return _extends . apply ( this , arguments ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / getPrototypeOf . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _getPrototypeOf ; } ) ;
function _getPrototypeOf ( o ) {
_getPrototypeOf = Object . setPrototypeOf ? Object . getPrototypeOf : function _getPrototypeOf ( o ) {
return o . _ _proto _ _ || Object . getPrototypeOf ( o ) ;
} ;
return _getPrototypeOf ( o ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / inherits . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _inherits ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _setPrototypeOf _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./setPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js" ) ;
2018-10-24 13:48:53 +02:00
function _inherits ( subClass , superClass ) {
if ( typeof superClass !== "function" && superClass !== null ) {
throw new TypeError ( "Super expression must either be null or a function" ) ;
}
subClass . prototype = Object . create ( superClass && superClass . prototype , {
constructor : {
value : subClass ,
writable : true ,
configurable : true
}
} ) ;
if ( superClass ) Object ( _setPrototypeOf _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( subClass , superClass ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / iterableToArray . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _iterableToArray ; } ) ;
function _iterableToArray ( iter ) {
if ( Symbol . iterator in Object ( iter ) || Object . prototype . toString . call ( iter ) === "[object Arguments]" ) return Array . from ( iter ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / iterableToArrayLimit . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _iterableToArrayLimit ; } ) ;
function _iterableToArrayLimit ( arr , i ) {
var _arr = [ ] ;
var _n = true ;
var _d = false ;
var _e = undefined ;
try {
for ( var _i = arr [ Symbol . iterator ] ( ) , _s ; ! ( _n = ( _s = _i . next ( ) ) . done ) ; _n = true ) {
_arr . push ( _s . value ) ;
if ( i && _arr . length === i ) break ;
}
} catch ( err ) {
_d = true ;
_e = err ;
} finally {
try {
if ( ! _n && _i [ "return" ] != null ) _i [ "return" ] ( ) ;
} finally {
if ( _d ) throw _e ;
}
}
return _arr ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / nonIterableRest . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _nonIterableRest ; } ) ;
function _nonIterableRest ( ) {
throw new TypeError ( "Invalid attempt to destructure non-iterable instance" ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / nonIterableSpread . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _nonIterableSpread ; } ) ;
function _nonIterableSpread ( ) {
throw new TypeError ( "Invalid attempt to spread non-iterable instance" ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectSpread . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _objectSpread ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js" ) ;
2018-10-24 13:48:53 +02:00
function _objectSpread ( target ) {
for ( var i = 1 ; i < arguments . length ; i ++ ) {
var source = arguments [ i ] != null ? arguments [ i ] : { } ;
var ownKeys = Object . keys ( source ) ;
if ( typeof Object . getOwnPropertySymbols === 'function' ) {
ownKeys = ownKeys . concat ( Object . getOwnPropertySymbols ( source ) . filter ( function ( sym ) {
return Object . getOwnPropertyDescriptor ( source , sym ) . enumerable ;
} ) ) ;
}
ownKeys . forEach ( function ( key ) {
Object ( _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( target , key , source [ key ] ) ;
} ) ;
}
return target ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectWithoutProperties . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _objectWithoutProperties ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _objectWithoutPropertiesLoose _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" ) ;
2018-10-24 13:48:53 +02:00
function _objectWithoutProperties ( source , excluded ) {
if ( source == null ) return { } ;
var target = Object ( _objectWithoutPropertiesLoose _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( source , excluded ) ;
var key , i ;
if ( Object . getOwnPropertySymbols ) {
var sourceSymbolKeys = Object . getOwnPropertySymbols ( source ) ;
for ( i = 0 ; i < sourceSymbolKeys . length ; i ++ ) {
key = sourceSymbolKeys [ i ] ;
if ( excluded . indexOf ( key ) >= 0 ) continue ;
if ( ! Object . prototype . propertyIsEnumerable . call ( source , key ) ) continue ;
target [ key ] = source [ key ] ;
}
}
return target ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectWithoutPropertiesLoose . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _objectWithoutPropertiesLoose ; } ) ;
function _objectWithoutPropertiesLoose ( source , excluded ) {
if ( source == null ) return { } ;
var target = { } ;
var sourceKeys = Object . keys ( source ) ;
var key , i ;
for ( i = 0 ; i < sourceKeys . length ; i ++ ) {
key = sourceKeys [ i ] ;
if ( excluded . indexOf ( key ) >= 0 ) continue ;
target [ key ] = source [ key ] ;
}
return target ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / possibleConstructorReturn . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _possibleConstructorReturn ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ../../helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js" ) ;
/* harmony import */ var _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
2018-10-24 13:48:53 +02:00
function _possibleConstructorReturn ( self , call ) {
if ( call && ( Object ( _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( call ) === "object" || typeof call === "function" ) ) {
return call ;
}
return Object ( _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( self ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / setPrototypeOf . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _setPrototypeOf ; } ) ;
function _setPrototypeOf ( o , p ) {
_setPrototypeOf = Object . setPrototypeOf || function _setPrototypeOf ( o , p ) {
o . _ _proto _ _ = p ;
return o ;
} ;
return _setPrototypeOf ( o , p ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / slicedToArray . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _slicedToArray ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _arrayWithHoles _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./arrayWithHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js" ) ;
/* harmony import */ var _iterableToArrayLimit _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./iterableToArrayLimit */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js" ) ;
/* harmony import */ var _nonIterableRest _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./nonIterableRest */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js" ) ;
2018-10-24 13:48:53 +02:00
function _slicedToArray ( arr , i ) {
return Object ( _arrayWithHoles _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( arr ) || Object ( _iterableToArrayLimit _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( arr , i ) || Object ( _nonIterableRest _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / toConsumableArray . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _toConsumableArray ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _arrayWithoutHoles _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js" ) ;
/* harmony import */ var _iterableToArray _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./iterableToArray */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js" ) ;
/* harmony import */ var _nonIterableSpread _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./nonIterableSpread */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js" ) ;
2018-10-24 13:48:53 +02:00
function _toConsumableArray ( arr ) {
return Object ( _arrayWithoutHoles _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( arr ) || Object ( _iterableToArray _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( arr ) || Object ( _nonIterableSpread _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / typeof . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _typeof ; } ) ;
function _typeof2 ( obj ) { if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof2 = function _typeof2 ( obj ) { return typeof obj ; } ; } else { _typeof2 = function _typeof2 ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof2 ( obj ) ; }
function _typeof ( obj ) {
if ( typeof Symbol === "function" && _typeof2 ( Symbol . iterator ) === "symbol" ) {
_typeof = function _typeof ( obj ) {
return _typeof2 ( obj ) ;
} ;
} else {
_typeof = function _typeof ( obj ) {
return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : _typeof2 ( obj ) ;
} ;
}
return _typeof ( obj ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-group.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / block - settings - menu / plugin - block - settings - menu - group . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/ * *
* External dependencies
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/ * *
* WordPress dependencies
* /
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "createSlotFill" ] ) ( 'PluginBlockSettingsMenuGroup' ) ,
PluginBlockSettingsMenuGroup = _createSlotFill . Fill ,
Slot = _createSlotFill . Slot ;
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
var PluginBlockSettingsMenuGroupSlot = function PluginBlockSettingsMenuGroupSlot ( _ref ) {
var fillProps = _ref . fillProps ,
selectedBlocks = _ref . selectedBlocks ;
selectedBlocks = Object ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "map" ] ) ( selectedBlocks , function ( block ) {
return block . name ;
} ) ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( Slot , {
fillProps : Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , fillProps , {
selectedBlocks : selectedBlocks
} )
} , function ( fills ) {
return ! Object ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "isEmpty" ] ) ( fills ) && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "div" , {
className : "editor-block-settings-menu__separator"
} ) , fills ) ;
} ) ;
} ;
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
PluginBlockSettingsMenuGroup . Slot = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select , _ref2 ) {
var clientIds = _ref2 . fillProps . clientIds ;
return {
selectedBlocks : select ( 'core/editor' ) . getBlocksByClientId ( clientIds )
} ;
} ) ( PluginBlockSettingsMenuGroupSlot ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PluginBlockSettingsMenuGroup ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / block - settings - menu / plugin - block - settings - menu - item . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _plugin _block _settings _menu _group _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./plugin-block-settings-menu-group */ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-group.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* External dependencies
2018-10-24 13:48:53 +02:00
* /
/ * *
2018-10-29 09:28:32 +01:00
* WordPress dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-26 09:35:06 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* Internal dependencies
2018-10-26 09:35:06 +02:00
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
var isEverySelectedBlockAllowed = function isEverySelectedBlockAllowed ( selected , allowed ) {
return Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "difference" ] ) ( selected , allowed ) . length === 0 ;
} ;
2018-10-24 13:48:53 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* Plugins may want to add an item to the menu either for every block
* or only for the specific ones provided in the ` allowedBlocks ` component property .
2018-10-24 13:48:53 +02:00
*
2018-10-29 09:28:32 +01:00
* If there are multiple blocks selected the item will be rendered if every block
* is of one allowed type ( not necessarily the same ) .
2018-10-24 13:48:53 +02:00
*
2018-10-29 09:28:32 +01:00
* @ param { string [ ] } selectedBlockNames Array containing the names of the blocks selected
* @ param { string [ ] } allowedBlockNames Array containing the names of the blocks allowed
* @ return { boolean } Whether the item will be rendered or not .
2018-10-24 13:48:53 +02:00
* /
2018-10-29 09:28:32 +01:00
var shouldRenderItem = function shouldRenderItem ( selectedBlockNames , allowedBlockNames ) {
return ! Array . isArray ( allowedBlockNames ) || isEverySelectedBlockAllowed ( selectedBlockNames , allowedBlockNames ) ;
} ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
var PluginBlockSettingsMenuItem = function PluginBlockSettingsMenuItem ( _ref ) {
var allowedBlocks = _ref . allowedBlocks ,
icon = _ref . icon ,
label = _ref . label ,
onClick = _ref . onClick ,
small = _ref . small ,
role = _ref . role ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _plugin _block _settings _menu _group _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] , null , function ( _ref2 ) {
var selectedBlocks = _ref2 . selectedBlocks ,
onClose = _ref2 . onClose ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
if ( ! shouldRenderItem ( selectedBlocks , allowedBlocks ) ) {
return null ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "IconButton" ] , {
className : "editor-block-settings-menu__control" ,
onClick : Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "compose" ] ) ( onClick , onClose ) ,
icon : icon || 'admin-plugins' ,
label : small ? label : undefined ,
role : role
} , ! small && label ) ;
} ) ;
} ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PluginBlockSettingsMenuItem ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/***/ } ) ,
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/browser-url/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / browser - url / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: getPostEditURL, getPostTrashedURL, BrowserURL, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getPostEditURL" , function ( ) { return getPostEditURL ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getPostTrashedURL" , function ( ) { return getPostTrashedURL ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "BrowserURL" , function ( ) { return BrowserURL ; } ) ;
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/url */ "@wordpress/url" ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/ * *
* WordPress dependencies
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/ * *
* Returns the Post ' s Edit URL .
*
* @ param { number } postId Post ID .
*
* @ return { string } Post edit URL .
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
function getPostEditURL ( postId ) {
return Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "addQueryArgs" ] ) ( 'post.php' , {
post : postId ,
action : 'edit'
} ) ;
}
/ * *
* Returns the Post ' s Trashed URL .
*
* @ param { number } postId Post ID .
* @ param { string } postType Post Type .
*
* @ return { string } Post trashed URL .
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
function getPostTrashedURL ( postId , postType ) {
return Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "addQueryArgs" ] ) ( 'edit.php' , {
trashed : 1 ,
post _type : postType ,
ids : postId
} ) ;
}
var BrowserURL =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( BrowserURL , _Component ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
function BrowserURL ( ) {
var _this ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , BrowserURL ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( BrowserURL ) . apply ( this , arguments ) ) ;
_this . state = {
historyId : null
} ;
return _this ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( BrowserURL , [ {
key : "componentDidUpdate" ,
value : function componentDidUpdate ( prevProps ) {
var _this$props = this . props ,
postId = _this$props . postId ,
postStatus = _this$props . postStatus ,
postType = _this$props . postType ;
var historyId = this . state . historyId ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
if ( postStatus === 'trash' ) {
this . setTrashURL ( postId , postType ) ;
return ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
if ( ( postId !== prevProps . postId || postId !== historyId ) && postStatus !== 'auto-draft' ) {
this . setBrowserURL ( postId ) ;
}
}
/ * *
* Navigates the browser to the post trashed URL to show a notice about the trashed post .
*
* @ param { number } postId Post ID .
* @ param { string } postType Post Type .
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
} , {
key : "setTrashURL" ,
value : function setTrashURL ( postId , postType ) {
window . location . href = getPostTrashedURL ( postId , postType ) ;
}
/ * *
* Replaces the browser URL with a post editor link for the given post ID .
*
* Note it is important that , since this function may be called when the
* editor first loads , the result generated ` getPostEditURL ` matches that
* produced by the server . Otherwise , the URL will change unexpectedly .
*
* @ param { number } postId Post ID for which to generate post editor URL .
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
} , {
key : "setBrowserURL" ,
value : function setBrowserURL ( postId ) {
window . history . replaceState ( {
id : postId
} , 'Post ' + postId , getPostEditURL ( postId ) ) ;
this . setState ( function ( ) {
return {
historyId : postId
} ;
} ) ;
}
} , {
key : "render" ,
value : function render ( ) {
return null ;
}
} ] ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
return BrowserURL ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Component" ] ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withSelect" ] ) ( function ( select ) {
var _select = select ( 'core/editor' ) ,
getCurrentPost = _select . getCurrentPost ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
var _getCurrentPost = getCurrentPost ( ) ,
id = _getCurrentPost . id ,
status = _getCurrentPost . status ,
type = _getCurrentPost . type ;
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
return {
postId : id ,
postStatus : status ,
postType : type
} ;
} ) ( BrowserURL ) ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/fullscreen-mode/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / fullscreen - mode / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
2018-10-29 09:28:32 +01:00
var FullscreenMode =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( FullscreenMode , _Component ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
function FullscreenMode ( ) {
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , FullscreenMode ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
return Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( FullscreenMode ) . apply ( this , arguments ) ) ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( FullscreenMode , [ {
key : "componentDidMount" ,
value : function componentDidMount ( ) {
this . sync ( ) ;
}
} , {
key : "componentDidUpdate" ,
value : function componentDidUpdate ( prevProps ) {
if ( this . props . isActive !== prevProps . isActive ) {
this . sync ( ) ;
}
}
} , {
key : "sync" ,
value : function sync ( ) {
var isActive = this . props . isActive ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
if ( isActive ) {
document . body . classList . add ( 'is-fullscreen-mode' ) ;
} else {
document . body . classList . remove ( 'is-fullscreen-mode' ) ;
}
}
} , {
key : "render" ,
value : function render ( ) {
return null ;
}
} ] ) ;
return FullscreenMode ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Component" ] ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withSelect" ] ) ( function ( select ) {
2018-10-24 13:48:53 +02:00
return {
2018-10-29 09:28:32 +01:00
isActive : select ( 'core/edit-post' ) . isFeatureActive ( 'fullscreenMode' )
2018-10-24 13:48:53 +02:00
} ;
2018-10-29 09:28:32 +01:00
} ) ( FullscreenMode ) ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/feature-toggle/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / feature - toggle / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-10-24 13:48:53 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* WordPress Dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-29 09:28:32 +01:00
function FeatureToggle ( _ref ) {
var onToggle = _ref . onToggle ,
isActive = _ref . isActive ,
label = _ref . label ,
info = _ref . info ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "MenuItem" ] , {
icon : isActive && 'yes' ,
isSelected : isActive ,
onClick : onToggle ,
role : "menuitemcheckbox" ,
label : label ,
info : info
} , label ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "withSelect" ] ) ( function ( select , _ref2 ) {
var feature = _ref2 . feature ;
return {
isActive : select ( 'core/edit-post' ) . isFeatureActive ( feature )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "withDispatch" ] ) ( function ( dispatch , ownProps ) {
return {
onToggle : function onToggle ( ) {
dispatch ( 'core/edit-post' ) . toggleFeature ( ownProps . feature ) ;
ownProps . onToggle ( ) ;
}
} ;
} ) ] ) ( FeatureToggle ) ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/***/ } ) ,
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/fullscreen-mode-close/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / fullscreen - mode - close / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/url */ "@wordpress/url" ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
2018-10-24 13:48:53 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* External Dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-29 09:28:32 +01:00
/ * *
* WordPress Dependencies
* /
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
function FullscreenModeClose ( _ref ) {
var isActive = _ref . isActive ,
postType = _ref . postType ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
if ( ! isActive || ! postType ) {
return null ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "Toolbar" ] , {
className : "edit-post-fullscreen-mode-close__toolbar"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "IconButton" ] , {
icon : "exit" ,
href : Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "addQueryArgs" ] ) ( 'edit.php' , {
post _type : postType . slug
} ) ,
label : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( postType , [ 'labels' , 'view_items' ] , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "__" ] ) ( 'View Posts' ) )
} ) ) ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withSelect" ] ) ( function ( select ) {
var _select = select ( 'core/editor' ) ,
getCurrentPostType = _select . getCurrentPostType ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
var _select2 = select ( 'core/edit-post' ) ,
isFeatureActive = _select2 . isFeatureActive ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
var _select3 = select ( 'core' ) ,
getPostType = _select3 . getPostType ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
return {
isActive : isFeatureActive ( 'fullscreenMode' ) ,
postType : getPostType ( getCurrentPostType ( ) )
} ;
} ) ( FullscreenModeClose ) ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/***/ } ) ,
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / header - toolbar / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
"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 _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/viewport */ "@wordpress/viewport" ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/nux */ "@wordpress/nux" ) ;
/* harmony import */ var _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _fullscreen _mode _close _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ../fullscreen-mode-close */ "./node_modules/@wordpress/edit-post/build-module/components/header/fullscreen-mode-close/index.js" ) ;
2018-10-24 13:48:53 +02:00
2018-10-26 09:35:06 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* WordPress dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-29 09:28:32 +01:00
/ * *
* Internal dependencies
* /
2018-10-24 13:48:53 +02:00
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
function HeaderToolbar ( _ref ) {
var hasFixedToolbar = _ref . hasFixedToolbar ,
isLargeViewport = _ref . isLargeViewport ,
mode = _ref . mode ;
2018-10-29 09:37:29 +01:00
var toolbarAriaLabel = hasFixedToolbar ? Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Document and block tools' ) : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Document tools' ) ;
2018-10-29 09:28:32 +01:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "NavigableToolbar" ] , {
className : "edit-post-header-toolbar" ,
2018-10-29 09:37:29 +01:00
"aria-label" : toolbarAriaLabel
2018-10-29 09:28:32 +01:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _fullscreen _mode _close _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "Inserter" ] , {
disabled : mode !== 'visual' ,
position : "bottom right"
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "DotTip" ] , {
2018-10-29 09:37:29 +01:00
tipId : "core/editor.inserter"
2018-10-29 09:28:32 +01:00
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!' ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "EditorHistoryUndo" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "EditorHistoryRedo" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "TableOfContents" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "BlockNavigationDropdown" ] , null ) , hasFixedToolbar && isLargeViewport && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-header-toolbar__block-toolbar"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "BlockToolbar" ] , null ) ) ) ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withSelect" ] ) ( function ( select ) {
2018-10-24 13:48:53 +02:00
return {
2018-10-29 09:28:32 +01:00
hasFixedToolbar : select ( 'core/edit-post' ) . isFeatureActive ( 'fixedToolbar' ) ,
mode : select ( 'core/edit-post' ) . getEditorMode ( )
2018-10-24 13:48:53 +02:00
} ;
2018-10-29 09:28:32 +01:00
} ) , Object ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "withViewportMatch" ] ) ( {
isLargeViewport : 'medium'
} ) ] ) ( HeaderToolbar ) ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* 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 _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/nux */ "@wordpress/nux" ) ;
/* harmony import */ var _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _more _menu _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ./more-menu */ "./node_modules/@wordpress/edit-post/build-module/components/header/more-menu/index.js" ) ;
/* harmony import */ var _header _toolbar _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! ./header-toolbar */ "./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js" ) ;
/* harmony import */ var _pinned _plugins _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! ./pinned-plugins */ "./node_modules/@wordpress/edit-post/build-module/components/header/pinned-plugins/index.js" ) ;
/* harmony import */ var _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! ../../keyboard-shortcuts */ "./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js" ) ;
2018-10-29 09:37:29 +01:00
/* harmony import */ var _post _publish _button _or _toggle _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! ./post-publish-button-or-toggle */ "./node_modules/@wordpress/edit-post/build-module/components/header/post-publish-button-or-toggle.js" ) ;
2018-10-29 09:28:32 +01:00
/ * *
* WordPress dependencies
* /
2018-10-24 13:48:53 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* Internal dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-29 09:37:29 +01:00
2018-10-29 09:28:32 +01:00
function Header ( _ref ) {
2018-10-29 09:37:29 +01:00
var closeGeneralSidebar = _ref . closeGeneralSidebar ,
2018-10-29 09:28:32 +01:00
hasActiveMetaboxes = _ref . hasActiveMetaboxes ,
2018-10-29 09:37:29 +01:00
isEditorSidebarOpened = _ref . isEditorSidebarOpened ,
isPublishSidebarOpened = _ref . isPublishSidebarOpened ,
isSaving = _ref . isSaving ,
openGeneralSidebar = _ref . openGeneralSidebar ;
2018-10-29 09:28:32 +01:00
var toggleGeneralSidebar = isEditorSidebarOpened ? closeGeneralSidebar : openGeneralSidebar ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
role : "region"
/* translators: accessibility text for the top bar landmark region. */
,
"aria-label" : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Editor top bar' ) ,
className : "edit-post-header" ,
tabIndex : "-1"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _header _toolbar _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "default" ] , null ) , ! isPublishSidebarOpened && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-header__settings"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostSavedState" ] , {
forceIsDirty : hasActiveMetaboxes ,
forceIsSaving : isSaving
2018-10-29 09:37:29 +01:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostPreviewButton" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _publish _button _or _toggle _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "default" ] , {
2018-10-29 09:28:32 +01:00
forceIsDirty : hasActiveMetaboxes ,
forceIsSaving : isSaving
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "IconButton" ] , {
icon : "admin-generic" ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Settings' ) ,
onClick : toggleGeneralSidebar ,
isToggled : isEditorSidebarOpened ,
"aria-expanded" : isEditorSidebarOpened ,
shortcut : _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "default" ] . toggleSidebar
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "DotTip" ] , {
2018-10-29 09:37:29 +01:00
tipId : "core/editor.settings"
2018-10-29 09:28:32 +01:00
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'You’ ll find more settings for your page and blocks in the sidebar. Click “Settings” to open it.' ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _pinned _plugins _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "default" ] . Slot , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _more _menu _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , null ) ) ) ;
}
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select ) {
2018-10-24 13:48:53 +02:00
return {
2018-10-29 09:37:29 +01:00
hasActiveMetaboxes : select ( 'core/edit-post' ) . hasMetaBoxes ( ) ,
hasBlockSelection : ! ! select ( 'core/editor' ) . getBlockSelectionStart ( ) ,
2018-10-29 09:28:32 +01:00
isEditorSidebarOpened : select ( 'core/edit-post' ) . isEditorSidebarOpened ( ) ,
isPublishSidebarOpened : select ( 'core/edit-post' ) . isPublishSidebarOpened ( ) ,
2018-10-29 09:37:29 +01:00
isSaving : select ( 'core/edit-post' ) . isSavingMetaBoxes ( )
2018-10-24 13:48:53 +02:00
} ;
2018-10-29 09:28:32 +01:00
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withDispatch" ] ) ( function ( dispatch , _ref2 ) {
var hasBlockSelection = _ref2 . hasBlockSelection ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:28:32 +01:00
var _dispatch = dispatch ( 'core/edit-post' ) ,
_openGeneralSidebar = _dispatch . openGeneralSidebar ,
2018-10-29 09:37:29 +01:00
closeGeneralSidebar = _dispatch . closeGeneralSidebar ;
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
var sidebarToOpen = hasBlockSelection ? 'edit-post/block' : 'edit-post/document' ;
2018-10-26 09:35:06 +02:00
return {
2018-10-29 09:28:32 +01:00
openGeneralSidebar : function openGeneralSidebar ( ) {
return _openGeneralSidebar ( sidebarToOpen ) ;
} ,
closeGeneralSidebar : closeGeneralSidebar ,
hasBlockSelection : undefined
2018-10-26 09:35:06 +02:00
} ;
2018-10-29 09:28:32 +01:00
} ) ) ( Header ) ) ;
2018-10-26 09:35:06 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / mode - switcher / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-26 09:35:06 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
2018-10-26 09:35:06 +02:00
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _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 _ _ ) ;
/* harmony import */ var _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../../../keyboard-shortcuts */ "./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js" ) ;
2018-10-26 09:35:06 +02:00
2018-10-24 13:48:53 +02:00
/ * *
2018-10-29 09:28:32 +01:00
* WordPress dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
/ * *
* Internal dependencies
* /
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
/ * *
* Set of available mode options .
*
* @ type { Array }
* /
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
var MODES = [ {
value : 'visual' ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Visual Editor' )
} , {
value : 'text' ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Code Editor' )
} ] ;
2018-10-26 09:35:06 +02:00
2018-10-29 09:28:32 +01:00
function ModeSwitcher ( _ref ) {
var onSwitch = _ref . onSwitch ,
mode = _ref . mode ;
var choices = MODES . map ( function ( choice ) {
if ( choice . value !== mode ) {
return Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , choice , {
shortcut : _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] . toggleEditorMode . display
} ) ;
}
return choice ;
} ) ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "MenuGroup" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Editor' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "MenuItemsChoice" ] , {
choices : choices ,
value : mode ,
onSelect : onSwitch
2018-10-24 13:48:53 +02:00
} ) ) ;
}
2018-10-29 09:28:32 +01:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withSelect" ] ) ( function ( select ) {
2018-10-24 13:48:53 +02:00
return {
2018-10-29 09:28:32 +01:00
mode : select ( 'core/edit-post' ) . getEditorMode ( )
2018-10-24 13:48:53 +02:00
} ;
2018-10-29 09:28:32 +01:00
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withDispatch" ] ) ( function ( dispatch , ownProps ) {
return {
onSwitch : function onSwitch ( mode ) {
dispatch ( 'core/edit-post' ) . switchEditorMode ( mode ) ;
ownProps . onSelect ( mode ) ;
}
} ;
} ) ] ) ( ModeSwitcher ) ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/more-menu/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / more - menu / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _mode _switcher _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ../mode-switcher */ "./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js" ) ;
/* harmony import */ var _plugins _more _menu _group _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ../plugins-more-menu-group */ "./node_modules/@wordpress/edit-post/build-module/components/header/plugins-more-menu-group/index.js" ) ;
/* harmony import */ var _tools _more _menu _group _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ../tools-more-menu-group */ "./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js" ) ;
/* harmony import */ var _options _menu _item _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../options-menu-item */ "./node_modules/@wordpress/edit-post/build-module/components/header/options-menu-item/index.js" ) ;
/* harmony import */ var _writing _menu _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ../writing-menu */ "./node_modules/@wordpress/edit-post/build-module/components/header/writing-menu/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
2018-10-26 09:35:06 +02:00
* WordPress dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-26 09:35:06 +02:00
2018-10-24 13:48:53 +02:00
/ * *
2018-10-26 09:35:06 +02:00
* Internal dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-26 09:35:06 +02:00
2018-10-30 05:47:50 +01:00
var ariaClosed = Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Show more tools & options' ) ;
var ariaOpen = Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Hide more tools & options' ) ;
2018-10-26 09:35:06 +02:00
var MoreMenu = function MoreMenu ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Dropdown" ] , {
className : "edit-post-more-menu" ,
contentClassName : "edit-post-more-menu__content" ,
position : "bottom left" ,
renderToggle : function renderToggle ( _ref ) {
var isOpen = _ref . isOpen ,
onToggle = _ref . onToggle ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "IconButton" ] , {
icon : "ellipsis" ,
2018-10-30 05:47:50 +01:00
label : isOpen ? ariaOpen : ariaClosed ,
2018-10-26 09:35:06 +02:00
onClick : onToggle ,
"aria-expanded" : isOpen
} ) ;
} ,
renderContent : function renderContent ( _ref2 ) {
var onClose = _ref2 . onClose ;
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" ] ) ( _writing _menu _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , {
onClose : onClose
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _mode _switcher _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] , {
onSelect : onClose
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _plugins _more _menu _group _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] . Slot , {
fillProps : {
onClose : onClose
}
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _tools _more _menu _group _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] . Slot , {
fillProps : {
onClose : onClose
}
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "MenuGroup" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _menu _item _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] , {
onSelect : onClose
} ) ) ) ;
}
2018-10-24 13:48:53 +02:00
} ) ;
} ;
2018-10-26 09:35:06 +02:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( MoreMenu ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/options-menu-item/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / options - menu - item / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-26 09:35:06 +02:00
/*! exports provided: OptionsMenuItem, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "OptionsMenuItem" , function ( ) { return OptionsMenuItem ; } ) ;
/* 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 _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/ * *
* WordPress Dependencies
* /
function OptionsMenuItem ( _ref ) {
var openModal = _ref . openModal ,
onSelect = _ref . onSelect ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "MenuItem" ] , {
onClick : function onClick ( ) {
onSelect ( ) ;
openModal ( 'edit-post/options' ) ;
}
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Options' ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch = dispatch ( 'core/edit-post' ) ,
openModal = _dispatch . openModal ;
return {
openModal : openModal
} ;
} ) ( OptionsMenuItem ) ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/pinned-plugins/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / pinned - plugins / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
2018-10-26 09:35:06 +02:00
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createSlotFill" ] ) ( 'PinnedPlugins' ) ,
PinnedPlugins = _createSlotFill . Fill ,
2018-10-24 13:48:53 +02:00
Slot = _createSlotFill . Slot ;
2018-10-26 09:35:06 +02:00
PinnedPlugins . Slot = function ( props ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( Slot , props , function ( fills ) {
return ! Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isEmpty" ] ) ( fills ) && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-pinned-plugins"
2018-10-24 13:48:53 +02:00
} , fills ) ;
} ) ;
} ;
2018-10-26 09:35:06 +02:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PinnedPlugins ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / plugin - sidebar - more - menu - item / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _ _ ) ;
2018-10-26 09:35:06 +02:00
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/plugins */ "@wordpress/plugins" ) ;
/* harmony import */ var _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _plugins _more _menu _group _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ../plugins-more-menu-group */ "./node_modules/@wordpress/edit-post/build-module/components/header/plugins-more-menu-group/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
2018-10-26 09:35:06 +02:00
* WordPress dependencies
2018-10-24 13:48:53 +02:00
* /
2018-10-26 09:35:06 +02:00
2018-10-24 13:48:53 +02:00
/ * *
* Internal dependencies
* /
2018-10-26 09:35:06 +02:00
var PluginSidebarMoreMenuItem = function PluginSidebarMoreMenuItem ( _ref ) {
var children = _ref . children ,
icon = _ref . icon ,
isSelected = _ref . isSelected ,
onClick = _ref . onClick ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _plugins _more _menu _group _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] , null , function ( fillProps ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "MenuItem" ] , {
icon : isSelected ? 'yes' : icon ,
isSelected : isSelected ,
role : "menuitemcheckbox" ,
onClick : Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "compose" ] ) ( onClick , fillProps . onClose )
} , children ) ;
} ) ;
} ;
2018-10-24 13:48:53 +02:00
2018-10-26 09:35:06 +02:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "compose" ] ) ( Object ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withPluginContext" ] ) ( function ( context , ownProps ) {
return {
icon : ownProps . icon || context . icon ,
sidebarName : "" . concat ( context . name , "/" ) . concat ( ownProps . target )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withSelect" ] ) ( function ( select , _ref2 ) {
var sidebarName = _ref2 . sidebarName ;
2018-10-24 13:48:53 +02:00
2018-10-26 09:35:06 +02:00
var _select = select ( 'core/edit-post' ) ,
getActiveGeneralSidebarName = _select . getActiveGeneralSidebarName ;
2018-10-24 13:48:53 +02:00
2018-10-26 09:35:06 +02:00
return {
isSelected : getActiveGeneralSidebarName ( ) === sidebarName
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withDispatch" ] ) ( function ( dispatch , _ref3 ) {
var isSelected = _ref3 . isSelected ,
sidebarName = _ref3 . sidebarName ;
2018-10-24 13:48:53 +02:00
2018-10-26 09:35:06 +02:00
var _dispatch = dispatch ( 'core/edit-post' ) ,
closeGeneralSidebar = _dispatch . closeGeneralSidebar ,
openGeneralSidebar = _dispatch . openGeneralSidebar ;
2018-10-24 13:48:53 +02:00
2018-10-26 09:35:06 +02:00
var onClick = isSelected ? closeGeneralSidebar : function ( ) {
return openGeneralSidebar ( sidebarName ) ;
} ;
return {
onClick : onClick
} ;
} ) ) ( PluginSidebarMoreMenuItem ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/plugins-more-menu-group/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / plugins - more - menu - group / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-26 09:35:06 +02:00
/*! exports provided: default */
/***/ ( 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _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 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createSlotFill" ] ) ( 'PluginsMoreMenuGroup' ) ,
PluginsMoreMenuGroup = _createSlotFill . Fill ,
Slot = _createSlotFill . Slot ;
PluginsMoreMenuGroup . Slot = function ( _ref ) {
var fillProps = _ref . fillProps ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( Slot , {
fillProps : fillProps
} , function ( fills ) {
return ! Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isEmpty" ] ) ( fills ) && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "MenuGroup" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Plugins' )
} , fills ) ;
} ) ;
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PluginsMoreMenuGroup ) ;
2018-10-29 09:37:29 +01:00
/***/ } ) ,
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/post-publish-button-or-toggle.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / post - publish - button - or - toggle . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: PostPublishButtonOrToggle, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PostPublishButtonOrToggle" , function ( ) { return PostPublishButtonOrToggle ; } ) ;
/* 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/viewport */ "@wordpress/viewport" ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/ * *
* External Dependencies
* /
/ * *
* WordPress dependencies .
* /
function PostPublishButtonOrToggle ( _ref ) {
var forceIsDirty = _ref . forceIsDirty ,
forceIsSaving = _ref . forceIsSaving ,
hasPublishAction = _ref . hasPublishAction ,
isBeingScheduled = _ref . isBeingScheduled ,
isLessThanMediumViewport = _ref . isLessThanMediumViewport ,
isPending = _ref . isPending ,
isPublished = _ref . isPublished ,
isPublishSidebarEnabled = _ref . isPublishSidebarEnabled ,
isPublishSidebarOpened = _ref . isPublishSidebarOpened ,
isScheduled = _ref . isScheduled ,
togglePublishSidebar = _ref . togglePublishSidebar ;
var button = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostPublishButton" ] , {
forceIsDirty : forceIsDirty ,
forceIsSaving : forceIsSaving
} ) ;
var toggle = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostPublishPanelToggle" ] , {
isOpen : isPublishSidebarOpened ,
onToggle : togglePublishSidebar ,
forceIsSaving : forceIsSaving
} ) ;
/ * *
* We want to show a BUTTON when the post status is at the _final stage _
* for a particular role ( see https : //codex.wordpress.org/Post_Status):
*
* - is published
* - is scheduled to be published
* - is pending and can ' t be published ( but only for viewports >= medium )
*
* Originally we considered showing a button for pending posts
* that couldn ' t be published ( for ex , for a contributor role ) .
* Some languages can have really long translations for "Submit for review" ,
* so given the lack of UI real state we decided to take into account the viewport
* in that particular case .
* /
if ( isPublished || isScheduled && isBeingScheduled || isPending && ! hasPublishAction && ! isLessThanMediumViewport ) {
return button ;
}
/ * *
* Then , we take other things into account :
*
* - Show TOGGLE if it is small viewport .
* - Otherwise , use publish sidebar status to decide - TOGGLE if enabled , BUTTON if not .
* /
if ( isLessThanMediumViewport ) {
return toggle ;
}
return isPublishSidebarEnabled ? toggle : button ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
hasPublishAction : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( select ( 'core/editor' ) . getCurrentPost ( ) , [ '_links' , 'wp:action-publish' ] , false ) ,
isBeingScheduled : select ( 'core/editor' ) . isEditedPostBeingScheduled ( ) ,
isPending : select ( 'core/editor' ) . isCurrentPostPending ( ) ,
isPublished : select ( 'core/editor' ) . isCurrentPostPublished ( ) ,
isPublishSidebarEnabled : select ( 'core/editor' ) . isPublishSidebarEnabled ( ) ,
isPublishSidebarOpened : select ( 'core/edit-post' ) . isPublishSidebarOpened ( ) ,
isScheduled : select ( 'core/editor' ) . isCurrentPostScheduled ( )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch = dispatch ( 'core/edit-post' ) ,
togglePublishSidebar = _dispatch . togglePublishSidebar ;
return {
togglePublishSidebar : togglePublishSidebar
} ;
} ) , Object ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withViewportMatch" ] ) ( {
isLessThanMediumViewport : '< medium'
} ) ) ( PostPublishButtonOrToggle ) ) ;
2018-10-26 09:35:06 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / tools - more - menu - group / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-26 09:35:06 +02:00
/*! exports provided: default */
/***/ ( 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _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 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createSlotFill" ] ) ( 'ToolsMoreMenuGroup' ) ,
ToolsMoreMenuGroup = _createSlotFill . Fill ,
Slot = _createSlotFill . Slot ;
ToolsMoreMenuGroup . Slot = function ( _ref ) {
var fillProps = _ref . fillProps ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( Slot , {
fillProps : fillProps
} , function ( fills ) {
return ! Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isEmpty" ] ) ( fills ) && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "MenuGroup" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Tools' )
} , fills ) ;
} ) ;
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( ToolsMoreMenuGroup ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/header/writing-menu/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / header / writing - menu / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-26 09:35:06 +02:00
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/viewport */ "@wordpress/viewport" ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _feature _toggle _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ../feature-toggle */ "./node_modules/@wordpress/edit-post/build-module/components/header/feature-toggle/index.js" ) ;
2018-10-26 09:35:06 +02:00
/ * *
* WordPress Dependencies
* /
/ * *
* Internal dependencies
* /
function WritingMenu ( _ref ) {
var onClose = _ref . onClose ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "MenuGroup" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "_x" ] ) ( 'View' , 'noun' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _feature _toggle _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] , {
feature : "fixedToolbar" ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Unified Toolbar' ) ,
info : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Access all block and document tools in a single place' ) ,
onToggle : onClose
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _feature _toggle _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] , {
feature : "focusMode" ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Spotlight Mode' ) ,
info : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Focus on one block at a time' ) ,
onToggle : onClose
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _feature _toggle _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] , {
feature : "fullscreenMode" ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Fullscreen Mode' ) ,
info : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Work without distraction' ) ,
onToggle : onClose
} ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "ifViewportMatches" ] ) ( 'medium' ) ( WritingMenu ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/config.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / keyboard - shortcut - help - modal / config . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-26 09:35:06 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/keycodes */ "@wordpress/keycodes" ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
2018-10-24 13:48:53 +02:00
* /
var primary = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . primary ,
primaryShift = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . primaryShift ,
primaryAlt = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . primaryAlt ,
secondary = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . secondary ,
access = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . access ,
ctrl = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . ctrl ,
ctrlShift = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . ctrlShift ,
shiftAlt = _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcutList" ] . shiftAlt ;
var globalShortcuts = {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Global shortcuts' ) ,
shortcuts : [ {
keyCombination : access ( 'h' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Display this help.' )
} , {
keyCombination : primary ( 's' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Save your changes.' )
} , {
keyCombination : primary ( 'z' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Undo your last changes.' )
} , {
keyCombination : primaryShift ( 'z' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Redo your last undo.' )
} , {
keyCombination : primaryShift ( ',' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Show or hide the settings sidebar.' ) ,
ariaLabel : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "shortcutAriaLabel" ] . primaryShift ( ',' )
} , {
keyCombination : access ( 'o' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Open the block navigation menu.' )
} , {
keyCombination : ctrl ( '`' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Navigate to the next part of the editor.' ) ,
ariaLabel : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "shortcutAriaLabel" ] . ctrl ( '`' )
} , {
keyCombination : ctrlShift ( '`' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Navigate to the previous part of the editor.' ) ,
ariaLabel : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "shortcutAriaLabel" ] . ctrlShift ( '`' )
} , {
keyCombination : shiftAlt ( 'n' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Navigate to the next part of the editor (alternative).' )
} , {
keyCombination : shiftAlt ( 'p' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Navigate to the previous part of the editor (alternative).' )
} , {
keyCombination : secondary ( 'm' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Switch between Visual Editor and Code Editor.' )
} ]
} ;
var selectionShortcuts = {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Selection shortcuts' ) ,
shortcuts : [ {
keyCombination : primary ( 'a' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Select all text when typing. Press again to select all blocks.' )
} , {
keyCombination : 'Esc' ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Clear selection.' ) ,
/* translators: The 'escape' key on a keyboard. */
ariaLabel : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Escape' )
} ]
} ;
var blockShortcuts = {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Block shortcuts' ) ,
shortcuts : [ {
keyCombination : primaryShift ( 'd' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Duplicate the selected block(s).' )
} , {
keyCombination : access ( 'z' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Remove the selected block(s).' )
} , {
keyCombination : primaryAlt ( 't' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Insert a new block before the selected block(s).' )
} , {
keyCombination : primaryAlt ( 'y' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Insert a new block after the selected block(s).' )
} , {
keyCombination : '/' ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Change the block type after adding a new paragraph.' ) ,
/* translators: The forward-slash character. e.g. '/'. */
ariaLabel : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Forward-slash' )
} ]
} ;
var textFormattingShortcuts = {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Text formatting' ) ,
shortcuts : [ {
keyCombination : primary ( 'b' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Make the selected text bold.' )
} , {
keyCombination : primary ( 'i' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Make the selected text italic.' )
} , {
keyCombination : primary ( 'u' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Underline the selected text.' )
} , {
keyCombination : primary ( 'k' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Convert the selected text into a link.' )
} , {
keyCombination : access ( 's' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Remove a link.' )
} , {
keyCombination : access ( 'd' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Add a strikethrough to the selected text.' )
} , {
keyCombination : access ( 'x' ) ,
description : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Display the selected text in a monospaced font.' )
} ]
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( [ globalShortcuts , selectionShortcuts , blockShortcuts , textFormattingShortcuts ] ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / keyboard - shortcut - help - modal / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: KeyboardShortcutHelpModal, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "KeyboardShortcutHelpModal" , function ( ) { return KeyboardShortcutHelpModal ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _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 _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/keycodes */ "@wordpress/keycodes" ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _config _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! ./config */ "./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/config.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var MODAL _NAME = 'edit-post/keyboard-shortcut-help' ;
var mapKeyCombination = function mapKeyCombination ( keyCombination ) {
return keyCombination . map ( function ( character , index ) {
if ( character === '+' ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Fragment" ] , {
key : index
} , character ) ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "kbd" , {
key : index ,
className : "edit-post-keyboard-shortcut-help__shortcut-key"
} , character ) ;
} ) ;
} ;
var ShortcutList = function ShortcutList ( _ref ) {
var shortcuts = _ref . shortcuts ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "dl" , {
className : "edit-post-keyboard-shortcut-help__shortcut-list"
} , shortcuts . map ( function ( _ref2 , index ) {
var keyCombination = _ref2 . keyCombination ,
description = _ref2 . description ,
ariaLabel = _ref2 . ariaLabel ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-keyboard-shortcut-help__shortcut" ,
key : index
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "dt" , {
className : "edit-post-keyboard-shortcut-help__shortcut-term"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "kbd" , {
className : "edit-post-keyboard-shortcut-help__shortcut-key-combination" ,
"aria-label" : ariaLabel
} , mapKeyCombination ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "castArray" ] ) ( keyCombination ) ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "dd" , {
className : "edit-post-keyboard-shortcut-help__shortcut-description"
} , description ) ) ;
} ) ) ;
} ;
var ShortcutSection = function ShortcutSection ( _ref3 ) {
var title = _ref3 . title ,
shortcuts = _ref3 . shortcuts ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "section" , {
className : "edit-post-keyboard-shortcut-help__section"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "h2" , {
className : "edit-post-keyboard-shortcut-help__section-title"
} , title ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( ShortcutList , {
shortcuts : shortcuts
} ) ) ;
} ;
function KeyboardShortcutHelpModal ( _ref4 ) {
var isModalActive = _ref4 . isModalActive ,
toggleModal = _ref4 . toggleModal ;
var title = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "span" , {
className : "edit-post-keyboard-shortcut-help__title"
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Keyboard Shortcuts' ) ) ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "KeyboardShortcuts" ] , {
bindGlobal : true ,
shortcuts : Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "rawShortcut" ] . access ( 'h' ) , toggleModal )
} ) , isModalActive && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "Modal" ] , {
className : "edit-post-keyboard-shortcut-help" ,
title : title ,
closeLabel : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Close' ) ,
onRequestClose : toggleModal
} , _config _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "default" ] . map ( function ( config , index ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( ShortcutSection , Object ( _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( {
key : index
} , config ) ) ;
} ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isModalActive : select ( 'core/edit-post' ) . isModalActive ( MODAL _NAME )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "withDispatch" ] ) ( function ( dispatch , _ref6 ) {
var isModalActive = _ref6 . isModalActive ;
var _dispatch = dispatch ( 'core/edit-post' ) ,
openModal = _dispatch . openModal ,
closeModal = _dispatch . closeModal ;
return {
toggleModal : function toggleModal ( ) {
return isModalActive ? closeModal ( ) : openModal ( MODAL _NAME ) ;
}
} ;
} ) ] ) ( KeyboardShortcutHelpModal ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcuts/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / keyboard - shortcuts / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! ../../keyboard-shortcuts */ "./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var EditorModeKeyboardShortcuts =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( EditorModeKeyboardShortcuts , _Component ) ;
function EditorModeKeyboardShortcuts ( ) {
var _this ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( this , EditorModeKeyboardShortcuts ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( EditorModeKeyboardShortcuts ) . apply ( this , arguments ) ) ;
_this . toggleMode = _this . toggleMode . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . toggleSidebar = _this . toggleSidebar . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] ) ( _this ) ) ) ;
return _this ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( EditorModeKeyboardShortcuts , [ {
key : "toggleMode" ,
value : function toggleMode ( ) {
var _this$props = this . props ,
mode = _this$props . mode ,
switchMode = _this$props . switchMode ;
switchMode ( mode === 'visual' ? 'text' : 'visual' ) ;
}
} , {
key : "toggleSidebar" ,
value : function toggleSidebar ( event ) {
// This shortcut has no known clashes, but use preventDefault to prevent any
// obscure shortcuts from triggering.
event . preventDefault ( ) ;
var _this$props2 = this . props ,
isEditorSidebarOpen = _this$props2 . isEditorSidebarOpen ,
closeSidebar = _this$props2 . closeSidebar ,
openSidebar = _this$props2 . openSidebar ;
if ( isEditorSidebarOpen ) {
closeSidebar ( ) ;
} else {
openSidebar ( ) ;
}
}
} , {
key : "render" ,
value : function render ( ) {
var _ref ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "KeyboardShortcuts" ] , {
bindGlobal : true ,
shortcuts : ( _ref = { } , Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( _ref , _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "default" ] . toggleEditorMode . raw , this . toggleMode ) , Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( _ref , _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "default" ] . toggleSidebar . raw , this . toggleSidebar ) , _ref )
} ) ;
}
} ] ) ;
return EditorModeKeyboardShortcuts ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "Component" ] ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
mode : select ( 'core/edit-post' ) . getEditorMode ( ) ,
isEditorSidebarOpen : select ( 'core/edit-post' ) . isEditorSidebarOpened ( ) ,
hasBlockSelection : ! ! select ( 'core/editor' ) . getBlockSelectionStart ( )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "withDispatch" ] ) ( function ( dispatch , _ref2 ) {
var hasBlockSelection = _ref2 . hasBlockSelection ;
return {
switchMode : function switchMode ( mode ) {
dispatch ( 'core/edit-post' ) . switchEditorMode ( mode ) ;
} ,
openSidebar : function openSidebar ( ) {
var sidebarToOpen = hasBlockSelection ? 'edit-post/block' : 'edit-post/document' ;
dispatch ( 'core/edit-post' ) . openGeneralSidebar ( sidebarToOpen ) ;
} ,
closeSidebar : dispatch ( 'core/edit-post' ) . closeGeneralSidebar
} ;
} ) ] ) ( EditorModeKeyboardShortcuts ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/layout/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / layout / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! classnames */ "./node_modules/classnames/index.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( classnames _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/plugins */ "@wordpress/plugins" ) ;
/* harmony import */ var _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/viewport */ "@wordpress/viewport" ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _browser _url _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! ../browser-url */ "./node_modules/@wordpress/edit-post/build-module/components/browser-url/index.js" ) ;
2018-10-29 09:37:29 +01:00
/* harmony import */ var _header _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! ../header */ "./node_modules/@wordpress/edit-post/build-module/components/header/index.js" ) ;
/* harmony import */ var _text _editor _ _WEBPACK _IMPORTED _MODULE _12 _ _ = _ _webpack _require _ _ ( /*! ../text-editor */ "./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js" ) ;
/* harmony import */ var _visual _editor _ _WEBPACK _IMPORTED _MODULE _13 _ _ = _ _webpack _require _ _ ( /*! ../visual-editor */ "./node_modules/@wordpress/edit-post/build-module/components/visual-editor/index.js" ) ;
/* harmony import */ var _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _14 _ _ = _ _webpack _require _ _ ( /*! ../keyboard-shortcuts */ "./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcuts/index.js" ) ;
/* harmony import */ var _keyboard _shortcut _help _modal _ _WEBPACK _IMPORTED _MODULE _15 _ _ = _ _webpack _require _ _ ( /*! ../keyboard-shortcut-help-modal */ "./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/index.js" ) ;
/* harmony import */ var _options _modal _ _WEBPACK _IMPORTED _MODULE _16 _ _ = _ _webpack _require _ _ ( /*! ../options-modal */ "./node_modules/@wordpress/edit-post/build-module/components/options-modal/index.js" ) ;
/* harmony import */ var _meta _boxes _ _WEBPACK _IMPORTED _MODULE _17 _ _ = _ _webpack _require _ _ ( /*! ../meta-boxes */ "./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/index.js" ) ;
/* harmony import */ var _sidebar _settings _sidebar _ _WEBPACK _IMPORTED _MODULE _18 _ _ = _ _webpack _require _ _ ( /*! ../sidebar/settings-sidebar */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-sidebar/index.js" ) ;
/* harmony import */ var _sidebar _ _WEBPACK _IMPORTED _MODULE _19 _ _ = _ _webpack _require _ _ ( /*! ../sidebar */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/index.js" ) ;
/* harmony import */ var _sidebar _plugin _post _publish _panel _ _WEBPACK _IMPORTED _MODULE _20 _ _ = _ _webpack _require _ _ ( /*! ../sidebar/plugin-post-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js" ) ;
/* harmony import */ var _sidebar _plugin _pre _publish _panel _ _WEBPACK _IMPORTED _MODULE _21 _ _ = _ _webpack _require _ _ ( /*! ../sidebar/plugin-pre-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js" ) ;
/* harmony import */ var _fullscreen _mode _ _WEBPACK _IMPORTED _MODULE _22 _ _ = _ _webpack _require _ _ ( /*! ../fullscreen-mode */ "./node_modules/@wordpress/edit-post/build-module/components/fullscreen-mode/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
function Layout ( _ref ) {
var mode = _ref . mode ,
editorSidebarOpened = _ref . editorSidebarOpened ,
pluginSidebarOpened = _ref . pluginSidebarOpened ,
publishSidebarOpened = _ref . publishSidebarOpened ,
hasFixedToolbar = _ref . hasFixedToolbar ,
closePublishSidebar = _ref . closePublishSidebar ,
togglePublishSidebar = _ref . togglePublishSidebar ,
hasActiveMetaboxes = _ref . hasActiveMetaboxes ,
isSaving = _ref . isSaving ,
isMobileViewport = _ref . isMobileViewport ;
var sidebarIsOpened = editorSidebarOpened || pluginSidebarOpened || publishSidebarOpened ;
var className = classnames _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default ( ) ( 'edit-post-layout' , {
'is-sidebar-opened' : sidebarIsOpened ,
'has-fixed-toolbar' : hasFixedToolbar
} ) ;
var publishLandmarkProps = {
role : 'region' ,
/* translators: accessibility text for the publish landmark region. */
'aria-label' : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "__" ] ) ( 'Editor publish' ) ,
tabIndex : - 1
} ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "div" , {
className : className
2018-10-29 09:37:29 +01:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _fullscreen _mode _ _WEBPACK _IMPORTED _MODULE _22 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _browser _url _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "UnsavedChangesWarning" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "AutosaveMonitor" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _header _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "div" , {
2018-10-24 13:48:53 +02:00
className : "edit-post-layout__content" ,
role : "region"
/* translators: accessibility text for the content landmark region. */
,
"aria-label" : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "__" ] ) ( 'Editor content' ) ,
tabIndex : "-1"
2018-10-29 09:37:29 +01:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "EditorNotices" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "PreserveScrollInReorder" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _14 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _keyboard _shortcut _help _modal _ _WEBPACK _IMPORTED _MODULE _15 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _options _modal _ _WEBPACK _IMPORTED _MODULE _16 _ _ [ "default" ] , null ) , mode === 'text' && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _text _editor _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "default" ] , null ) , mode === 'visual' && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _visual _editor _ _WEBPACK _IMPORTED _MODULE _13 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "div" , {
2018-10-24 13:48:53 +02:00
className : "edit-post-layout__metaboxes"
2018-10-29 09:37:29 +01:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _meta _boxes _ _WEBPACK _IMPORTED _MODULE _17 _ _ [ "default" ] , {
2018-10-24 13:48:53 +02:00
location : "normal"
} ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-layout__metaboxes"
2018-10-29 09:37:29 +01:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _meta _boxes _ _WEBPACK _IMPORTED _MODULE _17 _ _ [ "default" ] , {
2018-10-24 13:48:53 +02:00
location : "advanced"
} ) ) ) , publishSidebarOpened ? Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "PostPublishPanel" ] , Object ( _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , publishLandmarkProps , {
onClose : closePublishSidebar ,
forceIsDirty : hasActiveMetaboxes ,
forceIsSaving : isSaving ,
2018-10-29 09:37:29 +01:00
PrePublishExtension : _sidebar _plugin _pre _publish _panel _ _WEBPACK _IMPORTED _MODULE _21 _ _ [ "default" ] . Slot ,
PostPublishExtension : _sidebar _plugin _post _publish _panel _ _WEBPACK _IMPORTED _MODULE _20 _ _ [ "default" ] . Slot
2018-10-24 13:48:53 +02:00
} ) ) : Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "div" , Object ( _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( {
className : "edit-post-toggle-publish-panel"
} , publishLandmarkProps ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "Button" ] , {
isDefault : true ,
type : "button" ,
className : "edit-post-toggle-publish-panel__button" ,
onClick : togglePublishSidebar ,
"aria-expanded" : false
2018-10-29 09:37:29 +01:00
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "__" ] ) ( 'Open publish panel' ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _sidebar _settings _sidebar _ _WEBPACK _IMPORTED _MODULE _18 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _sidebar _ _WEBPACK _IMPORTED _MODULE _19 _ _ [ "default" ] . Slot , null ) , isMobileViewport && sidebarIsOpened && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "ScrollLock" ] , null ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "Popover" ] . Slot , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "PluginArea" ] , null ) ) ;
2018-10-24 13:48:53 +02:00
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
mode : select ( 'core/edit-post' ) . getEditorMode ( ) ,
editorSidebarOpened : select ( 'core/edit-post' ) . isEditorSidebarOpened ( ) ,
pluginSidebarOpened : select ( 'core/edit-post' ) . isPluginSidebarOpened ( ) ,
publishSidebarOpened : select ( 'core/edit-post' ) . isPublishSidebarOpened ( ) ,
hasFixedToolbar : select ( 'core/edit-post' ) . isFeatureActive ( 'fixedToolbar' ) ,
hasActiveMetaboxes : select ( 'core/edit-post' ) . hasMetaBoxes ( ) ,
isSaving : select ( 'core/edit-post' ) . isSavingMetaBoxes ( )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch = dispatch ( 'core/edit-post' ) ,
closePublishSidebar = _dispatch . closePublishSidebar ,
togglePublishSidebar = _dispatch . togglePublishSidebar ;
return {
closePublishSidebar : closePublishSidebar ,
togglePublishSidebar : togglePublishSidebar
} ;
} ) , _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "navigateRegions" ] , Object ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withViewportMatch" ] ) ( {
isMobileViewport : '< small'
} ) ) ( Layout ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / meta - boxes / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _meta _boxes _area _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ./meta-boxes-area */ "./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-boxes-area/index.js" ) ;
/* harmony import */ var _meta _box _visibility _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./meta-box-visibility */ "./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-box-visibility.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
function MetaBoxes ( _ref ) {
var location = _ref . location ,
isVisible = _ref . isVisible ,
metaBoxes = _ref . metaBoxes ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Fragment" ] , null , Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "map" ] ) ( metaBoxes , function ( _ref2 ) {
var id = _ref2 . id ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _meta _box _visibility _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] , {
key : id ,
id : id
} ) ;
} ) , isVisible && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _meta _boxes _area _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] , {
location : location
} ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withSelect" ] ) ( function ( select , _ref3 ) {
var location = _ref3 . location ;
var _select = select ( 'core/edit-post' ) ,
isMetaBoxLocationVisible = _select . isMetaBoxLocationVisible ,
getMetaBoxesPerLocation = _select . getMetaBoxesPerLocation ;
return {
metaBoxes : getMetaBoxesPerLocation ( location ) ,
isVisible : isMetaBoxLocationVisible ( location )
} ;
} ) ( MetaBoxes ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-box-visibility.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / meta - boxes / meta - box - visibility . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/ * *
* WordPress dependencies
* /
var MetaBoxVisibility =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( MetaBoxVisibility , _Component ) ;
function MetaBoxVisibility ( ) {
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , MetaBoxVisibility ) ;
return Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( MetaBoxVisibility ) . apply ( this , arguments ) ) ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( MetaBoxVisibility , [ {
key : "componentDidMount" ,
value : function componentDidMount ( ) {
this . updateDOM ( ) ;
}
} , {
key : "componentDidUpdate" ,
value : function componentDidUpdate ( prevProps ) {
if ( this . props . isVisible !== prevProps . isVisible ) {
this . updateDOM ( ) ;
}
}
} , {
key : "updateDOM" ,
value : function updateDOM ( ) {
var _this$props = this . props ,
id = _this$props . id ,
isVisible = _this$props . isVisible ;
var element = document . getElementById ( id ) ;
if ( element ) {
element . style . display = isVisible ? '' : 'none' ;
}
}
} , {
key : "render" ,
value : function render ( ) {
return null ;
}
} ] ) ;
return MetaBoxVisibility ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Component" ] ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withSelect" ] ) ( function ( select , _ref ) {
var id = _ref . id ;
return {
isVisible : select ( 'core/edit-post' ) . isEditorPanelEnabled ( "meta-box-" . concat ( id ) )
} ;
} ) ( MetaBoxVisibility ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-boxes-area/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / meta - boxes / meta - boxes - area / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! classnames */ "./node_modules/classnames/index.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
var MetaBoxesArea =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( MetaBoxesArea , _Component ) ;
/ * *
* @ inheritdoc
* /
function MetaBoxesArea ( ) {
var _this ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , MetaBoxesArea ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( MetaBoxesArea ) . apply ( this , arguments ) ) ;
_this . bindContainerNode = _this . bindContainerNode . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
return _this ;
}
/ * *
* @ inheritdoc
* /
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( MetaBoxesArea , [ {
key : "componentDidMount" ,
value : function componentDidMount ( ) {
this . form = document . querySelector ( '.metabox-location-' + this . props . location ) ;
if ( this . form ) {
this . container . appendChild ( this . form ) ;
}
}
/ * *
* Get the meta box location form from the original location .
* /
} , {
key : "componentWillUnmount" ,
value : function componentWillUnmount ( ) {
if ( this . form ) {
document . querySelector ( '#metaboxes' ) . appendChild ( this . form ) ;
}
}
/ * *
* Binds the metabox area container node .
*
* @ param { Element } node DOM Node .
* /
} , {
key : "bindContainerNode" ,
value : function bindContainerNode ( node ) {
this . container = node ;
}
/ * *
* @ inheritdoc
* /
} , {
key : "render" ,
value : function render ( ) {
var _this$props = this . props ,
location = _this$props . location ,
isSaving = _this$props . isSaving ;
var classes = classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default ( ) ( 'edit-post-meta-boxes-area' , "is-" . concat ( location ) , {
'is-loading' : isSaving
} ) ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( "div" , {
className : classes
} , isSaving && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "Spinner" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-meta-boxes-area__container" ,
ref : this . bindContainerNode
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-meta-boxes-area__clear"
} ) ) ;
}
} ] ) ;
return MetaBoxesArea ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "Component" ] ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isSaving : select ( 'core/edit-post' ) . isSavingMetaBoxes ( )
} ;
} ) ( MetaBoxesArea ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/options-modal/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / options - modal / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: OptionsModal, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "OptionsModal" , function ( ) { return OptionsModal ; } ) ;
/* 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _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 _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _section _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ./section */ "./node_modules/@wordpress/edit-post/build-module/components/options-modal/section.js" ) ;
/* harmony import */ var _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! ./options */ "./node_modules/@wordpress/edit-post/build-module/components/options-modal/options.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var MODAL _NAME = 'edit-post/options' ;
function OptionsModal ( _ref ) {
var isModalActive = _ref . isModalActive ,
closeModal = _ref . closeModal ,
_ref$metaBoxes = _ref . metaBoxes ,
metaBoxes = _ref$metaBoxes === void 0 ? [ ] : _ref$metaBoxes ;
if ( ! isModalActive ) {
return null ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Modal" ] , {
className : "edit-post-options-modal" ,
title : Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "span" , {
className : "edit-post-options-modal__title"
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Options' ) ) ,
closeLabel : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Close' ) ,
onRequestClose : closeModal
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _section _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'General' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnablePublishSidebarOption" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Enable Pre-publish Checks' )
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnableTipsOption" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Enable Tips' )
} ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _section _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Document Panels' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "PostTaxonomies" ] , {
taxonomyWrapper : function taxonomyWrapper ( content , taxonomy ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnablePanelOption" ] , {
label : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( taxonomy , [ 'labels' , 'menu_name' ] ) ,
panelName : "taxonomy-panel-" . concat ( taxonomy . slug )
} ) ;
}
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnablePanelOption" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Featured Image' ) ,
panelName : "featured-image"
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "PostExcerptCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnablePanelOption" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Excerpt' ) ,
panelName : "post-excerpt"
} ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnablePanelOption" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Discussion' ) ,
panelName : "discussion-panel"
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "PageAttributesCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnablePanelOption" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Page Attributes' ) ,
panelName : "page-attributes"
} ) ) ) , metaBoxes . length !== 0 && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _section _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Advanced Panels' )
} , Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "map" ] ) ( metaBoxes , function ( _ref2 ) {
var title = _ref2 . title ,
id = _ref2 . id ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _options _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "EnablePanelOption" ] , {
key : id ,
label : title ,
panelName : "meta-box-" . concat ( id )
} ) ;
} ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isModalActive : select ( 'core/edit-post' ) . isModalActive ( MODAL _NAME ) ,
metaBoxes : select ( 'core/edit-post' ) . getAllMetaBoxes ( )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
return {
closeModal : function closeModal ( ) {
return dispatch ( 'core/edit-post' ) . closeModal ( ) ;
}
} ;
} ) ) ( OptionsModal ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/options-modal/options.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / options - modal / options . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: EnablePublishSidebarOption, EnableTipsOption, EnablePanelOption */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "EnablePublishSidebarOption" , function ( ) { return EnablePublishSidebarOption ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "EnableTipsOption" , function ( ) { return EnableTipsOption ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "EnablePanelOption" , function ( ) { return EnablePanelOption ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
2018-10-29 09:37:29 +01:00
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/viewport */ "@wordpress/viewport" ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
2018-10-29 09:37:29 +01:00
2018-10-24 13:48:53 +02:00
function Option ( _ref ) {
var label = _ref . label ,
isChecked = _ref . isChecked ,
onChange = _ref . onChange ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "CheckboxControl" ] , {
className : "edit-post-options-modal__option" ,
label : label ,
checked : isChecked ,
onChange : onChange
} ) ;
}
var DeferredOption =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( DeferredOption , _Component ) ;
function DeferredOption ( _ref2 ) {
var _this ;
var isChecked = _ref2 . isChecked ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , DeferredOption ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( DeferredOption ) . apply ( this , arguments ) ) ;
_this . state = {
isChecked : isChecked
} ;
return _this ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( DeferredOption , [ {
key : "componentWillUnmount" ,
value : function componentWillUnmount ( ) {
if ( this . state . isChecked !== this . props . isChecked ) {
this . props . onChange ( this . state . isChecked ) ;
}
}
} , {
key : "render" ,
value : function render ( ) {
var _this2 = this ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "createElement" ] ) ( Option , {
label : this . props . label ,
isChecked : this . state . isChecked ,
onChange : function onChange ( isChecked ) {
return _this2 . setState ( {
isChecked : isChecked
} ) ;
}
} ) ;
}
} ] ) ;
return DeferredOption ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Component" ] ) ;
var EnablePublishSidebarOption = Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isChecked : select ( 'core/editor' ) . isPublishSidebarEnabled ( )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch = dispatch ( 'core/editor' ) ,
enablePublishSidebar = _dispatch . enablePublishSidebar ,
disablePublishSidebar = _dispatch . disablePublishSidebar ;
return {
onChange : function onChange ( isEnabled ) {
return isEnabled ? enablePublishSidebar ( ) : disablePublishSidebar ( ) ;
}
} ;
2018-10-29 09:37:29 +01:00
} ) , // In < medium viewports we override this option and always show the publish sidebar.
// See the edit-post's header component for the specific logic.
Object ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "ifViewportMatches" ] ) ( 'medium' ) ) ( Option ) ;
2018-10-24 13:48:53 +02:00
var EnableTipsOption = Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isChecked : select ( 'core/nux' ) . areTipsEnabled ( )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch2 = dispatch ( 'core/nux' ) ,
enableTips = _dispatch2 . enableTips ,
disableTips = _dispatch2 . disableTips ;
return {
onChange : function onChange ( isEnabled ) {
return isEnabled ? enableTips ( ) : disableTips ( ) ;
}
} ;
} ) ) ( // Using DeferredOption here means enableTips() is called when the Options
// modal is dismissed. This stops the NUX guide from appearing above the
// Options modal, which looks totally weird.
DeferredOption ) ;
var EnablePanelOption = Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withSelect" ] ) ( function ( select , _ref3 ) {
var panelName = _ref3 . panelName ;
return {
isChecked : select ( 'core/edit-post' ) . isEditorPanelEnabled ( panelName )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withDispatch" ] ) ( function ( dispatch , _ref4 ) {
var panelName = _ref4 . panelName ;
return {
onChange : function onChange ( ) {
return dispatch ( 'core/edit-post' ) . toggleEditorPanelEnabled ( panelName ) ;
}
} ;
} ) ) ( Option ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/options-modal/section.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / options - modal / section . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _ _ ) ;
var Section = function Section ( _ref ) {
var title = _ref . title ,
children = _ref . children ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "section" , {
className : "edit-post-options-modal__section"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "h2" , {
className : "edit-post-options-modal__section-title"
} , title ) , children ) ;
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Section ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/discussion-panel/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / discussion - panel / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _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 _ _ ) ;
/ * *
* WordPress dependencies
* /
/ * *
* Module Constants
* /
var PANEL _NAME = 'discussion-panel' ;
function DiscussionPanel ( _ref ) {
var isEnabled = _ref . isEnabled ,
isOpened = _ref . isOpened ,
onTogglePanel = _ref . onTogglePanel ;
if ( ! isEnabled ) {
return null ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostTypeSupportCheck" ] , {
supportKeys : [ 'comments' , 'trackbacks' ]
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PanelBody" ] , {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Discussion' ) ,
opened : isOpened ,
onToggle : onTogglePanel
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostTypeSupportCheck" ] , {
supportKeys : "comments"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostComments" ] , null ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostTypeSupportCheck" ] , {
supportKeys : "trackbacks"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostPingbacks" ] , null ) ) ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isEnabled : select ( 'core/edit-post' ) . isEditorPanelEnabled ( PANEL _NAME ) ,
isOpened : select ( 'core/edit-post' ) . isEditorPanelOpened ( PANEL _NAME )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
return {
onTogglePanel : function onTogglePanel ( ) {
return dispatch ( 'core/edit-post' ) . toggleEditorPanelOpened ( PANEL _NAME ) ;
}
} ;
} ) ] ) ( DiscussionPanel ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/featured-image/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / featured - image / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Module Constants
* /
var PANEL _NAME = 'featured-image' ;
function FeaturedImage ( _ref ) {
var isEnabled = _ref . isEnabled ,
isOpened = _ref . isOpened ,
postType = _ref . postType ,
onTogglePanel = _ref . onTogglePanel ;
if ( ! isEnabled ) {
return null ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PostFeaturedImageCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PanelBody" ] , {
title : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( postType , [ 'labels' , 'featured_image' ] , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Featured Image' ) ) ,
opened : isOpened ,
onToggle : onTogglePanel
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PostFeaturedImage" ] , null ) ) ) ;
}
var applyWithSelect = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withSelect" ] ) ( function ( select ) {
var _select = select ( 'core/editor' ) ,
getEditedPostAttribute = _select . getEditedPostAttribute ;
var _select2 = select ( 'core' ) ,
getPostType = _select2 . getPostType ;
var _select3 = select ( 'core/edit-post' ) ,
isEditorPanelEnabled = _select3 . isEditorPanelEnabled ,
isEditorPanelOpened = _select3 . isEditorPanelOpened ;
return {
postType : getPostType ( getEditedPostAttribute ( 'type' ) ) ,
isEnabled : isEditorPanelEnabled ( PANEL _NAME ) ,
isOpened : isEditorPanelOpened ( PANEL _NAME )
} ;
} ) ;
var applyWithDispatch = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch = dispatch ( 'core/edit-post' ) ,
toggleEditorPanelOpened = _dispatch . toggleEditorPanelOpened ;
return {
onTogglePanel : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "partial" ] ) ( toggleEditorPanelOpened , PANEL _NAME )
} ;
} ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "compose" ] ) ( applyWithSelect , applyWithDispatch ) ( FeaturedImage ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/ * *
* WordPress Dependencies
* /
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createSlotFill" ] ) ( 'Sidebar' ) ,
Fill = _createSlotFill . Fill ,
Slot = _createSlotFill . Slot ;
/ * *
* Renders a sidebar with its content .
*
* @ return { Object } The rendered sidebar .
* /
var Sidebar = function Sidebar ( _ref ) {
var children = _ref . children ,
label = _ref . label ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( Fill , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-sidebar" ,
role : "region" ,
"aria-label" : label ,
tabIndex : "-1"
} , children ) ) ;
} ;
var WrappedSidebar = Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withSelect" ] ) ( function ( select , _ref2 ) {
var name = _ref2 . name ;
return {
isActive : select ( 'core/edit-post' ) . getActiveGeneralSidebarName ( ) === name
} ;
} ) , Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "ifCondition" ] ) ( function ( _ref3 ) {
var isActive = _ref3 . isActive ;
return isActive ;
} ) , _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "withFocusReturn" ] ) ( Sidebar ) ;
WrappedSidebar . Slot = Slot ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( WrappedSidebar ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/last-revision/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / last - revision / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* WordPress dependencies
* /
function LastRevision ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostLastRevisionCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelBody" ] , {
className : "edit-post-last-revision__panel"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostLastRevision" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( LastRevision ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/page-attributes/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / page - attributes / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PageAttributes, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PageAttributes" , function ( ) { return PageAttributes ; } ) ;
/* 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Module Constants
* /
var PANEL _NAME = 'page-attributes' ;
function PageAttributes ( _ref ) {
var isEnabled = _ref . isEnabled ,
isOpened = _ref . isOpened ,
onTogglePanel = _ref . onTogglePanel ,
postType = _ref . postType ;
if ( ! isEnabled || ! postType ) {
return null ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "PageAttributesCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PanelBody" ] , {
title : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( postType , [ 'labels' , 'attributes' ] , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Page Attributes' ) ) ,
opened : isOpened ,
onToggle : onTogglePanel
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "PageTemplate" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "PageAttributesParent" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "PageAttributesOrder" ] , null ) ) ) ) ;
}
var applyWithSelect = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withSelect" ] ) ( function ( select ) {
var _select = select ( 'core/editor' ) ,
getEditedPostAttribute = _select . getEditedPostAttribute ;
var _select2 = select ( 'core/edit-post' ) ,
isEditorPanelEnabled = _select2 . isEditorPanelEnabled ,
isEditorPanelOpened = _select2 . isEditorPanelOpened ;
var _select3 = select ( 'core' ) ,
getPostType = _select3 . getPostType ;
return {
isEnabled : isEditorPanelEnabled ( PANEL _NAME ) ,
isOpened : isEditorPanelOpened ( PANEL _NAME ) ,
postType : getPostType ( getEditedPostAttribute ( 'type' ) )
} ;
} ) ;
var applyWithDispatch = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch = dispatch ( 'core/edit-post' ) ,
toggleEditorPanelOpened = _dispatch . toggleEditorPanelOpened ;
return {
onTogglePanel : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "partial" ] ) ( toggleEditorPanelOpened , PANEL _NAME )
} ;
} ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "compose" ] ) ( applyWithSelect , applyWithDispatch ) ( PageAttributes ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / plugin - post - publish - panel / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createSlotFill" ] ) ( 'PluginPostPublishPanel' ) ,
Fill = _createSlotFill . Fill ,
Slot = _createSlotFill . Slot ;
var PluginPostPublishPanel = function PluginPostPublishPanel ( _ref ) {
var children = _ref . children ,
className = _ref . className ,
title = _ref . title ,
_ref$initialOpen = _ref . initialOpen ,
initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( Fill , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelBody" ] , {
className : className ,
initialOpen : initialOpen || ! title ,
title : title
} , children ) ) ;
} ;
PluginPostPublishPanel . Slot = Slot ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PluginPostPublishPanel ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / plugin - post - status - info / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: Fill, Slot, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Fill" , function ( ) { return Fill ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Slot" , function ( ) { return Slot ; } ) ;
/* 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* Defines as extensibility slot for the Status & Visibility panel .
* /
/ * *
* WordPress dependencies
* /
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createSlotFill" ] ) ( 'PluginPostStatusInfo' ) ,
Fill = _createSlotFill . Fill ,
Slot = _createSlotFill . Slot ;
var PluginPostStatusInfo = function PluginPostStatusInfo ( _ref ) {
var children = _ref . children ,
className = _ref . className ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( Fill , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelRow" ] , {
className : className
} , children ) ) ;
} ;
PluginPostStatusInfo . Slot = Slot ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PluginPostStatusInfo ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / plugin - pre - publish - panel / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var _createSlotFill = Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createSlotFill" ] ) ( 'PluginPrePublishPanel' ) ,
Fill = _createSlotFill . Fill ,
Slot = _createSlotFill . Slot ;
var PluginPrePublishPanel = function PluginPrePublishPanel ( _ref ) {
var children = _ref . children ,
className = _ref . className ,
title = _ref . title ,
_ref$initialOpen = _ref . initialOpen ,
initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( Fill , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelBody" ] , {
className : className ,
initialOpen : initialOpen || ! title ,
title : title
} , children ) ) ;
} ;
PluginPrePublishPanel . Slot = Slot ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PluginPrePublishPanel ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / plugin - sidebar / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _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 _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/plugins */ "@wordpress/plugins" ) ;
/* harmony import */ var _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _header _pinned _plugins _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../../header/pinned-plugins */ "./node_modules/@wordpress/edit-post/build-module/components/header/pinned-plugins/index.js" ) ;
/* harmony import */ var _ _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ../ */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/index.js" ) ;
/* harmony import */ var _sidebar _header _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! ../sidebar-header */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* Renders the plugin sidebar component .
*
* @ param { Object } props Element props .
*
* @ return { WPElement } Plugin sidebar component .
* /
function PluginSidebar ( props ) {
var children = props . children ,
icon = props . icon ,
isActive = props . isActive ,
_props$isPinnable = props . isPinnable ,
isPinnable = _props$isPinnable === void 0 ? true : _props$isPinnable ,
isPinned = props . isPinned ,
sidebarName = props . sidebarName ,
title = props . title ,
togglePin = props . togglePin ,
toggleSidebar = props . toggleSidebar ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Fragment" ] , null , isPinnable && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _header _pinned _plugins _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] , null , isPinned && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "IconButton" ] , {
icon : icon ,
label : title ,
onClick : toggleSidebar ,
isToggled : isActive ,
"aria-expanded" : isActive
} ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _ _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , {
name : sidebarName ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Editor plugins' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _sidebar _header _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "default" ] , {
closeLabel : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Close plugin' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "strong" , null , title ) , isPinnable && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "IconButton" ] , {
icon : isPinned ? 'star-filled' : 'star-empty' ,
label : isPinned ? Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Unpin from toolbar' ) : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Pin to toolbar' ) ,
onClick : togglePin ,
isToggled : isPinned ,
"aria-expanded" : isPinned
} ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Panel" ] , null , children ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "compose" ] ) ( Object ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withPluginContext" ] ) ( function ( context , ownProps ) {
return {
icon : ownProps . icon || context . icon ,
sidebarName : "" . concat ( context . name , "/" ) . concat ( ownProps . name )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withSelect" ] ) ( function ( select , _ref ) {
var sidebarName = _ref . sidebarName ;
var _select = select ( 'core/edit-post' ) ,
getActiveGeneralSidebarName = _select . getActiveGeneralSidebarName ,
isPluginItemPinned = _select . isPluginItemPinned ;
return {
isActive : getActiveGeneralSidebarName ( ) === sidebarName ,
isPinned : isPluginItemPinned ( sidebarName )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withDispatch" ] ) ( function ( dispatch , _ref2 ) {
var isActive = _ref2 . isActive ,
sidebarName = _ref2 . sidebarName ;
var _dispatch = dispatch ( 'core/edit-post' ) ,
closeGeneralSidebar = _dispatch . closeGeneralSidebar ,
openGeneralSidebar = _dispatch . openGeneralSidebar ,
togglePinnedPluginItem = _dispatch . togglePinnedPluginItem ;
return {
togglePin : function togglePin ( ) {
togglePinnedPluginItem ( sidebarName ) ;
} ,
toggleSidebar : function toggleSidebar ( ) {
if ( isActive ) {
closeGeneralSidebar ( ) ;
} else {
openGeneralSidebar ( sidebarName ) ;
}
}
} ;
} ) ) ( PluginSidebar ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-author/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - author / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PostAuthor, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PostAuthor" , function ( ) { return PostAuthor ; } ) ;
/* 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* WordPress dependencies
* /
function PostAuthor ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostAuthorCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostAuthor" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PostAuthor ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-excerpt/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - excerpt / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _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 _ _ ) ;
/ * *
* WordPress dependencies
* /
/ * *
* Module Constants
* /
var PANEL _NAME = 'post-excerpt' ;
function PostExcerpt ( _ref ) {
var isEnabled = _ref . isEnabled ,
isOpened = _ref . isOpened ,
onTogglePanel = _ref . onTogglePanel ;
if ( ! isEnabled ) {
return null ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostExcerptCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PanelBody" ] , {
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Excerpt' ) ,
opened : isOpened ,
onToggle : onTogglePanel
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostExcerpt" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isEnabled : select ( 'core/edit-post' ) . isEditorPanelEnabled ( PANEL _NAME ) ,
isOpened : select ( 'core/edit-post' ) . isEditorPanelOpened ( PANEL _NAME )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
return {
onTogglePanel : function onTogglePanel ( ) {
return dispatch ( 'core/edit-post' ) . toggleEditorPanelOpened ( PANEL _NAME ) ;
}
} ;
} ) ] ) ( PostExcerpt ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-format/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - format / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PostFormat, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PostFormat" , function ( ) { return PostFormat ; } ) ;
/* 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* WordPress dependencies
* /
function PostFormat ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostFormatCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostFormat" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PostFormat ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-pending-status/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - pending - status / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PostPendingStatus, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PostPendingStatus" , function ( ) { return PostPendingStatus ; } ) ;
/* 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* WordPress dependencies
* /
function PostPendingStatus ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostPendingStatusCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostPendingStatus" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PostPendingStatus ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-schedule/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - schedule / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PostSchedule, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PostSchedule" , function ( ) { return PostSchedule ; } ) ;
/* 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 _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/ * *
* WordPress dependencies
* /
function PostSchedule ( _ref ) {
var instanceId = _ref . instanceId ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PostScheduleCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PanelRow" ] , {
className : "edit-post-post-schedule"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "label" , {
htmlFor : "edit-post-post-schedule__toggle-" . concat ( instanceId ) ,
id : "edit-post-post-schedule__heading-" . concat ( instanceId )
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Publish' ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Dropdown" ] , {
position : "bottom left" ,
contentClassName : "edit-post-post-schedule__dialog" ,
renderToggle : function renderToggle ( _ref2 ) {
var onToggle = _ref2 . onToggle ,
isOpen = _ref2 . isOpen ;
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" ] ) ( "label" , {
className : "edit-post-post-schedule__label" ,
htmlFor : "edit-post-post-schedule__toggle-" . concat ( instanceId )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PostScheduleLabel" ] , null ) , " " , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Click to change' ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Button" ] , {
id : "edit-post-post-schedule__toggle-" . concat ( instanceId ) ,
type : "button" ,
className : "edit-post-post-schedule__toggle" ,
onClick : onToggle ,
"aria-expanded" : isOpen ,
"aria-live" : "polite" ,
isLink : true
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PostScheduleLabel" ] , null ) ) ) ;
} ,
renderContent : function renderContent ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PostSchedule" ] , null ) ;
}
} ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "withInstanceId" ] ) ( PostSchedule ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-status/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - status / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _post _visibility _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ../post-visibility */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-visibility/index.js" ) ;
/* harmony import */ var _post _trash _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../post-trash */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-trash/index.js" ) ;
/* harmony import */ var _post _schedule _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ../post-schedule */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-schedule/index.js" ) ;
/* harmony import */ var _post _sticky _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! ../post-sticky */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-sticky/index.js" ) ;
/* harmony import */ var _post _author _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! ../post-author */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-author/index.js" ) ;
/* harmony import */ var _post _format _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! ../post-format */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-format/index.js" ) ;
/* harmony import */ var _post _pending _status _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! ../post-pending-status */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-pending-status/index.js" ) ;
/* harmony import */ var _plugin _post _status _info _ _WEBPACK _IMPORTED _MODULE _12 _ _ = _ _webpack _require _ _ ( /*! ../plugin-post-status-info */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal Dependencies
* /
/ * *
* Module Constants
* /
var PANEL _NAME = 'post-status' ;
function PostStatus ( _ref ) {
var isOpened = _ref . isOpened ,
onTogglePanel = _ref . onTogglePanel ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PanelBody" ] , {
className : "edit-post-post-status" ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Status & Visibility' ) ,
opened : isOpened ,
onToggle : onTogglePanel
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _plugin _post _status _info _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "default" ] . Slot , null , function ( fills ) {
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" ] ) ( _post _visibility _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _schedule _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _format _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _sticky _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _pending _status _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _author _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "default" ] , null ) , fills , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _trash _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] , null ) ) ;
} ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "compose" ] ) ( [ Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
isOpened : select ( 'core/edit-post' ) . isEditorPanelOpened ( PANEL _NAME )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
return {
onTogglePanel : function onTogglePanel ( ) {
return dispatch ( 'core/edit-post' ) . toggleEditorPanelOpened ( PANEL _NAME ) ;
}
} ;
} ) ] ) ( PostStatus ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-sticky/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - sticky / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PostSticky, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PostSticky" , function ( ) { return PostSticky ; } ) ;
/* 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* WordPress dependencies
* /
function PostSticky ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostStickyCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostSticky" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PostSticky ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-taxonomies/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - taxonomies / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _taxonomy _panel _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./taxonomy-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-taxonomies/taxonomy-panel.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
function PostTaxonomies ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PostTaxonomiesCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PostTaxonomies" ] , {
taxonomyWrapper : function taxonomyWrapper ( content , taxonomy ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _taxonomy _panel _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] , {
taxonomy : taxonomy
} , content ) ;
}
} ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PostTaxonomies ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-taxonomies/taxonomy-panel.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - taxonomies / taxonomy - panel . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/ * *
* External Dependencies
* /
/ * *
* WordPress dependencies
* /
function TaxonomyPanel ( _ref ) {
var isEnabled = _ref . isEnabled ,
taxonomy = _ref . taxonomy ,
isOpened = _ref . isOpened ,
onTogglePanel = _ref . onTogglePanel ,
children = _ref . children ;
if ( ! isEnabled ) {
return null ;
}
var taxonomyMenuName = Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( taxonomy , [ 'labels' , 'menu_name' ] ) ;
if ( ! taxonomyMenuName ) {
return null ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PanelBody" ] , {
title : taxonomyMenuName ,
opened : isOpened ,
onToggle : onTogglePanel
} , children ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select , ownProps ) {
var slug = Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( ownProps . taxonomy , [ 'slug' ] ) ;
var panelName = slug ? "taxonomy-panel-" . concat ( slug ) : '' ;
return {
panelName : panelName ,
isEnabled : slug ? select ( 'core/edit-post' ) . isEditorPanelEnabled ( panelName ) : false ,
isOpened : slug ? select ( 'core/edit-post' ) . isEditorPanelOpened ( panelName ) : false
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withDispatch" ] ) ( function ( dispatch , ownProps ) {
return {
onTogglePanel : function onTogglePanel ( ) {
dispatch ( 'core/edit-post' ) . toggleEditorPanelOpened ( ownProps . panelName ) ;
}
} ;
} ) ) ( TaxonomyPanel ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-trash/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - trash / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return PostTrash ; } ) ;
/* 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* WordPress dependencies
* /
function PostTrash ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostTrashCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelRow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PostTrash" ] , null ) ) ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-visibility/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / post - visibility / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PostVisibility, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PostVisibility" , function ( ) { return PostVisibility ; } ) ;
/* 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 _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/ * *
* WordPress dependencies
* /
function PostVisibility ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostVisibilityCheck" ] , {
render : function render ( _ref ) {
var canEdit = _ref . canEdit ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "PanelRow" ] , {
className : "edit-post-post-visibility"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "span" , null , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Visibility' ) ) , ! canEdit && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "span" , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostVisibilityLabel" ] , null ) ) , canEdit && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Dropdown" ] , {
position : "bottom left" ,
contentClassName : "edit-post-post-visibility__dialog" ,
renderToggle : function renderToggle ( _ref2 ) {
var isOpen = _ref2 . isOpen ,
onToggle = _ref2 . onToggle ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Button" ] , {
type : "button" ,
"aria-expanded" : isOpen ,
className : "edit-post-post-visibility__toggle" ,
onClick : onToggle ,
isLink : true
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostVisibilityLabel" ] , null ) ) ;
} ,
renderContent : function renderContent ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "PostVisibility" ] , null ) ;
}
} ) ) ;
}
} ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PostVisibility ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-header/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / settings - header / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:37:29 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _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 _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _sidebar _header _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ../sidebar-header */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var SettingsHeader = function SettingsHeader ( _ref ) {
var count = _ref . count ,
openDocumentSettings = _ref . openDocumentSettings ,
openBlockSettings = _ref . openBlockSettings ,
sidebarName = _ref . sidebarName ;
// Do not display "0 Blocks".
var blockCount = count === 0 ? 1 : count ;
2018-10-29 09:37:29 +01:00
var blockLabel = blockCount === 1 ? Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Block' ) : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "sprintf" ] ) ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "_n" ] ) ( '%d Block' , '%d Blocks' , blockCount ) , blockCount ) ;
var _ref2 = sidebarName === 'edit-post/document' ? // translators: ARIA label for the Document Settings sidebar tab, selected.
[ Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Document settings (selected)' ) , 'is-active' ] : // translators: ARIA label for the Document Settings sidebar tab, not selected.
[ Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Document settings' ) , '' ] ,
_ref3 = Object ( _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( _ref2 , 2 ) ,
documentAriaLabel = _ref3 [ 0 ] ,
documentActiveClass = _ref3 [ 1 ] ;
var _ref4 = sidebarName === 'edit-post/block' ? // translators: ARIA label for the Block Settings sidebar tab, selected.
[ Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Block settings (selected)' ) , 'is-active' ] : // translators: ARIA label for the Block Settings sidebar tab, not selected.
[ Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Block settings' ) , '' ] ,
_ref5 = Object ( _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( _ref4 , 2 ) ,
blockAriaLabel = _ref5 [ 0 ] ,
blockActiveClass = _ref5 [ 1 ] ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( _sidebar _header _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] , {
2018-10-24 13:48:53 +02:00
className : "edit-post-sidebar__panel-tabs" ,
2018-10-29 09:37:29 +01:00
closeLabel : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Close settings' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "ul" , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "li" , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "button" , {
2018-10-24 13:48:53 +02:00
onClick : openDocumentSettings ,
2018-10-29 09:37:29 +01:00
className : "edit-post-sidebar__panel-tab " . concat ( documentActiveClass ) ,
"aria-label" : documentAriaLabel ,
"data-label" : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Document' )
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Document' ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "li" , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createElement" ] ) ( "button" , {
2018-10-24 13:48:53 +02:00
onClick : openBlockSettings ,
2018-10-29 09:37:29 +01:00
className : "edit-post-sidebar__panel-tab " . concat ( blockActiveClass ) ,
"aria-label" : blockAriaLabel ,
2018-10-24 13:48:53 +02:00
"data-label" : blockLabel
2018-10-29 09:37:29 +01:00
} , blockLabel ) ) ) ) ;
2018-10-24 13:48:53 +02:00
} ;
2018-10-29 09:37:29 +01:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select ) {
2018-10-24 13:48:53 +02:00
return {
count : select ( 'core/editor' ) . getSelectedBlockCount ( )
} ;
2018-10-29 09:37:29 +01:00
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
2018-10-24 13:48:53 +02:00
var _dispatch = dispatch ( 'core/edit-post' ) ,
openGeneralSidebar = _dispatch . openGeneralSidebar ;
var _dispatch2 = dispatch ( 'core/editor' ) ,
clearSelectedBlock = _dispatch2 . clearSelectedBlock ;
return {
openDocumentSettings : function openDocumentSettings ( ) {
openGeneralSidebar ( 'edit-post/document' ) ;
clearSelectedBlock ( ) ;
} ,
openBlockSettings : function openBlockSettings ( ) {
openGeneralSidebar ( 'edit-post/block' ) ;
}
} ;
} ) ) ( SettingsHeader ) ) ;
2018-10-29 09:37:29 +01:00
/***/ } ) ,
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-sidebar/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / settings - sidebar / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _ _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../ */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/index.js" ) ;
/* harmony import */ var _settings _header _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ../settings-header */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-header/index.js" ) ;
/* harmony import */ var _post _status _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! ../post-status */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-status/index.js" ) ;
/* harmony import */ var _last _revision _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! ../last-revision */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/last-revision/index.js" ) ;
/* harmony import */ var _post _taxonomies _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! ../post-taxonomies */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-taxonomies/index.js" ) ;
/* harmony import */ var _featured _image _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! ../featured-image */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/featured-image/index.js" ) ;
/* harmony import */ var _post _excerpt _ _WEBPACK _IMPORTED _MODULE _12 _ _ = _ _webpack _require _ _ ( /*! ../post-excerpt */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-excerpt/index.js" ) ;
/* harmony import */ var _discussion _panel _ _WEBPACK _IMPORTED _MODULE _13 _ _ = _ _webpack _require _ _ ( /*! ../discussion-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/discussion-panel/index.js" ) ;
/* harmony import */ var _page _attributes _ _WEBPACK _IMPORTED _MODULE _14 _ _ = _ _webpack _require _ _ ( /*! ../page-attributes */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/page-attributes/index.js" ) ;
/* harmony import */ var _meta _boxes _ _WEBPACK _IMPORTED _MODULE _15 _ _ = _ _webpack _require _ _ ( /*! ../../meta-boxes */ "./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/index.js" ) ;
/ * *
* WordPress dependencies
* /
/ * *
* Internal Dependencies
* /
var SettingsSidebar = function SettingsSidebar ( _ref ) {
var sidebarName = _ref . sidebarName ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _ _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] , {
name : sidebarName ,
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Editor settings' )
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _settings _header _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "default" ] , {
sidebarName : sidebarName
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Panel" ] , null , sidebarName === 'edit-post/document' && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _status _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _last _revision _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _taxonomies _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _featured _image _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _post _excerpt _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _discussion _panel _ _WEBPACK _IMPORTED _MODULE _13 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _page _attributes _ _WEBPACK _IMPORTED _MODULE _14 _ _ [ "default" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _meta _boxes _ _WEBPACK _IMPORTED _MODULE _15 _ _ [ "default" ] , {
location : "side"
} ) ) , sidebarName === 'edit-post/block' && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PanelBody" ] , {
className : "edit-post-settings-sidebar__panel-block"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "BlockInspector" ] , null ) ) ) ) ;
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "withSelect" ] ) ( function ( select ) {
var _select = select ( 'core/edit-post' ) ,
getActiveGeneralSidebarName = _select . getActiveGeneralSidebarName ,
isEditorSidebarOpened = _select . isEditorSidebarOpened ;
return {
isEditorSidebarOpened : isEditorSidebarOpened ( ) ,
sidebarName : getActiveGeneralSidebarName ( )
} ;
} ) , Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "ifCondition" ] ) ( function ( _ref2 ) {
var isEditorSidebarOpened = _ref2 . isEditorSidebarOpened ;
return isEditorSidebarOpened ;
} ) ) ( SettingsSidebar ) ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / sidebar / sidebar - header / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! classnames */ "./node_modules/classnames/index.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( classnames _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _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 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../../../keyboard-shortcuts */ "./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var SidebarHeader = function SidebarHeader ( _ref ) {
var children = _ref . children ,
className = _ref . className ,
closeLabel = _ref . closeLabel ,
closeSidebar = _ref . closeSidebar ,
title = _ref . title ;
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" ] ) ( "div" , {
className : "components-panel__header edit-post-sidebar-header__small"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "span" , {
className : "edit-post-sidebar-header__title"
} , title || Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( '(no title)' ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "IconButton" ] , {
onClick : closeSidebar ,
icon : "no-alt" ,
label : closeLabel
} ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : classnames _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) ( 'components-panel__header edit-post-sidebar-header' , className )
} , children , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "IconButton" ] , {
onClick : closeSidebar ,
icon : "no-alt" ,
label : closeLabel ,
shortcut : _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] . toggleSidebar
} ) ) ) ;
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
title : select ( 'core/editor' ) . getEditedPostAttribute ( 'title' )
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
return {
closeSidebar : dispatch ( 'core/edit-post' ) . closeGeneralSidebar
} ;
} ) ) ( SidebarHeader ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / text - editor / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/keycodes */ "@wordpress/keycodes" ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/ * *
* WordPress dependencies
* /
function TextEditor ( _ref ) {
var onExit = _ref . onExit ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-text-editor"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-text-editor__toolbar"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "h2" , null , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "__" ] ) ( 'Editing Code' ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "IconButton" ] , {
onClick : onExit ,
icon : "no-alt" ,
shortcut : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "displayShortcut" ] . secondary ( 'm' )
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "__" ] ) ( 'Exit Code Editor' ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( "div" , {
className : "edit-post-text-editor__body"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PostTitle" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PostTextEditor" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
return {
onExit : function onExit ( ) {
dispatch ( 'core/edit-post' ) . switchEditorMode ( 'visual' ) ;
}
} ;
} ) ( TextEditor ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/visual-editor/block-inspector-button.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / visual - editor / block - inspector - button . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: BlockInspectorButton, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "BlockInspectorButton" , function ( ) { return BlockInspectorButton ; } ) ;
/* 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 lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../../keyboard-shortcuts */ "./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
function BlockInspectorButton ( _ref ) {
var areAdvancedSettingsOpened = _ref . areAdvancedSettingsOpened ,
closeSidebar = _ref . closeSidebar ,
openEditorSidebar = _ref . openEditorSidebar ,
_ref$onClick = _ref . onClick ,
onClick = _ref$onClick === void 0 ? lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "noop" ] : _ref$onClick ,
_ref$small = _ref . small ,
small = _ref$small === void 0 ? false : _ref$small ,
speak = _ref . speak ;
var speakMessage = function speakMessage ( ) {
if ( areAdvancedSettingsOpened ) {
speak ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Block settings closed' ) ) ;
} else {
speak ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Additional settings are now available in the Editor block settings sidebar' ) ) ;
}
} ;
var label = areAdvancedSettingsOpened ? Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Hide Block Settings' ) : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Show Block Settings' ) ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "MenuItem" ] , {
className : "editor-block-settings-menu__control" ,
onClick : Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "flow" ] ) ( areAdvancedSettingsOpened ? closeSidebar : openEditorSidebar , speakMessage , onClick ) ,
icon : "admin-generic" ,
label : small ? label : undefined ,
shortcut : _keyboard _shortcuts _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] . toggleSidebar
} , ! small && label ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
areAdvancedSettingsOpened : select ( 'core/edit-post' ) . getActiveGeneralSidebarName ( ) === 'edit-post/block'
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
return {
openEditorSidebar : function openEditorSidebar ( ) {
return dispatch ( 'core/edit-post' ) . openGeneralSidebar ( 'edit-post/block' ) ;
} ,
closeSidebar : dispatch ( 'core/edit-post' ) . closeGeneralSidebar
} ;
} ) , _wordpress _components _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "withSpokenMessages" ] ) ( BlockInspectorButton ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/components/visual-editor/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / components / visual - editor / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _block _inspector _button _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./block-inspector-button */ "./node_modules/@wordpress/edit-post/build-module/components/visual-editor/block-inspector-button.js" ) ;
/* harmony import */ var _block _settings _menu _plugin _block _settings _menu _group _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ../block-settings-menu/plugin-block-settings-menu-group */ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-group.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
function VisualEditor ( ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "BlockSelectionClearer" ] , {
2018-10-29 09:37:29 +01:00
className : "edit-post-visual-editor editor-styles-wrapper"
2018-10-24 13:48:53 +02:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "EditorGlobalKeyboardShortcuts" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "CopyHandler" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "MultiSelectScrollIntoView" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "WritingFlow" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "ObserveTyping" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "PostTitle" ] , null ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "BlockList" ] , null ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "_BlockSettingsMenuFirstItem" ] , null , function ( _ref ) {
var onClose = _ref . onClose ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _block _inspector _button _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] , {
onClick : onClose
} ) ;
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "_BlockSettingsMenuPluginsExtension" ] , null , function ( _ref2 ) {
var clientIds = _ref2 . clientIds ,
onClose = _ref2 . onClose ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _block _settings _menu _plugin _block _settings _menu _group _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] . Slot , {
fillProps : {
clientIds : clientIds ,
onClose : onClose
}
} ) ;
} ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( VisualEditor ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/editor.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / editor . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _components _layout _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ./components/layout */ "./node_modules/@wordpress/edit-post/build-module/components/layout/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
function Editor ( _ref ) {
var settings = _ref . settings ,
hasFixedToolbar = _ref . hasFixedToolbar ,
focusMode = _ref . focusMode ,
post = _ref . post ,
overridePost = _ref . overridePost ,
onError = _ref . onError ,
props = Object ( _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( _ref , [ "settings" , "hasFixedToolbar" , "focusMode" , "post" , "overridePost" , "onError" ] ) ;
if ( ! post ) {
return null ;
}
var editorSettings = Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , settings , {
hasFixedToolbar : hasFixedToolbar ,
focusMode : focusMode
} ) ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "StrictMode" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "EditorProvider" ] , Object ( _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( {
settings : editorSettings ,
post : Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , post , overridePost )
} , props ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "ErrorBoundary" ] , {
onError : onError
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "createElement" ] ) ( _components _layout _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] , null ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "PostLockedModal" ] , null ) ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withSelect" ] ) ( function ( select , _ref2 ) {
var postId = _ref2 . postId ,
postType = _ref2 . postType ;
return {
hasFixedToolbar : select ( 'core/edit-post' ) . isFeatureActive ( 'fixedToolbar' ) ,
focusMode : select ( 'core/edit-post' ) . isFeatureActive ( 'focusMode' ) ,
post : select ( 'core' ) . getEntityRecord ( 'postType' , postType , postId )
} ;
} ) ( Editor ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / hooks / components / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! no exports provided */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/hooks */ "@wordpress/hooks" ) ;
/* harmony import */ var _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _media _upload _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./media-upload */ "./node_modules/@wordpress/edit-post/build-module/hooks/components/media-upload/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var replaceMediaUpload = function replaceMediaUpload ( ) {
return _media _upload _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ;
} ;
Object ( _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "addFilter" ] ) ( 'editor.MediaUpload' , 'core/edit-post/components/media-upload/replace-media-upload' , replaceMediaUpload ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/hooks/components/media-upload/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / hooks / components / media - upload / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/ * *
* External Dependencies
* /
/ * *
* WordPress dependencies
* /
// Getter for the sake of unit tests.
var getGalleryDetailsMediaFrame = function getGalleryDetailsMediaFrame ( ) {
/ * *
* Custom gallery details frame .
*
* @ link https : //github.com/xwp/wp-core-media-widgets/blob/905edbccfc2a623b73a93dac803c5335519d7837/wp-admin/js/widgets/media-gallery-widget.js
* @ class GalleryDetailsMediaFrame
* @ constructor
* /
return wp . media . view . MediaFrame . Post . extend ( {
/ * *
* Create the default states .
*
* @ return { void }
* /
createStates : function createStates ( ) {
this . states . add ( [ new wp . media . controller . Library ( {
id : 'gallery' ,
title : wp . media . view . l10n . createGalleryTitle ,
priority : 40 ,
toolbar : 'main-gallery' ,
filterable : 'uploaded' ,
multiple : 'add' ,
editable : false ,
library : wp . media . query ( _ . defaults ( {
type : 'image'
} , this . options . library ) )
} ) , new wp . media . controller . GalleryEdit ( {
library : this . options . selection ,
editing : this . options . editing ,
menu : 'gallery' ,
displaySettings : false ,
multiple : true
} ) , new wp . media . controller . GalleryAdd ( ) ] ) ;
}
} ) ;
} ; // the media library image object contains numerous attributes
// we only need this set to display the image in the library
var slimImageObject = function slimImageObject ( img ) {
var attrSet = [ 'sizes' , 'mime' , 'type' , 'subtype' , 'id' , 'url' , 'alt' , 'link' , 'caption' ] ;
return Object ( lodash _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "pick" ] ) ( img , attrSet ) ;
} ;
var getAttachmentsCollection = function getAttachmentsCollection ( ids ) {
return wp . media . query ( {
order : 'ASC' ,
orderby : 'post__in' ,
post _ _in : ids ,
per _page : 100 ,
query : true ,
type : 'image'
} ) ;
} ;
var MediaUpload =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( MediaUpload , _Component ) ;
function MediaUpload ( _ref ) {
var _this ;
var allowedTypes = _ref . allowedTypes ,
_ref$multiple = _ref . multiple ,
multiple = _ref$multiple === void 0 ? false : _ref$multiple ,
_ref$gallery = _ref . gallery ,
gallery = _ref$gallery === void 0 ? false : _ref$gallery ,
_ref$title = _ref . title ,
title = _ref$title === void 0 ? Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Select or Upload Media' ) : _ref$title ,
modalClass = _ref . modalClass ,
value = _ref . value ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , MediaUpload ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( MediaUpload ) . apply ( this , arguments ) ) ;
_this . openModal = _this . openModal . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onOpen = _this . onOpen . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onSelect = _this . onSelect . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onUpdate = _this . onUpdate . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onClose = _this . onClose . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
if ( gallery ) {
var currentState = value ? 'gallery-edit' : 'gallery' ;
var GalleryDetailsMediaFrame = getGalleryDetailsMediaFrame ( ) ;
var attachments = getAttachmentsCollection ( value ) ;
var selection = new wp . media . model . Selection ( attachments . models , {
props : attachments . props . toJSON ( ) ,
multiple : multiple
} ) ;
_this . frame = new GalleryDetailsMediaFrame ( {
2018-10-29 09:37:29 +01:00
mimeType : allowedTypes ,
2018-10-24 13:48:53 +02:00
state : currentState ,
multiple : multiple ,
selection : selection ,
editing : value ? true : false
} ) ;
wp . media . frame = _this . frame ;
} else {
var frameConfig = {
title : title ,
button : {
text : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Select' )
} ,
multiple : multiple
} ;
2018-10-29 09:37:29 +01:00
if ( ! ! allowedTypes ) {
2018-10-24 13:48:53 +02:00
frameConfig . library = {
2018-10-29 09:37:29 +01:00
type : allowedTypes
2018-10-24 13:48:53 +02:00
} ;
}
_this . frame = wp . media ( frameConfig ) ;
}
if ( modalClass ) {
_this . frame . $el . addClass ( modalClass ) ;
} // When an image is selected in the media frame...
_this . frame . on ( 'select' , _this . onSelect ) ;
_this . frame . on ( 'update' , _this . onUpdate ) ;
_this . frame . on ( 'open' , _this . onOpen ) ;
_this . frame . on ( 'close' , _this . onClose ) ;
return _this ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( MediaUpload , [ {
key : "componentWillUnmount" ,
value : function componentWillUnmount ( ) {
this . frame . remove ( ) ;
}
} , {
key : "onUpdate" ,
value : function onUpdate ( selections ) {
var _this$props = this . props ,
onSelect = _this$props . onSelect ,
_this$props$multiple = _this$props . multiple ,
multiple = _this$props$multiple === void 0 ? false : _this$props$multiple ;
var state = this . frame . state ( ) ;
var selectedImages = selections || state . get ( 'selection' ) ;
if ( ! selectedImages || ! selectedImages . models . length ) {
return ;
}
if ( multiple ) {
onSelect ( selectedImages . models . map ( function ( model ) {
return slimImageObject ( model . toJSON ( ) ) ;
} ) ) ;
} else {
onSelect ( slimImageObject ( selectedImages . models [ 0 ] . toJSON ( ) ) ) ;
}
}
} , {
key : "onSelect" ,
value : function onSelect ( ) {
var _this$props2 = this . props ,
onSelect = _this$props2 . onSelect ,
_this$props2$multiple = _this$props2 . multiple ,
multiple = _this$props2$multiple === void 0 ? false : _this$props2$multiple ; // Get media attachment details from the frame state
var attachment = this . frame . state ( ) . get ( 'selection' ) . toJSON ( ) ;
onSelect ( multiple ? attachment : attachment [ 0 ] ) ;
}
} , {
key : "onOpen" ,
value : function onOpen ( ) {
if ( ! this . props . value ) {
return ;
}
if ( ! this . props . gallery ) {
var selection = this . frame . state ( ) . get ( 'selection' ) ;
Object ( lodash _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "castArray" ] ) ( this . props . value ) . map ( function ( id ) {
selection . add ( wp . media . attachment ( id ) ) ;
} ) ;
} // load the images so they are available in the media modal.
getAttachmentsCollection ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "castArray" ] ) ( this . props . value ) ) . more ( ) ;
}
} , {
key : "onClose" ,
value : function onClose ( ) {
var onClose = this . props . onClose ;
if ( onClose ) {
onClose ( ) ;
}
}
} , {
key : "openModal" ,
value : function openModal ( ) {
this . frame . open ( ) ;
}
} , {
key : "render" ,
value : function render ( ) {
return this . props . render ( {
open : this . openModal
} ) ;
}
} ] ) ;
return MediaUpload ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "Component" ] ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( MediaUpload ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/hooks/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / hooks / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! no exports provided */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _components _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./components */ "./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js" ) ;
/* harmony import */ var _validate _multiple _use _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./validate-multiple-use */ "./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* Internal dependencies
* /
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / hooks / validate - multiple - use / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! no exports provided */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/blocks */ "@wordpress/blocks" ) ;
/* harmony import */ var _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/hooks */ "@wordpress/hooks" ) ;
/* harmony import */ var _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
var enhance = Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "compose" ] ) (
/ * *
* For blocks whose block type doesn ' t support ` multiple ` , provides the
* wrapped component with ` originalBlockClientId ` -- a reference to the
* first block of the same type in the content -- if and only if that
* "original" block is not the current one . Thus , an inexisting
* ` originalBlockClientId ` prop signals that the block is valid .
*
* @ param { Component } WrappedBlockEdit A filtered BlockEdit instance .
*
* @ return { Component } Enhanced component with merged state data props .
* /
Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withSelect" ] ) ( function ( select , block ) {
var blocks = select ( 'core/editor' ) . getBlocks ( ) ;
var multiple = Object ( _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "hasBlockSupport" ] ) ( block . name , 'multiple' , true ) ; // For block types with `multiple` support, there is no "original
// block" to be found in the content, as the block itself is valid.
if ( multiple ) {
return { } ;
} // Otherwise, only pass `originalBlockClientId` if it refers to a different
// block from the current one.
var firstOfSameType = Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "find" ] ) ( blocks , function ( _ref ) {
var name = _ref . name ;
return block . name === name ;
} ) ;
var isInvalid = firstOfSameType && firstOfSameType . clientId !== block . clientId ;
return {
originalBlockClientId : isInvalid && firstOfSameType . clientId
} ;
} ) , Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "withDispatch" ] ) ( function ( dispatch , _ref2 ) {
var originalBlockClientId = _ref2 . originalBlockClientId ;
return {
selectFirst : function selectFirst ( ) {
return dispatch ( 'core/editor' ) . selectBlock ( originalBlockClientId ) ;
}
} ;
} ) ) ;
var withMultipleValidation = Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "createHigherOrderComponent" ] ) ( function ( BlockEdit ) {
return enhance ( function ( _ref3 ) {
var originalBlockClientId = _ref3 . originalBlockClientId ,
selectFirst = _ref3 . selectFirst ,
props = Object ( _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( _ref3 , [ "originalBlockClientId" , "selectFirst" ] ) ;
if ( ! originalBlockClientId ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( BlockEdit , props ) ;
}
var blockType = Object ( _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "getBlockType" ] ) ( props . name ) ;
var outboundType = getOutboundType ( props . name ) ;
return [ Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "div" , {
key : "invalid-preview" ,
style : {
minHeight : '60px'
}
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( BlockEdit , Object ( _babel _runtime _helpers _esm _extends _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( {
key : "block-edit"
} , props ) ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "Warning" ] , {
key : "multiple-use-warning" ,
actions : [ Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Button" ] , {
key : "find-original" ,
isLarge : true ,
onClick : selectFirst
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "__" ] ) ( 'Find original' ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Button" ] , {
key : "remove" ,
isLarge : true ,
onClick : function onClick ( ) {
return props . onReplace ( [ ] ) ;
}
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "__" ] ) ( 'Remove' ) ) , outboundType && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Button" ] , {
key : "transform" ,
isLarge : true ,
onClick : function onClick ( ) {
return props . onReplace ( Object ( _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "createBlock" ] ) ( outboundType . name , props . attributes ) ) ;
}
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "__" ] ) ( 'Transform into:' ) , ' ' , outboundType . title ) ]
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( "strong" , null , blockType . title , ": " ) , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "__" ] ) ( 'This block can only be used once.' ) ) ] ;
} ) ;
} , 'withMultipleValidation' ) ;
/ * *
* Given a base block name , returns the default block type to which to offer
* transforms .
*
* @ param { string } blockName Base block name .
*
* @ return { ? Object } The chosen default block type .
* /
function getOutboundType ( blockName ) {
// Grab the first outbound transform
var transform = Object ( _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "findTransform" ] ) ( Object ( _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "getBlockTransforms" ] ) ( 'to' , blockName ) , function ( _ref4 ) {
var type = _ref4 . type ,
blocks = _ref4 . blocks ;
return type === 'block' && blocks . length === 1 ;
} // What about when .length > 1?
) ;
if ( ! transform ) {
return null ;
}
return Object ( _wordpress _blocks _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "getBlockType" ] ) ( transform . blocks [ 0 ] ) ;
}
Object ( _wordpress _hooks _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "addFilter" ] ) ( 'editor.BlockEdit' , 'core/edit-post/validate-multiple-use/with-multiple-validation' , withMultipleValidation ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: reinitializeEditor, initializeEditor, PluginBlockSettingsMenuItem, PluginPostPublishPanel, PluginPostStatusInfo, PluginPrePublishPanel, PluginSidebar, PluginSidebarMoreMenuItem */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "reinitializeEditor" , function ( ) { return reinitializeEditor ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "initializeEditor" , function ( ) { return initializeEditor ; } ) ;
/* 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 _core _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/core-data */ "@wordpress/core-data" ) ;
/* harmony import */ var _wordpress _core _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _core _data _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/nux */ "@wordpress/nux" ) ;
/* harmony import */ var _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _nux _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/viewport */ "@wordpress/viewport" ) ;
/* harmony import */ var _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _viewport _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _block _library _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/block-library */ "@wordpress/block-library" ) ;
/* harmony import */ var _wordpress _block _library _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _block _library _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
2018-10-29 09:37:29 +01:00
/* harmony import */ var _hooks _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ./hooks */ "./node_modules/@wordpress/edit-post/build-module/hooks/index.js" ) ;
/* harmony import */ var _plugins _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! ./plugins */ "./node_modules/@wordpress/edit-post/build-module/plugins/index.js" ) ;
/* harmony import */ var _store _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! ./store */ "./node_modules/@wordpress/edit-post/build-module/store/index.js" ) ;
/* harmony import */ var _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! ./editor */ "./node_modules/@wordpress/edit-post/build-module/editor.js" ) ;
/* harmony import */ var _components _block _settings _menu _plugin _block _settings _menu _item _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! ./components/block-settings-menu/plugin-block-settings-menu-item */ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js" ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PluginBlockSettingsMenuItem" , function ( ) { return _components _block _settings _menu _plugin _block _settings _menu _item _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "default" ] ; } ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:37:29 +01:00
/* harmony import */ var _components _sidebar _plugin _post _publish _panel _ _WEBPACK _IMPORTED _MODULE _12 _ _ = _ _webpack _require _ _ ( /*! ./components/sidebar/plugin-post-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js" ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PluginPostPublishPanel" , function ( ) { return _components _sidebar _plugin _post _publish _panel _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "default" ] ; } ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:37:29 +01:00
/* harmony import */ var _components _sidebar _plugin _post _status _info _ _WEBPACK _IMPORTED _MODULE _13 _ _ = _ _webpack _require _ _ ( /*! ./components/sidebar/plugin-post-status-info */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js" ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PluginPostStatusInfo" , function ( ) { return _components _sidebar _plugin _post _status _info _ _WEBPACK _IMPORTED _MODULE _13 _ _ [ "default" ] ; } ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:37:29 +01:00
/* harmony import */ var _components _sidebar _plugin _pre _publish _panel _ _WEBPACK _IMPORTED _MODULE _14 _ _ = _ _webpack _require _ _ ( /*! ./components/sidebar/plugin-pre-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js" ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PluginPrePublishPanel" , function ( ) { return _components _sidebar _plugin _pre _publish _panel _ _WEBPACK _IMPORTED _MODULE _14 _ _ [ "default" ] ; } ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:37:29 +01:00
/* harmony import */ var _components _sidebar _plugin _sidebar _ _WEBPACK _IMPORTED _MODULE _15 _ _ = _ _webpack _require _ _ ( /*! ./components/sidebar/plugin-sidebar */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js" ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PluginSidebar" , function ( ) { return _components _sidebar _plugin _sidebar _ _WEBPACK _IMPORTED _MODULE _15 _ _ [ "default" ] ; } ) ;
2018-10-24 13:48:53 +02:00
2018-10-29 09:37:29 +01:00
/* harmony import */ var _components _header _plugin _sidebar _more _menu _item _ _WEBPACK _IMPORTED _MODULE _16 _ _ = _ _webpack _require _ _ ( /*! ./components/header/plugin-sidebar-more-menu-item */ "./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js" ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PluginSidebarMoreMenuItem" , function ( ) { return _components _header _plugin _sidebar _more _menu _item _ _WEBPACK _IMPORTED _MODULE _16 _ _ [ "default" ] ; } ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* Reinitializes the editor after the user chooses to reboot the editor after
* an unhandled error occurs , replacing previously mounted editor element using
* an initial state from prior to the crash .
*
* @ param { Object } postType Post type of the post to edit .
* @ param { Object } postId ID of the post to edit .
* @ param { Element } target DOM node in which editor is rendered .
* @ param { ? Object } settings Editor settings object .
* @ param { Object } overridePost Post properties to override .
* /
function reinitializeEditor ( postType , postId , target , settings , overridePost ) {
Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "unmountComponentAtNode" ] ) ( target ) ;
var reboot = reinitializeEditor . bind ( null , postType , postId , target , settings , overridePost ) ;
2018-10-29 09:37:29 +01:00
Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "render" ] ) ( Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "default" ] , {
2018-10-24 13:48:53 +02:00
settings : settings ,
onError : reboot ,
postId : postId ,
postType : postType ,
overridePost : overridePost ,
recovery : true
} ) , target ) ;
}
/ * *
* Initializes and returns an instance of Editor .
*
* The return value of this function is not necessary if we change where we
* call initializeEditor ( ) . This is due to metaBox timing .
*
* @ param { string } id Unique identifier for editor instance .
* @ param { Object } postType Post type of the post to edit .
* @ param { Object } postId ID of the post to edit .
* @ param { ? Object } settings Editor settings object .
* @ param { Object } overridePost Post properties to override .
* /
function initializeEditor ( id , postType , postId , settings , overridePost ) {
var target = document . getElementById ( id ) ;
var reboot = reinitializeEditor . bind ( null , postType , postId , target , settings , overridePost ) ;
Object ( _wordpress _block _library _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "registerCoreBlocks" ] ) ( ) ;
Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "dispatch" ] ) ( 'core/nux' ) . triggerGuide ( [ 'core/editor.inserter' , 'core/editor.settings' , 'core/editor.preview' , 'core/editor.publish' ] ) ;
2018-10-29 09:37:29 +01:00
Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "render" ] ) ( Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "default" ] , {
2018-10-24 13:48:53 +02:00
settings : settings ,
onError : reboot ,
postId : postId ,
postType : postType ,
overridePost : overridePost
} ) , target ) ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / keyboard - shortcuts . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/keycodes */ "@wordpress/keycodes" ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/ * *
* WordPress dependencies
* /
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( {
toggleEditorMode : {
raw : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "rawShortcut" ] . secondary ( 'm' ) ,
display : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcut" ] . secondary ( 'm' )
} ,
toggleSidebar : {
raw : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "rawShortcut" ] . primaryShift ( ',' ) ,
display : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "displayShortcut" ] . primaryShift ( ',' ) ,
ariaLabel : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "shortcutAriaLabel" ] . primaryShift ( ',' )
}
} ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / plugins / copy - content - menu - item / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _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 _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/compose */ "@wordpress/compose" ) ;
/* harmony import */ var _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/ * *
* WordPress dependencies
* /
function CopyContentMenuItem ( _ref ) {
var editedPostContent = _ref . editedPostContent ,
hasCopied = _ref . hasCopied ,
setState = _ref . setState ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "ClipboardButton" ] , {
text : editedPostContent ,
className : "components-menu-item__button" ,
onCopy : function onCopy ( ) {
return setState ( {
hasCopied : true
} ) ;
} ,
onFinishCopy : function onFinishCopy ( ) {
return setState ( {
hasCopied : false
} ) ;
}
} , hasCopied ? Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Copied!' ) : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Copy All Content' ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "compose" ] ) ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withSelect" ] ) ( function ( select ) {
return {
editedPostContent : select ( 'core/editor' ) . getEditedPostAttribute ( 'content' )
} ;
} ) , Object ( _wordpress _compose _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "withState" ] ) ( {
hasCopied : false
} ) ) ( CopyContentMenuItem ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/plugins/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / plugins / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/plugins */ "@wordpress/plugins" ) ;
/* harmony import */ var _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _copy _content _menu _item _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./copy-content-menu-item */ "./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js" ) ;
/* harmony import */ var _keyboard _shortcuts _help _menu _item _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ./keyboard-shortcuts-help-menu-item */ "./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js" ) ;
/* harmony import */ var _components _header _tools _more _menu _group _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ../components/header/tools-more-menu-group */ "./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
Object ( _wordpress _plugins _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "registerPlugin" ] ) ( 'edit-post' , {
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" ] ) ( _components _header _tools _more _menu _group _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] , null , function ( _ref ) {
var onClose = _ref . onClose ;
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 _1 _ _ [ "MenuItem" ] , {
role : "menuitem" ,
href : "edit.php?post_type=wp_block"
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "__" ] ) ( 'Manage All Reusable Blocks' ) ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _keyboard _shortcuts _help _menu _item _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] , {
onSelect : onClose
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _copy _content _menu _item _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] , null ) ) ;
} ) ) ;
}
} ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / plugins / keyboard - shortcuts - help - menu - item / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: KeyboardShortcutsHelpMenuItem, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "KeyboardShortcutsHelpMenuItem" , function ( ) { return KeyboardShortcutsHelpMenuItem ; } ) ;
/* 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 _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _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 _keycodes _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/keycodes */ "@wordpress/keycodes" ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/ * *
* WordPress Dependencies
* /
function KeyboardShortcutsHelpMenuItem ( _ref ) {
var openModal = _ref . openModal ,
onSelect = _ref . onSelect ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "MenuItem" ] , {
onClick : function onClick ( ) {
onSelect ( ) ;
openModal ( 'edit-post/keyboard-shortcut-help' ) ;
} ,
shortcut : _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "displayShortcut" ] . access ( 'h' )
} , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "__" ] ) ( 'Keyboard Shortcuts' ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "withDispatch" ] ) ( function ( dispatch ) {
var _dispatch = dispatch ( 'core/edit-post' ) ,
openModal = _dispatch . openModal ;
return {
openModal : openModal
} ;
} ) ( KeyboardShortcutsHelpMenuItem ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/actions.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / actions . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-29 09:37:29 +01:00
/*! exports provided: openGeneralSidebar, closeGeneralSidebar, openModal, closeModal, openPublishSidebar, closePublishSidebar, togglePublishSidebar, toggleEditorPanelEnabled, toggleEditorPanelOpened, toggleGeneralSidebarEditorPanel, toggleFeature, switchEditorMode, togglePinnedPluginItem, setAvailableMetaBoxesPerLocation, requestMetaBoxUpdates, metaBoxUpdatesSuccess */
2018-10-24 13:48:53 +02:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "openGeneralSidebar" , function ( ) { return openGeneralSidebar ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "closeGeneralSidebar" , function ( ) { return closeGeneralSidebar ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "openModal" , function ( ) { return openModal ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "closeModal" , function ( ) { return closeModal ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "openPublishSidebar" , function ( ) { return openPublishSidebar ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "closePublishSidebar" , function ( ) { return closePublishSidebar ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "togglePublishSidebar" , function ( ) { return togglePublishSidebar ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "toggleEditorPanelEnabled" , function ( ) { return toggleEditorPanelEnabled ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "toggleEditorPanelOpened" , function ( ) { return toggleEditorPanelOpened ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "toggleGeneralSidebarEditorPanel" , function ( ) { return toggleGeneralSidebarEditorPanel ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "toggleFeature" , function ( ) { return toggleFeature ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "switchEditorMode" , function ( ) { return switchEditorMode ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "togglePinnedPluginItem" , function ( ) { return togglePinnedPluginItem ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "setAvailableMetaBoxesPerLocation" , function ( ) { return setAvailableMetaBoxesPerLocation ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "requestMetaBoxUpdates" , function ( ) { return requestMetaBoxUpdates ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "metaBoxUpdatesSuccess" , function ( ) { return metaBoxUpdatesSuccess ; } ) ;
/* harmony import */ var _wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/deprecated */ "@wordpress/deprecated" ) ;
/* harmony import */ var _wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/ * *
* WordPress dependencies
* /
/ * *
* Returns an action object used in signalling that the user opened an editor sidebar .
*
* @ param { string } name Sidebar name to be opened .
*
* @ return { Object } Action object .
* /
function openGeneralSidebar ( name ) {
return {
type : 'OPEN_GENERAL_SIDEBAR' ,
name : name
} ;
}
/ * *
* Returns an action object signalling that the user closed the sidebar .
*
* @ return { Object } Action object .
* /
function closeGeneralSidebar ( ) {
return {
type : 'CLOSE_GENERAL_SIDEBAR'
} ;
}
/ * *
2018-10-30 05:47:50 +01:00
* Returns an action object used in signalling that the user opened a modal .
2018-10-24 13:48:53 +02:00
*
* @ param { string } name A string that uniquely identifies the modal .
*
* @ return { Object } Action object .
* /
function openModal ( name ) {
return {
type : 'OPEN_MODAL' ,
name : name
} ;
}
/ * *
2018-10-30 05:47:50 +01:00
* Returns an action object signalling that the user closed a modal .
2018-10-24 13:48:53 +02:00
*
* @ return { Object } Action object .
* /
function closeModal ( ) {
return {
type : 'CLOSE_MODAL'
} ;
}
/ * *
* Returns an action object used in signalling that the user opened the publish
* sidebar .
*
* @ return { Object } Action object
* /
function openPublishSidebar ( ) {
return {
type : 'OPEN_PUBLISH_SIDEBAR'
} ;
}
/ * *
* Returns an action object used in signalling that the user closed the
* publish sidebar .
*
* @ return { Object } Action object .
* /
function closePublishSidebar ( ) {
return {
type : 'CLOSE_PUBLISH_SIDEBAR'
} ;
}
/ * *
* Returns an action object used in signalling that the user toggles the publish sidebar .
*
* @ return { Object } Action object
* /
function togglePublishSidebar ( ) {
return {
type : 'TOGGLE_PUBLISH_SIDEBAR'
} ;
}
/ * *
* Returns an action object used to enable or disable a panel in the editor .
*
* @ param { string } panelName A string that identifies the panel to enable or disable .
*
* @ return { Object } Action object .
* /
function toggleEditorPanelEnabled ( panelName ) {
return {
type : 'TOGGLE_PANEL_ENABLED' ,
panelName : panelName
} ;
}
/ * *
* Returns an action object used to open or close a panel in the editor .
*
* @ param { string } panelName A string that identifies the panel to open or close .
*
* @ return { Object } Action object .
* /
function toggleEditorPanelOpened ( panelName ) {
return {
type : 'TOGGLE_PANEL_OPENED' ,
panelName : panelName
} ;
}
/ * *
* Returns an action object used to open or close a panel in the editor .
*
* @ param { string } panelName A string that identifies the panel to open or close .
*
* @ return { Object } Action object .
* /
function toggleGeneralSidebarEditorPanel ( panelName ) {
_wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default ( ) ( 'toggleGeneralSidebarEditorPanel' , {
alternative : 'toggleEditorPanelOpened' ,
plugin : 'Gutenberg' ,
version : '4.3.0'
} ) ;
return toggleEditorPanelOpened ( panelName ) ;
}
/ * *
* Returns an action object used to toggle a feature flag .
*
* @ param { string } feature Feature name .
*
* @ return { Object } Action object .
* /
function toggleFeature ( feature ) {
return {
type : 'TOGGLE_FEATURE' ,
feature : feature
} ;
}
function switchEditorMode ( mode ) {
return {
type : 'SWITCH_MODE' ,
mode : mode
} ;
}
/ * *
* Returns an action object used to toggle a plugin name flag .
*
* @ param { string } pluginName Plugin name .
*
* @ return { Object } Action object .
* /
function togglePinnedPluginItem ( pluginName ) {
return {
type : 'TOGGLE_PINNED_PLUGIN_ITEM' ,
pluginName : pluginName
} ;
}
/ * *
* Returns an action object used in signaling
* what Meta boxes are available in which location .
*
* @ param { Object } metaBoxesPerLocation Meta boxes per location .
*
* @ return { Object } Action object .
* /
function setAvailableMetaBoxesPerLocation ( metaBoxesPerLocation ) {
return {
type : 'SET_META_BOXES_PER_LOCATIONS' ,
metaBoxesPerLocation : metaBoxesPerLocation
} ;
}
/ * *
* Returns an action object used to request meta box update .
*
* @ return { Object } Action object .
* /
function requestMetaBoxUpdates ( ) {
return {
type : 'REQUEST_META_BOX_UPDATES'
} ;
}
/ * *
* Returns an action object used signal a successful meta box update .
*
* @ return { Object } Action object .
* /
function metaBoxUpdatesSuccess ( ) {
return {
type : 'META_BOX_UPDATES_SUCCESS'
} ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/defaults.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / defaults . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: PREFERENCES_DEFAULTS */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "PREFERENCES_DEFAULTS" , function ( ) { return PREFERENCES _DEFAULTS ; } ) ;
var PREFERENCES _DEFAULTS = {
editorMode : 'visual' ,
isGeneralSidebarDismissed : false ,
panels : {
'post-status' : {
opened : true
}
} ,
features : {
fixedToolbar : false
} ,
pinnedPluginItems : { }
} ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/effects.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / effects . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _toConsumableArray _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
/* harmony import */ var _wordpress _a11y _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/a11y */ "@wordpress/a11y" ) ;
/* harmony import */ var _wordpress _a11y _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _a11y _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _api _fetch _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/api-fetch */ "@wordpress/api-fetch" ) ;
/* harmony import */ var _wordpress _api _fetch _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _api _fetch _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _actions _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! ./actions */ "./node_modules/@wordpress/edit-post/build-module/store/actions.js" ) ;
/* harmony import */ var _selectors _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! ./selectors */ "./node_modules/@wordpress/edit-post/build-module/store/selectors.js" ) ;
/* harmony import */ var _utils _meta _boxes _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! ../utils/meta-boxes */ "./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js" ) ;
/* harmony import */ var _utils _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! ./utils */ "./node_modules/@wordpress/edit-post/build-module/store/utils.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var effects = {
SET _META _BOXES _PER _LOCATIONS : function SET _META _BOXES _PER _LOCATIONS ( action , store ) {
// Allow toggling metaboxes panels
// We need to wait for all scripts to load
// If the meta box loads the post script, it will already trigger this.
// After merge in Core, make sure to drop the timeout and update the postboxes script
// to avoid the double binding.
setTimeout ( function ( ) {
var postType = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/editor' ) . getCurrentPostType ( ) ;
if ( window . postboxes . page !== postType ) {
window . postboxes . add _postbox _toggles ( postType ) ;
}
} ) ;
var wasSavingPost = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/editor' ) . isSavingPost ( ) ;
var wasAutosavingPost = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/editor' ) . isAutosavingPost ( ) ; // Save metaboxes when performing a full save on the post.
Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "subscribe" ] ) ( function ( ) {
var isSavingPost = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/editor' ) . isSavingPost ( ) ;
var isAutosavingPost = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/editor' ) . isAutosavingPost ( ) ;
var hasActiveMetaBoxes = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/edit-post' ) . hasMetaBoxes ( ) ; // Save metaboxes on save completion when past save wasn't an autosave.
var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && wasSavingPost && ! wasAutosavingPost && ! isSavingPost && ! isAutosavingPost ; // Save current state for next inspection.
wasSavingPost = isSavingPost ;
wasAutosavingPost = isAutosavingPost ;
if ( shouldTriggerMetaboxesSave ) {
store . dispatch ( Object ( _actions _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "requestMetaBoxUpdates" ] ) ( ) ) ;
}
} ) ;
} ,
REQUEST _META _BOX _UPDATES : function REQUEST _META _BOX _UPDATES ( action , store ) {
var state = store . getState ( ) ; // Additional data needed for backwards compatibility.
// If we do not provide this data, the post will be overridden with the default values.
var post = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/editor' ) . getCurrentPost ( state ) ;
var additionalData = [ post . comment _status ? [ 'comment_status' , post . comment _status ] : false , post . ping _status ? [ 'ping_status' , post . ping _status ] : false , post . sticky ? [ 'sticky' , post . sticky ] : false , [ 'post_author' , post . author ] ] . filter ( Boolean ) ; // We gather all the metaboxes locations data and the base form data
var baseFormData = new window . FormData ( document . querySelector ( '.metabox-base-form' ) ) ;
var formDataToMerge = [ baseFormData ] . concat ( Object ( _babel _runtime _helpers _esm _toConsumableArray _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( Object ( _selectors _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "getActiveMetaBoxLocations" ] ) ( state ) . map ( function ( location ) {
return new window . FormData ( Object ( _utils _meta _boxes _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "getMetaBoxContainer" ] ) ( location ) ) ;
} ) ) ) ; // Merge all form data objects into a single one.
var formData = Object ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "reduce" ] ) ( formDataToMerge , function ( memo , currentFormData ) {
var _iteratorNormalCompletion = true ;
var _didIteratorError = false ;
var _iteratorError = undefined ;
try {
for ( var _iterator = currentFormData [ Symbol . iterator ] ( ) , _step ; ! ( _iteratorNormalCompletion = ( _step = _iterator . next ( ) ) . done ) ; _iteratorNormalCompletion = true ) {
var _step$value = Object ( _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( _step . value , 2 ) ,
key = _step$value [ 0 ] ,
value = _step$value [ 1 ] ;
memo . append ( key , value ) ;
}
} catch ( err ) {
_didIteratorError = true ;
_iteratorError = err ;
} finally {
try {
if ( ! _iteratorNormalCompletion && _iterator . return != null ) {
_iterator . return ( ) ;
}
} finally {
if ( _didIteratorError ) {
throw _iteratorError ;
}
}
}
return memo ;
} , new window . FormData ( ) ) ;
additionalData . forEach ( function ( _ref ) {
var _ref2 = Object ( _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( _ref , 2 ) ,
key = _ref2 [ 0 ] ,
value = _ref2 [ 1 ] ;
return formData . append ( key , value ) ;
} ) ; // Save the metaboxes
_wordpress _api _fetch _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default ( ) ( {
url : window . _wpMetaBoxUrl ,
method : 'POST' ,
body : formData ,
parse : false
} ) . then ( function ( ) {
return store . dispatch ( Object ( _actions _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "metaBoxUpdatesSuccess" ] ) ( ) ) ;
} ) ;
} ,
SWITCH _MODE : function SWITCH _MODE ( action ) {
// Unselect blocks when we switch to the code editor.
if ( action . mode !== 'visual' ) {
Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "dispatch" ] ) ( 'core/editor' ) . clearSelectedBlock ( ) ;
}
var message = action . mode === 'visual' ? Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Visual editor selected' ) : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "__" ] ) ( 'Code editor selected' ) ;
Object ( _wordpress _a11y _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "speak" ] ) ( message , 'assertive' ) ;
} ,
INIT : function INIT ( _ , store ) {
// Select the block settings tab when the selected block changes
Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "subscribe" ] ) ( Object ( _utils _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "onChangeListener" ] ) ( function ( ) {
return ! ! Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/editor' ) . getBlockSelectionStart ( ) ;
} , function ( hasBlockSelection ) {
if ( ! Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/edit-post' ) . isEditorSidebarOpened ( ) ) {
return ;
}
if ( hasBlockSelection ) {
store . dispatch ( Object ( _actions _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "openGeneralSidebar" ] ) ( 'edit-post/block' ) ) ;
} else {
store . dispatch ( Object ( _actions _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "openGeneralSidebar" ] ) ( 'edit-post/document' ) ) ;
}
} ) ) ;
var isMobileViewPort = function isMobileViewPort ( ) {
return Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "select" ] ) ( 'core/viewport' ) . isViewportMatch ( '< medium' ) ;
} ;
var adjustSidebar = function ( ) {
// contains the sidebar we close when going to viewport sizes lower than medium.
// This allows to reopen it when going again to viewport sizes greater than medium.
var sidebarToReOpenOnExpand = null ;
return function ( isSmall ) {
if ( isSmall ) {
sidebarToReOpenOnExpand = Object ( _selectors _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "getActiveGeneralSidebarName" ] ) ( store . getState ( ) ) ;
if ( sidebarToReOpenOnExpand ) {
store . dispatch ( Object ( _actions _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "closeGeneralSidebar" ] ) ( ) ) ;
}
} else if ( sidebarToReOpenOnExpand && ! Object ( _selectors _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "getActiveGeneralSidebarName" ] ) ( store . getState ( ) ) ) {
store . dispatch ( Object ( _actions _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "openGeneralSidebar" ] ) ( sidebarToReOpenOnExpand ) ) ;
}
} ;
} ( ) ;
adjustSidebar ( isMobileViewPort ( ) ) ; // Collapse sidebar when viewport shrinks.
// Reopen sidebar it if viewport expands and it was closed because of a previous shrink.
Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "subscribe" ] ) ( Object ( _utils _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "onChangeListener" ] ) ( isMobileViewPort , adjustSidebar ) ) ;
}
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( effects ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _reducer _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./reducer */ "./node_modules/@wordpress/edit-post/build-module/store/reducer.js" ) ;
/* harmony import */ var _middlewares _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./middlewares */ "./node_modules/@wordpress/edit-post/build-module/store/middlewares.js" ) ;
/* harmony import */ var _actions _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ./actions */ "./node_modules/@wordpress/edit-post/build-module/store/actions.js" ) ;
/* harmony import */ var _selectors _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./selectors */ "./node_modules/@wordpress/edit-post/build-module/store/selectors.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* WordPress Dependencies
* /
/ * *
* Internal dependencies
* /
var store = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "registerStore" ] ) ( 'core/edit-post' , {
reducer : _reducer _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ,
actions : _actions _ _WEBPACK _IMPORTED _MODULE _3 _ _ ,
selectors : _selectors _ _WEBPACK _IMPORTED _MODULE _4 _ _ ,
persist : [ 'preferences' ]
} ) ;
Object ( _middlewares _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( store ) ;
store . dispatch ( {
type : 'INIT'
} ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( store ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/middlewares.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / middlewares . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _toConsumableArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var refx _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! refx */ "./node_modules/refx/refx.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var refx _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( refx _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _effects _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ./effects */ "./node_modules/@wordpress/edit-post/build-module/store/effects.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* Applies the custom middlewares used specifically in the editor module .
*
* @ param { Object } store Store Object .
*
* @ return { Object } Update Store Object .
* /
function applyMiddlewares ( store ) {
var middlewares = [ refx _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default ( ) ( _effects _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ] ;
var enhancedDispatch = function enhancedDispatch ( ) {
throw new Error ( 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.' ) ;
} ;
var chain = [ ] ;
var middlewareAPI = {
getState : store . getState ,
dispatch : function dispatch ( ) {
return enhancedDispatch . apply ( void 0 , arguments ) ;
}
} ;
chain = middlewares . map ( function ( middleware ) {
return middleware ( middlewareAPI ) ;
} ) ;
enhancedDispatch = lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "flowRight" ] . apply ( void 0 , Object ( _babel _runtime _helpers _esm _toConsumableArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( chain ) ) ( store . dispatch ) ;
store . dispatch = enhancedDispatch ;
return store ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( applyMiddlewares ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/reducer.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / reducer . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: DEFAULT_ACTIVE_GENERAL_SIDEBAR, preferences, activeGeneralSidebar, panel, activeModal, publishSidebarActive, isSavingMetaBoxes, metaBoxLocations, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "DEFAULT_ACTIVE_GENERAL_SIDEBAR" , function ( ) { return DEFAULT _ACTIVE _GENERAL _SIDEBAR ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "preferences" , function ( ) { return preferences ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "activeGeneralSidebar" , function ( ) { return activeGeneralSidebar ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "panel" , function ( ) { return panel ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "activeModal" , function ( ) { return activeModal ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "publishSidebarActive" , function ( ) { return publishSidebarActive ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isSavingMetaBoxes" , function ( ) { return isSavingMetaBoxes ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "metaBoxLocations" , function ( ) { return metaBoxLocations ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/data */ "@wordpress/data" ) ;
/* harmony import */ var _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var _defaults _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./defaults */ "./node_modules/@wordpress/edit-post/build-module/store/defaults.js" ) ;
2018-10-24 13:48:53 +02:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* The default active general sidebar : The "Document" tab .
*
* @ type { string }
* /
var DEFAULT _ACTIVE _GENERAL _SIDEBAR = 'edit-post/document' ;
/ * *
* Reducer returning the user preferences .
*
* @ param { Object } state Current state .
* @ param { string } state . mode Current editor mode , either
* "visual" or "text" .
* @ param { boolean } state . isGeneralSidebarDismissed Whether general sidebar is
* dismissed . False by default
* or when closing general
* sidebar , true when opening
* sidebar .
* @ param { boolean } state . isSidebarOpened Whether the sidebar is
* opened or closed .
* @ param { Object } state . panels The state of the different
* sidebar panels .
* @ param { Object } action Dispatched action .
*
* @ return { Object } Updated state .
* /
var preferences = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "combineReducers" ] ) ( {
isGeneralSidebarDismissed : function isGeneralSidebarDismissed ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : false ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'OPEN_GENERAL_SIDEBAR' :
case 'CLOSE_GENERAL_SIDEBAR' :
return action . type === 'CLOSE_GENERAL_SIDEBAR' ;
}
return state ;
} ,
panels : function panels ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : _defaults _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PREFERENCES_DEFAULTS" ] . panels ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'TOGGLE_PANEL_ENABLED' :
{
var panelName = action . panelName ;
return Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , state , Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , panelName , Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , state [ panelName ] , {
enabled : ! Object ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "get" ] ) ( state , [ panelName , 'enabled' ] , true )
} ) ) ) ;
}
case 'TOGGLE_PANEL_OPENED' :
{
var _panelName = action . panelName ;
var isOpen = state [ _panelName ] === true || Object ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "get" ] ) ( state , [ _panelName , 'opened' ] , false ) ;
return Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , state , Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , _panelName , Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , state [ _panelName ] , {
opened : ! isOpen
} ) ) ) ;
}
}
return state ;
} ,
features : function features ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : _defaults _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PREFERENCES_DEFAULTS" ] . features ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
if ( action . type === 'TOGGLE_FEATURE' ) {
return Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , state , Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , action . feature , ! state [ action . feature ] ) ) ;
}
return state ;
} ,
editorMode : function editorMode ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : _defaults _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PREFERENCES_DEFAULTS" ] . editorMode ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
if ( action . type === 'SWITCH_MODE' ) {
return action . mode ;
}
return state ;
} ,
pinnedPluginItems : function pinnedPluginItems ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : _defaults _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "PREFERENCES_DEFAULTS" ] . pinnedPluginItems ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
if ( action . type === 'TOGGLE_PINNED_PLUGIN_ITEM' ) {
return Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( { } , state , Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , action . pluginName , ! Object ( lodash _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "get" ] ) ( state , [ action . pluginName ] , true ) ) ) ;
}
return state ;
}
} ) ;
/ * *
* Reducer returning the next active general sidebar state . The active general
* sidebar is a unique name to identify either an editor or plugin sidebar .
*
* @ param { ? string } state Current state .
* @ param { Object } action Action object .
*
* @ return { ? string } Updated state .
* /
function activeGeneralSidebar ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : DEFAULT _ACTIVE _GENERAL _SIDEBAR ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'OPEN_GENERAL_SIDEBAR' :
return action . name ;
}
return state ;
}
function panel ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : 'document' ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'SET_ACTIVE_PANEL' :
return action . panel ;
}
return state ;
}
/ * *
* Reducer for storing the name of the open modal , or null if no modal is open .
*
* @ param { Object } state Previous state .
* @ param { Object } action Action object containing the ` name ` of the modal
*
* @ return { Object } Updated state
* /
function activeModal ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : null ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'OPEN_MODAL' :
return action . name ;
case 'CLOSE_MODAL' :
return null ;
}
return state ;
}
function publishSidebarActive ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : false ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'OPEN_PUBLISH_SIDEBAR' :
return true ;
case 'CLOSE_PUBLISH_SIDEBAR' :
return false ;
case 'TOGGLE_PUBLISH_SIDEBAR' :
return ! state ;
}
return state ;
}
/ * *
* Reducer keeping track of the meta boxes isSaving state .
* A "true" value means the meta boxes saving request is in - flight .
*
*
* @ param { boolean } state Previous state .
* @ param { Object } action Action Object .
*
* @ return { Object } Updated state .
* /
function isSavingMetaBoxes ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : false ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'REQUEST_META_BOX_UPDATES' :
return true ;
case 'META_BOX_UPDATES_SUCCESS' :
return false ;
default :
return state ;
}
}
/ * *
* Reducer keeping track of the meta boxes per location .
*
* @ param { boolean } state Previous state .
* @ param { Object } action Action Object .
*
* @ return { Object } Updated state .
* /
function metaBoxLocations ( ) {
var state = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } ;
var action = arguments . length > 1 ? arguments [ 1 ] : undefined ;
switch ( action . type ) {
case 'SET_META_BOXES_PER_LOCATIONS' :
return action . metaBoxesPerLocation ;
}
return state ;
}
var metaBoxes = Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "combineReducers" ] ) ( {
isSaving : isSavingMetaBoxes ,
locations : metaBoxLocations
} ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _data _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "combineReducers" ] ) ( {
preferences : preferences ,
activeGeneralSidebar : activeGeneralSidebar ,
panel : panel ,
activeModal : activeModal ,
publishSidebarActive : publishSidebarActive ,
metaBoxes : metaBoxes
} ) ) ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/selectors.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / selectors . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-29 09:37:29 +01:00
/*! exports provided: getEditorMode, isEditorSidebarOpened, isPluginSidebarOpened, getActiveGeneralSidebarName, getPreferences, getPreference, isPublishSidebarOpened, isEditorPanelEnabled, isEditorSidebarPanelOpened, isEditorPanelOpened, isModalActive, isFeatureActive, isPluginItemPinned, getActiveMetaBoxLocations, isMetaBoxLocationVisible, isMetaBoxLocationActive, getMetaBoxesPerLocation, getAllMetaBoxes, hasMetaBoxes, isSavingMetaBoxes */
2018-10-24 13:48:53 +02:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getEditorMode" , function ( ) { return getEditorMode ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isEditorSidebarOpened" , function ( ) { return isEditorSidebarOpened ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isPluginSidebarOpened" , function ( ) { return isPluginSidebarOpened ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getActiveGeneralSidebarName" , function ( ) { return getActiveGeneralSidebarName ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getPreferences" , function ( ) { return getPreferences ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getPreference" , function ( ) { return getPreference ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isPublishSidebarOpened" , function ( ) { return isPublishSidebarOpened ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isEditorPanelEnabled" , function ( ) { return isEditorPanelEnabled ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isEditorSidebarPanelOpened" , function ( ) { return isEditorSidebarPanelOpened ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isEditorPanelOpened" , function ( ) { return isEditorPanelOpened ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isModalActive" , function ( ) { return isModalActive ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isFeatureActive" , function ( ) { return isFeatureActive ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isPluginItemPinned" , function ( ) { return isPluginItemPinned ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getActiveMetaBoxLocations" , function ( ) { return getActiveMetaBoxLocations ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isMetaBoxLocationVisible" , function ( ) { return isMetaBoxLocationVisible ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isMetaBoxLocationActive" , function ( ) { return isMetaBoxLocationActive ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getMetaBoxesPerLocation" , function ( ) { return getMetaBoxesPerLocation ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getAllMetaBoxes" , function ( ) { return getAllMetaBoxes ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "hasMetaBoxes" , function ( ) { return hasMetaBoxes ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isSavingMetaBoxes" , function ( ) { return isSavingMetaBoxes ; } ) ;
2018-10-29 09:28:32 +01:00
/* harmony import */ var rememo _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! rememo */ "./node_modules/rememo/es/rememo.js" ) ;
2018-10-24 13:48:53 +02:00
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/deprecated */ "@wordpress/deprecated" ) ;
/* harmony import */ var _wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Returns the current editing mode .
*
* @ param { Object } state Global application state .
*
* @ return { string } Editing mode .
* /
function getEditorMode ( state ) {
return getPreference ( state , 'editorMode' , 'visual' ) ;
}
/ * *
* Returns true if the editor sidebar is opened .
*
* @ param { Object } state Global application state
*
* @ return { boolean } Whether the editor sidebar is opened .
* /
function isEditorSidebarOpened ( state ) {
var activeGeneralSidebar = getActiveGeneralSidebarName ( state ) ;
return Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "includes" ] ) ( [ 'edit-post/document' , 'edit-post/block' ] , activeGeneralSidebar ) ;
}
/ * *
* Returns true if the plugin sidebar is opened .
*
* @ param { Object } state Global application state
* @ return { boolean } Whether the plugin sidebar is opened .
* /
function isPluginSidebarOpened ( state ) {
var activeGeneralSidebar = getActiveGeneralSidebarName ( state ) ;
return ! ! activeGeneralSidebar && ! isEditorSidebarOpened ( state ) ;
}
/ * *
* Returns the current active general sidebar name , or null if there is no
* general sidebar active . The active general sidebar is a unique name to
* identify either an editor or plugin sidebar .
*
* Examples :
*
* - ` edit-post/document `
* - ` my-plugin/insert-image-sidebar `
*
* @ param { Object } state Global application state .
*
* @ return { ? string } Active general sidebar name .
* /
function getActiveGeneralSidebarName ( state ) {
// Dismissal takes precedent.
var isDismissed = getPreference ( state , 'isGeneralSidebarDismissed' , false ) ;
if ( isDismissed ) {
return null ;
}
return state . activeGeneralSidebar ;
}
/ * *
* Returns the preferences ( these preferences are persisted locally ) .
*
* @ param { Object } state Global application state .
*
* @ return { Object } Preferences Object .
* /
function getPreferences ( state ) {
return state . preferences ;
}
/ * *
*
* @ param { Object } state Global application state .
* @ param { string } preferenceKey Preference Key .
* @ param { Mixed } defaultValue Default Value .
*
* @ return { Mixed } Preference Value .
* /
function getPreference ( state , preferenceKey , defaultValue ) {
var preferences = getPreferences ( state ) ;
var value = preferences [ preferenceKey ] ;
return value === undefined ? defaultValue : value ;
}
/ * *
* Returns true if the publish sidebar is opened .
*
* @ param { Object } state Global application state
*
* @ return { boolean } Whether the publish sidebar is open .
* /
function isPublishSidebarOpened ( state ) {
return state . publishSidebarActive ;
}
/ * *
* Returns true if the given panel is enabled , or false otherwise . Panels are
* enabled by default .
*
* @ param { Object } state Global application state .
* @ param { string } panelName A string that identifies the panel .
*
* @ return { boolean } Whether or not the panel is enabled .
* /
function isEditorPanelEnabled ( state , panelName ) {
var panels = getPreference ( state , 'panels' ) ;
return Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( panels , [ panelName , 'enabled' ] , true ) ;
}
/ * *
* Returns true if the given panel is enabled , or false otherwise . Panels are
* enabled by default .
*
* @ param { Object } state Global application state .
* @ param { string } panel A string that identifies the panel .
*
* @ return { boolean } Whether or not the panel is enabled .
* /
function isEditorSidebarPanelOpened ( state , panel ) {
_wordpress _deprecated _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default ( ) ( 'isEditorSidebarPanelOpened' , {
alternative : 'isEditorPanelEnabled' ,
plugin : 'Gutenberg' ,
version : '4.3'
} ) ;
return isEditorPanelEnabled ( state , panel ) ;
}
/ * *
* Returns true if the given panel is open , or false otherwise . Panels are
* closed by default .
*
* @ param { Object } state Global application state .
* @ param { string } panelName A string that identifies the panel .
*
* @ return { boolean } Whether or not the panel is open .
* /
function isEditorPanelOpened ( state , panelName ) {
var panels = getPreference ( state , 'panels' ) ;
return panels [ panelName ] === true || Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( panels , [ panelName , 'opened' ] , false ) ;
}
/ * *
* Returns true if a modal is active , or false otherwise .
*
* @ param { Object } state Global application state .
* @ param { string } modalName A string that uniquely identifies the modal .
*
* @ return { boolean } Whether the modal is active .
* /
function isModalActive ( state , modalName ) {
return state . activeModal === modalName ;
}
/ * *
* Returns whether the given feature is enabled or not .
*
* @ param { Object } state Global application state .
* @ param { string } feature Feature slug .
*
* @ return { boolean } Is active .
* /
function isFeatureActive ( state , feature ) {
return ! ! state . preferences . features [ feature ] ;
}
/ * *
* Returns true if the plugin item is pinned to the header .
* When the value is not set it defaults to true .
*
* @ param { Object } state Global application state .
* @ param { string } pluginName Plugin item name .
*
* @ return { boolean } Whether the plugin item is pinned .
* /
function isPluginItemPinned ( state , pluginName ) {
var pinnedPluginItems = getPreference ( state , 'pinnedPluginItems' , { } ) ;
return Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "get" ] ) ( pinnedPluginItems , [ pluginName ] , true ) ;
}
/ * *
* Returns an array of active meta box locations .
*
* @ param { Object } state Post editor state .
*
* @ return { string [ ] } Active meta box locations .
* /
var getActiveMetaBoxLocations = Object ( rememo _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( function ( state ) {
return Object . keys ( state . metaBoxes . locations ) . filter ( function ( location ) {
return isMetaBoxLocationActive ( state , location ) ;
} ) ;
} , function ( state ) {
return [ state . metaBoxes . locations ] ;
} ) ;
/ * *
* Returns true if a metabox location is active and visible
*
* @ param { Object } state Post editor state .
* @ param { string } location Meta box location to test .
*
* @ return { boolean } Whether the meta box location is active and visible .
* /
function isMetaBoxLocationVisible ( state , location ) {
return isMetaBoxLocationActive ( state , location ) && Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "some" ] ) ( getMetaBoxesPerLocation ( state , location ) , function ( _ref ) {
var id = _ref . id ;
return isEditorPanelEnabled ( state , "meta-box-" . concat ( id ) ) ;
} ) ;
}
/ * *
* Returns true if there is an active meta box in the given location , or false
* otherwise .
*
* @ param { Object } state Post editor state .
* @ param { string } location Meta box location to test .
*
* @ return { boolean } Whether the meta box location is active .
* /
function isMetaBoxLocationActive ( state , location ) {
var metaBoxes = getMetaBoxesPerLocation ( state , location ) ;
return ! ! metaBoxes && metaBoxes . length !== 0 ;
}
/ * *
* Returns the list of all the available meta boxes for a given location .
*
* @ param { Object } state Global application state .
* @ param { string } location Meta box location to test .
*
* @ return { ? Array } List of meta boxes .
* /
function getMetaBoxesPerLocation ( state , location ) {
return state . metaBoxes . locations [ location ] ;
}
/ * *
* Returns the list of all the available meta boxes .
*
* @ param { Object } state Global application state .
*
* @ return { Array } List of meta boxes .
* /
var getAllMetaBoxes = Object ( rememo _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( function ( state ) {
return Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "flatten" ] ) ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "values" ] ) ( state . metaBoxes . locations ) ) ;
} , function ( state ) {
return [ state . metaBoxes . locations ] ;
} ) ;
/ * *
* Returns true if the post is using Meta Boxes
*
* @ param { Object } state Global application state
*
* @ return { boolean } Whether there are metaboxes or not .
* /
function hasMetaBoxes ( state ) {
return getActiveMetaBoxLocations ( state ) . length > 0 ;
}
/ * *
* Returns true if the Meta Boxes are being saved .
*
* @ param { Object } state Global application state .
*
* @ return { boolean } Whether the metaboxes are being saved .
* /
function isSavingMetaBoxes ( state ) {
return state . metaBoxes . isSaving ;
}
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/store/utils.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / store / utils . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: onChangeListener */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "onChangeListener" , function ( ) { return onChangeListener ; } ) ;
/ * *
* Given a selector returns a functions that returns the listener only
* if the returned value from the selector changes .
*
* @ param { function } selector Selector .
* @ param { function } listener Listener .
* @ return { function } Listener creator .
* /
var onChangeListener = function onChangeListener ( selector , listener ) {
var previousValue = selector ( ) ;
return function ( ) {
var selectedValue = selector ( ) ;
if ( selectedValue !== previousValue ) {
previousValue = selectedValue ;
listener ( selectedValue ) ;
}
} ;
} ;
/***/ } ) ,
2018-10-29 09:28:32 +01:00
/***/ "./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / edit - post / build - module / utils / meta - boxes . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 13:48:53 +02:00
/*! exports provided: getMetaBoxContainer */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "getMetaBoxContainer" , function ( ) { return getMetaBoxContainer ; } ) ;
/ * *
* Function returning the current Meta Boxes DOM Node in the editor
* whether the meta box area is opened or not .
* If the MetaBox Area is visible returns it , and returns the original container instead .
*
* @ param { string } location Meta Box location .
* @ return { string } HTML content .
* /
var getMetaBoxContainer = function getMetaBoxContainer ( location ) {
var area = document . querySelector ( ".edit-post-meta-boxes-area.is-" . concat ( location , " .metabox-location-" ) . concat ( location ) ) ;
if ( area ) {
return area ;
}
return document . querySelector ( '#metaboxes .metabox-location-' + location ) ;
} ;
2018-10-29 09:28:32 +01:00
/***/ } ) ,
/***/ "./node_modules/classnames/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / classnames / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * !
Copyright ( c ) 2017 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
* /
/* global define */
( function ( ) {
'use strict' ;
var hasOwn = { } . hasOwnProperty ;
function classNames ( ) {
var classes = [ ] ;
for ( var i = 0 ; i < arguments . length ; i ++ ) {
var arg = arguments [ i ] ;
if ( ! arg ) continue ;
var argType = typeof arg ;
if ( argType === 'string' || argType === 'number' ) {
classes . push ( arg ) ;
} else if ( Array . isArray ( arg ) && arg . length ) {
var inner = classNames . apply ( null , arg ) ;
if ( inner ) {
classes . push ( inner ) ;
}
} else if ( argType === 'object' ) {
for ( var key in arg ) {
if ( hasOwn . call ( arg , key ) && arg [ key ] ) {
classes . push ( key ) ;
}
}
}
}
return classes . join ( ' ' ) ;
}
2018-10-30 04:09:58 +01:00
if ( true && module . exports ) {
2018-10-29 09:28:32 +01:00
classNames . default = classNames ;
module . exports = classNames ;
} else if ( true ) {
// register as 'classnames', consistent with npm package name
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ ] , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( function ( ) {
return classNames ;
} ) . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ,
_ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else { }
} ( ) ) ;
/***/ } ) ,
/***/ "./node_modules/refx/refx.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / refx / refx . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
function flattenIntoMap ( map , effects ) {
var i ;
if ( Array . isArray ( effects ) ) {
for ( i = 0 ; i < effects . length ; i ++ ) {
flattenIntoMap ( map , effects [ i ] ) ;
}
} else {
for ( i in effects ) {
map [ i ] = ( map [ i ] || [ ] ) . concat ( effects [ i ] ) ;
}
}
}
function refx ( effects ) {
var map = { } ,
middleware ;
flattenIntoMap ( map , effects ) ;
middleware = function ( store ) {
return function ( next ) {
return function ( action ) {
var handlers = map [ action . type ] ,
result = next ( action ) ,
i , handlerAction ;
if ( handlers ) {
for ( i = 0 ; i < handlers . length ; i ++ ) {
handlerAction = handlers [ i ] ( action , store ) ;
if ( handlerAction ) {
store . dispatch ( handlerAction ) ;
}
}
}
return result ;
} ;
} ;
} ;
middleware . effects = map ;
return middleware ;
}
module . exports = refx ;
/***/ } ) ,
/***/ "./node_modules/rememo/es/rememo.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / rememo / es / rememo . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
var LEAF _KEY , hasWeakMap ;
/ * *
* Arbitrary value used as key for referencing cache object in WeakMap tree .
*
* @ type { Object }
* /
LEAF _KEY = { } ;
/ * *
* Whether environment supports WeakMap .
*
* @ type { boolean }
* /
hasWeakMap = typeof WeakMap !== 'undefined' ;
/ * *
* Returns the first argument as the sole entry in an array .
*
* @ param { * } value Value to return .
*
* @ return { Array } Value returned as entry in array .
* /
function arrayOf ( value ) {
return [ value ] ;
}
/ * *
* Returns true if the value passed is object - like , or false otherwise . A value
* is object - like if it can support property assignment , e . g . object or array .
*
* @ param { * } value Value to test .
*
* @ return { boolean } Whether value is object - like .
* /
function isObjectLike ( value ) {
return ! ! value && 'object' === typeof value ;
}
/ * *
* Creates and returns a new cache object .
*
* @ return { Object } Cache object .
* /
function createCache ( ) {
var cache = {
clear : function ( ) {
cache . head = null ;
} ,
} ;
return cache ;
}
/ * *
* Returns true if entries within the two arrays are strictly equal by
* reference from a starting index .
*
* @ param { Array } a First array .
* @ param { Array } b Second array .
* @ param { number } fromIndex Index from which to start comparison .
*
* @ return { boolean } Whether arrays are shallowly equal .
* /
function isShallowEqual ( a , b , fromIndex ) {
var i ;
if ( a . length !== b . length ) {
return false ;
}
for ( i = fromIndex ; i < a . length ; i ++ ) {
if ( a [ i ] !== b [ i ] ) {
return false ;
}
}
return true ;
}
/ * *
* Returns a memoized selector function . The getDependants function argument is
* called before the memoized selector and is expected to return an immutable
* reference or array of references on which the selector depends for computing
* its own return value . The memoize cache is preserved only as long as those
* dependant references remain the same . If getDependants returns a different
* reference ( s ) , the cache is cleared and the selector value regenerated .
*
* @ param { Function } selector Selector function .
* @ param { Function } getDependants Dependant getter returning an immutable
* reference or array of reference used in
* cache bust consideration .
*
* @ return { Function } Memoized selector .
* /
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( function ( selector , getDependants ) {
var rootCache , getCache ;
// Use object source as dependant if getter not provided
if ( ! getDependants ) {
getDependants = arrayOf ;
}
/ * *
* Returns the root cache . If WeakMap is supported , this is assigned to the
* root WeakMap cache set , otherwise it is a shared instance of the default
* cache object .
*
* @ return { ( WeakMap | Object ) } Root cache object .
* /
function getRootCache ( ) {
return rootCache ;
}
/ * *
* Returns the cache for a given dependants array . When possible , a WeakMap
* will be used to create a unique cache for each set of dependants . This
* is feasible due to the nature of WeakMap in allowing garbage collection
* to occur on entries where the key object is no longer referenced . Since
* WeakMap requires the key to be an object , this is only possible when the
* dependant is object - like . The root cache is created as a hierarchy where
* each top - level key is the first entry in a dependants set , the value a
* WeakMap where each key is the next dependant , and so on . This continues
* so long as the dependants are object - like . If no dependants are object -
* like , then the cache is shared across all invocations .
*
* @ see isObjectLike
*
* @ param { Array } dependants Selector dependants .
*
* @ return { Object } Cache object .
* /
function getWeakMapCache ( dependants ) {
var caches = rootCache ,
isUniqueByDependants = true ,
i , dependant , map , cache ;
for ( i = 0 ; i < dependants . length ; i ++ ) {
dependant = dependants [ i ] ;
// Can only compose WeakMap from object-like key.
if ( ! isObjectLike ( dependant ) ) {
isUniqueByDependants = false ;
break ;
}
// Does current segment of cache already have a WeakMap?
if ( caches . has ( dependant ) ) {
// Traverse into nested WeakMap.
caches = caches . get ( dependant ) ;
} else {
// Create, set, and traverse into a new one.
map = new WeakMap ( ) ;
caches . set ( dependant , map ) ;
caches = map ;
}
}
// We use an arbitrary (but consistent) object as key for the last item
// in the WeakMap to serve as our running cache.
if ( ! caches . has ( LEAF _KEY ) ) {
cache = createCache ( ) ;
cache . isUniqueByDependants = isUniqueByDependants ;
caches . set ( LEAF _KEY , cache ) ;
}
return caches . get ( LEAF _KEY ) ;
}
// Assign cache handler by availability of WeakMap
getCache = hasWeakMap ? getWeakMapCache : getRootCache ;
/ * *
* Resets root memoization cache .
* /
function clear ( ) {
rootCache = hasWeakMap ? new WeakMap ( ) : createCache ( ) ;
}
// eslint-disable-next-line jsdoc/check-param-names
/ * *
* The augmented selector call , considering first whether dependants have
* changed before passing it to underlying memoize function .
*
* @ param { Object } source Source object for derivation .
* @ param { ... * } extraArgs Additional arguments to pass to selector .
*
* @ return { * } Selector result .
* /
function callSelector ( /* source, ...extraArgs */ ) {
var len = arguments . length ,
cache , node , i , args , dependants ;
// Create copy of arguments (avoid leaking deoptimization).
args = new Array ( len ) ;
for ( i = 0 ; i < len ; i ++ ) {
args [ i ] = arguments [ i ] ;
}
dependants = getDependants . apply ( null , args ) ;
cache = getCache ( dependants ) ;
// If not guaranteed uniqueness by dependants (primitive type or lack
// of WeakMap support), shallow compare against last dependants and, if
// references have changed, destroy cache to recalculate result.
if ( ! cache . isUniqueByDependants ) {
if ( cache . lastDependants && ! isShallowEqual ( dependants , cache . lastDependants , 0 ) ) {
cache . clear ( ) ;
}
cache . lastDependants = dependants ;
}
node = cache . head ;
while ( node ) {
// Check whether node arguments match arguments
if ( ! isShallowEqual ( node . args , args , 1 ) ) {
node = node . next ;
continue ;
}
// At this point we can assume we've found a match
// Surface matched node to head if not already
if ( node !== cache . head ) {
// Adjust siblings to point to each other.
node . prev . next = node . next ;
if ( node . next ) {
node . next . prev = node . prev ;
}
node . next = cache . head ;
node . prev = null ;
cache . head . prev = node ;
cache . head = node ;
}
// Return immediately
return node . val ;
}
// No cached value found. Continue to insertion phase:
node = {
// Generate the result from original function
val : selector . apply ( null , args ) ,
} ;
// Avoid including the source object in the cache.
args [ 0 ] = null ;
node . args = args ;
// Don't need to check whether node is already head, since it would
// have been returned above already if it was
// Shift existing head down list
if ( cache . head ) {
cache . head . prev = node ;
node . next = cache . head ;
}
cache . head = node ;
return node . val ;
}
callSelector . getDependants = getDependants ;
callSelector . clear = clear ;
clear ( ) ;
return callSelector ;
} ) ;
2018-10-24 13:48:53 +02:00
/***/ } ) ,
/***/ "@wordpress/a11y" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "a11y" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "a11y" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/api-fetch" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "apiFetch" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "apiFetch" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/block-library" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "blockLibrary" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "blockLibrary" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/blocks" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "blocks" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "blocks" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/components" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "components" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "components" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/compose" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "compose" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "compose" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/core-data" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "coreData" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "coreData" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/data" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "data" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "data" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/deprecated" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "deprecated" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "deprecated" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/editor" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "editor" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "editor" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/element" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "element" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "element" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/hooks" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "hooks" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "hooks" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/i18n" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "i18n" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "i18n" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/keycodes" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "keycodes" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "keycodes" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/nux" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "nux" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "nux" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/plugins" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "plugins" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "plugins" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/url" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "url" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "url" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/viewport" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "viewport" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "viewport" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "lodash" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external "lodash" * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "lodash" ] ; } ( ) ) ;
/***/ } )
/******/ } ) ;
//# sourceMappingURL=edit-post.js.map