2018-12-14 05:41:57 +01:00
this [ "wp" ] = this [ "wp" ] || { } ; this [ "wp" ] [ "compose" ] =
/******/ ( 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
2020-01-03 14:17:24 +01:00
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = 355 ) ;
2018-12-14 05:41:57 +01:00
/******/ } )
/************************************************************************/
/******/ ( {
2018-12-18 04:14:52 +01:00
/***/ 0 :
/***/ ( function ( module , exports ) {
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
( function ( ) { module . exports = this [ "wp" ] [ "element" ] ; } ( ) ) ;
2018-12-14 05:41:57 +01:00
/***/ } ) ,
2020-01-03 14:17:24 +01:00
/***/ 109 :
2019-09-19 17:19:18 +02:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return useMediaQuery ; } ) ;
/* harmony import */ var _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 23 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
/ * *
* Runs a media query and returns its value when it changes .
*
* @ param { string } query Media Query .
* @ return { boolean } return value of the media query .
* /
function useMediaQuery ( query ) {
var _useState = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "useState" ] ) ( false ) ,
_useState2 = Object ( _babel _runtime _helpers _esm _slicedToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ /* default */ "a" ] ) ( _useState , 2 ) ,
match = _useState2 [ 0 ] ,
setMatch = _useState2 [ 1 ] ;
Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "useEffect" ] ) ( function ( ) {
var updateMatch = function updateMatch ( ) {
return setMatch ( window . matchMedia ( query ) . matches ) ;
} ;
updateMatch ( ) ;
var list = window . matchMedia ( query ) ;
list . addListener ( updateMatch ) ;
return function ( ) {
list . removeListener ( updateMatch ) ;
} ;
} , [ query ] ) ;
return match ;
}
2020-01-03 14:17:24 +01:00
/***/ } ) ,
/***/ 11 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , 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 ;
}
2019-09-19 17:19:18 +02:00
/***/ } ) ,
/***/ 12 :
2018-12-14 05:41:57 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2018-12-18 04:14:52 +01:00
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _classCallCheck ; } ) ;
2018-12-14 05:41:57 +01:00
function _classCallCheck ( instance , Constructor ) {
if ( ! ( instance instanceof Constructor ) ) {
throw new TypeError ( "Cannot call a class as a function" ) ;
}
}
/***/ } ) ,
2019-09-19 17:19:18 +02:00
/***/ 13 :
2018-12-14 05:41:57 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2018-12-18 04:14:52 +01:00
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _possibleConstructorReturn ; } ) ;
2019-09-19 17:19:18 +02:00
/* harmony import */ var _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 31 ) ;
/* harmony import */ var _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 5 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
function _possibleConstructorReturn ( self , call ) {
if ( call && ( Object ( _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ /* default */ "a" ] ) ( call ) === "object" || typeof call === "function" ) ) {
return call ;
}
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
return Object ( _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ /* default */ "a" ] ) ( self ) ;
2018-12-14 05:41:57 +01:00
}
/***/ } ) ,
2019-09-19 17:19:18 +02:00
/***/ 14 :
2018-12-14 05:41:57 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2018-12-18 04:14:52 +01:00
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _getPrototypeOf ; } ) ;
2018-12-14 05:41:57 +01:00
function _getPrototypeOf ( o ) {
_getPrototypeOf = Object . setPrototypeOf ? Object . getPrototypeOf : function _getPrototypeOf ( o ) {
return o . _ _proto _ _ || Object . getPrototypeOf ( o ) ;
} ;
return _getPrototypeOf ( o ) ;
}
/***/ } ) ,
2019-09-19 17:19:18 +02:00
/***/ 15 :
2018-12-14 05:41:57 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2018-12-18 04:14:52 +01:00
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
function _setPrototypeOf ( o , p ) {
_setPrototypeOf = Object . setPrototypeOf || function _setPrototypeOf ( o , p ) {
o . _ _proto _ _ = p ;
return o ;
} ;
return _setPrototypeOf ( o , p ) ;
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _inherits ; } ) ;
2018-12-14 05:41:57 +01: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
}
} ) ;
2018-12-18 04:14:52 +01:00
if ( superClass ) _setPrototypeOf ( subClass , superClass ) ;
2018-12-14 05:41:57 +01:00
}
/***/ } ) ,
2019-09-19 17:19:18 +02:00
/***/ 18 :
2018-12-14 05:41:57 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2018-12-18 04:14:52 +01:00
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _extends ; } ) ;
function _extends ( ) {
_extends = Object . assign || function ( target ) {
for ( var i = 1 ; i < arguments . length ; i ++ ) {
var source = arguments [ i ] ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
for ( var key in source ) {
if ( Object . prototype . hasOwnProperty . call ( source , key ) ) {
target [ key ] = source [ key ] ;
}
}
}
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
return target ;
} ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
return _extends . apply ( this , arguments ) ;
2018-12-14 05:41:57 +01:00
}
/***/ } ) ,
2019-10-15 18:17:12 +02:00
/***/ 2 :
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "lodash" ] ; } ( ) ) ;
/***/ } ) ,
2020-01-03 14:17:24 +01:00
/***/ 209 :
2019-03-21 13:48:00 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2020-01-03 14:17:24 +01:00
/* WEBPACK VAR INJECTION */ ( function ( process ) { /* harmony import */ var _use _media _query _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 109 ) ;
2019-09-19 17:19:18 +02:00
/ * *
* Internal dependencies
* /
/ * *
* Whether or not the user agent is Internet Explorer .
*
* @ type { boolean }
* /
var IS _IE = typeof window !== 'undefined' && window . navigator . userAgent . indexOf ( 'Trident' ) >= 0 ;
/ * *
* Hook returning whether the user has a preference for reduced motion .
*
* @ return { boolean } Reduced motion preference value .
* /
var useReducedMotion = process . env . FORCE _REDUCED _MOTION || IS _IE ? function ( ) {
return true ;
} : function ( ) {
return Object ( _use _media _query _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ /* default */ "a" ] ) ( '(prefers-reduced-motion: reduce)' ) ;
} ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( useReducedMotion ) ;
2019-10-15 18:17:12 +02:00
/* WEBPACK VAR INJECTION */ } . call ( this , _ _webpack _require _ _ ( 316 ) ) )
2019-09-19 17:19:18 +02:00
/***/ } ) ,
/***/ 23 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
var arrayWithHoles = _ _webpack _require _ _ ( 38 ) ;
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
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 ;
}
2019-03-21 13:48:00 +01:00
}
2019-09-19 17:19:18 +02:00
return _arr ;
}
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
var nonIterableRest = _ _webpack _require _ _ ( 39 ) ;
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _slicedToArray ; } ) ;
function _slicedToArray ( arr , i ) {
return Object ( arrayWithHoles [ "a" /* default */ ] ) ( arr ) || _iterableToArrayLimit ( arr , i ) || Object ( nonIterableRest [ "a" /* default */ ] ) ( ) ;
2019-03-21 13:48:00 +01:00
}
2019-10-15 17:37:08 +02:00
/***/ } ) ,
2019-10-15 18:17:12 +02:00
/***/ 31 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , 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 ) ;
}
/***/ } ) ,
/***/ 316 :
2019-10-15 17:37:08 +02:00
/***/ ( function ( module , exports ) {
// shim for using process in browser
var process = module . exports = { } ;
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout ;
var cachedClearTimeout ;
function defaultSetTimout ( ) {
throw new Error ( 'setTimeout has not been defined' ) ;
}
function defaultClearTimeout ( ) {
throw new Error ( 'clearTimeout has not been defined' ) ;
}
( function ( ) {
try {
if ( typeof setTimeout === 'function' ) {
cachedSetTimeout = setTimeout ;
} else {
cachedSetTimeout = defaultSetTimout ;
}
} catch ( e ) {
cachedSetTimeout = defaultSetTimout ;
}
try {
if ( typeof clearTimeout === 'function' ) {
cachedClearTimeout = clearTimeout ;
} else {
cachedClearTimeout = defaultClearTimeout ;
}
} catch ( e ) {
cachedClearTimeout = defaultClearTimeout ;
}
} ( ) )
function runTimeout ( fun ) {
if ( cachedSetTimeout === setTimeout ) {
//normal enviroments in sane situations
return setTimeout ( fun , 0 ) ;
}
// if setTimeout wasn't available but was latter defined
if ( ( cachedSetTimeout === defaultSetTimout || ! cachedSetTimeout ) && setTimeout ) {
cachedSetTimeout = setTimeout ;
return setTimeout ( fun , 0 ) ;
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout ( fun , 0 ) ;
} catch ( e ) {
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout . call ( null , fun , 0 ) ;
} catch ( e ) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout . call ( this , fun , 0 ) ;
}
}
}
function runClearTimeout ( marker ) {
if ( cachedClearTimeout === clearTimeout ) {
//normal enviroments in sane situations
return clearTimeout ( marker ) ;
}
// if clearTimeout wasn't available but was latter defined
if ( ( cachedClearTimeout === defaultClearTimeout || ! cachedClearTimeout ) && clearTimeout ) {
cachedClearTimeout = clearTimeout ;
return clearTimeout ( marker ) ;
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout ( marker ) ;
} catch ( e ) {
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout . call ( null , marker ) ;
} catch ( e ) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout . call ( this , marker ) ;
}
}
}
var queue = [ ] ;
var draining = false ;
var currentQueue ;
var queueIndex = - 1 ;
function cleanUpNextTick ( ) {
if ( ! draining || ! currentQueue ) {
return ;
}
draining = false ;
if ( currentQueue . length ) {
queue = currentQueue . concat ( queue ) ;
} else {
queueIndex = - 1 ;
}
if ( queue . length ) {
drainQueue ( ) ;
}
}
function drainQueue ( ) {
if ( draining ) {
return ;
}
var timeout = runTimeout ( cleanUpNextTick ) ;
draining = true ;
var len = queue . length ;
while ( len ) {
currentQueue = queue ;
queue = [ ] ;
while ( ++ queueIndex < len ) {
if ( currentQueue ) {
currentQueue [ queueIndex ] . run ( ) ;
}
}
queueIndex = - 1 ;
len = queue . length ;
}
currentQueue = null ;
draining = false ;
runClearTimeout ( timeout ) ;
}
process . nextTick = function ( fun ) {
var args = new Array ( arguments . length - 1 ) ;
if ( arguments . length > 1 ) {
for ( var i = 1 ; i < arguments . length ; i ++ ) {
args [ i - 1 ] = arguments [ i ] ;
}
}
queue . push ( new Item ( fun , args ) ) ;
if ( queue . length === 1 && ! draining ) {
runTimeout ( drainQueue ) ;
}
} ;
// v8 likes predictible objects
function Item ( fun , array ) {
this . fun = fun ;
this . array = array ;
}
Item . prototype . run = function ( ) {
this . fun . apply ( null , this . array ) ;
} ;
process . title = 'browser' ;
process . browser = true ;
process . env = { } ;
process . argv = [ ] ;
process . version = '' ; // empty string to avoid regexp issues
process . versions = { } ;
function noop ( ) { }
process . on = noop ;
process . addListener = noop ;
process . once = noop ;
process . off = noop ;
process . removeListener = noop ;
process . removeAllListeners = noop ;
process . emit = noop ;
process . prependListener = noop ;
process . prependOnceListener = noop ;
process . listeners = function ( name ) { return [ ] }
process . binding = function ( name ) {
throw new Error ( 'process.binding is not supported' ) ;
} ;
process . cwd = function ( ) { return '/' } ;
process . chdir = function ( dir ) {
throw new Error ( 'process.chdir is not supported' ) ;
} ;
process . umask = function ( ) { return 0 ; } ;
2019-03-21 13:48:00 +01:00
/***/ } ) ,
2020-01-03 14:17:24 +01:00
/***/ 355 :
2018-12-14 05:41:57 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-12-18 04:14:52 +01:00
2020-01-03 14:17:24 +01:00
// EXTERNAL MODULE: external {"this":"lodash"}
var external _this _lodash _ = _ _webpack _require _ _ ( 2 ) ;
2018-12-18 04:14:52 +01:00
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js
2018-12-14 05:41:57 +01:00
/ * *
* External dependencies
* /
/ * *
* Given a function mapping a component to an enhanced component and modifier
* name , returns the enhanced component augmented with a generated displayName .
*
* @ param { Function } mapComponentToEnhancedComponent Function mapping component
* to enhanced component .
* @ param { string } modifierName Seed name from which to
* generated display name .
*
* @ return { WPComponent } Component class with generated display name assigned .
* /
function createHigherOrderComponent ( mapComponentToEnhancedComponent , modifierName ) {
return function ( OriginalComponent ) {
var EnhancedComponent = mapComponentToEnhancedComponent ( OriginalComponent ) ;
var _OriginalComponent$di = OriginalComponent . displayName ,
displayName = _OriginalComponent$di === void 0 ? OriginalComponent . name || 'Component' : _OriginalComponent$di ;
2020-01-03 14:17:24 +01:00
EnhancedComponent . displayName = "" . concat ( Object ( external _this _lodash _ [ "upperFirst" ] ) ( Object ( external _this _lodash _ [ "camelCase" ] ) ( modifierName ) ) , "(" ) . concat ( displayName , ")" ) ;
2018-12-14 05:41:57 +01:00
return EnhancedComponent ;
} ;
}
2018-12-18 04:14:52 +01:00
/* harmony default export */ var create _higher _order _component = ( createHigherOrderComponent ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: external {"this":["wp","element"]}
var external _this _wp _element _ = _ _webpack _require _ _ ( 0 ) ;
2018-12-14 05:41:57 +01:00
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/if-condition/index.js
2018-12-14 05:41:57 +01:00
/ * *
* Internal dependencies
* /
/ * *
* Higher - order component creator , creating a new component which renders if
* the given condition is satisfied or with the given optional prop name .
*
* @ param { Function } predicate Function to test condition .
*
* @ return { Function } Higher - order component .
* /
2018-12-18 04:14:52 +01:00
var if _condition _ifCondition = function ifCondition ( predicate ) {
return create _higher _order _component ( function ( WrappedComponent ) {
2018-12-14 05:41:57 +01:00
return function ( props ) {
if ( ! predicate ( props ) ) {
return null ;
}
2018-12-18 04:14:52 +01:00
return Object ( external _this _wp _element _ [ "createElement" ] ) ( WrappedComponent , props ) ;
2018-12-14 05:41:57 +01:00
} ;
} , 'ifCondition' ) ;
} ;
2018-12-18 04:14:52 +01:00
/* harmony default export */ var if _condition = ( if _condition _ifCondition ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
2019-09-19 17:19:18 +02:00
var classCallCheck = _ _webpack _require _ _ ( 12 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
2019-09-19 17:19:18 +02:00
var createClass = _ _webpack _require _ _ ( 11 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
2019-09-19 17:19:18 +02:00
var possibleConstructorReturn = _ _webpack _require _ _ ( 13 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
2019-09-19 17:19:18 +02:00
var getPrototypeOf = _ _webpack _require _ _ ( 14 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
2019-09-19 17:19:18 +02:00
var inherits = _ _webpack _require _ _ ( 15 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]}
2019-10-15 18:17:12 +02:00
var external _this _wp _isShallowEqual _ = _ _webpack _require _ _ ( 41 ) ;
2018-12-18 04:14:52 +01:00
var external _this _wp _isShallowEqual _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( external _this _wp _isShallowEqual _ ) ;
2018-12-14 05:41:57 +01:00
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/pure/index.js
2018-12-14 05:41:57 +01:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* Given a component returns the enhanced component augmented with a component
* only rerendering when its props / state change
*
* @ param { Function } mapComponentToEnhancedComponent Function mapping component
* to enhanced component .
* @ param { string } modifierName Seed name from which to
* generated display name .
*
* @ return { WPComponent } Component class with generated display name assigned .
* /
2018-12-18 04:14:52 +01:00
var pure = create _higher _order _component ( function ( Wrapped ) {
if ( Wrapped . prototype instanceof external _this _wp _element _ [ "Component" ] ) {
2018-12-14 05:41:57 +01:00
return (
/*#__PURE__*/
function ( _Wrapped ) {
2018-12-18 04:14:52 +01:00
Object ( inherits [ "a" /* default */ ] ) ( _class , _Wrapped ) ;
2018-12-14 05:41:57 +01:00
function _class ( ) {
2018-12-18 04:14:52 +01:00
Object ( classCallCheck [ "a" /* default */ ] ) ( this , _class ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
return Object ( possibleConstructorReturn [ "a" /* default */ ] ) ( this , Object ( getPrototypeOf [ "a" /* default */ ] ) ( _class ) . apply ( this , arguments ) ) ;
2018-12-14 05:41:57 +01:00
}
2018-12-18 04:14:52 +01:00
Object ( createClass [ "a" /* default */ ] ) ( _class , [ {
2018-12-14 05:41:57 +01:00
key : "shouldComponentUpdate" ,
value : function shouldComponentUpdate ( nextProps , nextState ) {
2018-12-18 04:14:52 +01:00
return ! external _this _wp _isShallowEqual _default ( ) ( nextProps , this . props ) || ! external _this _wp _isShallowEqual _default ( ) ( nextState , this . state ) ;
2018-12-14 05:41:57 +01:00
}
} ] ) ;
return _class ;
} ( Wrapped )
) ;
}
return (
/*#__PURE__*/
function ( _Component ) {
2018-12-18 04:14:52 +01:00
Object ( inherits [ "a" /* default */ ] ) ( _class2 , _Component ) ;
2018-12-14 05:41:57 +01:00
function _class2 ( ) {
2018-12-18 04:14:52 +01:00
Object ( classCallCheck [ "a" /* default */ ] ) ( this , _class2 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
return Object ( possibleConstructorReturn [ "a" /* default */ ] ) ( this , Object ( getPrototypeOf [ "a" /* default */ ] ) ( _class2 ) . apply ( this , arguments ) ) ;
2018-12-14 05:41:57 +01:00
}
2018-12-18 04:14:52 +01:00
Object ( createClass [ "a" /* default */ ] ) ( _class2 , [ {
2018-12-14 05:41:57 +01:00
key : "shouldComponentUpdate" ,
value : function shouldComponentUpdate ( nextProps ) {
2018-12-18 04:14:52 +01:00
return ! external _this _wp _isShallowEqual _default ( ) ( nextProps , this . props ) ;
2018-12-14 05:41:57 +01:00
}
} , {
key : "render" ,
value : function render ( ) {
2018-12-18 04:14:52 +01:00
return Object ( external _this _wp _element _ [ "createElement" ] ) ( Wrapped , this . props ) ;
2018-12-14 05:41:57 +01:00
}
} ] ) ;
return _class2 ;
2018-12-18 04:14:52 +01:00
} ( external _this _wp _element _ [ "Component" ] )
2018-12-14 05:41:57 +01:00
) ;
} , 'pure' ) ;
2019-09-19 17:19:18 +02:00
/* harmony default export */ var higher _order _pure = ( pure ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2019-09-19 17:19:18 +02:00
var esm _extends = _ _webpack _require _ _ ( 18 ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
2019-09-19 17:19:18 +02:00
var assertThisInitialized = _ _webpack _require _ _ ( 5 ) ;
2018-12-14 05:41:57 +01:00
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-global-events/listener.js
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
/ * *
* External dependencies
* /
/ * *
* Class responsible for orchestrating event handling on the global window ,
* binding a single event to be shared across all handling instances , and
* removing the handler when no instances are listening for the event .
* /
var listener _Listener =
/*#__PURE__*/
function ( ) {
function Listener ( ) {
Object ( classCallCheck [ "a" /* default */ ] ) ( this , Listener ) ;
this . listeners = { } ;
this . handleEvent = this . handleEvent . bind ( this ) ;
}
Object ( createClass [ "a" /* default */ ] ) ( Listener , [ {
key : "add" ,
value : function add ( eventType , instance ) {
if ( ! this . listeners [ eventType ] ) {
// Adding first listener for this type, so bind event.
window . addEventListener ( eventType , this . handleEvent ) ;
this . listeners [ eventType ] = [ ] ;
}
this . listeners [ eventType ] . push ( instance ) ;
}
} , {
key : "remove" ,
value : function remove ( eventType , instance ) {
2020-01-03 14:17:24 +01:00
this . listeners [ eventType ] = Object ( external _this _lodash _ [ "without" ] ) ( this . listeners [ eventType ] , instance ) ;
2018-12-18 04:14:52 +01:00
if ( ! this . listeners [ eventType ] . length ) {
// Removing last listener for this type, so unbind event.
window . removeEventListener ( eventType , this . handleEvent ) ;
delete this . listeners [ eventType ] ;
}
}
} , {
key : "handleEvent" ,
value : function handleEvent ( event ) {
2020-01-03 14:17:24 +01:00
Object ( external _this _lodash _ [ "forEach" ] ) ( this . listeners [ event . type ] , function ( instance ) {
2018-12-18 04:14:52 +01:00
instance . handleEvent ( event ) ;
} ) ;
}
} ] ) ;
return Listener ;
} ( ) ;
/* harmony default export */ var listener = ( listener _Listener ) ;
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-global-events/index.js
2018-12-14 05:41:57 +01:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* Listener instance responsible for managing document event handling .
*
* @ type { Listener }
* /
2018-12-18 04:14:52 +01:00
var with _global _events _listener = new listener ( ) ;
2019-09-19 17:19:18 +02:00
/ * *
* Higher - order component creator which , given an object of DOM event types and
* values corresponding to a callback function name on the component , will
* create or update a window event handler to invoke the callback when an event
* occurs . On behalf of the consuming developer , the higher - order component
* manages unbinding when the component unmounts , and binding at most a single
* event handler for the entire application .
*
* @ param { Object < string , string > } eventTypesToHandlers Object with keys of DOM
* event type , the value a
* name of the function on
* the original component ' s
* instance which handles
* the event .
*
* @ return { Function } Higher - order component .
* /
2018-12-14 05:41:57 +01:00
function withGlobalEvents ( eventTypesToHandlers ) {
2018-12-18 04:14:52 +01:00
return create _higher _order _component ( function ( WrappedComponent ) {
2018-12-14 05:41:57 +01:00
var Wrapper =
/*#__PURE__*/
function ( _Component ) {
2018-12-18 04:14:52 +01:00
Object ( inherits [ "a" /* default */ ] ) ( Wrapper , _Component ) ;
2018-12-14 05:41:57 +01:00
function Wrapper ( ) {
var _this ;
2018-12-18 04:14:52 +01:00
Object ( classCallCheck [ "a" /* default */ ] ) ( this , Wrapper ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
_this = Object ( possibleConstructorReturn [ "a" /* default */ ] ) ( this , Object ( getPrototypeOf [ "a" /* default */ ] ) ( Wrapper ) . apply ( this , arguments ) ) ;
2019-09-19 17:19:18 +02:00
_this . handleEvent = _this . handleEvent . bind ( Object ( assertThisInitialized [ "a" /* default */ ] ) ( _this ) ) ;
_this . handleRef = _this . handleRef . bind ( Object ( assertThisInitialized [ "a" /* default */ ] ) ( _this ) ) ;
2018-12-14 05:41:57 +01:00
return _this ;
}
2018-12-18 04:14:52 +01:00
Object ( createClass [ "a" /* default */ ] ) ( Wrapper , [ {
2018-12-14 05:41:57 +01:00
key : "componentDidMount" ,
value : function componentDidMount ( ) {
var _this2 = this ;
2020-01-03 14:17:24 +01:00
Object ( external _this _lodash _ [ "forEach" ] ) ( eventTypesToHandlers , function ( handler , eventType ) {
2018-12-18 04:14:52 +01:00
with _global _events _listener . add ( eventType , _this2 ) ;
2018-12-14 05:41:57 +01:00
} ) ;
}
} , {
key : "componentWillUnmount" ,
value : function componentWillUnmount ( ) {
var _this3 = this ;
2020-01-03 14:17:24 +01:00
Object ( external _this _lodash _ [ "forEach" ] ) ( eventTypesToHandlers , function ( handler , eventType ) {
2018-12-18 04:14:52 +01:00
with _global _events _listener . remove ( eventType , _this3 ) ;
2018-12-14 05:41:57 +01:00
} ) ;
}
} , {
key : "handleEvent" ,
value : function handleEvent ( event ) {
var handler = eventTypesToHandlers [ event . type ] ;
if ( typeof this . wrappedRef [ handler ] === 'function' ) {
this . wrappedRef [ handler ] ( event ) ;
}
}
} , {
key : "handleRef" ,
value : function handleRef ( el ) {
this . wrappedRef = el ; // Any component using `withGlobalEvents` that is not setting a `ref`
// will cause `this.props.forwardedRef` to be `null`, so we need this
// check.
if ( this . props . forwardedRef ) {
this . props . forwardedRef ( el ) ;
}
}
} , {
key : "render" ,
value : function render ( ) {
2018-12-18 04:14:52 +01:00
return Object ( external _this _wp _element _ [ "createElement" ] ) ( WrappedComponent , Object ( esm _extends [ "a" /* default */ ] ) ( { } , this . props . ownProps , {
2018-12-14 05:41:57 +01:00
ref : this . handleRef
} ) ) ;
}
} ] ) ;
return Wrapper ;
2018-12-18 04:14:52 +01:00
} ( external _this _wp _element _ [ "Component" ] ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
return Object ( external _this _wp _element _ [ "forwardRef" ] ) ( function ( props , ref ) {
return Object ( external _this _wp _element _ [ "createElement" ] ) ( Wrapper , {
2018-12-14 05:41:57 +01:00
ownProps : props ,
forwardedRef : ref
} ) ;
} ) ;
} , 'withGlobalEvents' ) ;
}
2018-12-18 04:14:52 +01:00
/* harmony default export */ var with _global _events = ( withGlobalEvents ) ;
2018-12-14 05:41:57 +01:00
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-instance-id/index.js
2018-12-14 05:41:57 +01:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* A Higher Order Component used to be provide a unique instance ID by
* component .
*
* @ param { WPElement } WrappedComponent The wrapped component .
*
* @ return { Component } Component with an instanceId prop .
* /
2018-12-18 04:14:52 +01:00
/* harmony default export */ var with _instance _id = ( create _higher _order _component ( function ( WrappedComponent ) {
2018-12-14 05:41:57 +01:00
var instances = 0 ;
return (
/*#__PURE__*/
function ( _Component ) {
2018-12-18 04:14:52 +01:00
Object ( inherits [ "a" /* default */ ] ) ( _class , _Component ) ;
2018-12-14 05:41:57 +01:00
function _class ( ) {
var _this ;
2018-12-18 04:14:52 +01:00
Object ( classCallCheck [ "a" /* default */ ] ) ( this , _class ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
_this = Object ( possibleConstructorReturn [ "a" /* default */ ] ) ( this , Object ( getPrototypeOf [ "a" /* default */ ] ) ( _class ) . apply ( this , arguments ) ) ;
2018-12-14 05:41:57 +01:00
_this . instanceId = instances ++ ;
return _this ;
}
2018-12-18 04:14:52 +01:00
Object ( createClass [ "a" /* default */ ] ) ( _class , [ {
2018-12-14 05:41:57 +01:00
key : "render" ,
value : function render ( ) {
2018-12-18 04:14:52 +01:00
return Object ( external _this _wp _element _ [ "createElement" ] ) ( WrappedComponent , Object ( esm _extends [ "a" /* default */ ] ) ( { } , this . props , {
2018-12-14 05:41:57 +01:00
instanceId : this . instanceId
} ) ) ;
}
} ] ) ;
return _class ;
2018-12-18 04:14:52 +01:00
} ( external _this _wp _element _ [ "Component" ] )
2018-12-14 05:41:57 +01:00
) ;
} , 'withInstanceId' ) ) ;
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-safe-timeout/index.js
2018-12-14 05:41:57 +01:00
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* A higher - order component used to provide and manage delayed function calls
* that ought to be bound to a component ' s lifecycle .
*
* @ param { Component } OriginalComponent Component requiring setTimeout
*
* @ return { Component } Wrapped component .
* /
2018-12-18 04:14:52 +01:00
var withSafeTimeout = create _higher _order _component ( function ( OriginalComponent ) {
2018-12-14 05:41:57 +01:00
return (
/*#__PURE__*/
function ( _Component ) {
2018-12-18 04:14:52 +01:00
Object ( inherits [ "a" /* default */ ] ) ( WrappedComponent , _Component ) ;
2018-12-14 05:41:57 +01:00
function WrappedComponent ( ) {
var _this ;
2018-12-18 04:14:52 +01:00
Object ( classCallCheck [ "a" /* default */ ] ) ( this , WrappedComponent ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
_this = Object ( possibleConstructorReturn [ "a" /* default */ ] ) ( this , Object ( getPrototypeOf [ "a" /* default */ ] ) ( WrappedComponent ) . apply ( this , arguments ) ) ;
2018-12-14 05:41:57 +01:00
_this . timeouts = [ ] ;
2019-09-19 17:19:18 +02:00
_this . setTimeout = _this . setTimeout . bind ( Object ( assertThisInitialized [ "a" /* default */ ] ) ( _this ) ) ;
_this . clearTimeout = _this . clearTimeout . bind ( Object ( assertThisInitialized [ "a" /* default */ ] ) ( _this ) ) ;
2018-12-14 05:41:57 +01:00
return _this ;
}
2018-12-18 04:14:52 +01:00
Object ( createClass [ "a" /* default */ ] ) ( WrappedComponent , [ {
2018-12-14 05:41:57 +01:00
key : "componentWillUnmount" ,
value : function componentWillUnmount ( ) {
this . timeouts . forEach ( clearTimeout ) ;
}
} , {
key : "setTimeout" ,
value : function ( _setTimeout ) {
function setTimeout ( _x , _x2 ) {
return _setTimeout . apply ( this , arguments ) ;
}
setTimeout . toString = function ( ) {
return _setTimeout . toString ( ) ;
} ;
return setTimeout ;
} ( function ( fn , delay ) {
var _this2 = this ;
var id = setTimeout ( function ( ) {
fn ( ) ;
_this2 . clearTimeout ( id ) ;
} , delay ) ;
this . timeouts . push ( id ) ;
return id ;
} )
} , {
key : "clearTimeout" ,
value : function ( _clearTimeout ) {
function clearTimeout ( _x3 ) {
return _clearTimeout . apply ( this , arguments ) ;
}
clearTimeout . toString = function ( ) {
return _clearTimeout . toString ( ) ;
} ;
return clearTimeout ;
} ( function ( id ) {
clearTimeout ( id ) ;
2020-01-03 14:17:24 +01:00
this . timeouts = Object ( external _this _lodash _ [ "without" ] ) ( this . timeouts , id ) ;
2018-12-14 05:41:57 +01:00
} )
} , {
key : "render" ,
value : function render ( ) {
2018-12-18 04:14:52 +01:00
return Object ( external _this _wp _element _ [ "createElement" ] ) ( OriginalComponent , Object ( esm _extends [ "a" /* default */ ] ) ( { } , this . props , {
2018-12-14 05:41:57 +01:00
setTimeout : this . setTimeout ,
clearTimeout : this . clearTimeout
} ) ) ;
}
} ] ) ;
return WrappedComponent ;
2018-12-18 04:14:52 +01:00
} ( external _this _wp _element _ [ "Component" ] )
2018-12-14 05:41:57 +01:00
) ;
} , 'withSafeTimeout' ) ;
2018-12-18 04:14:52 +01:00
/* harmony default export */ var with _safe _timeout = ( withSafeTimeout ) ;
2018-12-14 05:41:57 +01:00
2019-09-19 17:19:18 +02:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-state/index.js
2018-12-14 05:41:57 +01:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
/ * *
* A Higher Order Component used to provide and manage internal component state
* via props .
*
* @ param { ? Object } initialState Optional initial state of the component .
*
* @ return { Component } Wrapped component .
* /
function withState ( ) {
var initialState = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } ;
2018-12-18 04:14:52 +01:00
return create _higher _order _component ( function ( OriginalComponent ) {
2018-12-14 05:41:57 +01:00
return (
/*#__PURE__*/
function ( _Component ) {
2018-12-18 04:14:52 +01:00
Object ( inherits [ "a" /* default */ ] ) ( WrappedComponent , _Component ) ;
2018-12-14 05:41:57 +01:00
function WrappedComponent ( ) {
var _this ;
2018-12-18 04:14:52 +01:00
Object ( classCallCheck [ "a" /* default */ ] ) ( this , WrappedComponent ) ;
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
_this = Object ( possibleConstructorReturn [ "a" /* default */ ] ) ( this , Object ( getPrototypeOf [ "a" /* default */ ] ) ( WrappedComponent ) . apply ( this , arguments ) ) ;
2019-09-19 17:19:18 +02:00
_this . setState = _this . setState . bind ( Object ( assertThisInitialized [ "a" /* default */ ] ) ( _this ) ) ;
2018-12-14 05:41:57 +01:00
_this . state = initialState ;
return _this ;
}
2018-12-18 04:14:52 +01:00
Object ( createClass [ "a" /* default */ ] ) ( WrappedComponent , [ {
2018-12-14 05:41:57 +01:00
key : "render" ,
value : function render ( ) {
2018-12-18 04:14:52 +01:00
return Object ( external _this _wp _element _ [ "createElement" ] ) ( OriginalComponent , Object ( esm _extends [ "a" /* default */ ] ) ( { } , this . props , this . state , {
2018-12-14 05:41:57 +01:00
setState : this . setState
} ) ) ;
}
} ] ) ;
return WrappedComponent ;
2018-12-18 04:14:52 +01:00
} ( external _this _wp _element _ [ "Component" ] )
2018-12-14 05:41:57 +01:00
) ;
} , 'withState' ) ;
}
2019-09-19 17:19:18 +02:00
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-media-query/index.js
2020-01-03 14:17:24 +01:00
var use _media _query = _ _webpack _require _ _ ( 109 ) ;
2019-09-19 17:19:18 +02:00
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-reduced-motion/index.js
2020-01-03 14:17:24 +01:00
var use _reduced _motion = _ _webpack _require _ _ ( 209 ) ;
2019-09-19 17:19:18 +02:00
2018-12-18 04:14:52 +01:00
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/index.js
/* concated harmony reexport createHigherOrderComponent */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createHigherOrderComponent" , function ( ) { return create _higher _order _component ; } ) ;
2020-01-03 14:17:24 +01:00
/* concated harmony reexport compose */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "compose" , function ( ) { return external _this _lodash _ [ "flowRight" ] ; } ) ;
2018-12-18 04:14:52 +01:00
/* concated harmony reexport ifCondition */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "ifCondition" , function ( ) { return if _condition ; } ) ;
2019-09-19 17:19:18 +02:00
/* concated harmony reexport pure */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "pure" , function ( ) { return higher _order _pure ; } ) ;
2018-12-18 04:14:52 +01:00
/* concated harmony reexport withGlobalEvents */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "withGlobalEvents" , function ( ) { return with _global _events ; } ) ;
/* concated harmony reexport withInstanceId */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "withInstanceId" , function ( ) { return with _instance _id ; } ) ;
/* concated harmony reexport withSafeTimeout */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "withSafeTimeout" , function ( ) { return with _safe _timeout ; } ) ;
/* concated harmony reexport withState */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "withState" , function ( ) { return withState ; } ) ;
2019-09-19 17:19:18 +02:00
/* concated harmony reexport useMediaQuery */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "useMediaQuery" , function ( ) { return use _media _query [ "a" /* default */ ] ; } ) ;
/* concated harmony reexport useReducedMotion */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "useReducedMotion" , function ( ) { return use _reduced _motion [ "a" /* default */ ] ; } ) ;
2018-12-18 04:14:52 +01:00
/ * *
* External dependencies
* /
2019-09-19 17:19:18 +02:00
// Utils
2018-12-18 04:14:52 +01:00
/ * *
* Composes multiple higher - order components into a single higher - order component . Performs right - to - left function
* composition , where each successive invocation is supplied the return value of the previous .
*
* @ param { ... Function } hocs The HOC functions to invoke .
*
* @ return { Function } Returns the new composite function .
* /
2018-12-14 05:41:57 +01:00
2019-09-19 17:19:18 +02:00
// Higher-order components
// Hooks
2018-12-14 05:41:57 +01:00
/***/ } ) ,
2019-10-15 17:37:08 +02:00
/***/ 38 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2018-12-14 05:41:57 +01:00
2019-10-15 17:37:08 +02:00
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _arrayWithHoles ; } ) ;
function _arrayWithHoles ( arr ) {
if ( Array . isArray ( arr ) ) return arr ;
}
2018-12-14 05:41:57 +01:00
/***/ } ) ,
2019-10-15 17:37:08 +02:00
/***/ 39 :
2018-12-18 04:14:52 +01:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2018-12-14 05:41:57 +01:00
2018-12-18 04:14:52 +01:00
"use strict" ;
2019-10-15 17:37:08 +02:00
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _nonIterableRest ; } ) ;
function _nonIterableRest ( ) {
throw new TypeError ( "Invalid attempt to destructure non-iterable instance" ) ;
2018-12-18 04:14:52 +01:00
}
2019-09-19 17:19:18 +02:00
/***/ } ) ,
2019-10-15 18:17:12 +02:00
/***/ 41 :
2019-09-19 17:19:18 +02:00
/***/ ( function ( module , exports ) {
2019-10-15 17:37:08 +02:00
( function ( ) { module . exports = this [ "wp" ] [ "isShallowEqual" ] ; } ( ) ) ;
2019-09-19 17:19:18 +02:00
2019-10-15 17:37:08 +02:00
/***/ } ) ,
2019-09-19 17:19:18 +02:00
2019-10-15 17:37:08 +02:00
/***/ 5 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2019-09-19 17:19:18 +02:00
2019-10-15 17:37:08 +02:00
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _assertThisInitialized ; } ) ;
function _assertThisInitialized ( self ) {
if ( self === void 0 ) {
throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ;
}
2019-09-19 17:19:18 +02:00
2019-10-15 17:37:08 +02:00
return self ;
2019-09-19 17:19:18 +02:00
}
2018-12-14 05:41:57 +01:00
/***/ } )
2018-12-18 04:14:52 +01:00
/******/ } ) ;