2018-12-14 06:02:53 -05:00
this [ "wp" ] = this [ "wp" ] || { } ; this [ "wp" ] [ "formatLibrary" ] =
/******/ ( 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
2021-02-02 00:17:13 -05:00
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = 466 ) ;
2018-12-14 06:02:53 -05:00
/******/ } )
/************************************************************************/
/******/ ( {
2018-12-17 22:14:52 -05:00
/***/ 0 :
/***/ ( function ( module , exports ) {
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "wp" ] [ "element" ] ; } ( ) ) ;
2018-12-14 06:02:53 -05:00
2018-12-17 22:14:52 -05:00
/***/ } ) ,
/***/ 1 :
/***/ ( function ( module , exports ) {
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "wp" ] [ "i18n" ] ; } ( ) ) ;
2018-12-14 06:02:53 -05:00
/***/ } ) ,
2021-01-27 21:04:13 -05:00
/***/ 11 :
2019-09-19 11:19:18 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2020-07-07 10:43:35 -04:00
// EXPORTS
_ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return /* binding */ _slicedToArray ; } ) ;
// 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 ) {
if ( typeof Symbol === "undefined" || ! ( Symbol . iterator in Object ( arr ) ) ) return ;
var _arr = [ ] ;
var _n = true ;
var _d = false ;
var _e = undefined ;
try {
for ( var _i = arr [ Symbol . iterator ] ( ) , _s ; ! ( _n = ( _s = _i . next ( ) ) . done ) ; _n = true ) {
_arr . push ( _s . value ) ;
if ( i && _arr . length === i ) break ;
}
} catch ( err ) {
_d = true ;
_e = err ;
} finally {
try {
if ( ! _n && _i [ "return" ] != null ) _i [ "return" ] ( ) ;
} finally {
if ( _d ) throw _e ;
}
}
return _arr ;
}
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
2021-02-02 00:17:13 -05:00
var unsupportedIterableToArray = _ _webpack _require _ _ ( 31 ) ;
2020-07-07 10:43:35 -04:00
// 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
function _slicedToArray ( arr , i ) {
return Object ( arrayWithHoles [ "a" /* default */ ] ) ( arr ) || _iterableToArrayLimit ( arr , i ) || Object ( unsupportedIterableToArray [ "a" /* default */ ] ) ( arr , i ) || Object ( nonIterableRest [ "a" /* default */ ] ) ( ) ;
2019-09-19 11:19:18 -04:00
}
2020-06-26 09:33:47 -04:00
/***/ } ) ,
2021-01-27 21:04:13 -05:00
/***/ 13 :
2019-09-19 11:19:18 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2018-12-14 06:02:53 -05:00
"use strict" ;
2020-06-26 09:33:47 -04:00
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _objectWithoutProperties ; } ) ;
2021-02-02 00:17:13 -05:00
/* harmony import */ var _babel _runtime _helpers _esm _objectWithoutPropertiesLoose _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 44 ) ;
2020-06-26 09:33:47 -04:00
function _objectWithoutProperties ( source , excluded ) {
if ( source == null ) return { } ;
2021-01-27 21:04:13 -05:00
var target = Object ( _babel _runtime _helpers _esm _objectWithoutPropertiesLoose _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ /* default */ "a" ] ) ( source , excluded ) ;
2020-06-26 09:33:47 -04:00
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 ] ;
}
2018-12-14 06:02:53 -05:00
}
2020-06-26 09:33:47 -04:00
return target ;
2018-12-14 06:02:53 -05:00
}
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 138 :
2020-10-13 09:10:30 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony import */ var _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 5 ) ;
2021-01-27 21:04:13 -05:00
/* harmony import */ var _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 13 ) ;
2020-10-13 09:10:30 -04:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
function ownKeys ( object , enumerableOnly ) { var keys = Object . keys ( object ) ; if ( Object . getOwnPropertySymbols ) { var symbols = Object . getOwnPropertySymbols ( object ) ; if ( enumerableOnly ) symbols = symbols . filter ( function ( sym ) { return Object . getOwnPropertyDescriptor ( object , sym ) . enumerable ; } ) ; keys . push . apply ( keys , symbols ) ; } return keys ; }
function _objectSpread ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] != null ? arguments [ i ] : { } ; if ( i % 2 ) { ownKeys ( Object ( source ) , true ) . forEach ( function ( key ) { Object ( _babel _runtime _helpers _esm _defineProperty _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ /* default */ "a" ] ) ( target , key , source [ key ] ) ; } ) ; } else if ( Object . getOwnPropertyDescriptors ) { Object . defineProperties ( target , Object . getOwnPropertyDescriptors ( source ) ) ; } else { ownKeys ( Object ( source ) ) . forEach ( function ( key ) { Object . defineProperty ( target , key , Object . getOwnPropertyDescriptor ( source , key ) ) ; } ) ; } } return target ; }
/ * *
* WordPress dependencies
* /
2020-10-20 09:36:16 -04:00
/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
2020-10-13 09:10:30 -04:00
/ * *
* Return an SVG icon .
*
* @ param { IconProps } props icon is the SVG component to render
* size is a number specifiying the icon size in pixels
* Other props will be passed to wrapped SVG component
*
* @ return { JSX . Element } Icon component
* /
function Icon ( _ref ) {
var icon = _ref . icon ,
_ref$size = _ref . size ,
size = _ref$size === void 0 ? 24 : _ref$size ,
props = Object ( _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ /* default */ "a" ] ) ( _ref , [ "icon" , "size" ] ) ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "cloneElement" ] ) ( icon , _objectSpread ( {
width : size ,
height : size
} , props ) ) ;
}
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( Icon ) ;
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 192 :
2020-02-10 17:33:27 -05:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
2020-10-13 09:10:30 -04:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 7 ) ;
2020-02-10 17:33:27 -05:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var link = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "SVG" ] , {
xmlns : "http://www.w3.org/2000/svg" ,
2020-06-26 09:33:47 -04:00
viewBox : "0 0 24 24"
2020-02-10 17:33:27 -05:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Path" ] , {
2020-06-26 09:33:47 -04:00
d : "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"
2020-02-10 17:33:27 -05:00
} ) ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( link ) ;
2020-10-13 09:10:30 -04:00
/***/ } ) ,
/***/ 2 :
/***/ ( function ( module , exports ) {
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "lodash" ] ; } ( ) ) ;
2020-10-13 09:10:30 -04:00
/***/ } ) ,
/***/ 21 :
2021-01-27 21:04:13 -05:00
/***/ ( function ( module , exports ) {
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "wp" ] [ "richText" ] ; } ( ) ) ;
2018-12-14 06:02:53 -05:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 220 :
2020-03-16 18:07:16 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
2020-10-13 09:10:30 -04:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 7 ) ;
2020-03-16 18:07:16 -04:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var keyboardReturn = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "SVG" ] , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "-2 -2 24 24"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Path" ] , {
2021-01-27 21:04:13 -05:00
d : "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"
2020-03-16 18:07:16 -04:00
} ) ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( keyboardReturn ) ;
2020-02-06 16:03:31 -05:00
2020-07-07 12:08:28 -04:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 222 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 7 ) ;
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var textColor = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "SVG" ] , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "-2 -2 24 24"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Path" ] , {
d : "M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"
} ) ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( textColor ) ;
/***/ } ) ,
/***/ 223 :
2020-07-07 12:08:28 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
2020-10-13 09:10:30 -04:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 7 ) ;
2020-07-07 12:08:28 -04:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var linkOff = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "SVG" ] , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Path" ] , {
d : "M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"
} ) ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( linkOff ) ;
2020-06-26 09:33:47 -04:00
/***/ } ) ,
2020-02-10 17:33:27 -05:00
2020-10-20 09:36:16 -04:00
/***/ 24 :
2020-06-26 09:33:47 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2020-02-10 17:33:27 -05:00
2020-03-23 19:40:19 -04:00
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _arrayLikeToArray ; } ) ;
function _arrayLikeToArray ( arr , len ) {
if ( len == null || len > arr . length ) len = arr . length ;
for ( var i = 0 , arr2 = new Array ( len ) ; i < len ; i ++ ) {
arr2 [ i ] = arr [ i ] ;
}
return arr2 ;
}
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 3 :
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = window [ "wp" ] [ "components" ] ; } ( ) ) ;
/***/ } ) ,
/***/ 305 :
2021-01-27 21:04:13 -05:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2020-10-13 09:10:30 -04:00
2021-01-27 21:04:13 -05:00
"use strict" ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 7 ) ;
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
2020-10-13 09:10:30 -04:00
2021-01-27 21:04:13 -05:00
/ * *
* WordPress dependencies
* /
var formatStrikethrough = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "SVG" ] , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Path" ] , {
d : "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"
} ) ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( formatStrikethrough ) ;
2020-10-13 09:10:30 -04:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 31 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
2020-12-01 07:19:43 -05:00
2021-02-02 00:17:13 -05:00
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _unsupportedIterableToArray ; } ) ;
/* harmony import */ var _babel _runtime _helpers _esm _arrayLikeToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 24 ) ;
function _unsupportedIterableToArray ( o , minLen ) {
if ( ! o ) return ;
if ( typeof o === "string" ) return Object ( _babel _runtime _helpers _esm _arrayLikeToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ /* default */ "a" ] ) ( o , minLen ) ;
var n = Object . prototype . toString . call ( o ) . slice ( 8 , - 1 ) ;
if ( n === "Object" && o . constructor ) n = o . constructor . name ;
if ( n === "Map" || n === "Set" ) return Array . from ( o ) ;
if ( n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return Object ( _babel _runtime _helpers _esm _arrayLikeToArray _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ /* default */ "a" ] ) ( o , minLen ) ;
}
2020-12-01 07:19:43 -05:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 319 :
2020-03-23 19:40:19 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2021-01-27 21:04:13 -05:00
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 7 ) ;
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var button = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "SVG" ] , {
viewBox : "0 0 24 24" ,
xmlns : "http://www.w3.org/2000/svg"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Path" ] , {
d : "M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"
} ) ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( button ) ;
2020-03-23 19:40:19 -04:00
2020-02-10 17:33:27 -05:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 32 :
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = window [ "wp" ] [ "url" ] ; } ( ) ) ;
/***/ } ) ,
/***/ 320 :
2020-02-10 17:33:27 -05:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 0 ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
2020-10-13 09:10:30 -04:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 7 ) ;
2020-02-10 17:33:27 -05:00
/* harmony import */ var _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* WordPress dependencies
* /
var code = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "SVG" ] , {
viewBox : "0 0 24 24" ,
xmlns : "http://www.w3.org/2000/svg"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _primitives _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Path" ] , {
2020-06-26 09:33:47 -04:00
d : "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
2020-02-10 17:33:27 -05:00
} ) ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "a" ] = ( code ) ;
2020-03-23 19:40:19 -04:00
/***/ } ) ,
2020-06-26 09:33:47 -04:00
/***/ 38 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _arrayWithHoles ; } ) ;
function _arrayWithHoles ( arr ) {
if ( Array . isArray ( arr ) ) return arr ;
}
/***/ } ) ,
/***/ 39 :
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , function ( ) { return _nonIterableRest ; } ) ;
function _nonIterableRest ( ) {
throw new TypeError ( "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
}
/***/ } ) ,
/***/ 4 :
/***/ ( function ( module , exports ) {
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "wp" ] [ "data" ] ; } ( ) ) ;
2020-06-26 09:33:47 -04:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 44 :
2020-12-01 07:19:43 -05:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , 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 ;
}
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 466 :
2018-12-14 06:02:53 -05:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2020-06-29 07:50:29 -04:00
// ESM COMPAT FLAG
2018-12-14 06:02:53 -05:00
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
2018-12-17 22:14:52 -05:00
2020-01-08 06:57:23 -05:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
2021-01-27 21:04:13 -05:00
var objectWithoutProperties = _ _webpack _require _ _ ( 13 ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","richText"]
var external _wp _richText _ = _ _webpack _require _ _ ( 21 ) ;
2019-03-07 04:09:59 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","element"]
var external _wp _element _ = _ _webpack _require _ _ ( 0 ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","i18n"]
var external _wp _i18n _ = _ _webpack _require _ _ ( 1 ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","blockEditor"]
var external _wp _blockEditor _ = _ _webpack _require _ _ ( 6 ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","primitives"]
var external _wp _primitives _ = _ _webpack _require _ _ ( 7 ) ;
2020-02-10 17:33:27 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-bold.js
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
var formatBold = Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "SVG" ] , {
2020-02-10 17:33:27 -05:00
xmlns : "http://www.w3.org/2000/svg" ,
2020-06-26 09:33:47 -04:00
viewBox : "0 0 24 24"
2021-01-27 21:04:13 -05:00
} , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "Path" ] , {
2020-06-26 09:33:47 -04:00
d : "M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"
2020-02-10 17:33:27 -05:00
} ) ) ;
/* harmony default export */ var format _bold = ( formatBold ) ;
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/bold/index.js
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2020-02-10 17:33:27 -05:00
2018-12-17 22:14:52 -05:00
var bold _name = 'core/bold' ;
2019-09-19 11:19:18 -04:00
2021-01-27 21:04:13 -05:00
var title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Bold' ) ;
2019-09-19 11:19:18 -04:00
2018-12-14 06:02:53 -05:00
var bold = {
2018-12-17 22:14:52 -05:00
name : bold _name ,
2019-09-19 11:19:18 -04:00
title : title ,
2018-12-16 23:52:00 -05:00
tagName : 'strong' ,
className : null ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
2020-02-06 16:03:31 -05:00
onChange = _ref . onChange ,
onFocus = _ref . onFocus ;
2018-12-14 06:02:53 -05:00
2020-02-06 16:03:31 -05:00
function onToggle ( ) {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
2018-12-17 22:14:52 -05:00
type : bold _name
2018-12-14 06:02:53 -05:00
} ) ) ;
2020-02-06 16:03:31 -05:00
}
function onClick ( ) {
onToggle ( ) ;
onFocus ( ) ;
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _element _ [ "Fragment" ] , null , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "primary" ,
character : "b" ,
onUse : onToggle
2021-01-27 21:04:13 -05:00
} ) , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
2018-12-14 06:02:53 -05:00
name : "bold" ,
2020-02-10 17:33:27 -05:00
icon : format _bold ,
2019-09-19 11:19:18 -04:00
title : title ,
2020-02-06 16:03:31 -05:00
onClick : onClick ,
2018-12-14 06:02:53 -05:00
isActive : isActive ,
shortcutType : "primary" ,
shortcutCharacter : "b"
2021-01-27 21:04:13 -05:00
} ) , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "__unstableRichTextInputEvent" ] , {
2019-03-07 04:09:59 -05:00
inputType : "formatBold" ,
onInput : onToggle
2018-12-14 06:02:53 -05:00
} ) ) ;
}
} ;
2020-02-10 17:33:27 -05:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
2021-02-02 00:17:13 -05:00
var code = _ _webpack _require _ _ ( 320 ) ;
2020-02-10 17:33:27 -05:00
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/code/index.js
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2020-02-10 17:33:27 -05:00
2018-12-17 22:14:52 -05:00
var code _name = 'core/code' ;
2019-09-19 11:19:18 -04:00
2021-01-27 21:04:13 -05:00
var code _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Inline code' ) ;
2019-09-19 11:19:18 -04:00
2020-02-10 17:33:27 -05:00
var code _code = {
2018-12-17 22:14:52 -05:00
name : code _name ,
2019-09-19 11:19:18 -04:00
title : code _title ,
2018-12-16 23:52:00 -05:00
tagName : 'code' ,
className : null ,
2019-09-19 11:19:18 -04:00
_ _unstableInputRule : function _ _unstableInputRule ( value ) {
var BACKTICK = '`' ;
var _value = value ,
start = _value . start ,
text = _value . text ;
var characterBefore = text . slice ( start - 1 , start ) ; // Quick check the text for the necessary character.
if ( characterBefore !== BACKTICK ) {
return value ;
}
var textBefore = text . slice ( 0 , start - 1 ) ;
var indexBefore = textBefore . lastIndexOf ( BACKTICK ) ;
if ( indexBefore === - 1 ) {
return value ;
}
var startIndex = indexBefore ;
var endIndex = start - 2 ;
if ( startIndex === endIndex ) {
return value ;
}
2021-01-27 21:04:13 -05:00
value = Object ( external _wp _richText _ [ "remove" ] ) ( value , startIndex , startIndex + 1 ) ;
value = Object ( external _wp _richText _ [ "remove" ] ) ( value , endIndex , endIndex + 1 ) ;
value = Object ( external _wp _richText _ [ "applyFormat" ] ) ( value , {
2019-09-19 11:19:18 -04:00
type : code _name
} , startIndex , endIndex ) ;
return value ;
} ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var value = _ref . value ,
2019-03-21 08:48:00 -04:00
onChange = _ref . onChange ,
2020-02-06 16:03:31 -05:00
onFocus = _ref . onFocus ,
2019-03-21 08:48:00 -04:00
isActive = _ref . isActive ;
2018-12-14 06:02:53 -05:00
2020-02-06 16:03:31 -05:00
function onClick ( ) {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
2018-12-17 22:14:52 -05:00
type : code _name
2018-12-14 06:02:53 -05:00
} ) ) ;
2020-02-06 16:03:31 -05:00
onFocus ( ) ;
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
2020-02-10 17:33:27 -05:00
icon : code [ "a" /* default */ ] ,
2019-09-19 11:19:18 -04:00
title : code _title ,
2020-02-06 16:03:31 -05:00
onClick : onClick ,
2019-09-19 11:19:18 -04:00
isActive : isActive
} ) ;
2018-12-14 06:02:53 -05:00
}
} ;
2020-02-06 16:03:31 -05:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = _ _webpack _require _ _ ( 5 ) ;
2019-03-07 04:09:59 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = _ _webpack _require _ _ ( 11 ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","components"]
var external _wp _components _ = _ _webpack _require _ _ ( 3 ) ;
2020-02-10 17:33:27 -05:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js
2021-02-02 00:17:13 -05:00
var keyboard _return = _ _webpack _require _ _ ( 220 ) ;
2019-09-19 11:19:18 -04:00
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js
2018-12-14 06:02:53 -05:00
2020-02-06 16:03:31 -05:00
function ownKeys ( object , enumerableOnly ) { var keys = Object . keys ( object ) ; if ( Object . getOwnPropertySymbols ) { var symbols = Object . getOwnPropertySymbols ( object ) ; if ( enumerableOnly ) symbols = symbols . filter ( function ( sym ) { return Object . getOwnPropertyDescriptor ( object , sym ) . enumerable ; } ) ; keys . push . apply ( keys , symbols ) ; } return keys ; }
function _objectSpread ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] != null ? arguments [ i ] : { } ; if ( i % 2 ) { ownKeys ( Object ( source ) , true ) . forEach ( function ( key ) { Object ( defineProperty [ "a" /* default */ ] ) ( target , key , source [ key ] ) ; } ) ; } else if ( Object . getOwnPropertyDescriptors ) { Object . defineProperties ( target , Object . getOwnPropertyDescriptors ( source ) ) ; } else { ownKeys ( Object ( source ) ) . forEach ( function ( key ) { Object . defineProperty ( target , key , Object . getOwnPropertyDescriptor ( source , key ) ) ; } ) ; } } return target ; }
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2019-03-07 04:09:59 -05:00
2018-12-14 06:02:53 -05:00
var ALLOWED _MEDIA _TYPES = [ 'image' ] ;
2018-12-17 22:14:52 -05:00
var image _name = 'core/image' ;
2019-03-07 04:09:59 -05:00
2021-01-27 21:04:13 -05:00
var image _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Inline image' ) ;
2019-09-19 11:19:18 -04:00
2018-12-17 22:14:52 -05:00
var image _image = {
name : image _name ,
2019-09-19 11:19:18 -04:00
title : image _title ,
2021-01-27 21:04:13 -05:00
keywords : [ Object ( external _wp _i18n _ [ "__" ] ) ( 'photo' ) , Object ( external _wp _i18n _ [ "__" ] ) ( 'media' ) ] ,
2018-12-14 06:02:53 -05:00
object : true ,
2018-12-16 23:52:00 -05:00
tagName : 'img' ,
className : null ,
2018-12-14 06:02:53 -05:00
attributes : {
className : 'class' ,
style : 'style' ,
url : 'src' ,
alt : 'alt'
} ,
2021-01-27 21:04:13 -05:00
edit : Edit
} ;
2020-06-26 09:33:47 -04:00
2021-01-27 21:04:13 -05:00
function InlineUI ( _ref ) {
var value = _ref . value ,
onChange = _ref . onChange ,
activeObjectAttributes = _ref . activeObjectAttributes ,
contentRef = _ref . contentRef ;
var style = activeObjectAttributes . style ;
2018-12-14 06:02:53 -05:00
2021-02-02 00:17:13 -05:00
var _useState = Object ( external _wp _element _ [ "useState" ] ) ( style === null || style === void 0 ? void 0 : style . replace ( /\D/g , '' ) ) ,
2021-01-27 21:04:13 -05:00
_useState2 = Object ( slicedToArray [ "a" /* default */ ] ) ( _useState , 2 ) ,
width = _useState2 [ 0 ] ,
setWidth = _useState2 [ 1 ] ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
var anchorRef = Object ( external _wp _richText _ [ "useAnchorRef" ] ) ( {
ref : contentRef ,
value : value ,
settings : image _image
} ) ;
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _components _ [ "Popover" ] , {
position : "bottom center" ,
focusOnMount : false ,
2021-02-02 00:17:13 -05:00
anchorRef : anchorRef ,
className : "block-editor-format-toolbar__image-popover"
2021-01-27 21:04:13 -05:00
} , Object ( external _wp _element _ [ "createElement" ] ) ( "form" , {
className : "block-editor-format-toolbar__image-container-content" ,
onSubmit : function onSubmit ( event ) {
var newReplacements = value . replacements . slice ( ) ;
newReplacements [ value . start ] = {
type : image _name ,
attributes : _objectSpread ( _objectSpread ( { } , activeObjectAttributes ) , { } , {
style : "width: " . concat ( width , "px;" )
} )
2018-12-14 06:02:53 -05:00
} ;
2021-01-27 21:04:13 -05:00
onChange ( _objectSpread ( _objectSpread ( { } , value ) , { } , {
replacements : newReplacements
} ) ) ;
event . preventDefault ( ) ;
2018-12-14 06:02:53 -05:00
}
2021-01-27 21:04:13 -05:00
} , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _components _ [ "TextControl" ] , {
className : "block-editor-format-toolbar__image-container-value" ,
type : "number" ,
label : Object ( external _wp _i18n _ [ "__" ] ) ( 'Width' ) ,
value : width ,
min : 1 ,
onChange : function onChange ( newWidth ) {
return setWidth ( newWidth ) ;
}
} ) , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _components _ [ "Button" ] , {
icon : keyboard _return [ "a" /* default */ ] ,
label : Object ( external _wp _i18n _ [ "__" ] ) ( 'Apply' ) ,
type : "submit"
} ) ) ) ;
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
function Edit ( _ref2 ) {
var value = _ref2 . value ,
onChange = _ref2 . onChange ,
onFocus = _ref2 . onFocus ,
isObjectActive = _ref2 . isObjectActive ,
activeObjectAttributes = _ref2 . activeObjectAttributes ,
contentRef = _ref2 . contentRef ;
var _useState3 = Object ( external _wp _element _ [ "useState" ] ) ( false ) ,
_useState4 = Object ( slicedToArray [ "a" /* default */ ] ) ( _useState3 , 2 ) ,
isModalOpen = _useState4 [ 0 ] ,
setIsModalOpen = _useState4 [ 1 ] ;
function openModal ( ) {
setIsModalOpen ( true ) ;
}
2019-03-07 04:09:59 -05:00
2021-01-27 21:04:13 -05:00
function closeModal ( ) {
setIsModalOpen ( false ) ;
}
2019-03-07 04:09:59 -05:00
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "MediaUploadCheck" ] , null , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
icon : Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _components _ [ "SVG" ] , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _components _ [ "Path" ] , {
d : "M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"
} ) ) ,
title : image _title ,
onClick : openModal ,
isActive : isObjectActive
} ) , isModalOpen && Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "MediaUpload" ] , {
allowedTypes : ALLOWED _MEDIA _TYPES ,
onSelect : function onSelect ( _ref3 ) {
var id = _ref3 . id ,
url = _ref3 . url ,
alt = _ref3 . alt ,
imgWidth = _ref3 . width ;
closeModal ( ) ;
onChange ( Object ( external _wp _richText _ [ "insertObject" ] ) ( value , {
type : image _name ,
attributes : {
className : "wp-image-" . concat ( id ) ,
style : "width: " . concat ( Math . min ( imgWidth , 150 ) , "px;" ) ,
url : url ,
alt : alt
2019-03-07 04:09:59 -05:00
}
2021-01-27 21:04:13 -05:00
} ) ) ;
onFocus ( ) ;
} ,
onClose : closeModal ,
render : function render ( _ref4 ) {
var open = _ref4 . open ;
open ( ) ;
return null ;
}
} ) , isObjectActive && Object ( external _wp _element _ [ "createElement" ] ) ( InlineUI , {
value : value ,
onChange : onChange ,
activeObjectAttributes : activeObjectAttributes ,
contentRef : contentRef
} ) ) ;
}
2018-12-14 06:02:53 -05:00
2020-02-10 17:33:27 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-italic.js
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
var formatItalic = Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "SVG" ] , {
2020-02-10 17:33:27 -05:00
xmlns : "http://www.w3.org/2000/svg" ,
2020-06-26 09:33:47 -04:00
viewBox : "0 0 24 24"
2021-01-27 21:04:13 -05:00
} , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "Path" ] , {
2020-06-26 09:33:47 -04:00
d : "M12.5 5L10 19h1.9l2.5-14z"
2020-02-10 17:33:27 -05:00
} ) ) ;
/* harmony default export */ var format _italic = ( formatItalic ) ;
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/italic/index.js
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2020-02-10 17:33:27 -05:00
2018-12-17 22:14:52 -05:00
var italic _name = 'core/italic' ;
2019-09-19 11:19:18 -04:00
2021-01-27 21:04:13 -05:00
var italic _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Italic' ) ;
2019-09-19 11:19:18 -04:00
2018-12-14 06:02:53 -05:00
var italic = {
2018-12-17 22:14:52 -05:00
name : italic _name ,
2019-09-19 11:19:18 -04:00
title : italic _title ,
2018-12-16 23:52:00 -05:00
tagName : 'em' ,
className : null ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
2020-02-06 16:03:31 -05:00
onChange = _ref . onChange ,
onFocus = _ref . onFocus ;
2018-12-14 06:02:53 -05:00
2020-02-06 16:03:31 -05:00
function onToggle ( ) {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
2018-12-17 22:14:52 -05:00
type : italic _name
2018-12-14 06:02:53 -05:00
} ) ) ;
2020-02-06 16:03:31 -05:00
}
function onClick ( ) {
onToggle ( ) ;
onFocus ( ) ;
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _element _ [ "Fragment" ] , null , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "primary" ,
character : "i" ,
onUse : onToggle
2021-01-27 21:04:13 -05:00
} ) , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
2018-12-14 06:02:53 -05:00
name : "italic" ,
2020-02-10 17:33:27 -05:00
icon : format _italic ,
2019-09-19 11:19:18 -04:00
title : italic _title ,
2020-02-06 16:03:31 -05:00
onClick : onClick ,
2018-12-14 06:02:53 -05:00
isActive : isActive ,
shortcutType : "primary" ,
shortcutCharacter : "i"
2021-01-27 21:04:13 -05:00
} ) , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "__unstableRichTextInputEvent" ] , {
2019-03-07 04:09:59 -05:00
inputType : "formatItalic" ,
onInput : onToggle
2018-12-14 06:02:53 -05:00
} ) ) ;
}
} ;
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","url"]
2021-02-02 00:17:13 -05:00
var external _wp _url _ = _ _webpack _require _ _ ( 32 ) ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","htmlEntities"]
2021-02-02 00:17:13 -05:00
var external _wp _htmlEntities _ = _ _webpack _require _ _ ( 64 ) ;
2020-02-10 17:33:27 -05:00
2020-06-26 09:33:47 -04:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
2021-02-02 00:17:13 -05:00
var link _off = _ _webpack _require _ _ ( 223 ) ;
2020-02-10 17:33:27 -05:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
2021-02-02 00:17:13 -05:00
var library _link = _ _webpack _require _ _ ( 192 ) ;
2020-02-10 17:33:27 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","a11y"]
2021-02-02 00:17:13 -05:00
var external _wp _a11y _ = _ _webpack _require _ _ ( 48 ) ;
2020-02-10 17:33:27 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external "lodash"
var external _lodash _ = _ _webpack _require _ _ ( 2 ) ;
2018-12-14 06:02:53 -05:00
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/utils.js
/ * *
* External dependencies
* /
2018-12-14 06:02:53 -05:00
2018-12-17 22:14:52 -05:00
/ * *
* WordPress dependencies
* /
2018-12-14 06:02:53 -05:00
2018-12-17 22:14:52 -05:00
/ * *
* Check for issues with the provided href .
*
* @ param { string } href The href .
*
* @ return { boolean } Is the href invalid ?
* /
function isValidHref ( href ) {
if ( ! href ) {
return false ;
}
var trimmedHref = href . trim ( ) ;
if ( ! trimmedHref ) {
return false ;
} // Does the href start with something that looks like a URL protocol?
if ( /^\S+:/ . test ( trimmedHref ) ) {
2021-01-27 21:04:13 -05:00
var protocol = Object ( external _wp _url _ [ "getProtocol" ] ) ( trimmedHref ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
if ( ! Object ( external _wp _url _ [ "isValidProtocol" ] ) ( protocol ) ) {
2018-12-17 22:14:52 -05:00
return false ;
} // Add some extra checks for http(s) URIs, since these are the most common use-case.
// This ensures URIs with an http protocol have exactly two forward slashes following the protocol.
2021-01-27 21:04:13 -05:00
if ( Object ( external _lodash _ [ "startsWith" ] ) ( protocol , 'http' ) && ! /^https?:\/\/[^\/\s]/i . test ( trimmedHref ) ) {
2018-12-17 22:14:52 -05:00
return false ;
}
2021-01-27 21:04:13 -05:00
var authority = Object ( external _wp _url _ [ "getAuthority" ] ) ( trimmedHref ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
if ( ! Object ( external _wp _url _ [ "isValidAuthority" ] ) ( authority ) ) {
2018-12-17 22:14:52 -05:00
return false ;
}
2021-01-27 21:04:13 -05:00
var path = Object ( external _wp _url _ [ "getPath" ] ) ( trimmedHref ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
if ( path && ! Object ( external _wp _url _ [ "isValidPath" ] ) ( path ) ) {
2018-12-17 22:14:52 -05:00
return false ;
}
2021-01-27 21:04:13 -05:00
var queryString = Object ( external _wp _url _ [ "getQueryString" ] ) ( trimmedHref ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
if ( queryString && ! Object ( external _wp _url _ [ "isValidQueryString" ] ) ( queryString ) ) {
2018-12-17 22:14:52 -05:00
return false ;
}
2021-01-27 21:04:13 -05:00
var fragment = Object ( external _wp _url _ [ "getFragment" ] ) ( trimmedHref ) ;
2018-12-17 22:14:52 -05:00
2021-01-27 21:04:13 -05:00
if ( fragment && ! Object ( external _wp _url _ [ "isValidFragment" ] ) ( fragment ) ) {
2018-12-17 22:14:52 -05:00
return false ;
}
} // Validate anchor links.
2021-01-27 21:04:13 -05:00
if ( Object ( external _lodash _ [ "startsWith" ] ) ( trimmedHref , '#' ) && ! Object ( external _wp _url _ [ "isValidFragment" ] ) ( trimmedHref ) ) {
2018-12-17 22:14:52 -05:00
return false ;
}
return true ;
}
2019-03-07 04:09:59 -05:00
/ * *
* Generates the format object that will be applied to the link text .
*
2019-09-19 11:19:18 -04:00
* @ param { Object } options
* @ param { string } options . url The href of the link .
2020-06-26 09:33:47 -04:00
* @ param { string } options . type The type of the link .
* @ param { string } options . id The ID of the link .
2019-09-19 11:19:18 -04:00
* @ param { boolean } options . opensInNewWindow Whether this link will open in a new window .
2019-03-07 04:09:59 -05:00
*
* @ return { Object } The final format object .
* /
function createLinkFormat ( _ref ) {
var url = _ref . url ,
2020-06-26 09:33:47 -04:00
type = _ref . type ,
id = _ref . id ,
2020-02-17 18:02:14 -05:00
opensInNewWindow = _ref . opensInNewWindow ;
2019-03-07 04:09:59 -05:00
var format = {
type : 'core/link' ,
attributes : {
url : url
}
} ;
2020-06-26 09:33:47 -04:00
if ( type ) format . attributes . type = type ;
if ( id ) format . attributes . id = id ;
2019-03-07 04:09:59 -05:00
if ( opensInNewWindow ) {
format . attributes . target = '_blank' ;
format . attributes . rel = 'noreferrer noopener' ;
}
return format ;
}
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/inline.js
2018-12-14 06:02:53 -05:00
2020-02-10 17:33:27 -05:00
function inline _ownKeys ( object , enumerableOnly ) { var keys = Object . keys ( object ) ; if ( Object . getOwnPropertySymbols ) { var symbols = Object . getOwnPropertySymbols ( object ) ; if ( enumerableOnly ) symbols = symbols . filter ( function ( sym ) { return Object . getOwnPropertyDescriptor ( object , sym ) . enumerable ; } ) ; keys . push . apply ( keys , symbols ) ; } return keys ; }
function inline _objectSpread ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] != null ? arguments [ i ] : { } ; if ( i % 2 ) { inline _ownKeys ( Object ( source ) , true ) . forEach ( function ( key ) { Object ( defineProperty [ "a" /* default */ ] ) ( target , key , source [ key ] ) ; } ) ; } else if ( Object . getOwnPropertyDescriptors ) { Object . defineProperties ( target , Object . getOwnPropertyDescriptors ( source ) ) ; } else { inline _ownKeys ( Object ( source ) ) . forEach ( function ( key ) { Object . defineProperty ( target , key , Object . getOwnPropertyDescriptor ( source , key ) ) ; } ) ; } } return target ; }
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
2021-01-27 21:04:13 -05:00
2020-02-06 16:03:31 -05:00
function InlineLinkUI ( _ref ) {
2019-09-19 11:19:18 -04:00
var isActive = _ref . isActive ,
2020-02-06 16:03:31 -05:00
activeAttributes = _ref . activeAttributes ,
2019-09-19 11:19:18 -04:00
addingLink = _ref . addingLink ,
value = _ref . value ,
2020-02-06 16:03:31 -05:00
onChange = _ref . onChange ,
speak = _ref . speak ,
2021-01-27 21:04:13 -05:00
stopAddingLink = _ref . stopAddingLink ,
contentRef = _ref . contentRef ;
2020-02-06 16:03:31 -05:00
2020-02-10 17:33:27 -05:00
/ * *
* Pending settings to be applied to the next link . When inserting a new
* link , toggle values cannot be applied immediately , because there is not
* yet a link for them to apply to . Thus , they are maintained in a state
* value until the time that the link can be inserted or edited .
*
* @ type { [ Object | undefined , Function ] }
* /
2021-01-27 21:04:13 -05:00
var _useState = Object ( external _wp _element _ [ "useState" ] ) ( ) ,
2020-02-10 17:33:27 -05:00
_useState2 = Object ( slicedToArray [ "a" /* default */ ] ) ( _useState , 2 ) ,
nextLinkValue = _useState2 [ 0 ] ,
setNextLinkValue = _useState2 [ 1 ] ;
var linkValue = inline _objectSpread ( {
2020-02-06 16:03:31 -05:00
url : activeAttributes . url ,
2020-06-26 09:33:47 -04:00
type : activeAttributes . type ,
id : activeAttributes . id ,
2020-02-06 16:03:31 -05:00
opensInNewTab : activeAttributes . target === '_blank'
2020-02-10 17:33:27 -05:00
} , nextLinkValue ) ;
2018-12-14 06:02:53 -05:00
2020-02-06 16:03:31 -05:00
function onChangeLink ( nextValue ) {
2020-02-10 17:33:27 -05:00
// Merge with values from state, both for the purpose of assigning the
// next state value, and for use in constructing the new link format if
// the link is ready to be applied.
2020-10-13 09:10:30 -04:00
nextValue = inline _objectSpread ( inline _objectSpread ( { } , nextLinkValue ) , nextValue ) ; // LinkControl calls `onChange` immediately upon the toggling a setting.
2020-02-10 17:33:27 -05:00
var didToggleSetting = linkValue . opensInNewTab !== nextValue . opensInNewTab && linkValue . url === nextValue . url ; // If change handler was called as a result of a settings change during
// link insertion, it must be held in state until the link is ready to
// be applied.
var didToggleSettingForNewLink = didToggleSetting && nextValue . url === undefined ; // If link will be assigned, the state value can be considered flushed.
// Otherwise, persist the pending changes.
setNextLinkValue ( didToggleSettingForNewLink ? nextValue : undefined ) ;
if ( didToggleSettingForNewLink ) {
return ;
}
2021-01-27 21:04:13 -05:00
var newUrl = Object ( external _wp _url _ [ "prependHTTP" ] ) ( nextValue . url ) ;
2020-02-06 16:03:31 -05:00
var format = createLinkFormat ( {
url : newUrl ,
2020-06-26 09:33:47 -04:00
type : nextValue . type ,
id : nextValue . id !== undefined && nextValue . id !== null ? String ( nextValue . id ) : undefined ,
2020-02-17 18:02:14 -05:00
opensInNewWindow : nextValue . opensInNewTab
2020-02-06 16:03:31 -05:00
} ) ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
if ( Object ( external _wp _richText _ [ "isCollapsed" ] ) ( value ) && ! isActive ) {
2020-06-26 09:33:47 -04:00
var newText = nextValue . title || newUrl ;
2021-01-27 21:04:13 -05:00
var toInsert = Object ( external _wp _richText _ [ "applyFormat" ] ) ( Object ( external _wp _richText _ [ "create" ] ) ( {
2020-06-26 09:33:47 -04:00
text : newText
} ) , format , 0 , newText . length ) ;
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "insert" ] ) ( value , toInsert ) ) ;
2020-02-06 16:03:31 -05:00
} else {
2021-01-27 21:04:13 -05:00
var newValue = Object ( external _wp _richText _ [ "applyFormat" ] ) ( value , format ) ;
2020-06-26 09:33:47 -04:00
newValue . start = newValue . end ;
newValue . activeFormats = [ ] ;
onChange ( newValue ) ;
2020-02-10 17:33:27 -05:00
} // Focus should only be shifted back to the formatted segment when the
// URL is submitted.
2018-12-14 06:02:53 -05:00
2020-02-10 17:33:27 -05:00
if ( ! didToggleSetting ) {
stopAddingLink ( ) ;
}
2019-10-15 12:17:12 -04:00
2020-02-06 16:03:31 -05:00
if ( ! isValidHref ( newUrl ) ) {
2021-01-27 21:04:13 -05:00
speak ( Object ( external _wp _i18n _ [ "__" ] ) ( 'Warning: the link has been inserted but may have errors. Please test it.' ) , 'assertive' ) ;
2020-02-06 16:03:31 -05:00
} else if ( isActive ) {
2021-01-27 21:04:13 -05:00
speak ( Object ( external _wp _i18n _ [ "__" ] ) ( 'Link edited.' ) , 'assertive' ) ;
2020-02-06 16:03:31 -05:00
} else {
2021-01-27 21:04:13 -05:00
speak ( Object ( external _wp _i18n _ [ "__" ] ) ( 'Link inserted.' ) , 'assertive' ) ;
2018-12-14 06:02:53 -05:00
}
2020-02-06 16:03:31 -05:00
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
var anchorRef = Object ( external _wp _richText _ [ "useAnchorRef" ] ) ( {
ref : contentRef ,
value : value ,
settings : link _link
} ) ; // The focusOnMount prop shouldn't evolve during render of a Popover
// otherwise it causes a render of the content.
var focusOnMount = Object ( external _wp _element _ [ "useRef" ] ) ( addingLink ? 'firstElement' : false ) ;
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _components _ [ "Popover" ] , {
2020-02-06 16:03:31 -05:00
anchorRef : anchorRef ,
2021-01-27 21:04:13 -05:00
focusOnMount : focusOnMount . current ,
2020-02-06 16:03:31 -05:00
onClose : stopAddingLink ,
position : "bottom center"
2021-01-27 21:04:13 -05:00
} , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "__experimentalLinkControl" ] , {
2020-02-06 16:03:31 -05:00
value : linkValue ,
2020-02-10 17:33:27 -05:00
onChange : onChangeLink ,
forceIsEditingLink : addingLink
2020-02-06 16:03:31 -05:00
} ) ) ;
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
/* harmony default export */ var inline = ( Object ( external _wp _components _ [ "withSpokenMessages" ] ) ( InlineLinkUI ) ) ;
2018-12-14 06:02:53 -05:00
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/index.js
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
/ * *
* WordPress dependencies
* /
2018-12-14 06:02:53 -05:00
2020-06-26 09:33:47 -04:00
2018-12-14 06:02:53 -05:00
/ * *
2021-01-27 21:04:13 -05:00
* Internal dependencies
2018-12-14 06:02:53 -05:00
* /
2021-01-27 21:04:13 -05:00
var link _name = 'core/link' ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
var link _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Link' ) ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
function link _Edit ( _ref ) {
var isActive = _ref . isActive ,
activeAttributes = _ref . activeAttributes ,
value = _ref . value ,
onChange = _ref . onChange ,
onFocus = _ref . onFocus ,
contentRef = _ref . contentRef ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
var _useState = Object ( external _wp _element _ [ "useState" ] ) ( false ) ,
_useState2 = Object ( slicedToArray [ "a" /* default */ ] ) ( _useState , 2 ) ,
addingLink = _useState2 [ 0 ] ,
setAddingLink = _useState2 [ 1 ] ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
function addLink ( ) {
var text = Object ( external _wp _richText _ [ "getTextContent" ] ) ( Object ( external _wp _richText _ [ "slice" ] ) ( value ) ) ;
2019-09-19 11:19:18 -04:00
2021-01-27 21:04:13 -05:00
if ( text && Object ( external _wp _url _ [ "isURL" ] ) ( text ) ) {
onChange ( Object ( external _wp _richText _ [ "applyFormat" ] ) ( value , {
type : link _name ,
attributes : {
url : text
}
} ) ) ;
} else if ( text && Object ( external _wp _url _ [ "isEmail" ] ) ( text ) ) {
onChange ( Object ( external _wp _richText _ [ "applyFormat" ] ) ( value , {
type : link _name ,
attributes : {
url : "mailto:" . concat ( text )
}
} ) ) ;
} else {
setAddingLink ( true ) ;
}
}
2020-02-10 17:33:27 -05:00
2021-01-27 21:04:13 -05:00
function stopAddingLink ( ) {
setAddingLink ( false ) ;
onFocus ( ) ;
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
function onRemoveFormat ( ) {
onChange ( Object ( external _wp _richText _ [ "removeFormat" ] ) ( value , link _name ) ) ;
Object ( external _wp _a11y _ [ "speak" ] ) ( Object ( external _wp _i18n _ [ "__" ] ) ( 'Link removed.' ) , 'assertive' ) ;
}
2019-09-19 11:19:18 -04:00
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _element _ [ "Fragment" ] , null , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextShortcut" ] , {
type : "primary" ,
character : "k" ,
onUse : addLink
} ) , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextShortcut" ] , {
type : "primaryShift" ,
character : "k" ,
onUse : onRemoveFormat
} ) , isActive && Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
name : "link" ,
icon : link _off [ "a" /* default */ ] ,
title : Object ( external _wp _i18n _ [ "__" ] ) ( 'Unlink' ) ,
onClick : onRemoveFormat ,
isActive : isActive ,
shortcutType : "primaryShift" ,
shortcutCharacter : "k"
} ) , ! isActive && Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
name : "link" ,
icon : library _link [ "a" /* default */ ] ,
title : link _title ,
onClick : addLink ,
isActive : isActive ,
shortcutType : "primary" ,
shortcutCharacter : "k"
} ) , ( addingLink || isActive ) && Object ( external _wp _element _ [ "createElement" ] ) ( inline , {
addingLink : addingLink ,
stopAddingLink : stopAddingLink ,
isActive : isActive ,
activeAttributes : activeAttributes ,
value : value ,
onChange : onChange ,
contentRef : contentRef
} ) ) ;
}
2019-09-19 11:19:18 -04:00
2018-12-17 22:14:52 -05:00
var link _link = {
name : link _name ,
2019-09-19 11:19:18 -04:00
title : link _title ,
2018-12-17 22:14:52 -05:00
tagName : 'a' ,
className : null ,
attributes : {
url : 'href' ,
2020-06-26 09:33:47 -04:00
type : 'data-type' ,
id : 'data-id' ,
2018-12-17 22:14:52 -05:00
target : 'target'
} ,
2021-01-27 21:04:13 -05:00
_ _unstablePasteRule : function _ _unstablePasteRule ( value , _ref2 ) {
var html = _ref2 . html ,
plainText = _ref2 . plainText ;
2019-09-19 11:19:18 -04:00
2021-01-27 21:04:13 -05:00
if ( Object ( external _wp _richText _ [ "isCollapsed" ] ) ( value ) ) {
2019-09-19 11:19:18 -04:00
return value ;
}
var pastedText = ( html || plainText ) . replace ( /<[^>]+>/g , '' ) . trim ( ) ; // A URL was pasted, turn the selection into a link
2021-01-27 21:04:13 -05:00
if ( ! Object ( external _wp _url _ [ "isURL" ] ) ( pastedText ) ) {
2019-09-19 11:19:18 -04:00
return value ;
} // Allows us to ask for this information when we get a report.
window . console . log ( 'Created link:\n\n' , pastedText ) ;
2021-01-27 21:04:13 -05:00
return Object ( external _wp _richText _ [ "applyFormat" ] ) ( value , {
2019-09-19 11:19:18 -04:00
type : link _name ,
attributes : {
2021-01-27 21:04:13 -05:00
url : Object ( external _wp _htmlEntities _ [ "decodeEntities" ] ) ( pastedText )
2019-09-19 11:19:18 -04:00
}
} ) ;
} ,
2021-01-27 21:04:13 -05:00
edit : link _Edit
2018-12-17 22:14:52 -05:00
} ;
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js
2021-02-02 00:17:13 -05:00
var format _strikethrough = _ _webpack _require _ _ ( 305 ) ;
2020-02-10 17:33:27 -05:00
2018-12-17 22:14:52 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2020-02-10 17:33:27 -05:00
2018-12-17 22:14:52 -05:00
var strikethrough _name = 'core/strikethrough' ;
2019-09-19 11:19:18 -04:00
2021-01-27 21:04:13 -05:00
var strikethrough _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Strikethrough' ) ;
2019-09-19 11:19:18 -04:00
2018-12-14 06:02:53 -05:00
var strikethrough = {
2018-12-17 22:14:52 -05:00
name : strikethrough _name ,
2019-09-19 11:19:18 -04:00
title : strikethrough _title ,
2019-03-21 08:48:00 -04:00
tagName : 's' ,
2018-12-16 23:52:00 -05:00
className : null ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
2020-02-06 16:03:31 -05:00
onChange = _ref . onChange ,
onFocus = _ref . onFocus ;
2018-12-14 06:02:53 -05:00
2020-02-06 16:03:31 -05:00
function onClick ( ) {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
2018-12-17 22:14:52 -05:00
type : strikethrough _name
2018-12-14 06:02:53 -05:00
} ) ) ;
2020-02-06 16:03:31 -05:00
onFocus ( ) ;
}
2018-12-14 06:02:53 -05:00
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
icon : format _strikethrough [ "a" /* default */ ] ,
2019-09-19 11:19:18 -04:00
title : strikethrough _title ,
2020-02-06 16:03:31 -05:00
onClick : onClick ,
2019-09-19 11:19:18 -04:00
isActive : isActive
} ) ;
2018-12-14 06:02:53 -05:00
}
} ;
2019-03-07 04:09:59 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/underline/index.js
2018-12-14 06:02:53 -05:00
2018-12-16 23:52:00 -05:00
2019-03-07 04:09:59 -05:00
/ * *
* WordPress dependencies
* /
var underline _name = 'core/underline' ;
var underline = {
name : underline _name ,
2021-01-27 21:04:13 -05:00
title : Object ( external _wp _i18n _ [ "__" ] ) ( 'Underline' ) ,
2019-03-07 04:09:59 -05:00
tagName : 'span' ,
className : null ,
attributes : {
style : 'style'
} ,
edit : function edit ( _ref ) {
var value = _ref . value ,
onChange = _ref . onChange ;
var onToggle = function onToggle ( ) {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
2019-03-07 04:09:59 -05:00
type : underline _name ,
attributes : {
style : 'text-decoration: underline;'
}
} ) ) ;
} ;
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _element _ [ "Fragment" ] , null , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextShortcut" ] , {
2019-03-07 04:09:59 -05:00
type : "primary" ,
character : "u" ,
onUse : onToggle
2021-01-27 21:04:13 -05:00
} ) , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "__unstableRichTextInputEvent" ] , {
2019-03-07 04:09:59 -05:00
inputType : "formatUnderline" ,
onInput : onToggle
} ) ) ;
}
} ;
2020-06-26 09:33:47 -04:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
2021-02-02 00:17:13 -05:00
var icon = _ _webpack _require _ _ ( 138 ) ;
2020-06-26 09:33:47 -04:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/text-color.js
2021-02-02 00:17:13 -05:00
var text _color = _ _webpack _require _ _ ( 222 ) ;
2020-10-13 09:10:30 -04:00
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: external ["wp","data"]
var external _wp _data _ = _ _webpack _require _ _ ( 4 ) ;
2020-02-10 17:33:27 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/inline.js
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
/ * *
* Internal dependencies
* /
2020-02-10 17:33:27 -05:00
function getActiveColor ( formatName , formatValue , colors ) {
2021-01-27 21:04:13 -05:00
var activeColorFormat = Object ( external _wp _richText _ [ "getActiveFormat" ] ) ( formatValue , formatName ) ;
2020-02-10 17:33:27 -05:00
if ( ! activeColorFormat ) {
return ;
}
var styleColor = activeColorFormat . attributes . style ;
if ( styleColor ) {
return styleColor . replace ( new RegExp ( "^color:\\s*" ) , '' ) ;
}
var currentClass = activeColorFormat . attributes . class ;
if ( currentClass ) {
2020-10-13 09:10:30 -04:00
var colorSlug = currentClass . replace ( /.*has-([^\s]*)-color.*/ , '$1' ) ;
2021-01-27 21:04:13 -05:00
return Object ( external _wp _blockEditor _ [ "getColorObjectByAttributeValues" ] ) ( colors , colorSlug ) . color ;
2020-02-10 17:33:27 -05:00
}
}
2021-01-27 21:04:13 -05:00
var inline _ColorPicker = function ColorPicker ( _ref ) {
var name = _ref . name ,
value = _ref . value ,
onChange = _ref . onChange ;
var colors = Object ( external _wp _data _ [ "useSelect" ] ) ( function ( select ) {
2020-02-10 17:33:27 -05:00
var _select = select ( 'core/block-editor' ) ,
getSettings = _select . getSettings ;
2021-01-27 21:04:13 -05:00
return Object ( external _lodash _ [ "get" ] ) ( getSettings ( ) , [ 'colors' ] , [ ] ) ;
2020-02-10 17:33:27 -05:00
} ) ;
2021-01-27 21:04:13 -05:00
var onColorChange = Object ( external _wp _element _ [ "useCallback" ] ) ( function ( color ) {
2020-02-10 17:33:27 -05:00
if ( color ) {
2021-01-27 21:04:13 -05:00
var colorObject = Object ( external _wp _blockEditor _ [ "getColorObjectByColorValue" ] ) ( colors , color ) ;
onChange ( Object ( external _wp _richText _ [ "applyFormat" ] ) ( value , {
2020-02-10 17:33:27 -05:00
type : name ,
attributes : colorObject ? {
2021-01-27 21:04:13 -05:00
class : Object ( external _wp _blockEditor _ [ "getColorClassName" ] ) ( 'color' , colorObject . slug )
2020-02-10 17:33:27 -05:00
} : {
style : "color:" . concat ( color )
}
} ) ) ;
} else {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "removeFormat" ] ) ( value , name ) ) ;
2020-02-10 17:33:27 -05:00
}
} , [ colors , onChange ] ) ;
2021-01-27 21:04:13 -05:00
var activeColor = Object ( external _wp _element _ [ "useMemo" ] ) ( function ( ) {
2020-02-10 17:33:27 -05:00
return getActiveColor ( name , value , colors ) ;
} , [ name , value , colors ] ) ;
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "ColorPalette" ] , {
2020-02-10 17:33:27 -05:00
value : activeColor ,
onChange : onColorChange
} ) ;
} ;
2021-01-27 21:04:13 -05:00
function InlineColorUI ( _ref2 ) {
var name = _ref2 . name ,
value = _ref2 . value ,
onChange = _ref2 . onChange ,
onClose = _ref2 . onClose ,
contentRef = _ref2 . contentRef ;
var anchorRef = Object ( external _wp _richText _ [ "useAnchorRef" ] ) ( {
ref : contentRef ,
value : value ,
settings : textColor
} ) ;
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "URLPopover" ] , {
2020-02-10 17:33:27 -05:00
value : value ,
onClose : onClose ,
2021-01-27 21:04:13 -05:00
className : "components-inline-color-popover" ,
anchorRef : anchorRef
} , Object ( external _wp _element _ [ "createElement" ] ) ( inline _ColorPicker , {
2020-02-10 17:33:27 -05:00
name : name ,
value : value ,
onChange : onChange
} ) ) ;
2020-10-20 09:36:16 -04:00
}
2020-02-10 17:33:27 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/index.js
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Internal dependencies
* /
var text _color _name = 'core/text-color' ;
2021-01-27 21:04:13 -05:00
var text _color _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Text color' ) ;
2020-02-10 17:33:27 -05:00
var EMPTY _ARRAY = [ ] ;
function TextColorEdit ( _ref ) {
var value = _ref . value ,
2021-01-27 21:04:13 -05:00
_onChange = _ref . onChange ,
2020-02-10 17:33:27 -05:00
isActive = _ref . isActive ,
2021-01-27 21:04:13 -05:00
activeAttributes = _ref . activeAttributes ,
contentRef = _ref . contentRef ;
var allowCustomControl = Object ( external _wp _blockEditor _ [ "__experimentalUseEditorFeature" ] ) ( 'color.custom' ) ;
var colors = Object ( external _wp _blockEditor _ [ "__experimentalUseEditorFeature" ] ) ( 'color.palette' ) || EMPTY _ARRAY ;
2020-02-10 17:33:27 -05:00
2021-01-27 21:04:13 -05:00
var _useState = Object ( external _wp _element _ [ "useState" ] ) ( false ) ,
2020-02-10 17:33:27 -05:00
_useState2 = Object ( slicedToArray [ "a" /* default */ ] ) ( _useState , 2 ) ,
isAddingColor = _useState2 [ 0 ] ,
setIsAddingColor = _useState2 [ 1 ] ;
2021-01-27 21:04:13 -05:00
var enableIsAddingColor = Object ( external _wp _element _ [ "useCallback" ] ) ( function ( ) {
2020-02-10 17:33:27 -05:00
return setIsAddingColor ( true ) ;
} , [ setIsAddingColor ] ) ;
2021-01-27 21:04:13 -05:00
var disableIsAddingColor = Object ( external _wp _element _ [ "useCallback" ] ) ( function ( ) {
2020-02-10 17:33:27 -05:00
return setIsAddingColor ( false ) ;
} , [ setIsAddingColor ] ) ;
2021-01-27 21:04:13 -05:00
var colorIndicatorStyle = Object ( external _wp _element _ [ "useMemo" ] ) ( function ( ) {
2020-02-10 17:33:27 -05:00
var activeColor = getActiveColor ( text _color _name , value , colors ) ;
if ( ! activeColor ) {
return undefined ;
}
return {
backgroundColor : activeColor
} ;
} , [ value , colors ] ) ;
2021-01-27 21:04:13 -05:00
var hasColorsToChoose = ! Object ( external _lodash _ [ "isEmpty" ] ) ( colors ) || ! allowCustomControl ;
2020-02-17 18:02:14 -05:00
if ( ! hasColorsToChoose && ! isActive ) {
return null ;
}
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _element _ [ "Fragment" ] , null , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
2020-02-10 17:33:27 -05:00
key : isActive ? 'text-color' : 'text-color-not-active' ,
className : "format-library-text-color-button" ,
name : isActive ? 'text-color' : undefined ,
2021-01-27 21:04:13 -05:00
icon : Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _element _ [ "Fragment" ] , null , Object ( external _wp _element _ [ "createElement" ] ) ( icon [ "a" /* default */ ] , {
2020-06-26 09:33:47 -04:00
icon : text _color [ "a" /* default */ ]
2021-01-27 21:04:13 -05:00
} ) , isActive && Object ( external _wp _element _ [ "createElement" ] ) ( "span" , {
2020-02-10 17:33:27 -05:00
className : "format-library-text-color-button__indicator" ,
style : colorIndicatorStyle
} ) ) ,
2020-02-17 18:02:14 -05:00
title : text _color _title // If has no colors to choose but a color is active remove the color onClick
,
onClick : hasColorsToChoose ? enableIsAddingColor : function ( ) {
2021-01-27 21:04:13 -05:00
return _onChange ( Object ( external _wp _richText _ [ "removeFormat" ] ) ( value , text _color _name ) ) ;
2020-02-17 18:02:14 -05:00
}
2021-01-27 21:04:13 -05:00
} ) , isAddingColor && Object ( external _wp _element _ [ "createElement" ] ) ( InlineColorUI , {
2020-02-10 17:33:27 -05:00
name : text _color _name ,
onClose : disableIsAddingColor ,
activeAttributes : activeAttributes ,
value : value ,
2021-01-27 21:04:13 -05:00
onChange : function onChange ( ) {
_onChange . apply ( void 0 , arguments ) ;
disableIsAddingColor ( ) ;
} ,
contentRef : contentRef
2020-02-10 17:33:27 -05:00
} ) ) ;
}
var textColor = {
name : text _color _name ,
title : text _color _title ,
tagName : 'span' ,
className : 'has-inline-color' ,
attributes : {
style : 'style' ,
class : 'class'
} ,
edit : TextColorEdit
} ;
2020-06-26 09:33:47 -04:00
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/subscript.js
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
var subscript = Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "SVG" ] , {
2020-06-26 09:33:47 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
2021-01-27 21:04:13 -05:00
} , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "Path" ] , {
2020-06-26 09:33:47 -04:00
d : "M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"
} ) ) ;
/* harmony default export */ var library _subscript = ( subscript ) ;
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/subscript/index.js
/ * *
* WordPress dependencies
* /
var subscript _name = 'core/subscript' ;
2021-01-27 21:04:13 -05:00
var subscript _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Subscript' ) ;
2020-06-26 09:33:47 -04:00
var subscript _subscript = {
name : subscript _name ,
title : subscript _title ,
tagName : 'sub' ,
className : null ,
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
onChange = _ref . onChange ,
onFocus = _ref . onFocus ;
function onToggle ( ) {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
2020-06-26 09:33:47 -04:00
type : subscript _name
} ) ) ;
}
function onClick ( ) {
onToggle ( ) ;
onFocus ( ) ;
}
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
2020-06-26 09:33:47 -04:00
icon : library _subscript ,
title : subscript _title ,
onClick : onClick ,
isActive : isActive
} ) ;
}
} ;
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/superscript.js
/ * *
* WordPress dependencies
* /
2021-01-27 21:04:13 -05:00
var superscript = Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "SVG" ] , {
2020-06-26 09:33:47 -04:00
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
2021-01-27 21:04:13 -05:00
} , Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _primitives _ [ "Path" ] , {
2020-06-26 09:33:47 -04:00
d : "M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"
} ) ) ;
/* harmony default export */ var library _superscript = ( superscript ) ;
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/superscript/index.js
/ * *
* WordPress dependencies
* /
var superscript _name = 'core/superscript' ;
2021-01-27 21:04:13 -05:00
var superscript _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Superscript' ) ;
2020-06-26 09:33:47 -04:00
var superscript _superscript = {
name : superscript _name ,
title : superscript _title ,
tagName : 'sup' ,
className : null ,
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
onChange = _ref . onChange ,
onFocus = _ref . onFocus ;
function onToggle ( ) {
2021-01-27 21:04:13 -05:00
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
2020-06-26 09:33:47 -04:00
type : superscript _name
} ) ) ;
}
function onClick ( ) {
onToggle ( ) ;
onFocus ( ) ;
}
2021-01-27 21:04:13 -05:00
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
2020-06-26 09:33:47 -04:00
icon : library _superscript ,
title : superscript _title ,
onClick : onClick ,
isActive : isActive
} ) ;
}
} ;
2021-01-27 21:04:13 -05:00
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/button.js
2021-02-02 00:17:13 -05:00
var library _button = _ _webpack _require _ _ ( 319 ) ;
2021-01-27 21:04:13 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/keyboard/index.js
/ * *
* WordPress dependencies
* /
var keyboard _name = 'core/keyboard' ;
var keyboard _title = Object ( external _wp _i18n _ [ "__" ] ) ( 'Keyboard input' ) ;
var keyboard = {
name : keyboard _name ,
title : keyboard _title ,
tagName : 'kbd' ,
className : null ,
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
onChange = _ref . onChange ,
onFocus = _ref . onFocus ;
function onToggle ( ) {
onChange ( Object ( external _wp _richText _ [ "toggleFormat" ] ) ( value , {
type : keyboard _name
} ) ) ;
}
function onClick ( ) {
onToggle ( ) ;
onFocus ( ) ;
}
return Object ( external _wp _element _ [ "createElement" ] ) ( external _wp _blockEditor _ [ "RichTextToolbarButton" ] , {
icon : library _button [ "a" /* default */ ] ,
title : keyboard _title ,
onClick : onClick ,
isActive : isActive
} ) ;
}
} ;
2019-03-07 04:09:59 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/default-formats.js
2018-12-17 22:14:52 -05:00
/ * *
* Internal dependencies
* /
2018-12-16 23:52:00 -05:00
2019-03-07 04:09:59 -05:00
2020-02-10 17:33:27 -05:00
2020-06-26 09:33:47 -04:00
2021-01-27 21:04:13 -05:00
/* harmony default export */ var default _formats = ( [ bold , code _code , image _image , italic , link _link , strikethrough , underline , textColor , subscript _subscript , superscript _superscript , keyboard ] ) ;
2019-03-07 04:09:59 -05:00
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/index.js
2018-12-17 22:14:52 -05:00
/ * *
* WordPress dependencies
* /
2018-12-16 23:52:00 -05:00
2019-03-07 04:09:59 -05:00
/ * *
* Internal dependencies
* /
2018-12-16 23:52:00 -05:00
2019-03-07 04:09:59 -05:00
default _formats . forEach ( function ( _ref ) {
2018-12-17 22:14:52 -05:00
var name = _ref . name ,
settings = Object ( objectWithoutProperties [ "a" /* default */ ] ) ( _ref , [ "name" ] ) ;
2018-12-16 23:52:00 -05:00
2021-01-27 21:04:13 -05:00
return Object ( external _wp _richText _ [ "registerFormatType" ] ) ( name , settings ) ;
2018-12-17 22:14:52 -05:00
} ) ;
2018-12-16 23:52:00 -05:00
2021-01-27 21:04:13 -05:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 48 :
2021-01-27 21:04:13 -05:00
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = window [ "wp" ] [ "a11y" ] ; } ( ) ) ;
2018-12-14 06:02:53 -05:00
/***/ } ) ,
2020-02-06 16:03:31 -05:00
/***/ 5 :
2019-09-19 11:19:18 -04:00
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
2020-02-06 16:03:31 -05:00
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "a" , 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 ;
2019-09-19 11:19:18 -04:00
}
2020-02-06 16:03:31 -05:00
return obj ;
2019-09-19 11:19:18 -04:00
}
/***/ } ) ,
2020-06-26 09:33:47 -04:00
/***/ 6 :
/***/ ( function ( module , exports ) {
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "wp" ] [ "blockEditor" ] ; } ( ) ) ;
2020-06-26 09:33:47 -04:00
/***/ } ) ,
2021-02-02 00:17:13 -05:00
/***/ 64 :
2018-12-14 06:02:53 -05:00
/***/ ( function ( module , exports ) {
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "wp" ] [ "htmlEntities" ] ; } ( ) ) ;
2019-09-19 11:19:18 -04:00
/***/ } ) ,
2020-10-13 09:10:30 -04:00
/***/ 7 :
2020-02-06 16:03:31 -05:00
/***/ ( function ( module , exports ) {
2019-03-07 04:09:59 -05:00
2021-01-27 21:04:13 -05:00
( function ( ) { module . exports = window [ "wp" ] [ "primitives" ] ; } ( ) ) ;
2020-02-10 17:33:27 -05:00
2018-12-14 06:02:53 -05:00
/***/ } )
2018-12-17 22:14:52 -05:00
/******/ } ) ;