2018-10-24 07:48:53 -04:00
this [ "wp" ] = this [ "wp" ] || { } ; this [ "wp" ] [ "element" ] =
/******/ ( 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 04:28:32 -04:00
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = "./node_modules/@wordpress/element/build-module/index.js" ) ;
2018-10-24 07:48:53 -04:00
/******/ } )
/************************************************************************/
/******/ ( {
2018-10-29 04:28:32 -04:00
/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / defineProperty . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04: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 04:28:32 -04:00
/***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectSpread . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04: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 04:28:32 -04:00
/* harmony import */ var _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js" ) ;
2018-10-24 07:48:53 -04: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 04:28:32 -04:00
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectWithoutProperties . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04: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 04:28:32 -04:00
/* harmony import */ var _objectWithoutPropertiesLoose _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" ) ;
2018-10-24 07:48:53 -04: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 04:28:32 -04:00
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectWithoutPropertiesLoose . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04: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 04:28:32 -04:00
/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / typeof . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04: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 04:28:32 -04:00
/***/ "./node_modules/@wordpress/element/build-module/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / element / build - module / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04:00
/*! exports provided: renderToString, RawHTML, Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, StrictMode, concatChildren, switchChildrenNodeName, createPortal, findDOMNode, render, unmountComponentAtNode, isEmptyElement */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-10-29 04:28:32 -04:00
/* harmony import */ var _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./react */ "./node_modules/@wordpress/element/build-module/react.js" ) ;
2018-10-24 07:48:53 -04:00
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Children" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Children" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "cloneElement" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "cloneElement" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Component" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Component" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createContext" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createContext" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createElement" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createRef" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createRef" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "forwardRef" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "forwardRef" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Fragment" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Fragment" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isValidElement" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "isValidElement" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "StrictMode" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "StrictMode" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "concatChildren" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "concatChildren" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "switchChildrenNodeName" , function ( ) { return _react _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "switchChildrenNodeName" ] ; } ) ;
2018-10-29 04:28:32 -04:00
/* harmony import */ var _react _platform _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./react-platform */ "./node_modules/@wordpress/element/build-module/react-platform.js" ) ;
2018-10-24 07:48:53 -04:00
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createPortal" , function ( ) { return _react _platform _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "createPortal" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "findDOMNode" , function ( ) { return _react _platform _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "findDOMNode" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "render" , function ( ) { return _react _platform _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "render" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "unmountComponentAtNode" , function ( ) { return _react _platform _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "unmountComponentAtNode" ] ; } ) ;
2018-10-29 04:28:32 -04:00
/* harmony import */ var _utils _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./utils */ "./node_modules/@wordpress/element/build-module/utils.js" ) ;
2018-10-24 07:48:53 -04:00
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isEmptyElement" , function ( ) { return _utils _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "isEmptyElement" ] ; } ) ;
2018-10-29 04:28:32 -04:00
/* harmony import */ var _serialize _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ./serialize */ "./node_modules/@wordpress/element/build-module/serialize.js" ) ;
2018-10-24 07:48:53 -04:00
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "renderToString" , function ( ) { return _serialize _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ; } ) ;
2018-10-29 04:28:32 -04:00
/* harmony import */ var _raw _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./raw-html */ "./node_modules/@wordpress/element/build-module/raw-html.js" ) ;
2018-10-24 07:48:53 -04:00
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "RawHTML" , function ( ) { return _raw _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ; } ) ;
/***/ } ) ,
2018-10-29 04:28:32 -04:00
/***/ "./node_modules/@wordpress/element/build-module/raw-html.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / element / build - module / raw - html . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04: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 RawHTML ; } ) ;
2018-10-29 04:28:32 -04: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 _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" ) ;
/* harmony import */ var _react _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./react */ "./node_modules/@wordpress/element/build-module/react.js" ) ;
2018-10-24 07:48:53 -04:00
/ * *
* External dependencies
* /
/ * *
* Component used as equivalent of Fragment with unescaped HTML , in cases where
* it is desirable to render dangerous HTML without needing a wrapper element .
* To preserve additional props , a ` div ` wrapper _will _ be created if any props
* aside from ` children ` are passed .
*
* @ param { string } props . children HTML to render .
*
* @ return { WPElement } Dangerously - rendering element .
* /
function RawHTML ( _ref ) {
var children = _ref . children ,
props = Object ( _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( _ref , [ "children" ] ) ;
// The DIV wrapper will be stripped by serializer, unless there are
// non-children props present.
return Object ( _react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( 'div' , Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( {
dangerouslySetInnerHTML : {
_ _html : children
}
} , props ) ) ;
}
/***/ } ) ,
2018-10-29 04:28:32 -04:00
/***/ "./node_modules/@wordpress/element/build-module/react-platform.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / element / build - module / react - platform . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04:00
/*! exports provided: createPortal, findDOMNode, render, unmountComponentAtNode */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var react _dom _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! react-dom */ "react-dom" ) ;
/* harmony import */ var react _dom _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( react _dom _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createPortal" , function ( ) { return react _dom _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createPortal" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "findDOMNode" , function ( ) { return react _dom _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "findDOMNode" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "render" , function ( ) { return react _dom _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "render" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "unmountComponentAtNode" , function ( ) { return react _dom _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "unmountComponentAtNode" ] ; } ) ;
/ * *
* External dependencies
* /
/ * *
* Creates a portal into which a component can be rendered .
*
* @ see https : //github.com/facebook/react/issues/10309#issuecomment-318433235
*
* @ param { Component } component Component
* @ param { Element } target DOM node into which element should be rendered
* /
/ * *
* Finds the dom node of a React component
*
* @ param { Component } component component ' s instance
* @ param { Element } target DOM node into which element should be rendered
* /
/ * *
* Renders a given element into the target DOM node .
*
* @ param { WPElement } element Element to render
* @ param { Element } target DOM node into which element should be rendered
* /
/ * *
* Removes any mounted element from the target DOM node .
*
* @ param { Element } target DOM node in which element is to be removed
* /
/***/ } ) ,
2018-10-29 04:28:32 -04:00
/***/ "./node_modules/@wordpress/element/build-module/react.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / element / build - module / react . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04:00
/*! exports provided: Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, StrictMode, concatChildren, switchChildrenNodeName */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "concatChildren" , function ( ) { return concatChildren ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "switchChildrenNodeName" , function ( ) { return switchChildrenNodeName ; } ) ;
2018-10-29 04:28:32 -04: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 _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 07:48:53 -04:00
/* harmony import */ var react _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! react */ "react" ) ;
/* harmony import */ var react _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( react _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Children" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Children" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "cloneElement" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "cloneElement" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Component" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Component" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createContext" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createContext" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createElement" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "createRef" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createRef" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "forwardRef" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "forwardRef" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "Fragment" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Fragment" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isValidElement" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "isValidElement" ] ; } ) ;
/* harmony reexport (safe) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "StrictMode" , function ( ) { return react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "StrictMode" ] ; } ) ;
/* 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 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* Creates a copy of an element with extended props .
*
* @ param { WPElement } element Element
* @ param { ? Object } props Props to apply to cloned element
*
* @ return { WPElement } Cloned element .
* /
/ * *
* A base class to create WordPress Components ( Refs , state and lifecycle hooks )
* /
/ * *
* Creates a context object containing two components : a provider and consumer .
*
* @ param { Object } defaultValue A default data stored in the context .
*
* @ return { Object } Context object .
* /
/ * *
* Returns a new element of given type . Type can be either a string tag name or
* another function which itself returns an element .
*
* @ param { ? ( string | Function ) } type Tag name or element creator
* @ param { Object } props Element properties , either attribute
* set to apply to DOM node or values to
* pass through to element creator
* @ param { ... WPElement } children Descendant elements
*
* @ return { WPElement } Element .
* /
/ * *
* Returns an object tracking a reference to a rendered element via its
* ` current ` property as either a DOMElement or Element , dependent upon the
* type of element rendered with the ref attribute .
*
* @ return { Object } Ref object .
* /
/ * *
* Component enhancer used to enable passing a ref to its wrapped component .
* Pass a function argument which receives ` props ` and ` ref ` as its arguments ,
* returning an element using the forwarded ref . The return value is a new
* component which forwards its ref .
*
* @ param { Function } forwarder Function passed ` props ` and ` ref ` , expected to
* return an element .
*
* @ return { WPComponent } Enhanced component .
* /
/ * *
* A component which renders its children without any wrapping element .
* /
/ * *
* Checks if an object is a valid WPElement
*
* @ param { Object } objectToCheck The object to be checked .
*
* @ return { boolean } true if objectToTest is a valid WPElement and false otherwise .
* /
/ * *
* Concatenate two or more React children objects .
*
* @ param { ... ? Object } childrenArguments Array of children arguments ( array of arrays / strings / objects ) to concatenate .
*
* @ return { Array } The concatenated value .
* /
function concatChildren ( ) {
for ( var _len = arguments . length , childrenArguments = new Array ( _len ) , _key = 0 ; _key < _len ; _key ++ ) {
childrenArguments [ _key ] = arguments [ _key ] ;
}
return childrenArguments . reduce ( function ( memo , children , i ) {
react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Children" ] . forEach ( children , function ( child , j ) {
if ( child && 'string' !== typeof child ) {
child = Object ( react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "cloneElement" ] ) ( child , {
key : [ i , j ] . join ( )
} ) ;
}
memo . push ( child ) ;
} ) ;
return memo ;
} , [ ] ) ;
}
/ * *
* Switches the nodeName of all the elements in the children object .
*
* @ param { ? Object } children Children object .
* @ param { string } nodeName Node name .
*
* @ return { ? Object } The updated children object .
* /
function switchChildrenNodeName ( children , nodeName ) {
return children && react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "Children" ] . map ( children , function ( elt , index ) {
if ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "isString" ] ) ( elt ) ) {
return Object ( react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( nodeName , {
key : index
} , elt ) ;
}
var _elt$props = elt . props ,
childrenProp = _elt$props . children ,
props = Object ( _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( _elt$props , [ "children" ] ) ;
return Object ( react _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "createElement" ] ) ( nodeName , Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( {
key : index
} , props ) , childrenProp ) ;
} ) ;
}
/***/ } ) ,
2018-10-29 04:28:32 -04:00
/***/ "./node_modules/@wordpress/element/build-module/serialize.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / element / build - module / serialize . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04:00
/*! exports provided: hasPrefix, renderElement, renderNativeComponent, renderComponent, renderAttributes, renderStyle, default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "hasPrefix" , function ( ) { return hasPrefix ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "renderElement" , function ( ) { return renderElement ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "renderNativeComponent" , function ( ) { return renderNativeComponent ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "renderComponent" , function ( ) { return renderComponent ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "renderAttributes" , function ( ) { return renderAttributes ; } ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "renderStyle" , function ( ) { return renderStyle ; } ) ;
2018-10-29 04:28:32 -04: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 _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js" ) ;
2018-10-24 07:48:53 -04:00
/* 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 _escape _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @wordpress/escape-html */ "@wordpress/escape-html" ) ;
/* harmony import */ var _wordpress _escape _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _escape _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ ) ;
2018-10-29 04:28:32 -04:00
/* harmony import */ var _react _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ./react */ "./node_modules/@wordpress/element/build-module/react.js" ) ;
/* harmony import */ var _raw _html _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ./raw-html */ "./node_modules/@wordpress/element/build-module/raw-html.js" ) ;
2018-10-24 07:48:53 -04:00
/ * *
* Parts of this source were derived and modified from fast - react - render ,
* released under the MIT license .
*
* https : //github.com/alt-j/fast-react-render
*
* Copyright ( c ) 2016 Andrey Morozov
*
* Permission is hereby granted , free of charge , to any person obtaining a copy
* of this software and associated documentation files ( the "Software" ) , to deal
* in the Software without restriction , including without limitation the rights
* to use , copy , modify , merge , publish , distribute , sublicense , and / or sell
* copies of the Software , and to permit persons to whom the Software is
* furnished to do so , subject to the following conditions :
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
* IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR OTHER
* LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING FROM ,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE .
* /
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var _createContext = Object ( _react _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "createContext" ] ) ( ) ,
Provider = _createContext . Provider ,
Consumer = _createContext . Consumer ;
/ * *
* Valid attribute types .
*
* @ type { Set }
* /
var ATTRIBUTES _TYPES = new Set ( [ 'string' , 'boolean' , 'number' ] ) ;
/ * *
* Element tags which can be self - closing .
*
* @ type { Set }
* /
var SELF _CLOSING _TAGS = new Set ( [ 'area' , 'base' , 'br' , 'col' , 'command' , 'embed' , 'hr' , 'img' , 'input' , 'keygen' , 'link' , 'meta' , 'param' , 'source' , 'track' , 'wbr' ] ) ;
/ * *
* Boolean attributes are attributes whose presence as being assigned is
* meaningful , even if only empty .
*
* See : https : //html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
* Extracted from : https : //html.spec.whatwg.org/multipage/indices.html#attributes-3
*
* Object . keys ( [ ... document . querySelectorAll ( '#attributes-1 > tbody > tr' ) ]
* . filter ( ( tr ) => tr . lastChild . textContent . indexOf ( 'Boolean attribute' ) !== - 1 )
* . reduce ( ( result , tr ) => Object . assign ( result , {
* [ tr . firstChild . textContent . trim ( ) ] : true
* } ) , { } ) ) . sort ( ) ;
*
* @ type { Set }
* /
2018-10-29 04:37:29 -04:00
var BOOLEAN _ATTRIBUTES = new Set ( [ 'allowfullscreen' , 'allowpaymentrequest' , 'allowusermedia' , 'async' , 'autofocus' , 'autoplay' , 'checked' , 'controls' , 'default' , 'defer' , 'disabled' , 'download' , 'formnovalidate' , 'hidden' , 'ismap' , 'itemscope' , 'loop' , 'multiple' , 'muted' , 'nomodule' , 'novalidate' , 'open' , 'playsinline' , 'readonly' , 'required' , 'reversed' , 'selected' , 'typemustmatch' ] ) ;
2018-10-24 07:48:53 -04:00
/ * *
* Enumerated attributes are attributes which must be of a specific value form .
* Like boolean attributes , these are meaningful if specified , even if not of a
* valid enumerated value .
*
* See : https : //html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute
* Extracted from : https : //html.spec.whatwg.org/multipage/indices.html#attributes-3
*
* Object . keys ( [ ... document . querySelectorAll ( '#attributes-1 > tbody > tr' ) ]
* . filter ( ( tr ) => / ^ ( "(.+?)" ; ? \ s * ) + / . t e s t ( t r . l a s t C h i l d . t e x t C o n t e n t . t r i m ( ) ) )
* . reduce ( ( result , tr ) => Object . assign ( result , {
* [ tr . firstChild . textContent . trim ( ) ] : true
* } ) , { } ) ) . sort ( ) ;
*
* Some notable omissions :
*
* - ` alt ` : https : //blog.whatwg.org/omit-alt
*
* @ type { Set }
* /
var ENUMERATED _ATTRIBUTES = new Set ( [ 'autocapitalize' , 'autocomplete' , 'charset' , 'contenteditable' , 'crossorigin' , 'decoding' , 'dir' , 'draggable' , 'enctype' , 'formenctype' , 'formmethod' , 'http-equiv' , 'inputmode' , 'kind' , 'method' , 'preload' , 'scope' , 'shape' , 'spellcheck' , 'translate' , 'type' , 'wrap' ] ) ;
/ * *
* Set of CSS style properties which support assignment of unitless numbers .
* Used in rendering of style properties , where ` px ` unit is assumed unless
* property is included in this set or value is zero .
*
* Generated via :
*
* Object . entries ( document . createElement ( 'div' ) . style )
* . filter ( ( [ key ] ) => (
* ! /^(webkit|ms|moz)/ . test ( key ) &&
* ( e . style [ key ] = 10 ) &&
* e . style [ key ] === '10'
* ) )
* . map ( ( [ key ] ) => key )
* . sort ( ) ;
*
* @ type { Set }
* /
var CSS _PROPERTIES _SUPPORTS _UNITLESS = new Set ( [ 'animation' , 'animationIterationCount' , 'baselineShift' , 'borderImageOutset' , 'borderImageSlice' , 'borderImageWidth' , 'columnCount' , 'cx' , 'cy' , 'fillOpacity' , 'flexGrow' , 'flexShrink' , 'floodOpacity' , 'fontWeight' , 'gridColumnEnd' , 'gridColumnStart' , 'gridRowEnd' , 'gridRowStart' , 'lineHeight' , 'opacity' , 'order' , 'orphans' , 'r' , 'rx' , 'ry' , 'shapeImageThreshold' , 'stopOpacity' , 'strokeDasharray' , 'strokeDashoffset' , 'strokeMiterlimit' , 'strokeOpacity' , 'strokeWidth' , 'tabSize' , 'widows' , 'x' , 'y' , 'zIndex' , 'zoom' ] ) ;
/ * *
* Returns true if the specified string is prefixed by one of an array of
* possible prefixes .
*
* @ param { string } string String to check .
* @ param { string [ ] } prefixes Possible prefixes .
*
* @ return { boolean } Whether string has prefix .
* /
function hasPrefix ( string , prefixes ) {
return prefixes . some ( function ( prefix ) {
return string . indexOf ( prefix ) === 0 ;
} ) ;
}
/ * *
* Returns true if the given prop name should be ignored in attributes
* serialization , or false otherwise .
*
* @ param { string } attribute Attribute to check .
*
* @ return { boolean } Whether attribute should be ignored .
* /
function isInternalAttribute ( attribute ) {
return 'key' === attribute || 'children' === attribute ;
}
/ * *
* Returns the normal form of the element ' s attribute value for HTML .
*
* @ param { string } attribute Attribute name .
* @ param { * } value Non - normalized attribute value .
*
* @ return { string } Normalized attribute value .
* /
function getNormalAttributeValue ( attribute , value ) {
switch ( attribute ) {
case 'style' :
return renderStyle ( value ) ;
}
return value ;
}
/ * *
* Returns the normal form of the element ' s attribute name for HTML .
*
* @ param { string } attribute Non - normalized attribute name .
*
* @ return { string } Normalized attribute name .
* /
function getNormalAttributeName ( attribute ) {
switch ( attribute ) {
case 'htmlFor' :
return 'for' ;
case 'className' :
return 'class' ;
}
return attribute . toLowerCase ( ) ;
}
/ * *
* Returns the normal form of the style property name for HTML .
*
* - Converts property names to kebab - case , e . g . 'backgroundColor' → 'background-color'
* - Leaves custom attributes alone , e . g . '--myBackgroundColor' → '--myBackgroundColor'
* - Converts vendor - prefixed property names to - kebab - case , e . g . 'MozTransform' → '-moz-transform'
*
* @ param { string } property Property name .
*
* @ return { string } Normalized property name .
* /
function getNormalStylePropertyName ( property ) {
if ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "startsWith" ] ) ( property , '--' ) ) {
return property ;
}
if ( hasPrefix ( property , [ 'ms' , 'O' , 'Moz' , 'Webkit' ] ) ) {
return '-' + Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "kebabCase" ] ) ( property ) ;
}
return Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "kebabCase" ] ) ( property ) ;
}
/ * *
* Returns the normal form of the style property value for HTML . Appends a
* default pixel unit if numeric , not a unitless property , and not zero .
*
* @ param { string } property Property name .
* @ param { * } value Non - normalized property value .
*
* @ return { * } Normalized property value .
* /
function getNormalStylePropertyValue ( property , value ) {
if ( typeof value === 'number' && 0 !== value && ! CSS _PROPERTIES _SUPPORTS _UNITLESS . has ( property ) ) {
return value + 'px' ;
}
return value ;
}
/ * *
* Serializes a React element to string .
*
* @ param { WPElement } element Element to serialize .
* @ param { ? Object } context Context object .
* @ param { ? Object } legacyContext Legacy context object .
*
* @ return { string } Serialized element .
* /
function renderElement ( element , context ) {
var legacyContext = arguments . length > 2 && arguments [ 2 ] !== undefined ? arguments [ 2 ] : { } ;
if ( null === element || undefined === element || false === element ) {
return '' ;
}
if ( Array . isArray ( element ) ) {
return renderChildren ( element , context , legacyContext ) ;
}
switch ( Object ( _babel _runtime _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( element ) ) {
case 'string' :
return Object ( _wordpress _escape _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "escapeHTML" ] ) ( element ) ;
case 'number' :
return element . toString ( ) ;
}
var type = element . type ,
props = element . props ;
switch ( type ) {
case _react _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "StrictMode" ] :
case _react _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Fragment" ] :
return renderChildren ( props . children , context , legacyContext ) ;
case _raw _html _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] :
var children = props . children ,
wrapperProps = Object ( _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( props , [ "children" ] ) ;
return renderNativeComponent ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "isEmpty" ] ) ( wrapperProps ) ? null : 'div' , Object ( _babel _runtime _helpers _esm _objectSpread _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( { } , wrapperProps , {
dangerouslySetInnerHTML : {
_ _html : children
}
} ) , context , legacyContext ) ;
}
switch ( Object ( _babel _runtime _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( type ) ) {
case 'string' :
return renderNativeComponent ( type , props , context , legacyContext ) ;
case 'function' :
if ( type . prototype && typeof type . prototype . render === 'function' ) {
return renderComponent ( type , props , context , legacyContext ) ;
}
return renderElement ( type ( props , legacyContext ) , context , legacyContext ) ;
}
switch ( type && type . $$typeof ) {
case Provider . $$typeof :
return renderChildren ( props . children , props . value , legacyContext ) ;
case Consumer . $$typeof :
return renderElement ( props . children ( context || type . _currentValue ) , context , legacyContext ) ;
}
return '' ;
}
/ * *
* Serializes a native component type to string .
*
* @ param { ? string } type Native component type to serialize , or null if
* rendering as fragment of children content .
* @ param { Object } props Props object .
* @ param { ? Object } context Context object .
* @ param { ? Object } legacyContext Legacy context object .
*
* @ return { string } Serialized element .
* /
function renderNativeComponent ( type , props , context ) {
var legacyContext = arguments . length > 3 && arguments [ 3 ] !== undefined ? arguments [ 3 ] : { } ;
var content = '' ;
if ( type === 'textarea' && props . hasOwnProperty ( 'value' ) ) {
// Textarea children can be assigned as value prop. If it is, render in
// place of children. Ensure to omit so it is not assigned as attribute
// as well.
content = renderChildren ( props . value , context , legacyContext ) ;
props = Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "omit" ] ) ( props , 'value' ) ;
} else if ( props . dangerouslySetInnerHTML && typeof props . dangerouslySetInnerHTML . _ _html === 'string' ) {
// Dangerous content is left unescaped.
content = props . dangerouslySetInnerHTML . _ _html ;
} else if ( typeof props . children !== 'undefined' ) {
content = renderChildren ( props . children , context , legacyContext ) ;
}
if ( ! type ) {
return content ;
}
var attributes = renderAttributes ( props ) ;
if ( SELF _CLOSING _TAGS . has ( type ) ) {
return '<' + type + attributes + '/>' ;
}
return '<' + type + attributes + '>' + content + '</' + type + '>' ;
}
/ * *
* Serializes a non - native component type to string .
*
* @ param { Function } Component Component type to serialize .
* @ param { Object } props Props object .
* @ param { ? Object } context Context object .
* @ param { ? Object } legacyContext Legacy context object .
*
* @ return { string } Serialized element
* /
function renderComponent ( Component , props , context ) {
var legacyContext = arguments . length > 3 && arguments [ 3 ] !== undefined ? arguments [ 3 ] : { } ;
var instance = new Component ( props , legacyContext ) ;
if ( typeof instance . getChildContext === 'function' ) {
Object . assign ( legacyContext , instance . getChildContext ( ) ) ;
}
var html = renderElement ( instance . render ( ) , context , legacyContext ) ;
return html ;
}
/ * *
* Serializes an array of children to string .
*
* @ param { Array } children Children to serialize .
* @ param { ? Object } context Context object .
* @ param { ? Object } legacyContext Legacy context object .
*
* @ return { string } Serialized children .
* /
function renderChildren ( children , context ) {
var legacyContext = arguments . length > 2 && arguments [ 2 ] !== undefined ? arguments [ 2 ] : { } ;
var result = '' ;
children = Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "castArray" ] ) ( children ) ;
for ( var i = 0 ; i < children . length ; i ++ ) {
var child = children [ i ] ;
result += renderElement ( child , context , legacyContext ) ;
}
return result ;
}
/ * *
* Renders a props object as a string of HTML attributes .
*
* @ param { Object } props Props object .
*
* @ return { string } Attributes string .
* /
function renderAttributes ( props ) {
var result = '' ;
for ( var key in props ) {
var attribute = getNormalAttributeName ( key ) ;
if ( ! Object ( _wordpress _escape _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "isValidAttributeName" ] ) ( attribute ) ) {
continue ;
}
var value = getNormalAttributeValue ( key , props [ key ] ) ; // If value is not of serializeable type, skip.
if ( ! ATTRIBUTES _TYPES . has ( Object ( _babel _runtime _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( value ) ) ) {
continue ;
} // Don't render internal attribute names.
if ( isInternalAttribute ( key ) ) {
continue ;
}
var isBooleanAttribute = BOOLEAN _ATTRIBUTES . has ( attribute ) ; // Boolean attribute should be omitted outright if its value is false.
if ( isBooleanAttribute && value === false ) {
continue ;
}
var isMeaningfulAttribute = isBooleanAttribute || hasPrefix ( key , [ 'data-' , 'aria-' ] ) || ENUMERATED _ATTRIBUTES . has ( attribute ) ; // Only write boolean value as attribute if meaningful.
if ( typeof value === 'boolean' && ! isMeaningfulAttribute ) {
continue ;
}
result += ' ' + attribute ; // Boolean attributes should write attribute name, but without value.
// Mere presence of attribute name is effective truthiness.
if ( isBooleanAttribute ) {
continue ;
}
if ( typeof value === 'string' ) {
value = Object ( _wordpress _escape _html _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "escapeAttribute" ] ) ( value ) ;
}
result += '="' + value + '"' ;
}
return result ;
}
/ * *
* Renders a style object as a string attribute value .
*
* @ param { Object } style Style object .
*
* @ return { string } Style attribute value .
* /
function renderStyle ( style ) {
// Only generate from object, e.g. tolerate string value.
if ( ! Object ( lodash _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "isPlainObject" ] ) ( style ) ) {
return style ;
}
var result ;
for ( var property in style ) {
var value = style [ property ] ;
if ( null === value || undefined === value ) {
continue ;
}
if ( result ) {
result += ';' ;
} else {
result = '' ;
}
var normalName = getNormalStylePropertyName ( property ) ;
var normalValue = getNormalStylePropertyValue ( property , value ) ;
result += normalName + ':' + normalValue ;
}
return result ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( renderElement ) ;
/***/ } ) ,
2018-10-29 04:28:32 -04:00
/***/ "./node_modules/@wordpress/element/build-module/utils.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / element / build - module / utils . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2018-10-24 07:48:53 -04:00
/*! exports provided: isEmptyElement */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isEmptyElement" , function ( ) { return isEmptyElement ; } ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* Checks if the provided WP element is empty .
*
* @ param { * } element WP element to check .
* @ return { boolean } True when an element is considered empty .
* /
var isEmptyElement = function isEmptyElement ( element ) {
if ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "isNumber" ] ) ( element ) ) {
return false ;
}
if ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "isString" ] ) ( element ) || Object ( lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "isArray" ] ) ( element ) ) {
return ! element . length ;
}
return ! element ;
} ;
/***/ } ) ,
/***/ "@wordpress/escape-html" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "escapeHtml" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "escapeHtml" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "lodash" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external "lodash" * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "lodash" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "react" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external "React" * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "React" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "react-dom" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external "ReactDOM" * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "ReactDOM" ] ; } ( ) ) ;
/***/ } )
/******/ } ) ;
//# sourceMappingURL=element.js.map