1&&void 0!==arguments[1])||arguments[1],a={isOpen:e};return a.elemClass=t.getDerivedClassName("rfip",r.props.theme,r.props.isMulti,e),a.btnClass=t.getDerivedClassName("rfipbtn",r.props.theme,r.props.isMulti,e),a.ddClass=t.getDerivedClassName("rfipdropdown",r.props.theme,r.props.isMulti,e),n&&r.setState(a),a}}),Object.defineProperty(g(r),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t;r.props.isMulti?(t=p(r.state.value)).includes(e)?(t=t.filter(function(t){return t!==e})).length||(t=m):t.push(e):t=e===r.state.value?v:e,r.setState({value:t,isOpen:!r.props.closeOnSelect}),r.props.onChange(t)}}),Object.defineProperty(g(r),"handleDeleteValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var n;n=r.props.isMulti?r.state.value.filter(function(t){return t!==e}):t.getDerivedValue(n,r.props.isMulti),r.setState({value:n}),r.props.onChange(n)}}),Object.defineProperty(g(r),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentPage:e})}}),Object.defineProperty(g(r),"handleChangeCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentCategory:e,currentPage:0})}}),Object.defineProperty(g(r),"handleChangeSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentSearch:e,currentPage:0})}}),Object.defineProperty(g(r),"resetPortalStyle",{configurable:!0,enumerable:!0,writable:!0,value:function(e){["maxHeight","paddingTop","paddingBottom"].forEach(function(t){e.style[t]=null})}}),Object.defineProperty(g(r),"handlePortalEnter",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t);var n=getComputedStyle(t);r.fipPortalComputedStyle={height:n.height,paddingTop:n.paddingTop,paddingBottom:n.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach(function(e){t.style[e]="0px"})}}),Object.defineProperty(g(r),"handlePortalEntering",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight=r.fipPortalComputedStyle.height,t.style.paddingTop=r.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=r.fipPortalComputedStyle.paddingBottom}}),Object.defineProperty(g(r),"handlePortalEntered",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t),r.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()}}),Object.defineProperty(g(r),"handlePortalExit",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t);var n=getComputedStyle(t).height;t.style.maxHeight=n}}),Object.defineProperty(g(r),"handlePortalExiting",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"}}),Object.defineProperty(g(r),"renderIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if("function"==typeof r.props.renderFunc)return r.props.renderFunc(e);if("class"===r.props.renderUsing)return n.default.createElement("i",{className:e});var t=h({},r.props.renderUsing,r.props.convertHex?(0,s.convertToHex)(e):e);return n.default.createElement("i",t)}}),r.fipButtonRef=n.default.createRef(),r.fipDropDownRef=n.default.createRef(),r.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},r.fipPortalComputedStyle=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default.PureComponent),b(t,null,[{key:"getDerivedStateFromProps",value:function(e,r){var n={};return n.elemClass=t.getDerivedClassName("rfip",e.theme,e.isMulti,r.isOpen),n.btnClass=t.getDerivedClassName("rfipbtn",e.theme,e.isMulti,r.isOpen),n.ddClass=t.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,r.isOpen),n.value=t.getDerivedValue(e.value,e.isMulti),e.showCategory||(n.currentCategory=0,n.currentPage=0),e.showSearch||(n.currentSearch="",n.currentPage=0),n}},{key:"getDerivedClassName",value:function(e,t,r,n){return(0,o.default)(e,"".concat(e,"--").concat(t),h({},"".concat(e,"--multi"),r),"".concat(e,"--").concat(n?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var r=e;return t?r=Array.isArray(e)?p(e):m:"number"!=typeof e&&"string"!=typeof e&&(r=v),r}}]),b(t,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach(function(t){document.addEventListener(t,e.handleOuterClick,!1)}),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach(function(t){document.removeEventListener(t,e.handleOuterClick,!1)}),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return n.default.createElement("div",{className:this.state.elemClass,ref:this.fipRef},n.default.createElement(i.default,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),n.default.createElement(l.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},n.default.createElement(c.default,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},n.default.createElement(u.default,e))))}}]),t}();Object.defineProperty(P,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{icons:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.objectOf(a.default.oneOfType([a.default.arrayOf(a.default.number),a.default.arrayOf(a.default.string)]))]).isRequired,search:a.default.oneOfType([a.default.objectOf(a.default.arrayOf(a.default.string)),a.default.arrayOf(a.default.string)]),iconsPerPage:a.default.number,theme:a.default.string,onChange:a.default.func.isRequired,showCategory:a.default.bool,showSearch:a.default.bool,value:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.number,a.default.string]),isMulti:a.default.bool,renderUsing:a.default.string,convertHex:a.default.bool,renderFunc:a.default.func,appendTo:a.default.oneOfType([a.default.bool,a.default.string]),allCatPlaceholder:a.default.string,searchPlaceholder:a.default.string,noIconPlaceholder:a.default.string,noSelectedPlaceholder:a.default.string,closeOnSelect:a.default.bool}}),Object.defineProperty(P,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon",closeOnSelect:!1}}),Object.defineProperty(P,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"FontIconPicker"});var O=P;t.default=O},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=((n=r(14))&&n.__esModule?n:{default:n}).default;t.default=a}]).default});
-//# sourceMappingURL=fonticonpicker.react.js.map
-
/***/ }),
/* 12 */
/*!**************************************!*\
!*** ./node_modules/lodash/_root.js ***!
\**************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 113);
+var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 145);
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
@@ -1053,7 +1056,7 @@ module.exports = root;
/*!*****************************************!*\
!*** ./node_modules/lodash/isObject.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -1095,7 +1098,7 @@ module.exports = isObject;
/*!****************************************!*\
!*** ./node_modules/lodash/isArray.js ***!
\****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -1132,7 +1135,7 @@ module.exports = isArray;
/*!******************************************!*\
!*** ./node_modules/prop-types/index.js ***!
\******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -1144,32 +1147,45 @@ module.exports = isArray;
*/
if (process.env.NODE_ENV !== 'production') {
- var ReactIs = __webpack_require__(/*! react-is */ 136);
+ var ReactIs = __webpack_require__(/*! react-is */ 175);
// By explicitly using `prop-types` you are opting into new development behavior.
// http://fb.me/prop-types-in-prod
var throwOnDirectAccess = true;
- module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ 278)(ReactIs.isElement, throwOnDirectAccess);
+ module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ 357)(ReactIs.isElement, throwOnDirectAccess);
} else {
// By explicitly using `prop-types` you are opting into new production behavior.
// http://fb.me/prop-types-in-prod
- module.exports = __webpack_require__(/*! ./factoryWithThrowingShims */ 279)();
+ module.exports = __webpack_require__(/*! ./factoryWithThrowingShims */ 358)();
}
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
/***/ }),
/* 16 */
+/*!*******************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_core.js ***!
+ \*******************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+var core = module.exports = { version: '2.5.6' };
+if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
+
+
+/***/ }),
+/* 17 */
/*!************************************!*\
!*** ./node_modules/lodash/map.js ***!
\************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! exports used: default */
/***/ (function(module, exports, __webpack_require__) {
-var arrayMap = __webpack_require__(/*! ./_arrayMap */ 34),
- baseIteratee = __webpack_require__(/*! ./_baseIteratee */ 111),
- baseMap = __webpack_require__(/*! ./_baseMap */ 252),
+var arrayMap = __webpack_require__(/*! ./_arrayMap */ 44),
+ baseIteratee = __webpack_require__(/*! ./_baseIteratee */ 143),
+ baseMap = __webpack_require__(/*! ./_baseMap */ 314),
isArray = __webpack_require__(/*! ./isArray */ 14);
/**
@@ -1223,11 +1239,11 @@ module.exports = map;
/***/ }),
-/* 17 */
+/* 18 */
/*!*********************************************!*\
!*** ./node_modules/lodash/isObjectLike.js ***!
\*********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -1262,140 +1278,64 @@ function isObjectLike(value) {
module.exports = isObjectLike;
-/***/ }),
-/* 18 */
-/*!*****************************************!*\
- !*** ./node_modules/react-dom/index.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {
-
-function checkDCE() {
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
- if (
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
- ) {
- return;
- }
- if (process.env.NODE_ENV !== 'production') {
- // This branch is unreachable because this function is only called
- // in production, but the condition is true only in development.
- // Therefore if the branch is still here, dead code elimination wasn't
- // properly applied.
- // Don't change the message. React DevTools relies on it. Also make sure
- // this message doesn't occur elsewhere in this function, or it will cause
- // a false positive.
- throw new Error('^_^');
- }
- try {
- // Verify that the code above has been dead code eliminated (DCE'd).
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
- } catch (err) {
- // DevTools shouldn't crash React, no matter what.
- // We should still report in case we break this code.
- console.error(err);
- }
-}
-
-if (process.env.NODE_ENV === 'production') {
- // DCE check should happen before ReactDOM bundle executes so that
- // DevTools can report bad minification during injection.
- checkDCE();
- module.exports = __webpack_require__(/*! ./cjs/react-dom.production.min.js */ 269);
-} else {
- module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ 272);
-}
-
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3)))
-
/***/ }),
/* 19 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_getNative.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
+/*!**************************************!*\
+ !*** ./node_modules/memize/index.js ***!
+ \**************************************/
+/*! dynamic exports provided */
+/*! exports used: default */
/***/ (function(module, exports, __webpack_require__) {
-var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ 204),
- getValue = __webpack_require__(/*! ./_getValue */ 209);
+/* WEBPACK VAR INJECTION */(function(process) {/**
+ * Memize options object.
+ *
+ * @typedef MemizeOptions
+ *
+ * @property {number} [maxSize] Maximum size of the cache.
+ */
/**
- * Gets the native function at `key` of `object`.
+ * Internal cache entry.
*
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
+ * @typedef MemizeCacheNode
+ *
+ * @property {?MemizeCacheNode|undefined} [prev] Previous node.
+ * @property {?MemizeCacheNode|undefined} [next] Next node.
+ * @property {Array<*>} args Function arguments for cache
+ * entry.
+ * @property {*} val Function result.
*/
-function getNative(object, key) {
- var value = getValue(object, key);
- return baseIsNative(value) ? value : undefined;
-}
-
-module.exports = getNative;
-
-
-/***/ }),
-/* 20 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_baseGetTag.js ***!
- \********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var Symbol = __webpack_require__(/*! ./_Symbol */ 22),
- getRawTag = __webpack_require__(/*! ./_getRawTag */ 205),
- objectToString = __webpack_require__(/*! ./_objectToString */ 206);
-
-/** `Object#toString` result references. */
-var nullTag = '[object Null]',
- undefinedTag = '[object Undefined]';
-
-/** Built-in value references. */
-var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
/**
- * The base implementation of `getTag` without fallbacks for buggy environments.
+ * Properties of the enhanced function for controlling cache.
*
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
+ * @typedef MemizeMemoizedFunction
+ *
+ * @property {()=>void} clear Clear the cache.
*/
-function baseGetTag(value) {
- if (value == null) {
- return value === undefined ? undefinedTag : nullTag;
- }
- return (symToStringTag && symToStringTag in Object(value))
- ? getRawTag(value)
- : objectToString(value);
-}
-
-module.exports = baseGetTag;
+/**
+ * Accepts a function to be memoized, and returns a new memoized function, with
+ * optional options.
+ *
+ * @template {Function} F
+ *
+ * @param {F} fn Function to memoize.
+ * @param {MemizeOptions} [options] Options object.
+ *
+ * @return {F & MemizeMemoizedFunction} Memoized function.
+ */
+function memize( fn, options ) {
+ var size = 0;
-/***/ }),
-/* 21 */
-/*!**************************************!*\
- !*** ./node_modules/memize/index.js ***!
- \**************************************/
-/*! no static exports found */
-/*! exports used: default */
-/***/ (function(module, exports, __webpack_require__) {
+ /** @type {?MemizeCacheNode|undefined} */
+ var head;
-/* WEBPACK VAR INJECTION */(function(process) {module.exports = function memize( fn, options ) {
- var size = 0,
- maxSize, head, tail;
+ /** @type {?MemizeCacheNode|undefined} */
+ var tail;
- if ( options && options.maxSize ) {
- maxSize = options.maxSize;
- }
+ options = options || {};
function memoized( /* ...args */ ) {
var node = head,
@@ -1435,14 +1375,14 @@ module.exports = baseGetTag;
// Adjust siblings to point to each other. If node was tail,
// this also handles new tail's empty `next` assignment.
- node.prev.next = node.next;
+ /** @type {MemizeCacheNode} */ ( node.prev ).next = node.next;
if ( node.next ) {
node.next.prev = node.prev;
}
node.next = head;
node.prev = null;
- head.prev = node;
+ /** @type {MemizeCacheNode} */ ( head ).prev = node;
head = node;
}
@@ -1462,7 +1402,7 @@ module.exports = baseGetTag;
args: args,
// Generate the result from original function
- val: fn.apply( null, args )
+ val: fn.apply( null, args ),
};
// Don't need to check whether node is already head, since it would
@@ -1478,9 +1418,9 @@ module.exports = baseGetTag;
}
// Trim tail if we're reached max size and are pending cache insertion
- if ( size === maxSize ) {
- tail = tail.prev;
- tail.next = null;
+ if ( size === /** @type {MemizeOptions} */ ( options ).maxSize ) {
+ tail = /** @type {MemizeCacheNode} */ ( tail ).prev;
+ /** @type {MemizeCacheNode} */ ( tail ).next = null;
} else {
size++;
}
@@ -1504,17 +1444,239 @@ module.exports = baseGetTag;
};
}
+ // Ignore reason: There's not a clear solution to create an intersection of
+ // the function with additional properties, where the goal is to retain the
+ // function signature of the incoming argument and add control properties
+ // on the return value.
+
+ // @ts-ignore
return memoized;
-};
+}
+
+module.exports = memize;
+
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
+
+/***/ }),
+/* 20 */
+/*!*********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_global.js ***!
+ \*********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
+var global = module.exports = typeof window != 'undefined' && window.Math == Math
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
+ // eslint-disable-next-line no-new-func
+ : Function('return this')();
+if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
+
+
+/***/ }),
+/* 21 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_getNative.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ 266),
+ getValue = __webpack_require__(/*! ./_getValue */ 271);
+
+/**
+ * Gets the native function at `key` of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {string} key The key of the method to get.
+ * @returns {*} Returns the function if it's native, else `undefined`.
+ */
+function getNative(object, key) {
+ var value = getValue(object, key);
+ return baseIsNative(value) ? value : undefined;
+}
+
+module.exports = getNative;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3)))
/***/ }),
/* 22 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_baseGetTag.js ***!
+ \********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Symbol = __webpack_require__(/*! ./_Symbol */ 27),
+ getRawTag = __webpack_require__(/*! ./_getRawTag */ 267),
+ objectToString = __webpack_require__(/*! ./_objectToString */ 268);
+
+/** `Object#toString` result references. */
+var nullTag = '[object Null]',
+ undefinedTag = '[object Undefined]';
+
+/** Built-in value references. */
+var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
+
+/**
+ * The base implementation of `getTag` without fallbacks for buggy environments.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the `toStringTag`.
+ */
+function baseGetTag(value) {
+ if (value == null) {
+ return value === undefined ? undefinedTag : nullTag;
+ }
+ return (symToStringTag && symToStringTag in Object(value))
+ ? getRawTag(value)
+ : objectToString(value);
+}
+
+module.exports = baseGetTag;
+
+
+/***/ }),
+/* 23 */
+/*!*********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_export.js ***!
+ \*********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var global = __webpack_require__(/*! ./_global */ 20);
+var core = __webpack_require__(/*! ./_core */ 16);
+var ctx = __webpack_require__(/*! ./_ctx */ 236);
+var hide = __webpack_require__(/*! ./_hide */ 36);
+var has = __webpack_require__(/*! ./_has */ 26);
+var PROTOTYPE = 'prototype';
+
+var $export = function (type, name, source) {
+ var IS_FORCED = type & $export.F;
+ var IS_GLOBAL = type & $export.G;
+ var IS_STATIC = type & $export.S;
+ var IS_PROTO = type & $export.P;
+ var IS_BIND = type & $export.B;
+ var IS_WRAP = type & $export.W;
+ var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
+ var expProto = exports[PROTOTYPE];
+ var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
+ var key, own, out;
+ if (IS_GLOBAL) source = name;
+ for (key in source) {
+ // contains in native
+ own = !IS_FORCED && target && target[key] !== undefined;
+ if (own && has(exports, key)) continue;
+ // export native or passed
+ out = own ? target[key] : source[key];
+ // prevent global pollution for namespaces
+ exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
+ // bind timers to global for call from export context
+ : IS_BIND && own ? ctx(out, global)
+ // wrap global constructors for prevent change them in library
+ : IS_WRAP && target[key] == out ? (function (C) {
+ var F = function (a, b, c) {
+ if (this instanceof C) {
+ switch (arguments.length) {
+ case 0: return new C();
+ case 1: return new C(a);
+ case 2: return new C(a, b);
+ } return new C(a, b, c);
+ } return C.apply(this, arguments);
+ };
+ F[PROTOTYPE] = C[PROTOTYPE];
+ return F;
+ // make static versions for prototype methods
+ })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
+ // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
+ if (IS_PROTO) {
+ (exports.virtual || (exports.virtual = {}))[key] = out;
+ // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
+ if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
+ }
+ }
+};
+// type bitmap
+$export.F = 1; // forced
+$export.G = 2; // global
+$export.S = 4; // static
+$export.P = 8; // proto
+$export.B = 16; // bind
+$export.W = 32; // wrap
+$export.U = 64; // safe
+$export.R = 128; // real proto method for `library`
+module.exports = $export;
+
+
+/***/ }),
+/* 24 */
+/*!************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-dp.js ***!
+ \************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var anObject = __webpack_require__(/*! ./_an-object */ 43);
+var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 237);
+var toPrimitive = __webpack_require__(/*! ./_to-primitive */ 129);
+var dP = Object.defineProperty;
+
+exports.f = __webpack_require__(/*! ./_descriptors */ 25) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
+ anObject(O);
+ P = toPrimitive(P, true);
+ anObject(Attributes);
+ if (IE8_DOM_DEFINE) try {
+ return dP(O, P, Attributes);
+ } catch (e) { /* empty */ }
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
+ if ('value' in Attributes) O[P] = Attributes.value;
+ return O;
+};
+
+
+/***/ }),
+/* 25 */
+/*!**************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_descriptors.js ***!
+ \**************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+// Thank's IE8 for his funny defineProperty
+module.exports = !__webpack_require__(/*! ./_fails */ 38)(function () {
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
+});
+
+
+/***/ }),
+/* 26 */
+/*!******************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_has.js ***!
+ \******************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+var hasOwnProperty = {}.hasOwnProperty;
+module.exports = function (it, key) {
+ return hasOwnProperty.call(it, key);
+};
+
+
+/***/ }),
+/* 27 */
/*!****************************************!*\
!*** ./node_modules/lodash/_Symbol.js ***!
\****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -1527,17 +1689,17 @@ module.exports = Symbol;
/***/ }),
-/* 23 */
+/* 28 */
/*!*************************************!*\
!*** ./node_modules/lodash/keys.js ***!
\*************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 121),
- baseKeys = __webpack_require__(/*! ./_baseKeys */ 236),
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24);
+var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 153),
+ baseKeys = __webpack_require__(/*! ./_baseKeys */ 298),
+ isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29);
/**
* Creates an array of the own enumerable property names of `object`.
@@ -1575,16 +1737,16 @@ module.exports = keys;
/***/ }),
-/* 24 */
+/* 29 */
/*!********************************************!*\
!*** ./node_modules/lodash/isArrayLike.js ***!
\********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var isFunction = __webpack_require__(/*! ./isFunction */ 112),
- isLength = __webpack_require__(/*! ./isLength */ 61);
+var isFunction = __webpack_require__(/*! ./isFunction */ 144),
+ isLength = __webpack_require__(/*! ./isLength */ 81);
/**
* Checks if `value` is array-like. A value is considered array-like if it's
@@ -1619,18 +1781,18 @@ module.exports = isArrayLike;
/***/ }),
-/* 25 */
+/* 30 */
/*!******************************************!*\
!*** ./node_modules/lodash/_castPath.js ***!
\******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(/*! ./isArray */ 14),
- isKey = __webpack_require__(/*! ./_isKey */ 62),
- stringToPath = __webpack_require__(/*! ./_stringToPath */ 244),
- toString = __webpack_require__(/*! ./toString */ 128);
+ isKey = __webpack_require__(/*! ./_isKey */ 82),
+ stringToPath = __webpack_require__(/*! ./_stringToPath */ 306),
+ toString = __webpack_require__(/*! ./toString */ 160);
/**
* Casts `value` to a path array if it's not one.
@@ -1651,15 +1813,15 @@ module.exports = castPath;
/***/ }),
-/* 26 */
+/* 31 */
/*!***************************************!*\
!*** ./node_modules/lodash/_toKey.js ***!
\***************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var isSymbol = __webpack_require__(/*! ./isSymbol */ 46);
+var isSymbol = __webpack_require__(/*! ./isSymbol */ 56);
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
@@ -1683,11 +1845,11 @@ module.exports = toKey;
/***/ }),
-/* 27 */
+/* 32 */
/*!*********************************************!*\
!*** ./node_modules/object-assign/index.js ***!
\*********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -1785,16 +1947,273 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
/***/ }),
-/* 28 */
+/* 33 */
+/*!*****************************************!*\
+ !*** ./node_modules/react-dom/index.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/* WEBPACK VAR INJECTION */(function(process) {
+
+function checkDCE() {
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
+ if (
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
+ ) {
+ return;
+ }
+ if (process.env.NODE_ENV !== 'production') {
+ // This branch is unreachable because this function is only called
+ // in production, but the condition is true only in development.
+ // Therefore if the branch is still here, dead code elimination wasn't
+ // properly applied.
+ // Don't change the message. React DevTools relies on it. Also make sure
+ // this message doesn't occur elsewhere in this function, or it will cause
+ // a false positive.
+ throw new Error('^_^');
+ }
+ try {
+ // Verify that the code above has been dead code eliminated (DCE'd).
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
+ } catch (err) {
+ // DevTools shouldn't crash React, no matter what.
+ // We should still report in case we break this code.
+ console.error(err);
+ }
+}
+
+if (process.env.NODE_ENV === 'production') {
+ // DCE check should happen before ReactDOM bundle executes so that
+ // DevTools can report bad minification during injection.
+ checkDCE();
+ module.exports = __webpack_require__(/*! ./cjs/react-dom.production.min.js */ 345);
+} else {
+ module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ 348);
+}
+
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
+
+/***/ }),
+/* 34 */
+/*!*************************************!*\
+ !*** ./src/blocks/post/function.js ***!
+ \*************************************/
+/*! exports provided: useInnerBlockLayoutContext, InnerBlockLayoutContextProvider, DEFAULT_POST_LIST_LAYOUT, renderPostLayout, registeredBlockComponents, registerBlockComponent, getBlockMap, getRegisteredBlockComponents, getPostLayoutConfig */
+/*! exports used: DEFAULT_POST_LIST_LAYOUT, InnerBlockLayoutContextProvider, getBlockMap, getPostLayoutConfig, renderPostLayout */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export useInnerBlockLayoutContext */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return InnerBlockLayoutContextProvider; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DEFAULT_POST_LIST_LAYOUT; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return renderPostLayout; });
+/* unused harmony export registeredBlockComponents */
+/* unused harmony export registerBlockComponent */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getBlockMap; });
+/* unused harmony export getRegisteredBlockComponents */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getPostLayoutConfig; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__post_title_edit__ = __webpack_require__(/*! ./post-title/edit */ 180);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__post_meta_edit__ = __webpack_require__(/*! ./post-meta/edit */ 181);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__post_image_edit__ = __webpack_require__(/*! ./post-image/edit */ 182);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__post_excerpt_edit__ = __webpack_require__(/*! ./post-excerpt/edit */ 183);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__post_button_edit__ = __webpack_require__(/*! ./post-button/edit */ 185);
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
+
+/**
+ * External dependencies
+ */
+
+
+
+
+
+var _wp$element = wp.element,
+ createContext = _wp$element.createContext,
+ useContext = _wp$element.useContext,
+ Suspense = _wp$element.Suspense;
+
+var InnerBlockLayoutContext = createContext({
+ parentName: '',
+ parentClassName: '',
+ isLoading: false
+});
+
+var useInnerBlockLayoutContext = function useInnerBlockLayoutContext() {
+ return useContext(InnerBlockLayoutContext);
+};
+
+var InnerBlockLayoutContextProvider = function InnerBlockLayoutContextProvider(_ref) {
+ var _ref$parentName = _ref.parentName,
+ parentName = _ref$parentName === undefined ? '' : _ref$parentName,
+ _ref$parentClassName = _ref.parentClassName,
+ parentClassName = _ref$parentClassName === undefined ? '' : _ref$parentClassName,
+ children = _ref.children;
+
+ var contextValue = {
+ parentName: parentName,
+ parentClassName: parentClassName
+ };
+ return wp.element.createElement(
+ InnerBlockLayoutContext.Provider,
+ { value: contextValue },
+ children
+ );
+};
+
+var DEFAULT_POST_LIST_LAYOUT = [['uagb/post-image'], ['uagb/post-title'], ['uagb/post-meta'], ['uagb/post-excerpt'], ['uagb/post-button']];
+var renderPostLayout = function renderPostLayout(blockName, post, layoutConfig, attributes, categoriesList) {
+ if (!layoutConfig) {
+ return;
+ }
+
+ var blockMap = getBlockMap(blockName);
+
+ return layoutConfig.map(function (_ref2, index) {
+ var _ref3 = _slicedToArray(_ref2, 2),
+ name = _ref3[0],
+ _ref3$ = _ref3[1],
+ props = _ref3$ === undefined ? {} : _ref3$;
+
+ var children = [];
+
+ if (!!props.children && props.children.length > 0) {
+ children = renderPostLayout(blockName, post, props.children, attributes, categoriesList);
+ }
+
+ var LayoutComponent = blockMap[name];
+ if (!LayoutComponent) {
+ return null;
+ }
+
+ return wp.element.createElement(
+ Suspense,
+ {
+ fallback: wp.element.createElement('div', { className: 'wc-block-placeholder' })
+ },
+ wp.element.createElement(LayoutComponent, _extends({}, props, {
+ post: post,
+ attributes: attributes,
+ categoriesList: categoriesList
+ }))
+ );
+ });
+};
+var registeredBlockComponents = {};
+
+
+
+function registerBlockComponent(options) {
+ if (!options.context) {
+ options.context = 'any';
+ }
+ assertOption(options, 'context', 'string');
+ assertOption(options, 'blockName', 'string');
+ assertBlockComponent(options, 'component');
+
+ var context = options.context,
+ blockName = options.blockName,
+ component = options.component;
+
+
+ if (!registeredBlockComponents[context]) {
+ registeredBlockComponents[context] = {};
+ }
+
+ registeredBlockComponents[context][blockName] = component;
+}
+
+var assertBlockComponent = function assertBlockComponent(options, optionName) {
+ if (options[optionName]) {
+ if (typeof options[optionName] === 'function') {
+ return;
+ }
+ if (options[optionName].$$typeof && options[optionName].$$typeof === Symbol.for('react.lazy')) {
+ return;
+ }
+ }
+ throw new Error('Incorrect value for the ' + optionName + ' argument when registering a block component. Component must be a valid React Element or Lazy callback.');
+};
+
+var assertOption = function assertOption(options, optionName, expectedType) {
+ var actualType = _typeof(options[optionName]);
+ if (actualType !== expectedType) {
+ throw new Error('Incorrect value for the ' + optionName + ' argument when registering a block component. It was a ' + actualType + ', but must be a ' + expectedType + '.');
+ }
+};
+
+registerBlockComponent({
+ blockName: 'uagb/post-title',
+ component: __WEBPACK_IMPORTED_MODULE_0__post_title_edit__["a" /* PostTitle */]
+});
+
+registerBlockComponent({
+ blockName: 'uagb/post-image',
+ component: __WEBPACK_IMPORTED_MODULE_2__post_image_edit__["a" /* PostImage */]
+});
+
+registerBlockComponent({
+ blockName: 'uagb/post-meta',
+ component: __WEBPACK_IMPORTED_MODULE_1__post_meta_edit__["a" /* PostMeta */]
+});
+
+registerBlockComponent({
+ blockName: 'uagb/post-excerpt',
+ component: __WEBPACK_IMPORTED_MODULE_3__post_excerpt_edit__["a" /* PostExcerpt */]
+});
+
+registerBlockComponent({
+ blockName: 'uagb/post-button',
+ component: __WEBPACK_IMPORTED_MODULE_4__post_button_edit__["a" /* PostButton */]
+});
+
+var getBlockMap = function getBlockMap(blockName) {
+ return getRegisteredBlockComponents(blockName);
+};
+
+function getRegisteredBlockComponents(context) {
+
+ var parentInnerBlocks = _typeof(registeredBlockComponents[context]) === 'object' && Object.keys(registeredBlockComponents[context]).length > 0 ? registeredBlockComponents[context] : {};
+
+ return _extends({}, parentInnerBlocks, registeredBlockComponents.any);
+}
+
+/**
+ * Converts innerblocks to a list of layout configs.
+ *
+ * @param {Object[]} innerBlocks Inner block components.
+ */
+var getPostLayoutConfig = function getPostLayoutConfig(innerBlocks) {
+ if (!innerBlocks || innerBlocks.length === 0) {
+ return [];
+ }
+
+ return innerBlocks.map(function (block) {
+ return [block.name, _extends({}, block.attributes, {
+ post: undefined,
+ children: block.innerBlocks.length > 0 ? getPostLayoutConfig(block.innerBlocks) : []
+ })];
+ });
+};
+
+/***/ }),
+/* 35 */
/*!********************************************!*\
!*** ./node_modules/lodash/_copyObject.js ***!
\********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var assignValue = __webpack_require__(/*! ./_assignValue */ 48),
- baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 142);
+var assignValue = __webpack_require__(/*! ./_assignValue */ 63),
+ baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 186);
/**
* Copies properties of `source` to `object`.
@@ -1836,7 +2255,97 @@ module.exports = copyObject;
/***/ }),
-/* 29 */
+/* 36 */
+/*!*******************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_hide.js ***!
+ \*******************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var dP = __webpack_require__(/*! ./_object-dp */ 24);
+var createDesc = __webpack_require__(/*! ./_property-desc */ 67);
+module.exports = __webpack_require__(/*! ./_descriptors */ 25) ? function (object, key, value) {
+ return dP.f(object, key, createDesc(1, value));
+} : function (object, key, value) {
+ object[key] = value;
+ return object;
+};
+
+
+/***/ }),
+/* 37 */
+/*!************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_is-object.js ***!
+ \************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+module.exports = function (it) {
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
+};
+
+
+/***/ }),
+/* 38 */
+/*!********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_fails.js ***!
+ \********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+module.exports = function (exec) {
+ try {
+ return !!exec();
+ } catch (e) {
+ return true;
+ }
+};
+
+
+/***/ }),
+/* 39 */
+/*!*************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_to-iobject.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+// to indexed object, toObject with fallback for non-array-like ES3 strings
+var IObject = __webpack_require__(/*! ./_iobject */ 240);
+var defined = __webpack_require__(/*! ./_defined */ 130);
+module.exports = function (it) {
+ return IObject(defined(it));
+};
+
+
+/***/ }),
+/* 40 */
+/*!******************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_wks.js ***!
+ \******************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var store = __webpack_require__(/*! ./_shared */ 133)('wks');
+var uid = __webpack_require__(/*! ./_uid */ 70);
+var Symbol = __webpack_require__(/*! ./_global */ 20).Symbol;
+var USE_SYMBOL = typeof Symbol == 'function';
+
+var $exports = module.exports = function (name) {
+ return store[name] || (store[name] =
+ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
+};
+
+$exports.store = store;
+
+
+/***/ }),
+/* 41 */
/*!***********************************************************!*\
!*** ./node_modules/@emotion/css/dist/css.browser.esm.js ***!
\***********************************************************/
@@ -1845,7 +2354,7 @@ module.exports = copyObject;
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 134);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 87);
function css() {
@@ -1853,1825 +2362,911 @@ function css() {
args[_key] = arguments[_key];
}
- return __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */](args);
+ return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args);
}
/* harmony default export */ __webpack_exports__["a"] = (css);
/***/ }),
-/* 30 */
-/*!**********************************************!*\
- !*** ./src/blocks/timeline/inline-styles.js ***!
- \**********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+/* 42 */
+/*!****************************************************************!*\
+ !*** ./node_modules/react-slick/lib/utils/innerSliderUtils.js ***!
+ \****************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4);
-/**
- * Returns Dynamic Generated CSS
- */
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.clamp = clamp;
+exports.canUseDOM = exports.slidesOnLeft = exports.slidesOnRight = exports.siblingDirection = exports.getTotalSlides = exports.getPostClones = exports.getPreClones = exports.getTrackLeft = exports.getTrackAnimateCSS = exports.getTrackCSS = exports.checkSpecKeys = exports.getSlideCount = exports.checkNavigable = exports.getNavigableIndexes = exports.swipeEnd = exports.swipeMove = exports.swipeStart = exports.keyHandler = exports.changeSlide = exports.slideHandler = exports.initializedState = exports.extractObject = exports.canGoNext = exports.getSwipeDirection = exports.getHeight = exports.getWidth = exports.lazySlidesOnRight = exports.lazySlidesOnLeft = exports.lazyEndIndex = exports.lazyStartIndex = exports.getRequiredLazySlides = exports.getOnDemandLazySlides = void 0;
+var _react = _interopRequireDefault(__webpack_require__(/*! react */ 5));
-function contentTimelineStyle(props) {
- var _props$attributes = props.attributes,
- dateBottomspace = _props$attributes.dateBottomspace,
- backgroundColor = _props$attributes.backgroundColor,
- separatorColor = _props$attributes.separatorColor,
- separatorFillColor = _props$attributes.separatorFillColor,
- separatorBg = _props$attributes.separatorBg,
- separatorBorder = _props$attributes.separatorBorder,
- borderFocus = _props$attributes.borderFocus,
- verticalSpace = _props$attributes.verticalSpace,
- horizontalSpace = _props$attributes.horizontalSpace,
- separatorwidth = _props$attributes.separatorwidth,
- borderwidth = _props$attributes.borderwidth,
- connectorBgsize = _props$attributes.connectorBgsize,
- borderRadius = _props$attributes.borderRadius,
- bgPadding = _props$attributes.bgPadding,
- width = _props$attributes.width,
- readMoreText = _props$attributes.readMoreText,
- icon = _props$attributes.icon,
- iconColor = _props$attributes.iconColor,
- dateFontsizeType = _props$attributes.dateFontsizeType,
- dateFontsize = _props$attributes.dateFontsize,
- dateFontsizeTablet = _props$attributes.dateFontsizeTablet,
- dateFontsizeMobile = _props$attributes.dateFontsizeMobile,
- dateFontFamily = _props$attributes.dateFontFamily,
- dateFontWeight = _props$attributes.dateFontWeight,
- dateFontSubset = _props$attributes.dateFontSubset,
- dateLineHeightType = _props$attributes.dateLineHeightType,
- dateLineHeight = _props$attributes.dateLineHeight,
- dateLineHeightTablet = _props$attributes.dateLineHeightTablet,
- dateLineHeightMobile = _props$attributes.dateLineHeightMobile,
- dateLoadGoogleFonts = _props$attributes.dateLoadGoogleFonts,
- dateColor = _props$attributes.dateColor,
- iconSize = _props$attributes.iconSize,
- iconFocus = _props$attributes.iconFocus,
- iconBgFocus = _props$attributes.iconBgFocus,
- block_id = _props$attributes.block_id,
- headFontSizeType = _props$attributes.headFontSizeType,
- headFontSize = _props$attributes.headFontSize,
- headFontSizeTablet = _props$attributes.headFontSizeTablet,
- headFontSizeMobile = _props$attributes.headFontSizeMobile,
- headFontFamily = _props$attributes.headFontFamily,
- headFontWeight = _props$attributes.headFontWeight,
- headFontSubset = _props$attributes.headFontSubset,
- headLineHeightType = _props$attributes.headLineHeightType,
- headLineHeight = _props$attributes.headLineHeight,
- headLineHeightTablet = _props$attributes.headLineHeightTablet,
- headLineHeightMobile = _props$attributes.headLineHeightMobile,
- headLoadGoogleFonts = _props$attributes.headLoadGoogleFonts,
- align = _props$attributes.align,
- headingColor = _props$attributes.headingColor,
- headSpace = _props$attributes.headSpace,
- subHeadFontSizeType = _props$attributes.subHeadFontSizeType,
- subHeadFontSize = _props$attributes.subHeadFontSize,
- subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet,
- subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile,
- subHeadFontFamily = _props$attributes.subHeadFontFamily,
- subHeadFontWeight = _props$attributes.subHeadFontWeight,
- subHeadFontSubset = _props$attributes.subHeadFontSubset,
- subHeadLineHeightType = _props$attributes.subHeadLineHeightType,
- subHeadLineHeight = _props$attributes.subHeadLineHeight,
- subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet,
- subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile,
- subHeadLoadGoogleFonts = _props$attributes.subHeadLoadGoogleFonts,
- subHeadingColor = _props$attributes.subHeadingColor,
- authorSpace = _props$attributes.authorSpace,
- authorColor = _props$attributes.authorColor,
- authorFontSizeType = _props$attributes.authorFontSizeType,
- authorFontSize = _props$attributes.authorFontSize,
- authorFontSizeTablet = _props$attributes.authorFontSizeTablet,
- authorFontSizeMobile = _props$attributes.authorFontSizeMobile,
- authorFontFamily = _props$attributes.authorFontFamily,
- authorFontWeight = _props$attributes.authorFontWeight,
- authorFontSubset = _props$attributes.authorFontSubset,
- authorLineHeightType = _props$attributes.authorLineHeightType,
- authorLineHeight = _props$attributes.authorLineHeight,
- authorLineHeightTablet = _props$attributes.authorLineHeightTablet,
- authorLineHeightMobile = _props$attributes.authorLineHeightMobile,
- authorLoadGoogleFonts = _props$attributes.authorLoadGoogleFonts,
- ctaColor = _props$attributes.ctaColor,
- ctaFontSizeType = _props$attributes.ctaFontSizeType,
- ctaFontSize = _props$attributes.ctaFontSize,
- ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet,
- ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile,
- ctaFontFamily = _props$attributes.ctaFontFamily,
- ctaFontWeight = _props$attributes.ctaFontWeight,
- ctaFontSubset = _props$attributes.ctaFontSubset,
- ctaLineHeightType = _props$attributes.ctaLineHeightType,
- ctaLineHeight = _props$attributes.ctaLineHeight,
- ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet,
- ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile,
- ctaLoadGoogleFonts = _props$attributes.ctaLoadGoogleFonts,
- ctaBackground = _props$attributes.ctaBackground;
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+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; }
- var resp_selectors = "left";
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
- var selectors = {
- " .uagb-timeline__heading": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType),
- "font-family": headFontFamily,
- "font-weight": headFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType),
- "text-align": align,
- "color": headingColor
- },
- " .uagb-timeline__heading a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType),
- "font-family": headFontFamily,
- "font-weight": headFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType),
- "text-align": align,
- "color": headingColor
- },
- " .uagb-timeline__heading-text": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headSpace, "px")
- },
- " .uagb-timeline-desc-content": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSize, subHeadFontSizeType),
- "font-family": subHeadFontFamily,
- "font-weight": subHeadFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeight, subHeadLineHeightType),
- "text-align": align,
- "color": subHeadingColor
- },
- " .uagb-timeline__events-new": {
- "text-align": align
- },
- " .uagb-timeline__date-inner": {
- "text-align": align
- },
- " .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after": {
- "border-left-color": backgroundColor
- },
- " .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after": {
- "border-left-color": backgroundColor
- },
- " .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after": {
- "border-right-color": backgroundColor
- },
- " .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after": {
- "border-right-color": backgroundColor
- },
- " .uagb-timeline__line__inner": {
- "background-color": separatorFillColor
- },
- " .uagb-timeline__line": {
- "background-color": separatorColor,
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorwidth, "px")
- },
- " .uagb-timeline__right-block .uagb-timeline__line": {
- "right": "calc( " + connectorBgsize + "px / 2 )"
- },
- " .uagb-timeline__left-block .uagb-timeline__line": {
- "left": "calc( " + connectorBgsize + "px / 2 )"
- },
- " .uagb-timeline__center-block .uagb-timeline__line": {
- "right": "calc( " + connectorBgsize + "px / 2 )"
- },
- " .uagb-timeline__marker": {
- "background-color": separatorBg,
- "min-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px"),
- "min-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px"),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px"),
- "border": borderwidth + "px solid" + separatorBorder
- },
- " .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow": {
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px")
- },
- " .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow": {
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px")
- },
- " .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow": {
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px")
- },
- " .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow": {
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px")
- },
- " .uagb-timeline__center-block .uagb-timeline__marker": {
- "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px"),
- "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px")
- },
- " .uagb-timeline__field:not(:last-child)": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](verticalSpace, "px")
- },
- " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateBottomspace, "px"),
- "color": dateColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsize, dateFontsizeType),
- "font-family": dateFontFamily,
- "font-weight": dateFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeight, dateLineHeightType),
- "text-align": align
- },
- " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left": {
- "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px")
- },
- " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right": {
- "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px")
- },
- " .uagb-timeline__date-new": {
- "color": dateColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsize, dateFontsizeType),
- "font-family": dateFontFamily,
- "font-weight": dateFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeight, dateLineHeightType)
- },
- " .uagb-timeline__events-inner-new": {
- "background-color": backgroundColor,
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderRadius, "px"),
- "padding": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bgPadding, "px")
- },
- " .uagb-timeline__main .uagb-timeline__icon-new": {
- "color": iconColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px")
- },
- " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon": {
- "background": iconBgFocus,
- "border-color": borderFocus
- },
- " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new": {
- "color": iconFocus
- },
- " .uagb-timeline__main .uagb-timeline__icon-new svg": {
- "fill": iconColor
- },
- " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg": {
- "fill": iconFocus
- },
+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; }
- //Author and CTA
- " .uagb-timeline__author": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorSpace, "px"),
- "text-align": align
- },
- " .uagb-timeline__author .dashicons-admin-users": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSize, authorFontSizeType),
- "font-weight": authorFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeight, authorLineHeightType),
- "color": authorColor
- },
- " .uagb-timeline__author-link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSize, authorFontSizeType),
- "font-family": authorFontFamily,
- "font-weight": authorFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeight, authorLineHeightType),
- "color": authorColor
- },
+function clamp(number, lowerBound, upperBound) {
+ return Math.max(lowerBound, Math.min(number, upperBound));
+}
- " .uagb-timeline__link_parent": {
- "text-align": align
- },
- " .uagb-timeline__link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "font-family": ctaFontFamily,
- "font-weight": ctaFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeight, ctaLineHeightType),
- "color": ctaColor,
- "background-color": ctaBackground
- }
+var getOnDemandLazySlides = function getOnDemandLazySlides(spec) {
+ var onDemandSlides = [];
+ var startIndex = lazyStartIndex(spec);
+ var endIndex = lazyEndIndex(spec);
- /* Generate Responsive CSS for timeline */
- };var tablet_selectors = {
- " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeTablet, dateFontsizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightTablet, dateLineHeightType)
- },
- " .uagb-timeline__date-new": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeTablet, dateFontsizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightTablet, dateLineHeightType)
- },
- " .uagb-timeline__heading": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType)
- },
- " .uagb-timeline__heading a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType)
- },
- " .uagb-timeline-desc-content": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeTablet, subHeadFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightTablet, subHeadLineHeightType)
- },
- " .uagb-timeline__center-block .uagb-timeline__marker": {
- "margin-left": 0,
- "margin-right": 0
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after": {
- "border-right-color": backgroundColor
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line": {
- "left": "calc( " + connectorBgsize + "px / 2 )"
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a": {
- "text-align": resp_selectors
- },
+ for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
+ if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {
+ onDemandSlides.push(slideIndex);
+ }
+ }
- // CTA AUTHOR.
- " .uagb-timeline__author .dashicons-admin-users": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeTablet, authorFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightTablet, authorLineHeightType)
- },
- " .uagb-timeline__author-link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeTablet, authorFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightTablet, authorLineHeightType)
- },
- " .uagb-timeline__link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeightTablet, ctaLineHeightType)
- }
- };
+ return onDemandSlides;
+}; // return list of slides that need to be present
- var mobile_selectors = {
- " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeMobile, dateFontsizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightMobile, dateLineHeightType)
- },
- " .uagb-timeline__date-new": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeMobile, dateFontsizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightMobile, dateLineHeightType)
- },
- " .uagb-timeline__heading": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType)
- },
- " .uagb-timeline__heading a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType)
- },
- " .uagb-timeline-desc-content": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeMobile, subHeadFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightMobile, subHeadLineHeightType)
- },
- " .uagb-timeline__center-block .uagb-timeline__marker": {
- "margin-left": 0,
- "margin-right": 0
- },
- " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left": {
- "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px")
- },
- " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right": {
- "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px")
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after": {
- "border-right-color": backgroundColor
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line": {
- "left": "calc( " + connectorBgsize + "px / 2 )"
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent": {
- "text-align": resp_selectors
- },
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a": {
- "text-align": resp_selectors
- },
- // CTA AUthor
- " .uagb-timeline__author .dashicons-admin-users": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeMobile, authorFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightMobile, authorLineHeightType)
- },
- " .uagb-timeline__author-link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeMobile, authorFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightMobile, authorLineHeightType)
- },
- " .uagb-timeline__link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeightMobile, ctaLineHeightType)
- }
- };
+exports.getOnDemandLazySlides = getOnDemandLazySlides;
- var styling_css = "";
- var id = ".block-editor-page #wpwrap .uagb-block-" + props.clientId;
+var getRequiredLazySlides = function getRequiredLazySlides(spec) {
+ var requiredSlides = [];
+ var startIndex = lazyStartIndex(spec);
+ var endIndex = lazyEndIndex(spec);
- styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, id);
+ for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
+ requiredSlides.push(slideIndex);
+ }
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, id, true, "tablet");
+ return requiredSlides;
+}; // startIndex that needs to be present
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, id, true, "mobile");
- return styling_css;
-}
+exports.getRequiredLazySlides = getRequiredLazySlides;
-/* harmony default export */ __webpack_exports__["a"] = (contentTimelineStyle);
+var lazyStartIndex = function lazyStartIndex(spec) {
+ return spec.currentSlide - lazySlidesOnLeft(spec);
+};
-/***/ }),
-/* 31 */
-/*!****************************************!*\
- !*** ./src/blocks/timeline/classes.js ***!
- \****************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+exports.lazyStartIndex = lazyStartIndex;
-"use strict";
-/**
- * Returns Dynamic Generated Classes
- */
+var lazyEndIndex = function lazyEndIndex(spec) {
+ return spec.currentSlide + lazySlidesOnRight(spec);
+};
-function ContentTmClasses(attributes) {
+exports.lazyEndIndex = lazyEndIndex;
- /* Arrow position */
- var arrow_align_class = "uagb-timeline__arrow-top" + " ";
- if (attributes.arrowlinAlignment == "center") {
- arrow_align_class = "uagb-timeline__arrow-center" + " ";
- } else if (attributes.arrowlinAlignment == "bottom") {
- arrow_align_class = "uagb-timeline__arrow-bottom" + " ";
- }
+var lazySlidesOnLeft = function lazySlidesOnLeft(spec) {
+ return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;
+};
- /* Alignmnet */
- var align_class = "uagb-timeline__center-block " + " ";
- if (attributes.timelinAlignment == "left") {
- align_class = "uagb-timeline__left-block" + " ";
- } else if (attributes.timelinAlignment == "right") {
- align_class = "uagb-timeline__right-block" + " ";
- }
- align_class += arrow_align_class + "";
- align_class += "uagb-timeline__responsive-" + attributes.stack + " uagb-timeline";
+exports.lazySlidesOnLeft = lazySlidesOnLeft;
- return [align_class];
-}
+var lazySlidesOnRight = function lazySlidesOnRight(spec) {
+ return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
+}; // get width of an element
-/* harmony default export */ __webpack_exports__["a"] = (ContentTmClasses);
-/***/ }),
-/* 32 */
-/*!**********************************************!*\
- !*** ./src/blocks/timeline/align-classes.js ***!
- \**********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+exports.lazySlidesOnRight = lazySlidesOnRight;
-"use strict";
-/**
- * Function name: AlignClass
- * @param array attributes settign array of attributes.
- * @param int index_val index values.
- */
-function AlignClass(attributes, index_val) {
+var getWidth = function getWidth(elem) {
+ return elem && elem.offsetWidth || 0;
+};
- var align_class = "";
- if ("left" == attributes.timelinAlignment) {
- align_class = "uagb-timeline__widget uagb-timeline__left";
- } else if ("right" == attributes.timelinAlignment) {
- align_class = "uagb-timeline__widget uagb-timeline__right";
- } else if ("center" == attributes.timelinAlignment) {
- if (index_val % 2 == "0") {
- align_class = "uagb-timeline__widget uagb-timeline__right";
- } else {
- align_class = "uagb-timeline__widget uagb-timeline__left";
- }
- }
+exports.getWidth = getWidth;
- return [align_class];
-}
+var getHeight = function getHeight(elem) {
+ return elem && elem.offsetHeight || 0;
+};
-/* harmony default export */ __webpack_exports__["a"] = (AlignClass);
+exports.getHeight = getHeight;
-/***/ }),
-/* 33 */
-/*!**************************************************!*\
- !*** ./src/blocks/timeline/day-align-classes.js ***!
- \**************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+var getSwipeDirection = function getSwipeDirection(touchObject) {
+ var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+ var xDist, yDist, r, swipeAngle;
+ xDist = touchObject.startX - touchObject.curX;
+ yDist = touchObject.startY - touchObject.curY;
+ r = Math.atan2(yDist, xDist);
+ swipeAngle = Math.round(r * 180 / Math.PI);
-"use strict";
-/**
- * Returns Dynamic Generated Classes
- */
+ if (swipeAngle < 0) {
+ swipeAngle = 360 - Math.abs(swipeAngle);
+ }
-function DayAlignClass(attributes, index_val) {
+ if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
+ return "left";
+ }
- var day_align_class = "";
+ if (swipeAngle >= 135 && swipeAngle <= 225) {
+ return "right";
+ }
- if ("left" == attributes.timelinAlignment) {
- day_align_class = "uagb-timeline__day-new uagb-timeline__day-left";
- } else if ("right" == attributes.timelinAlignment) {
- day_align_class = "uagb-timeline__day-new uagb-timeline__day-right";
- } else if ("center" == attributes.timelinAlignment) {
- if (index_val % 2 == "0") {
- day_align_class = "uagb-timeline__day-new uagb-timeline__day-right";
- } else {
- day_align_class = "uagb-timeline__day-new uagb-timeline__day-left";
- }
- }
+ if (verticalSwiping === true) {
+ if (swipeAngle >= 35 && swipeAngle <= 135) {
+ return "up";
+ } else {
+ return "down";
+ }
+ }
- return [day_align_class];
-}
+ return "vertical";
+}; // whether or not we can go next
-/* harmony default export */ __webpack_exports__["a"] = (DayAlignClass);
-/***/ }),
-/* 34 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_arrayMap.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+exports.getSwipeDirection = getSwipeDirection;
-/**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
-function arrayMap(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length,
- result = Array(length);
+var canGoNext = function canGoNext(spec) {
+ var canGo = true;
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
+ if (!spec.infinite) {
+ if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
+ canGo = false;
+ } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
+ canGo = false;
+ }
}
- return result;
-}
-module.exports = arrayMap;
+ return canGo;
+}; // given an object and a list of keys, return new object with given keys
-/***/ }),
-/* 35 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_ListCache.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+exports.canGoNext = canGoNext;
-var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ 194),
- listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ 195),
- listCacheGet = __webpack_require__(/*! ./_listCacheGet */ 196),
- listCacheHas = __webpack_require__(/*! ./_listCacheHas */ 197),
- listCacheSet = __webpack_require__(/*! ./_listCacheSet */ 198);
+var extractObject = function extractObject(spec, keys) {
+ var newObject = {};
+ keys.forEach(function (key) {
+ return newObject[key] = spec[key];
+ });
+ return newObject;
+}; // get initialized state
-/**
- * Creates an list cache object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function ListCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
+exports.extractObject = extractObject;
-// Add methods to `ListCache`.
-ListCache.prototype.clear = listCacheClear;
-ListCache.prototype['delete'] = listCacheDelete;
-ListCache.prototype.get = listCacheGet;
-ListCache.prototype.has = listCacheHas;
-ListCache.prototype.set = listCacheSet;
+var initializedState = function initializedState(spec) {
+ // spec also contains listRef, trackRef
+ var slideCount = _react["default"].Children.count(spec.children);
-module.exports = ListCache;
+ var listNode = spec.listRef;
+ var listWidth = Math.ceil(getWidth(listNode));
+ var trackNode = spec.trackRef && spec.trackRef.node;
+ var trackWidth = Math.ceil(getWidth(trackNode));
+ var slideWidth;
+ if (!spec.vertical) {
+ var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
-/***/ }),
-/* 36 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_assocIndexOf.js ***!
- \**********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ if (typeof spec.centerPadding === "string" && spec.centerPadding.slice(-1) === "%") {
+ centerPaddingAdj *= listWidth / 100;
+ }
-var eq = __webpack_require__(/*! ./eq */ 37);
+ slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
+ } else {
+ slideWidth = listWidth;
+ }
-/**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function assocIndexOf(array, key) {
- var length = array.length;
- while (length--) {
- if (eq(array[length][0], key)) {
- return length;
- }
+ var slideHeight = listNode && getHeight(listNode.querySelector('[data-index="0"]'));
+ var listHeight = slideHeight * spec.slidesToShow;
+ var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;
+
+ if (spec.rtl && spec.currentSlide === undefined) {
+ currentSlide = slideCount - 1 - spec.initialSlide;
}
- return -1;
-}
-module.exports = assocIndexOf;
+ var lazyLoadedList = spec.lazyLoadedList || [];
+ var slidesToLoad = getOnDemandLazySlides(_objectSpread({}, spec, {
+ currentSlide: currentSlide,
+ lazyLoadedList: lazyLoadedList
+ }));
+ lazyLoadedList.concat(slidesToLoad);
+ var state = {
+ slideCount: slideCount,
+ slideWidth: slideWidth,
+ listWidth: listWidth,
+ trackWidth: trackWidth,
+ currentSlide: currentSlide,
+ slideHeight: slideHeight,
+ listHeight: listHeight,
+ lazyLoadedList: lazyLoadedList
+ };
+ if (spec.autoplaying === null && spec.autoplay) {
+ state["autoplaying"] = "playing";
+ }
-/***/ }),
-/* 37 */
-/*!***********************************!*\
- !*** ./node_modules/lodash/eq.js ***!
- \***********************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ return state;
+};
-/**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
-function eq(value, other) {
- return value === other || (value !== value && other !== other);
-}
+exports.initializedState = initializedState;
-module.exports = eq;
+var slideHandler = function slideHandler(spec) {
+ var waitForAnimate = spec.waitForAnimate,
+ animating = spec.animating,
+ fade = spec.fade,
+ infinite = spec.infinite,
+ index = spec.index,
+ slideCount = spec.slideCount,
+ lazyLoadedList = spec.lazyLoadedList,
+ lazyLoad = spec.lazyLoad,
+ currentSlide = spec.currentSlide,
+ centerMode = spec.centerMode,
+ slidesToScroll = spec.slidesToScroll,
+ slidesToShow = spec.slidesToShow,
+ useCSS = spec.useCSS;
+ if (waitForAnimate && animating) return {};
+ var animationSlide = index,
+ finalSlide,
+ animationLeft,
+ finalLeft;
+ var state = {},
+ nextState = {};
+ var targetSlide = infinite ? index : clamp(index, 0, slideCount - 1);
+ if (fade) {
+ if (!infinite && (index < 0 || index >= slideCount)) return {};
-/***/ }),
-/* 38 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_nativeCreate.js ***!
- \**********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ if (index < 0) {
+ animationSlide = index + slideCount;
+ } else if (index >= slideCount) {
+ animationSlide = index - slideCount;
+ }
+
+ if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {
+ lazyLoadedList.push(animationSlide);
+ }
-var getNative = __webpack_require__(/*! ./_getNative */ 19);
+ state = {
+ animating: true,
+ currentSlide: animationSlide,
+ lazyLoadedList: lazyLoadedList
+ };
+ nextState = {
+ animating: false
+ };
+ } else {
+ finalSlide = animationSlide;
-/* Built-in method references that are verified to be native. */
-var nativeCreate = getNative(Object, 'create');
+ if (animationSlide < 0) {
+ finalSlide = animationSlide + slideCount;
+ if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) finalSlide = slideCount - slideCount % slidesToScroll;
+ } else if (!canGoNext(spec) && animationSlide > currentSlide) {
+ animationSlide = finalSlide = currentSlide;
+ } else if (centerMode && animationSlide >= slideCount) {
+ animationSlide = infinite ? slideCount : slideCount - 1;
+ finalSlide = infinite ? 0 : slideCount - 1;
+ } else if (animationSlide >= slideCount) {
+ finalSlide = animationSlide - slideCount;
+ if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0;
+ }
-module.exports = nativeCreate;
+ if (!infinite && animationSlide + slidesToShow >= slideCount) {
+ finalSlide = slideCount - slidesToShow;
+ }
+ animationLeft = getTrackLeft(_objectSpread({}, spec, {
+ slideIndex: animationSlide
+ }));
+ finalLeft = getTrackLeft(_objectSpread({}, spec, {
+ slideIndex: finalSlide
+ }));
-/***/ }),
-/* 39 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_getMapData.js ***!
- \********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ if (!infinite) {
+ if (animationLeft === finalLeft) animationSlide = finalSlide;
+ animationLeft = finalLeft;
+ }
-var isKeyable = __webpack_require__(/*! ./_isKeyable */ 218);
+ lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(_objectSpread({}, spec, {
+ currentSlide: animationSlide
+ })));
-/**
- * Gets the data for `map`.
- *
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
- */
-function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
-}
+ if (!useCSS) {
+ state = {
+ currentSlide: finalSlide,
+ trackStyle: getTrackCSS(_objectSpread({}, spec, {
+ left: finalLeft
+ })),
+ lazyLoadedList: lazyLoadedList,
+ targetSlide: targetSlide
+ };
+ } else {
+ state = {
+ animating: true,
+ currentSlide: finalSlide,
+ trackStyle: getTrackAnimateCSS(_objectSpread({}, spec, {
+ left: animationLeft
+ })),
+ lazyLoadedList: lazyLoadedList,
+ targetSlide: targetSlide
+ };
+ nextState = {
+ animating: false,
+ currentSlide: finalSlide,
+ trackStyle: getTrackCSS(_objectSpread({}, spec, {
+ left: finalLeft
+ })),
+ swipeLeft: null,
+ targetSlide: targetSlide
+ };
+ }
+ }
-module.exports = getMapData;
+ return {
+ state: state,
+ nextState: nextState
+ };
+};
+exports.slideHandler = slideHandler;
-/***/ }),
-/* 40 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_isIndex.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+var changeSlide = function changeSlide(spec, options) {
+ var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide;
+ var slidesToScroll = spec.slidesToScroll,
+ slidesToShow = spec.slidesToShow,
+ slideCount = spec.slideCount,
+ currentSlide = spec.currentSlide,
+ previousTargetSlide = spec.targetSlide,
+ lazyLoad = spec.lazyLoad,
+ infinite = spec.infinite;
+ unevenOffset = slideCount % slidesToScroll !== 0;
+ indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
+ if (options.message === "previous") {
+ slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;
+ targetSlide = currentSlide - slideOffset;
-/** Used to detect unsigned integer values. */
-var reIsUint = /^(?:0|[1-9]\d*)$/;
+ if (lazyLoad && !infinite) {
+ previousInt = currentSlide - slideOffset;
+ targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;
+ }
-/**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
-function isIndex(value, length) {
- var type = typeof value;
- length = length == null ? MAX_SAFE_INTEGER : length;
+ if (!infinite) {
+ targetSlide = previousTargetSlide - slidesToScroll;
+ }
+ } else if (options.message === "next") {
+ slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;
+ targetSlide = currentSlide + slideOffset;
- return !!length &&
- (type == 'number' ||
- (type != 'symbol' && reIsUint.test(value))) &&
- (value > -1 && value % 1 == 0 && value < length);
-}
+ if (lazyLoad && !infinite) {
+ targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;
+ }
-module.exports = isIndex;
+ if (!infinite) {
+ targetSlide = previousTargetSlide + slidesToScroll;
+ }
+ } else if (options.message === "dots") {
+ // Click on dots
+ targetSlide = options.index * options.slidesToScroll;
+ } else if (options.message === "children") {
+ // Click on the slides
+ targetSlide = options.index;
+ if (infinite) {
+ var direction = siblingDirection(_objectSpread({}, spec, {
+ targetSlide: targetSlide
+ }));
-/***/ }),
-/* 41 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_baseUnary.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ if (targetSlide > options.currentSlide && direction === "left") {
+ targetSlide = targetSlide - slideCount;
+ } else if (targetSlide < options.currentSlide && direction === "right") {
+ targetSlide = targetSlide + slideCount;
+ }
+ }
+ } else if (options.message === "index") {
+ targetSlide = Number(options.index);
+ }
-/**
- * The base implementation of `_.unary` without support for storing metadata.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- */
-function baseUnary(func) {
- return function(value) {
- return func(value);
- };
-}
+ return targetSlide;
+};
-module.exports = baseUnary;
+exports.changeSlide = changeSlide;
+var keyHandler = function keyHandler(e, accessibility, rtl) {
+ if (e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !accessibility) return "";
+ if (e.keyCode === 37) return rtl ? "next" : "previous";
+ if (e.keyCode === 39) return rtl ? "previous" : "next";
+ return "";
+};
-/***/ }),
-/* 42 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_nodeUtil.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+exports.keyHandler = keyHandler;
-/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 113);
+var swipeStart = function swipeStart(e, swipe, draggable) {
+ e.target.tagName === "IMG" && e.preventDefault();
+ if (!swipe || !draggable && e.type.indexOf("mouse") !== -1) return "";
+ return {
+ dragging: true,
+ touchObject: {
+ startX: e.touches ? e.touches[0].pageX : e.clientX,
+ startY: e.touches ? e.touches[0].pageY : e.clientY,
+ curX: e.touches ? e.touches[0].pageX : e.clientX,
+ curY: e.touches ? e.touches[0].pageY : e.clientY
+ }
+ };
+};
-/** Detect free variable `exports`. */
-var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
+exports.swipeStart = swipeStart;
-/** Detect free variable `module`. */
-var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
+var swipeMove = function swipeMove(e, spec) {
+ // spec also contains, trackRef and slideIndex
+ var scrolling = spec.scrolling,
+ animating = spec.animating,
+ vertical = spec.vertical,
+ swipeToSlide = spec.swipeToSlide,
+ verticalSwiping = spec.verticalSwiping,
+ rtl = spec.rtl,
+ currentSlide = spec.currentSlide,
+ edgeFriction = spec.edgeFriction,
+ edgeDragged = spec.edgeDragged,
+ onEdge = spec.onEdge,
+ swiped = spec.swiped,
+ swiping = spec.swiping,
+ slideCount = spec.slideCount,
+ slidesToScroll = spec.slidesToScroll,
+ infinite = spec.infinite,
+ touchObject = spec.touchObject,
+ swipeEvent = spec.swipeEvent,
+ listHeight = spec.listHeight,
+ listWidth = spec.listWidth;
+ if (scrolling) return;
+ if (animating) return e.preventDefault();
+ if (vertical && swipeToSlide && verticalSwiping) e.preventDefault();
+ var swipeLeft,
+ state = {};
+ var curLeft = getTrackLeft(spec);
+ touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;
+ touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;
+ touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
+ var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
-/** Detect the popular CommonJS extension `module.exports`. */
-var moduleExports = freeModule && freeModule.exports === freeExports;
+ if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {
+ return {
+ scrolling: true
+ };
+ }
-/** Detect free variable `process` from Node.js. */
-var freeProcess = moduleExports && freeGlobal.process;
+ if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;
+ var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);
+ if (verticalSwiping) positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;
+ var dotCount = Math.ceil(slideCount / slidesToScroll);
+ var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);
+ var touchSwipeLength = touchObject.swipeLength;
-/** Used to access faster Node.js helpers. */
-var nodeUtil = (function() {
- try {
- // Use `util.types` for Node.js 10+.
- var types = freeModule && freeModule.require && freeModule.require('util').types;
+ if (!infinite) {
+ if (currentSlide === 0 && swipeDirection === "right" || currentSlide + 1 >= dotCount && swipeDirection === "left" || !canGoNext(spec) && swipeDirection === "left") {
+ touchSwipeLength = touchObject.swipeLength * edgeFriction;
- if (types) {
- return types;
+ if (edgeDragged === false && onEdge) {
+ onEdge(swipeDirection);
+ state["edgeDragged"] = true;
+ }
}
+ }
- // Legacy `process.binding('util')` for Node.js < 10.
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
- } catch (e) {}
-}());
+ if (!swiped && swipeEvent) {
+ swipeEvent(swipeDirection);
+ state["swiped"] = true;
+ }
-module.exports = nodeUtil;
+ if (!vertical) {
+ if (!rtl) {
+ swipeLeft = curLeft + touchSwipeLength * positionOffset;
+ } else {
+ swipeLeft = curLeft - touchSwipeLength * positionOffset;
+ }
+ } else {
+ swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;
+ }
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 60)(module)))
+ if (verticalSwiping) {
+ swipeLeft = curLeft + touchSwipeLength * positionOffset;
+ }
-/***/ }),
-/* 43 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_isPrototype.js ***!
- \*********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ state = _objectSpread({}, state, {
+ touchObject: touchObject,
+ swipeLeft: swipeLeft,
+ trackStyle: getTrackCSS(_objectSpread({}, spec, {
+ left: swipeLeft
+ }))
+ });
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
+ if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
+ return state;
+ }
-/**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
-function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
+ if (touchObject.swipeLength > 10) {
+ state["swiping"] = true;
+ e.preventDefault();
+ }
- return value === proto;
-}
+ return state;
+};
-module.exports = isPrototype;
+exports.swipeMove = swipeMove;
+var swipeEnd = function swipeEnd(e, spec) {
+ var dragging = spec.dragging,
+ swipe = spec.swipe,
+ touchObject = spec.touchObject,
+ listWidth = spec.listWidth,
+ touchThreshold = spec.touchThreshold,
+ verticalSwiping = spec.verticalSwiping,
+ listHeight = spec.listHeight,
+ swipeToSlide = spec.swipeToSlide,
+ scrolling = spec.scrolling,
+ onSwipe = spec.onSwipe,
+ targetSlide = spec.targetSlide,
+ currentSlide = spec.currentSlide,
+ infinite = spec.infinite;
-/***/ }),
-/* 44 */
-/*!****************************************!*\
- !*** ./node_modules/lodash/_getTag.js ***!
- \****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ if (!dragging) {
+ if (swipe) e.preventDefault();
+ return {};
+ }
-var DataView = __webpack_require__(/*! ./_DataView */ 238),
- Map = __webpack_require__(/*! ./_Map */ 53),
- Promise = __webpack_require__(/*! ./_Promise */ 239),
- Set = __webpack_require__(/*! ./_Set */ 240),
- WeakMap = __webpack_require__(/*! ./_WeakMap */ 241),
- baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20),
- toSource = __webpack_require__(/*! ./_toSource */ 114);
+ var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;
+ var swipeDirection = getSwipeDirection(touchObject, verticalSwiping); // reset the state of touch related state variables.
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
- objectTag = '[object Object]',
- promiseTag = '[object Promise]',
- setTag = '[object Set]',
- weakMapTag = '[object WeakMap]';
+ var state = {
+ dragging: false,
+ edgeDragged: false,
+ scrolling: false,
+ swiping: false,
+ swiped: false,
+ swipeLeft: null,
+ touchObject: {}
+ };
-var dataViewTag = '[object DataView]';
+ if (scrolling) {
+ return state;
+ }
-/** Used to detect maps, sets, and weakmaps. */
-var dataViewCtorString = toSource(DataView),
- mapCtorString = toSource(Map),
- promiseCtorString = toSource(Promise),
- setCtorString = toSource(Set),
- weakMapCtorString = toSource(WeakMap);
+ if (!touchObject.swipeLength) {
+ return state;
+ }
-/**
- * Gets the `toStringTag` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
-var getTag = baseGetTag;
+ if (touchObject.swipeLength > minSwipe) {
+ e.preventDefault();
-// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
-if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
- (Map && getTag(new Map) != mapTag) ||
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
- (Set && getTag(new Set) != setTag) ||
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
- getTag = function(value) {
- var result = baseGetTag(value),
- Ctor = result == objectTag ? value.constructor : undefined,
- ctorString = Ctor ? toSource(Ctor) : '';
+ if (onSwipe) {
+ onSwipe(swipeDirection);
+ }
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString: return dataViewTag;
- case mapCtorString: return mapTag;
- case promiseCtorString: return promiseTag;
- case setCtorString: return setTag;
- case weakMapCtorString: return weakMapTag;
- }
- }
- return result;
- };
-}
+ var slideCount, newSlide;
+ var activeSlide = infinite ? currentSlide : targetSlide;
-module.exports = getTag;
+ switch (swipeDirection) {
+ case "left":
+ case "up":
+ newSlide = activeSlide + getSlideCount(spec);
+ slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
+ state["currentDirection"] = 0;
+ break;
+
+ case "right":
+ case "down":
+ newSlide = activeSlide - getSlideCount(spec);
+ slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
+ state["currentDirection"] = 1;
+ break;
+ default:
+ slideCount = activeSlide;
+ }
-/***/ }),
-/* 45 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_baseGet.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ state["triggerSlideHandler"] = slideCount;
+ } else {
+ // Adjust the track back to it's original position.
+ var currentLeft = getTrackLeft(spec);
+ state["trackStyle"] = getTrackAnimateCSS(_objectSpread({}, spec, {
+ left: currentLeft
+ }));
+ }
-var castPath = __webpack_require__(/*! ./_castPath */ 25),
- toKey = __webpack_require__(/*! ./_toKey */ 26);
+ return state;
+};
-/**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
-function baseGet(object, path) {
- path = castPath(path, object);
+exports.swipeEnd = swipeEnd;
- var index = 0,
- length = path.length;
+var getNavigableIndexes = function getNavigableIndexes(spec) {
+ var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;
+ var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;
+ var counter = spec.infinite ? spec.slidesToShow * -1 : 0;
+ var indexes = [];
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
+ while (breakpoint < max) {
+ indexes.push(breakpoint);
+ breakpoint = counter + spec.slidesToScroll;
+ counter += Math.min(spec.slidesToScroll, spec.slidesToShow);
}
- return (index && index == length) ? object : undefined;
-}
-module.exports = baseGet;
+ return indexes;
+};
+exports.getNavigableIndexes = getNavigableIndexes;
-/***/ }),
-/* 46 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/isSymbol.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+var checkNavigable = function checkNavigable(spec, index) {
+ var navigables = getNavigableIndexes(spec);
+ var prevNavigable = 0;
-var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17);
+ if (index > navigables[navigables.length - 1]) {
+ index = navigables[navigables.length - 1];
+ } else {
+ for (var n in navigables) {
+ if (index < navigables[n]) {
+ index = prevNavigable;
+ break;
+ }
-/** `Object#toString` result references. */
-var symbolTag = '[object Symbol]';
+ prevNavigable = navigables[n];
+ }
+ }
-/**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
-function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
-}
+ return index;
+};
-module.exports = isSymbol;
+exports.checkNavigable = checkNavigable;
+var getSlideCount = function getSlideCount(spec) {
+ var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;
-/***/ }),
-/* 47 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/identity.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ if (spec.swipeToSlide) {
+ var swipedSlide;
+ var slickList = spec.listRef;
+ var slides = slickList.querySelectorAll(".slick-slide");
+ Array.from(slides).every(function (slide) {
+ if (!spec.vertical) {
+ if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {
+ swipedSlide = slide;
+ return false;
+ }
+ } else {
+ if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {
+ swipedSlide = slide;
+ return false;
+ }
+ }
-/**
- * This method returns the first argument it receives.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'a': 1 };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
-function identity(value) {
- return value;
-}
+ return true;
+ });
-module.exports = identity;
+ if (!swipedSlide) {
+ return 0;
+ }
+ var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;
+ var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;
+ return slidesTraversed;
+ } else {
+ return spec.slidesToScroll;
+ }
+};
-/***/ }),
-/* 48 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_assignValue.js ***!
- \*********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+exports.getSlideCount = getSlideCount;
-var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 142),
- eq = __webpack_require__(/*! ./eq */ 37);
+var checkSpecKeys = function checkSpecKeys(spec, keysArray) {
+ return keysArray.reduce(function (value, key) {
+ return value && spec.hasOwnProperty(key);
+ }, true) ? null : console.error("Keys Missing:", spec);
+};
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
+exports.checkSpecKeys = checkSpecKeys;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
+var getTrackCSS = function getTrackCSS(spec) {
+ checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]);
+ var trackWidth, trackHeight;
+ var trackChildren = spec.slideCount + 2 * spec.slidesToShow;
-/**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
+ if (!spec.vertical) {
+ trackWidth = getTotalSlides(spec) * spec.slideWidth;
+ } else {
+ trackHeight = trackChildren * spec.slideHeight;
}
-}
-module.exports = assignValue;
+ var style = {
+ opacity: 1,
+ transition: "",
+ WebkitTransition: ""
+ };
+ if (spec.useTransform) {
+ var WebkitTransform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
+ var transform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
+ var msTransform = !spec.vertical ? "translateX(" + spec.left + "px)" : "translateY(" + spec.left + "px)";
+ style = _objectSpread({}, style, {
+ WebkitTransform: WebkitTransform,
+ transform: transform,
+ msTransform: msTransform
+ });
+ } else {
+ if (spec.vertical) {
+ style["top"] = spec.left;
+ } else {
+ style["left"] = spec.left;
+ }
+ }
-/***/ }),
-/* 49 */
-/*!****************************************************************!*\
- !*** ./node_modules/react-slick/lib/utils/innerSliderUtils.js ***!
- \****************************************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ if (spec.fade) style = {
+ opacity: 1
+ };
+ if (trackWidth) style.width = trackWidth;
+ if (trackHeight) style.height = trackHeight; // Fallback for IE8
-"use strict";
+ if (window && !window.addEventListener && window.attachEvent) {
+ if (!spec.vertical) {
+ style.marginLeft = spec.left + "px";
+ } else {
+ style.marginTop = spec.left + "px";
+ }
+ }
+ return style;
+};
-exports.__esModule = true;
-exports.canUseDOM = exports.slidesOnLeft = exports.slidesOnRight = exports.siblingDirection = exports.getTotalSlides = exports.getPostClones = exports.getPreClones = exports.getTrackLeft = exports.getTrackAnimateCSS = exports.getTrackCSS = exports.checkSpecKeys = exports.getSlideCount = exports.checkNavigable = exports.getNavigableIndexes = exports.swipeEnd = exports.swipeMove = exports.swipeStart = exports.keyHandler = exports.changeSlide = exports.slideHandler = exports.initializedState = exports.extractObject = exports.canGoNext = exports.getSwipeDirection = exports.getHeight = exports.getWidth = exports.lazySlidesOnRight = exports.lazySlidesOnLeft = exports.lazyEndIndex = exports.lazyStartIndex = exports.getRequiredLazySlides = exports.getOnDemandLazySlides = undefined;
+exports.getTrackCSS = getTrackCSS;
-var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+var getTrackAnimateCSS = function getTrackAnimateCSS(spec) {
+ checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
+ var style = getTrackCSS(spec); // useCSS is true by default so it can be undefined
-var _react = __webpack_require__(/*! react */ 6);
+ if (spec.useTransform) {
+ style.WebkitTransition = "-webkit-transform " + spec.speed + "ms " + spec.cssEase;
+ style.transition = "transform " + spec.speed + "ms " + spec.cssEase;
+ } else {
+ if (spec.vertical) {
+ style.transition = "top " + spec.speed + "ms " + spec.cssEase;
+ } else {
+ style.transition = "left " + spec.speed + "ms " + spec.cssEase;
+ }
+ }
-var _react2 = _interopRequireDefault(_react);
+ return style;
+};
-var _reactDom = __webpack_require__(/*! react-dom */ 18);
+exports.getTrackAnimateCSS = getTrackAnimateCSS;
-var _reactDom2 = _interopRequireDefault(_reactDom);
+var getTrackLeft = function getTrackLeft(spec) {
+ if (spec.unslick) {
+ return 0;
+ }
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+ checkSpecKeys(spec, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
+ var slideIndex = spec.slideIndex,
+ trackRef = spec.trackRef,
+ infinite = spec.infinite,
+ centerMode = spec.centerMode,
+ slideCount = spec.slideCount,
+ slidesToShow = spec.slidesToShow,
+ slidesToScroll = spec.slidesToScroll,
+ slideWidth = spec.slideWidth,
+ listWidth = spec.listWidth,
+ variableWidth = spec.variableWidth,
+ slideHeight = spec.slideHeight,
+ fade = spec.fade,
+ vertical = spec.vertical;
+ var slideOffset = 0;
+ var targetLeft;
+ var targetSlide;
+ var verticalOffset = 0;
-var getOnDemandLazySlides = exports.getOnDemandLazySlides = function getOnDemandLazySlides(spec) {
- var onDemandSlides = [];
- var startIndex = lazyStartIndex(spec);
- var endIndex = lazyEndIndex(spec);
- for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
- if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {
- onDemandSlides.push(slideIndex);
- }
+ if (fade || spec.slideCount === 1) {
+ return 0;
}
- return onDemandSlides;
-};
-// return list of slides that need to be present
-var getRequiredLazySlides = exports.getRequiredLazySlides = function getRequiredLazySlides(spec) {
- var requiredSlides = [];
- var startIndex = lazyStartIndex(spec);
- var endIndex = lazyEndIndex(spec);
- for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
- requiredSlides.push(slideIndex);
- }
- return requiredSlides;
-};
+ var slidesToOffset = 0;
-// startIndex that needs to be present
-var lazyStartIndex = exports.lazyStartIndex = function lazyStartIndex(spec) {
- return spec.currentSlide - lazySlidesOnLeft(spec);
-};
-var lazyEndIndex = exports.lazyEndIndex = function lazyEndIndex(spec) {
- return spec.currentSlide + lazySlidesOnRight(spec);
-};
-var lazySlidesOnLeft = exports.lazySlidesOnLeft = function lazySlidesOnLeft(spec) {
- return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;
-};
-var lazySlidesOnRight = exports.lazySlidesOnRight = function lazySlidesOnRight(spec) {
- return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
-};
+ if (infinite) {
+ slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area
+ // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children
-// get width of an element
-var getWidth = exports.getWidth = function getWidth(elem) {
- return elem && elem.offsetWidth || 0;
-};
-var getHeight = exports.getHeight = function getHeight(elem) {
- return elem && elem.offsetHeight || 0;
-};
-var getSwipeDirection = exports.getSwipeDirection = function getSwipeDirection(touchObject) {
- var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+ if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
+ slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);
+ } // shift current slide to center of the frame
- var xDist, yDist, r, swipeAngle;
- xDist = touchObject.startX - touchObject.curX;
- yDist = touchObject.startY - touchObject.curY;
- r = Math.atan2(yDist, xDist);
- swipeAngle = Math.round(r * 180 / Math.PI);
- if (swipeAngle < 0) {
- swipeAngle = 360 - Math.abs(swipeAngle);
- }
- if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
- return "left";
- }
- if (swipeAngle >= 135 && swipeAngle <= 225) {
- return "right";
- }
- if (verticalSwiping === true) {
- if (swipeAngle >= 35 && swipeAngle <= 135) {
- return "up";
- } else {
- return "down";
+
+ if (centerMode) {
+ slidesToOffset += parseInt(slidesToShow / 2);
+ }
+ } else {
+ if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
+ slidesToOffset = slidesToShow - slideCount % slidesToScroll;
+ }
+
+ if (centerMode) {
+ slidesToOffset = parseInt(slidesToShow / 2);
}
}
- return "vertical";
-};
+ slideOffset = slidesToOffset * slideWidth;
+ verticalOffset = slidesToOffset * slideHeight;
-// whether or not we can go next
-var canGoNext = exports.canGoNext = function canGoNext(spec) {
- var canGo = true;
- if (!spec.infinite) {
- if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
- canGo = false;
- } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
- canGo = false;
+ if (!vertical) {
+ targetLeft = slideIndex * slideWidth * -1 + slideOffset;
+ } else {
+ targetLeft = slideIndex * slideHeight * -1 + verticalOffset;
+ }
+
+ if (variableWidth === true) {
+ var targetSlideIndex;
+ var trackElem = trackRef && trackRef.node;
+ targetSlideIndex = slideIndex + getPreClones(spec);
+ targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];
+ targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;
+
+ if (centerMode === true) {
+ targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;
+ targetSlide = trackElem && trackElem.children[targetSlideIndex];
+ targetLeft = 0;
+
+ for (var slide = 0; slide < targetSlideIndex; slide++) {
+ targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;
+ }
+
+ targetLeft -= parseInt(spec.centerPadding);
+ targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;
}
}
- return canGo;
-};
-// given an object and a list of keys, return new object with given keys
-var extractObject = exports.extractObject = function extractObject(spec, keys) {
- var newObject = {};
- keys.forEach(function (key) {
- return newObject[key] = spec[key];
- });
- return newObject;
+ return targetLeft;
};
-// get initialized state
-var initializedState = exports.initializedState = function initializedState(spec) {
- // spec also contains listRef, trackRef
- var slideCount = _react2.default.Children.count(spec.children);
- var listWidth = Math.ceil(getWidth(_reactDom2.default.findDOMNode(spec.listRef)));
- var trackWidth = Math.ceil(getWidth(_reactDom2.default.findDOMNode(spec.trackRef)));
- var slideWidth = void 0;
- if (!spec.vertical) {
- var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
- if (typeof spec.centerPadding === "string" && spec.centerPadding.slice(-1) === "%") {
- centerPaddingAdj *= listWidth / 100;
- }
- slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
- } else {
- slideWidth = listWidth;
+exports.getTrackLeft = getTrackLeft;
+
+var getPreClones = function getPreClones(spec) {
+ if (spec.unslick || !spec.infinite) {
+ return 0;
}
- var slideHeight = _reactDom2.default.findDOMNode(spec.listRef) && getHeight(_reactDom2.default.findDOMNode(spec.listRef).querySelector('[data-index="0"]'));
- var listHeight = slideHeight * spec.slidesToShow;
- var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;
- if (spec.rtl && spec.currentSlide === undefined) {
- currentSlide = slideCount - 1 - spec.initialSlide;
+
+ if (spec.variableWidth) {
+ return spec.slideCount;
}
- var lazyLoadedList = spec.lazyLoadedList || [];
- var slidesToLoad = getOnDemandLazySlides({ currentSlide: currentSlide, lazyLoadedList: lazyLoadedList }, spec);
- lazyLoadedList.concat(slidesToLoad);
- var state = {
- slideCount: slideCount,
- slideWidth: slideWidth,
- listWidth: listWidth,
- trackWidth: trackWidth,
- currentSlide: currentSlide,
- slideHeight: slideHeight,
- listHeight: listHeight,
- lazyLoadedList: lazyLoadedList
- };
+ return spec.slidesToShow + (spec.centerMode ? 1 : 0);
+};
- if (spec.autoplaying === null && spec.autoplay) {
- state["autoplaying"] = "playing";
+exports.getPreClones = getPreClones;
+
+var getPostClones = function getPostClones(spec) {
+ if (spec.unslick || !spec.infinite) {
+ return 0;
}
- return state;
+ return spec.slideCount;
};
-var slideHandler = exports.slideHandler = function slideHandler(spec) {
- var waitForAnimate = spec.waitForAnimate,
- animating = spec.animating,
- fade = spec.fade,
- infinite = spec.infinite,
- index = spec.index,
- slideCount = spec.slideCount,
- lazyLoadedList = spec.lazyLoadedList,
- lazyLoad = spec.lazyLoad,
- currentSlide = spec.currentSlide,
- centerMode = spec.centerMode,
- slidesToScroll = spec.slidesToScroll,
- slidesToShow = spec.slidesToShow,
- useCSS = spec.useCSS;
+exports.getPostClones = getPostClones;
- if (waitForAnimate && animating) return {};
- var animationSlide = index,
- finalSlide = void 0,
- animationLeft = void 0,
- finalLeft = void 0;
- var state = {},
- nextState = {};
- if (fade) {
- if (!infinite && (index < 0 || index >= slideCount)) return {};
- if (index < 0) {
- animationSlide = index + slideCount;
- } else if (index >= slideCount) {
- animationSlide = index - slideCount;
- }
- if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {
- lazyLoadedList.push(animationSlide);
+var getTotalSlides = function getTotalSlides(spec) {
+ return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
+};
+
+exports.getTotalSlides = getTotalSlides;
+
+var siblingDirection = function siblingDirection(spec) {
+ if (spec.targetSlide > spec.currentSlide) {
+ if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {
+ return "left";
}
- state = {
- animating: true,
- currentSlide: animationSlide,
- lazyLoadedList: lazyLoadedList
- };
- nextState = { animating: false };
+
+ return "right";
} else {
- finalSlide = animationSlide;
- if (animationSlide < 0) {
- finalSlide = animationSlide + slideCount;
- if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) finalSlide = slideCount - slideCount % slidesToScroll;
- } else if (!canGoNext(spec) && animationSlide > currentSlide) {
- animationSlide = finalSlide = currentSlide;
- } else if (centerMode && animationSlide >= slideCount) {
- animationSlide = infinite ? slideCount : slideCount - 1;
- finalSlide = infinite ? 0 : slideCount - 1;
- } else if (animationSlide >= slideCount) {
- finalSlide = animationSlide - slideCount;
- if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0;
- }
- animationLeft = getTrackLeft(_extends({}, spec, { slideIndex: animationSlide }));
- finalLeft = getTrackLeft(_extends({}, spec, { slideIndex: finalSlide }));
- if (!infinite) {
- if (animationLeft === finalLeft) animationSlide = finalSlide;
- animationLeft = finalLeft;
- }
- lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(_extends({}, spec, { currentSlide: animationSlide })));
- if (!useCSS) {
- state = {
- currentSlide: finalSlide,
- trackStyle: getTrackCSS(_extends({}, spec, { left: finalLeft })),
- lazyLoadedList: lazyLoadedList
- };
- } else {
- state = {
- animating: true,
- currentSlide: finalSlide,
- trackStyle: getTrackAnimateCSS(_extends({}, spec, { left: animationLeft })),
- lazyLoadedList: lazyLoadedList
- };
- nextState = {
- animating: false,
- currentSlide: finalSlide,
- trackStyle: getTrackCSS(_extends({}, spec, { left: finalLeft })),
- swipeLeft: null
- };
+ if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {
+ return "right";
}
+
+ return "left";
}
- return { state: state, nextState: nextState };
};
-var changeSlide = exports.changeSlide = function changeSlide(spec, options) {
- var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide;
- var slidesToScroll = spec.slidesToScroll,
- slidesToShow = spec.slidesToShow,
- slideCount = spec.slideCount,
- currentSlide = spec.currentSlide,
- lazyLoad = spec.lazyLoad,
- infinite = spec.infinite;
+exports.siblingDirection = siblingDirection;
- unevenOffset = slideCount % slidesToScroll !== 0;
- indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;
-
- if (options.message === "previous") {
- slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;
- targetSlide = currentSlide - slideOffset;
- if (lazyLoad && !infinite) {
- previousInt = currentSlide - slideOffset;
- targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;
- }
- } else if (options.message === "next") {
- slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;
- targetSlide = currentSlide + slideOffset;
- if (lazyLoad && !infinite) {
- targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;
- }
- } else if (options.message === "dots") {
- // Click on dots
- targetSlide = options.index * options.slidesToScroll;
- if (targetSlide === options.currentSlide) {
- return null;
- }
- } else if (options.message === "children") {
- // Click on the slides
- targetSlide = options.index;
- if (targetSlide === options.currentSlide) {
- return null;
- }
- if (infinite) {
- var direction = siblingDirection(_extends({}, spec, { targetSlide: targetSlide }));
- if (targetSlide > options.currentSlide && direction === "left") {
- targetSlide = targetSlide - slideCount;
- } else if (targetSlide < options.currentSlide && direction === "right") {
- targetSlide = targetSlide + slideCount;
- }
- }
- } else if (options.message === "index") {
- targetSlide = Number(options.index);
- if (targetSlide === options.currentSlide) {
- return null;
- }
- }
- return targetSlide;
-};
-var keyHandler = exports.keyHandler = function keyHandler(e, accessibility, rtl) {
- if (e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !accessibility) return "";
- if (e.keyCode === 37) return rtl ? "next" : "previous";
- if (e.keyCode === 39) return rtl ? "previous" : "next";
- return "";
-};
-
-var swipeStart = exports.swipeStart = function swipeStart(e, swipe, draggable) {
- e.target.tagName === "IMG" && e.preventDefault();
- if (!swipe || !draggable && e.type.indexOf("mouse") !== -1) return "";
- return {
- dragging: true,
- touchObject: {
- startX: e.touches ? e.touches[0].pageX : e.clientX,
- startY: e.touches ? e.touches[0].pageY : e.clientY,
- curX: e.touches ? e.touches[0].pageX : e.clientX,
- curY: e.touches ? e.touches[0].pageY : e.clientY
- }
- };
-};
-var swipeMove = exports.swipeMove = function swipeMove(e, spec) {
- // spec also contains, trackRef and slideIndex
- var scrolling = spec.scrolling,
- animating = spec.animating,
- vertical = spec.vertical,
- swipeToSlide = spec.swipeToSlide,
- verticalSwiping = spec.verticalSwiping,
- rtl = spec.rtl,
- currentSlide = spec.currentSlide,
- edgeFriction = spec.edgeFriction,
- edgeDragged = spec.edgeDragged,
- onEdge = spec.onEdge,
- swiped = spec.swiped,
- swiping = spec.swiping,
- slideCount = spec.slideCount,
- slidesToScroll = spec.slidesToScroll,
- infinite = spec.infinite,
- touchObject = spec.touchObject,
- swipeEvent = spec.swipeEvent,
- listHeight = spec.listHeight,
- listWidth = spec.listWidth;
-
- if (scrolling) return;
- if (animating) return e.preventDefault();
- if (vertical && swipeToSlide && verticalSwiping) e.preventDefault();
- var swipeLeft = void 0,
- state = {};
- var curLeft = getTrackLeft(spec);
- touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;
- touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;
- touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
- var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
- if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {
- return { scrolling: true };
- }
- if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;
- var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);
- if (verticalSwiping) positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;
-
- var dotCount = Math.ceil(slideCount / slidesToScroll);
- var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);
- var touchSwipeLength = touchObject.swipeLength;
- if (!infinite) {
- if (currentSlide === 0 && swipeDirection === "right" || currentSlide + 1 >= dotCount && swipeDirection === "left" || !canGoNext(spec) && swipeDirection === "left") {
- touchSwipeLength = touchObject.swipeLength * edgeFriction;
- if (edgeDragged === false && onEdge) {
- onEdge(swipeDirection);
- state["edgeDragged"] = true;
- }
- }
- }
- if (!swiped && swipeEvent) {
- swipeEvent(swipeDirection);
- state["swiped"] = true;
- }
- if (!vertical) {
- if (!rtl) {
- swipeLeft = curLeft + touchSwipeLength * positionOffset;
- } else {
- swipeLeft = curLeft - touchSwipeLength * positionOffset;
- }
- } else {
- swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;
- }
- if (verticalSwiping) {
- swipeLeft = curLeft + touchSwipeLength * positionOffset;
- }
- state = _extends({}, state, {
- touchObject: touchObject,
- swipeLeft: swipeLeft,
- trackStyle: getTrackCSS(_extends({}, spec, { left: swipeLeft }))
- });
- if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
- return state;
- }
- if (touchObject.swipeLength > 10) {
- state["swiping"] = true;
- e.preventDefault();
- }
- return state;
-};
-var swipeEnd = exports.swipeEnd = function swipeEnd(e, spec) {
- var dragging = spec.dragging,
- swipe = spec.swipe,
- touchObject = spec.touchObject,
- listWidth = spec.listWidth,
- touchThreshold = spec.touchThreshold,
- verticalSwiping = spec.verticalSwiping,
- listHeight = spec.listHeight,
- currentSlide = spec.currentSlide,
- swipeToSlide = spec.swipeToSlide,
- scrolling = spec.scrolling,
- onSwipe = spec.onSwipe;
-
- if (!dragging) {
- if (swipe) e.preventDefault();
- return {};
- }
- var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;
- var swipeDirection = getSwipeDirection(touchObject, verticalSwiping);
- // reset the state of touch related state variables.
- var state = {
- dragging: false,
- edgeDragged: false,
- scrolling: false,
- swiping: false,
- swiped: false,
- swipeLeft: null,
- touchObject: {}
- };
- if (scrolling) {
- return state;
- }
- if (!touchObject.swipeLength) {
- return state;
- }
- if (touchObject.swipeLength > minSwipe) {
- e.preventDefault();
- if (onSwipe) {
- onSwipe(swipeDirection);
- }
- var slideCount = void 0,
- newSlide = void 0;
- switch (swipeDirection) {
- case "left":
- case "up":
- newSlide = currentSlide + getSlideCount(spec);
- slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
- state["currentDirection"] = 0;
- break;
- case "right":
- case "down":
- newSlide = currentSlide - getSlideCount(spec);
- slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
- state["currentDirection"] = 1;
- break;
- default:
- slideCount = currentSlide;
- }
- state["triggerSlideHandler"] = slideCount;
- } else {
- // Adjust the track back to it's original position.
- var currentLeft = getTrackLeft(spec);
- state["trackStyle"] = getTrackAnimateCSS(_extends({}, spec, { left: currentLeft }));
- }
- return state;
-};
-var getNavigableIndexes = exports.getNavigableIndexes = function getNavigableIndexes(spec) {
- var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;
- var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;
- var counter = spec.infinite ? spec.slidesToShow * -1 : 0;
- var indexes = [];
- while (breakpoint < max) {
- indexes.push(breakpoint);
- breakpoint = counter + spec.slidesToScroll;
- counter += Math.min(spec.slidesToScroll, spec.slidesToShow);
- }
- return indexes;
-};
-var checkNavigable = exports.checkNavigable = function checkNavigable(spec, index) {
- var navigables = getNavigableIndexes(spec);
- var prevNavigable = 0;
- if (index > navigables[navigables.length - 1]) {
- index = navigables[navigables.length - 1];
- } else {
- for (var n in navigables) {
- if (index < navigables[n]) {
- index = prevNavigable;
- break;
- }
- prevNavigable = navigables[n];
- }
- }
- return index;
-};
-var getSlideCount = exports.getSlideCount = function getSlideCount(spec) {
- var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;
- if (spec.swipeToSlide) {
- var swipedSlide = void 0;
- var slickList = _reactDom2.default.findDOMNode(spec.listRef);
- var slides = slickList.querySelectorAll(".slick-slide");
- Array.from(slides).every(function (slide) {
- if (!spec.vertical) {
- if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {
- swipedSlide = slide;
- return false;
- }
- } else {
- if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {
- swipedSlide = slide;
- return false;
- }
- }
-
- return true;
- });
-
- if (!swipedSlide) {
- return 0;
- }
- var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;
- var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;
- return slidesTraversed;
- } else {
- return spec.slidesToScroll;
- }
-};
-
-var checkSpecKeys = exports.checkSpecKeys = function checkSpecKeys(spec, keysArray) {
- return keysArray.reduce(function (value, key) {
- return value && spec.hasOwnProperty(key);
- }, true) ? null : console.error("Keys Missing:", spec);
-};
-
-var getTrackCSS = exports.getTrackCSS = function getTrackCSS(spec) {
- checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]);
- var trackWidth = void 0,
- trackHeight = void 0;
- var trackChildren = spec.slideCount + 2 * spec.slidesToShow;
- if (!spec.vertical) {
- trackWidth = getTotalSlides(spec) * spec.slideWidth;
- } else {
- trackHeight = trackChildren * spec.slideHeight;
- }
- var style = {
- opacity: 1,
- transition: "",
- WebkitTransition: ""
- };
- if (spec.useTransform) {
- var WebkitTransform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
- var transform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
- var msTransform = !spec.vertical ? "translateX(" + spec.left + "px)" : "translateY(" + spec.left + "px)";
- style = _extends({}, style, {
- WebkitTransform: WebkitTransform,
- transform: transform,
- msTransform: msTransform
- });
- } else {
- if (spec.vertical) {
- style["top"] = spec.left;
- } else {
- style["left"] = spec.left;
- }
- }
- if (spec.fade) style = { opacity: 1 };
- if (trackWidth) style.width = trackWidth;
- if (trackHeight) style.height = trackHeight;
-
- // Fallback for IE8
- if (window && !window.addEventListener && window.attachEvent) {
- if (!spec.vertical) {
- style.marginLeft = spec.left + "px";
- } else {
- style.marginTop = spec.left + "px";
- }
- }
-
- return style;
-};
-var getTrackAnimateCSS = exports.getTrackAnimateCSS = function getTrackAnimateCSS(spec) {
- checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
- var style = getTrackCSS(spec);
- // useCSS is true by default so it can be undefined
- if (spec.useTransform) {
- style.WebkitTransition = "-webkit-transform " + spec.speed + "ms " + spec.cssEase;
- style.transition = "transform " + spec.speed + "ms " + spec.cssEase;
- } else {
- if (spec.vertical) {
- style.transition = "top " + spec.speed + "ms " + spec.cssEase;
- } else {
- style.transition = "left " + spec.speed + "ms " + spec.cssEase;
- }
- }
- return style;
-};
-var getTrackLeft = exports.getTrackLeft = function getTrackLeft(spec) {
- if (spec.unslick) {
- return 0;
- }
-
- checkSpecKeys(spec, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
-
- var slideIndex = spec.slideIndex,
- trackRef = spec.trackRef,
- infinite = spec.infinite,
- centerMode = spec.centerMode,
- slideCount = spec.slideCount,
- slidesToShow = spec.slidesToShow,
- slidesToScroll = spec.slidesToScroll,
- slideWidth = spec.slideWidth,
- listWidth = spec.listWidth,
- variableWidth = spec.variableWidth,
- slideHeight = spec.slideHeight,
- fade = spec.fade,
- vertical = spec.vertical;
-
-
- var slideOffset = 0;
- var targetLeft;
- var targetSlide;
- var verticalOffset = 0;
-
- if (fade || spec.slideCount === 1) {
- return 0;
- }
-
- var slidesToOffset = 0;
- if (infinite) {
- slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area
- // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children
- if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
- slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);
- }
- // shift current slide to center of the frame
- if (centerMode) {
- slidesToOffset += parseInt(slidesToShow / 2);
- }
- } else {
- if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
- slidesToOffset = slidesToShow - slideCount % slidesToScroll;
- }
- if (centerMode) {
- slidesToOffset = parseInt(slidesToShow / 2);
- }
- }
- slideOffset = slidesToOffset * slideWidth;
- verticalOffset = slidesToOffset * slideHeight;
-
- if (!vertical) {
- targetLeft = slideIndex * slideWidth * -1 + slideOffset;
- } else {
- targetLeft = slideIndex * slideHeight * -1 + verticalOffset;
- }
-
- if (variableWidth === true) {
- var targetSlideIndex;
- var trackElem = _reactDom2.default.findDOMNode(trackRef);
- targetSlideIndex = slideIndex + getPreClones(spec);
- targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];
- targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;
- if (centerMode === true) {
- targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;
- targetSlide = trackElem && trackElem.children[targetSlideIndex];
- targetLeft = 0;
- for (var slide = 0; slide < targetSlideIndex; slide++) {
- targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;
- }
- targetLeft -= parseInt(spec.centerPadding);
- targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;
- }
- }
-
- return targetLeft;
-};
-
-var getPreClones = exports.getPreClones = function getPreClones(spec) {
- if (spec.unslick || !spec.infinite) {
- return 0;
- }
- if (spec.variableWidth) {
- return spec.slideCount;
- }
- return spec.slidesToShow + (spec.centerMode ? 1 : 0);
-};
-
-var getPostClones = exports.getPostClones = function getPostClones(spec) {
- if (spec.unslick || !spec.infinite) {
- return 0;
- }
- return spec.slideCount;
-};
-
-var getTotalSlides = exports.getTotalSlides = function getTotalSlides(spec) {
- return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
-};
-var siblingDirection = exports.siblingDirection = function siblingDirection(spec) {
- if (spec.targetSlide > spec.currentSlide) {
- if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {
- return "left";
- }
- return "right";
- } else {
- if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {
- return "right";
- }
- return "left";
- }
-};
-
-var slidesOnRight = exports.slidesOnRight = function slidesOnRight(_ref) {
+var slidesOnRight = function slidesOnRight(_ref) {
var slidesToShow = _ref.slidesToShow,
centerMode = _ref.centerMode,
rtl = _ref.rtl,
@@ -3684,13 +3279,17 @@ var slidesOnRight = exports.slidesOnRight = function slidesOnRight(_ref) {
if (rtl && slidesToShow % 2 === 0) right += 1;
return right;
}
+
if (rtl) {
return 0;
}
+
return slidesToShow - 1;
};
-var slidesOnLeft = exports.slidesOnLeft = function slidesOnLeft(_ref2) {
+exports.slidesOnRight = slidesOnRight;
+
+var slidesOnLeft = function slidesOnLeft(_ref2) {
var slidesToShow = _ref2.slidesToShow,
centerMode = _ref2.centerMode,
rtl = _ref2.rtl,
@@ -3703,3277 +3302,3758 @@ var slidesOnLeft = exports.slidesOnLeft = function slidesOnLeft(_ref2) {
if (!rtl && slidesToShow % 2 === 0) left += 1;
return left;
}
+
if (rtl) {
return slidesToShow - 1;
}
+
return 0;
};
-var canUseDOM = exports.canUseDOM = function canUseDOM() {
+exports.slidesOnLeft = slidesOnLeft;
+
+var canUseDOM = function canUseDOM() {
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
};
-/***/ }),
-/* 50 */
-/*!********************************************!*\
- !*** ./src/components/box-shadow/index.js ***!
- \********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+exports.canUseDOM = canUseDOM;
-"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+/***/ }),
+/* 43 */
+/*!************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_an-object.js ***!
+ \************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+var isObject = __webpack_require__(/*! ./_is-object */ 37);
+module.exports = function (it) {
+ if (!isObject(it)) throw TypeError(it + ' is not an object!');
+ return it;
+};
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+/***/ }),
+/* 44 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_arrayMap.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
-/**
- * Box-Shadow reusable component.
- *
+/**
+ * A specialized version of `_.map` for arrays without support for iteratee
+ * shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the new mapped array.
*/
-var __ = wp.i18n.__;
-var ColorPalette = wp.blockEditor.ColorPalette;
-var _wp$components = wp.components,
- Button = _wp$components.Button,
- SelectControl = _wp$components.SelectControl,
- RangeControl = _wp$components.RangeControl,
- Dashicon = _wp$components.Dashicon;
-
-// Extend component
+function arrayMap(array, iteratee) {
+ var index = -1,
+ length = array == null ? 0 : array.length,
+ result = Array(length);
-var _wp$element = wp.element,
- Component = _wp$element.Component,
- Fragment = _wp$element.Fragment;
+ while (++index < length) {
+ result[index] = iteratee(array[index], index, array);
+ }
+ return result;
+}
-var BoxShadowControl = function (_Component) {
- _inherits(BoxShadowControl, _Component);
+module.exports = arrayMap;
- function BoxShadowControl() {
- _classCallCheck(this, BoxShadowControl);
- var _this = _possibleConstructorReturn(this, (BoxShadowControl.__proto__ || Object.getPrototypeOf(BoxShadowControl)).apply(this, arguments));
+/***/ }),
+/* 45 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_ListCache.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- _this.onAdvancedControlClick = _this.onAdvancedControlClick.bind(_this);
- _this.onAdvancedControlReset = _this.onAdvancedControlReset.bind(_this);
- return _this;
- }
+var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ 256),
+ listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ 257),
+ listCacheGet = __webpack_require__(/*! ./_listCacheGet */ 258),
+ listCacheHas = __webpack_require__(/*! ./_listCacheHas */ 259),
+ listCacheSet = __webpack_require__(/*! ./_listCacheSet */ 260);
- _createClass(BoxShadowControl, [{
- key: "onAdvancedControlClick",
- value: function onAdvancedControlClick() {
+/**
+ * Creates an list cache object.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+function ListCache(entries) {
+ var index = -1,
+ length = entries == null ? 0 : entries.length;
- var control = true;
- var label = __("Hide Advanced");
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
+}
- if (this.state !== null && this.state.showAdvancedControls === true) {
- control = false;
- label = __("Advanced");
- }
-
- this.setState({
- showAdvancedControls: control,
- showAdvancedControlsLabel: label
- });
- }
- }, {
- key: "onAdvancedControlReset",
- value: function onAdvancedControlReset() {
- var setAttributes = this.props.setAttributes;
-
-
- setAttributes({ boxShadowColor: "" });
- setAttributes({ boxShadowHOffset: "" });
- setAttributes({ boxShadowVOffset: "" });
- setAttributes({ boxShadowBlur: "" });
- setAttributes({ boxShadowSpread: "" });
- setAttributes({ boxShadowPosition: "" });
- }
- }, {
- key: "render",
- value: function render() {
- var _props = this.props,
- setAttributes = _props.setAttributes,
- boxShadowColor = _props.boxShadowColor,
- boxShadowHOffset = _props.boxShadowHOffset,
- boxShadowVOffset = _props.boxShadowVOffset,
- boxShadowBlur = _props.boxShadowBlur,
- boxShadowSpread = _props.boxShadowSpread,
- boxShadowPosition = _props.boxShadowPosition;
-
-
- var advancedControls;
- var boxShadowAdvancedControls;
- var resetBoxShadowAdvancedControls;
- if (this.state !== null && true === this.state.showAdvancedControls) {
- advancedControls = wp.element.createElement(
- "div",
- { className: "uagb-box-shadow-advanced" },
- wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(
- "p",
- { className: "uagb-setting-label" },
- boxShadowColor.label,
- wp.element.createElement(
- "span",
- { className: "components-base-control__label" },
- wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: boxShadowColor.value } })
- )
- ),
- wp.element.createElement(ColorPalette, {
- value: boxShadowColor.value,
- onChange: function onChange(colorValue) {
- return setAttributes({ boxShadowColor: colorValue });
- },
- allowReset: true
- })
- ),
- wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(
- "h2",
- null,
- boxShadowHOffset.label
- ),
- wp.element.createElement(RangeControl, {
- value: boxShadowHOffset.value,
- onChange: function onChange(value) {
- return setAttributes({ boxShadowHOffset: value });
- },
- min: -100,
- max: 100,
- allowReset: true
- })
- ),
- wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(
- "h2",
- null,
- boxShadowVOffset.label
- ),
- wp.element.createElement(RangeControl, {
- value: boxShadowVOffset.value,
- onChange: function onChange(value) {
- return setAttributes({ boxShadowVOffset: value });
- },
- min: -100,
- max: 100,
- allowReset: true
- })
- ),
- wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(
- "h2",
- null,
- boxShadowBlur.label
- ),
- wp.element.createElement(RangeControl, {
- value: boxShadowBlur.value,
- onChange: function onChange(value) {
- return setAttributes({ boxShadowBlur: value });
- },
- min: 0,
- max: 100,
- allowReset: true
- })
- ),
- wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(
- "h2",
- null,
- boxShadowSpread.label
- ),
- wp.element.createElement(RangeControl, {
- value: boxShadowSpread.value,
- onChange: function onChange(value) {
- return setAttributes({ boxShadowSpread: value });
- },
- min: 0,
- max: 100,
- allowReset: true
- })
- ),
- wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(SelectControl, {
- label: boxShadowPosition.label,
- value: boxShadowPosition.value,
- onChange: function onChange(value) {
- return setAttributes({ boxShadowPosition: value });
- },
- options: [{ value: "inset", label: __("Inset") }, { value: "outset", label: __("Outset") }]
- })
- )
- );
- }
- resetBoxShadowAdvancedControls = wp.element.createElement(
- Button,
- {
- className: "uagb-size-btn uagb-typography-reset-btn",
- isSmall: true,
- "aria-pressed": this.state !== null,
- onClick: this.onAdvancedControlReset
- },
- wp.element.createElement(Dashicon, { icon: "image-rotate" })
- );
-
- boxShadowAdvancedControls = wp.element.createElement(
- Button,
- {
- className: "uagb-size-btn uagb-typography-control-btn",
- isSmall: true,
- "aria-pressed": this.state !== null,
- onClick: this.onAdvancedControlClick
- },
- wp.element.createElement(Dashicon, { icon: "admin-tools" })
- );
-
- return wp.element.createElement(
- "div",
- { className: "uag-typography-option-actions" },
- wp.element.createElement(
- "span",
- null,
- this.props.label
- ),
- boxShadowAdvancedControls,
- resetBoxShadowAdvancedControls,
- advancedControls
- );
- }
- }]);
+// Add methods to `ListCache`.
+ListCache.prototype.clear = listCacheClear;
+ListCache.prototype['delete'] = listCacheDelete;
+ListCache.prototype.get = listCacheGet;
+ListCache.prototype.has = listCacheHas;
+ListCache.prototype.set = listCacheSet;
- return BoxShadowControl;
-}(Component);
+module.exports = ListCache;
-/* harmony default export */ __webpack_exports__["a"] = (BoxShadowControl);
/***/ }),
-/* 51 */
-/*!******************************************!*\
- !*** ./src/blocks/price-list/classes.js ***!
- \******************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/**
-* Returns Dynamic Generated Classes
-*/
-
-function PositionClasses(attributes) {
-
- var iconimgStyle_class = "";
- var imge_cnt = 0;
- var image = attributes.image;
-
- if (typeof attributes.rest_menu_item_arr !== "undefined") {
- attributes.rest_menu_item_arr.map(function (item, thisIndex) {
- var image_arr = item.image;
- if (image_arr && typeof image_arr !== "undefined") {
- imge_cnt++;
- }
- });
- }
-
- if (typeof image !== "undefined" && image !== null && image !== "") {
- imge_cnt++;
- }
-
- if (imge_cnt > 0) {
- iconimgStyle_class += "uagb-rm__image-position-" + attributes.imagePosition + " ";
- }
-
- iconimgStyle_class += " uagb-rm__align-" + attributes.headingAlign + " ";
-
- if ("left" == attributes.imagePosition || "right" == attributes.imagePosition) {
- iconimgStyle_class += "uagb-rm__image-aligned-" + attributes.imageAlignment + " ";
- if (attributes.stack !== "none") {
- iconimgStyle_class += "uagb-rm-stacked-" + attributes.stack + " ";
- if (attributes.imagePosition === "right") {
- iconimgStyle_class += "uagb-rm-reverse-order-" + attributes.stack + " ";
- }
- }
- }
+/* 46 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_assocIndexOf.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- iconimgStyle_class += "uagb-rm__desk-column-" + attributes.columns + " ";
- iconimgStyle_class += "uagb-rm__tablet-column-" + attributes.tcolumns + " ";
- iconimgStyle_class += "uagb-rm__mobile-column-" + attributes.mcolumns + " ";
+var eq = __webpack_require__(/*! ./eq */ 47);
- return [iconimgStyle_class];
+/**
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} key The key to search for.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+function assocIndexOf(array, key) {
+ var length = array.length;
+ while (length--) {
+ if (eq(array[length][0], key)) {
+ return length;
+ }
+ }
+ return -1;
}
-/* harmony default export */ __webpack_exports__["a"] = (PositionClasses);
+module.exports = assocIndexOf;
+
/***/ }),
-/* 52 */
-/*!***************************************!*\
- !*** ./node_modules/lodash/_Stack.js ***!
- \***************************************/
-/*! no static exports found */
+/* 47 */
+/*!***********************************!*\
+ !*** ./node_modules/lodash/eq.js ***!
+ \***********************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var ListCache = __webpack_require__(/*! ./_ListCache */ 35),
- stackClear = __webpack_require__(/*! ./_stackClear */ 199),
- stackDelete = __webpack_require__(/*! ./_stackDelete */ 200),
- stackGet = __webpack_require__(/*! ./_stackGet */ 201),
- stackHas = __webpack_require__(/*! ./_stackHas */ 202),
- stackSet = __webpack_require__(/*! ./_stackSet */ 203);
+/***/ (function(module, exports) {
/**
- * Creates a stack cache object to store key-value pairs.
+ * Performs a
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+ * comparison between two values to determine if they are equivalent.
*
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
+ *
+ * var object = { 'a': 1 };
+ * var other = { 'a': 1 };
+ *
+ * _.eq(object, object);
+ * // => true
+ *
+ * _.eq(object, other);
+ * // => false
+ *
+ * _.eq('a', 'a');
+ * // => true
+ *
+ * _.eq('a', Object('a'));
+ * // => false
+ *
+ * _.eq(NaN, NaN);
+ * // => true
*/
-function Stack(entries) {
- var data = this.__data__ = new ListCache(entries);
- this.size = data.size;
+function eq(value, other) {
+ return value === other || (value !== value && other !== other);
}
-// Add methods to `Stack`.
-Stack.prototype.clear = stackClear;
-Stack.prototype['delete'] = stackDelete;
-Stack.prototype.get = stackGet;
-Stack.prototype.has = stackHas;
-Stack.prototype.set = stackSet;
-
-module.exports = Stack;
+module.exports = eq;
/***/ }),
-/* 53 */
-/*!*************************************!*\
- !*** ./node_modules/lodash/_Map.js ***!
- \*************************************/
-/*! no static exports found */
+/* 48 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_nativeCreate.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var getNative = __webpack_require__(/*! ./_getNative */ 19),
- root = __webpack_require__(/*! ./_root */ 12);
+var getNative = __webpack_require__(/*! ./_getNative */ 21);
/* Built-in method references that are verified to be native. */
-var Map = getNative(root, 'Map');
-
-module.exports = Map;
-
-
-/***/ }),
-/* 54 */
-/*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+var nativeCreate = getNative(Object, 'create');
-var g;
-
-// This works in non-strict mode
-g = (function() {
- return this;
-})();
-
-try {
- // This works if eval is allowed (see CSP)
- g = g || Function("return this")() || (1,eval)("this");
-} catch(e) {
- // This works if the window reference is available
- if(typeof window === "object")
- g = window;
-}
-
-// g can still be undefined, but nothing to do about it...
-// We return undefined, instead of nothing here, so it's
-// easier to handle this case. if(!global) { ...}
-
-module.exports = g;
+module.exports = nativeCreate;
/***/ }),
-/* 55 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_MapCache.js ***!
- \******************************************/
-/*! no static exports found */
+/* 49 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_getMapData.js ***!
+ \********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ 210),
- mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ 217),
- mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ 219),
- mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ 220),
- mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ 221);
+var isKeyable = __webpack_require__(/*! ./_isKeyable */ 280);
/**
- * Creates a map cache object to store key-value pairs.
+ * Gets the data for `map`.
*
* @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
+ * @param {Object} map The map to query.
+ * @param {string} key The reference key.
+ * @returns {*} Returns the map data.
*/
-function MapCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
+function getMapData(map, key) {
+ var data = map.__data__;
+ return isKeyable(key)
+ ? data[typeof key == 'string' ? 'string' : 'hash']
+ : data.map;
}
-// Add methods to `MapCache`.
-MapCache.prototype.clear = mapCacheClear;
-MapCache.prototype['delete'] = mapCacheDelete;
-MapCache.prototype.get = mapCacheGet;
-MapCache.prototype.has = mapCacheHas;
-MapCache.prototype.set = mapCacheSet;
-
-module.exports = MapCache;
+module.exports = getMapData;
/***/ }),
-/* 56 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_arrayPush.js ***!
- \*******************************************/
-/*! no static exports found */
+/* 50 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/_isIndex.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
+/** Used as references for various `Number` constants. */
+var MAX_SAFE_INTEGER = 9007199254740991;
+
+/** Used to detect unsigned integer values. */
+var reIsUint = /^(?:0|[1-9]\d*)$/;
+
/**
- * Appends the elements of `values` to `array`.
+ * Checks if `value` is a valid array-like index.
*
* @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
+ * @param {*} value The value to check.
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
-function arrayPush(array, values) {
- var index = -1,
- length = values.length,
- offset = array.length;
+function isIndex(value, length) {
+ var type = typeof value;
+ length = length == null ? MAX_SAFE_INTEGER : length;
- while (++index < length) {
- array[offset + index] = values[index];
- }
- return array;
+ return !!length &&
+ (type == 'number' ||
+ (type != 'symbol' && reIsUint.test(value))) &&
+ (value > -1 && value % 1 == 0 && value < length);
}
-module.exports = arrayPush;
+module.exports = isIndex;
/***/ }),
-/* 57 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_getSymbols.js ***!
- \********************************************/
-/*! no static exports found */
+/* 51 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_baseUnary.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ 232),
- stubArray = __webpack_require__(/*! ./stubArray */ 120);
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Built-in value references. */
-var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeGetSymbols = Object.getOwnPropertySymbols;
+/***/ (function(module, exports) {
/**
- * Creates an array of the own enumerable symbols of `object`.
+ * The base implementation of `_.unary` without support for storing metadata.
*
* @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
+ * @param {Function} func The function to cap arguments for.
+ * @returns {Function} Returns the new capped function.
*/
-var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
- if (object == null) {
- return [];
- }
- object = Object(object);
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
- return propertyIsEnumerable.call(object, symbol);
- });
-};
+function baseUnary(func) {
+ return function(value) {
+ return func(value);
+ };
+}
-module.exports = getSymbols;
+module.exports = baseUnary;
/***/ }),
-/* 58 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/isArguments.js ***!
- \********************************************/
-/*! no static exports found */
+/* 52 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_nodeUtil.js ***!
+ \******************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ 233),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17);
+/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 145);
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
+/** Detect free variable `exports`. */
+var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
+/** Detect free variable `module`. */
+var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-/** Built-in value references. */
-var propertyIsEnumerable = objectProto.propertyIsEnumerable;
+/** Detect the popular CommonJS extension `module.exports`. */
+var moduleExports = freeModule && freeModule.exports === freeExports;
-/**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- * else `false`.
- * @example
+/** Detect free variable `process` from Node.js. */
+var freeProcess = moduleExports && freeGlobal.process;
+
+/** Used to access faster Node.js helpers. */
+var nodeUtil = (function() {
+ try {
+ // Use `util.types` for Node.js 10+.
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
+
+ if (types) {
+ return types;
+ }
+
+ // Legacy `process.binding('util')` for Node.js < 10.
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
+ } catch (e) {}
+}());
+
+module.exports = nodeUtil;
+
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 80)(module)))
+
+/***/ }),
+/* 53 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_isPrototype.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/**
+ * Checks if `value` is likely a prototype object.
*
- * _.isArguments(function() { return arguments; }());
- * // => true
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
+ */
+function isPrototype(value) {
+ var Ctor = value && value.constructor,
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
+
+ return value === proto;
+}
+
+module.exports = isPrototype;
+
+
+/***/ }),
+/* 54 */
+/*!****************************************!*\
+ !*** ./node_modules/lodash/_getTag.js ***!
+ \****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var DataView = __webpack_require__(/*! ./_DataView */ 300),
+ Map = __webpack_require__(/*! ./_Map */ 73),
+ Promise = __webpack_require__(/*! ./_Promise */ 301),
+ Set = __webpack_require__(/*! ./_Set */ 302),
+ WeakMap = __webpack_require__(/*! ./_WeakMap */ 303),
+ baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22),
+ toSource = __webpack_require__(/*! ./_toSource */ 146);
+
+/** `Object#toString` result references. */
+var mapTag = '[object Map]',
+ objectTag = '[object Object]',
+ promiseTag = '[object Promise]',
+ setTag = '[object Set]',
+ weakMapTag = '[object WeakMap]';
+
+var dataViewTag = '[object DataView]';
+
+/** Used to detect maps, sets, and weakmaps. */
+var dataViewCtorString = toSource(DataView),
+ mapCtorString = toSource(Map),
+ promiseCtorString = toSource(Promise),
+ setCtorString = toSource(Set),
+ weakMapCtorString = toSource(WeakMap);
+
+/**
+ * Gets the `toStringTag` of `value`.
*
- * _.isArguments([1, 2, 3]);
- * // => false
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the `toStringTag`.
*/
-var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
- !propertyIsEnumerable.call(value, 'callee');
-};
+var getTag = baseGetTag;
-module.exports = isArguments;
+// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
+if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
+ (Map && getTag(new Map) != mapTag) ||
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
+ (Set && getTag(new Set) != setTag) ||
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
+ getTag = function(value) {
+ var result = baseGetTag(value),
+ Ctor = result == objectTag ? value.constructor : undefined,
+ ctorString = Ctor ? toSource(Ctor) : '';
+
+ if (ctorString) {
+ switch (ctorString) {
+ case dataViewCtorString: return dataViewTag;
+ case mapCtorString: return mapTag;
+ case promiseCtorString: return promiseTag;
+ case setCtorString: return setTag;
+ case weakMapCtorString: return weakMapTag;
+ }
+ }
+ return result;
+ };
+}
+
+module.exports = getTag;
/***/ }),
-/* 59 */
+/* 55 */
/*!*****************************************!*\
- !*** ./node_modules/lodash/isBuffer.js ***!
+ !*** ./node_modules/lodash/_baseGet.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ 12),
- stubFalse = __webpack_require__(/*! ./stubFalse */ 234);
+var castPath = __webpack_require__(/*! ./_castPath */ 30),
+ toKey = __webpack_require__(/*! ./_toKey */ 31);
-/** Detect free variable `exports`. */
-var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
+/**
+ * The base implementation of `_.get` without support for default values.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to get.
+ * @returns {*} Returns the resolved value.
+ */
+function baseGet(object, path) {
+ path = castPath(path, object);
-/** Detect free variable `module`. */
-var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
+ var index = 0,
+ length = path.length;
-/** Detect the popular CommonJS extension `module.exports`. */
-var moduleExports = freeModule && freeModule.exports === freeExports;
+ while (object != null && index < length) {
+ object = object[toKey(path[index++])];
+ }
+ return (index && index == length) ? object : undefined;
+}
-/** Built-in value references. */
-var Buffer = moduleExports ? root.Buffer : undefined;
+module.exports = baseGet;
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
+
+/***/ }),
+/* 56 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/isSymbol.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22),
+ isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18);
+
+/** `Object#toString` result references. */
+var symbolTag = '[object Symbol]';
/**
- * Checks if `value` is a buffer.
+ * Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
- * @since 4.3.0
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
- * _.isBuffer(new Buffer(2));
+ * _.isSymbol(Symbol.iterator);
* // => true
*
- * _.isBuffer(new Uint8Array(2));
+ * _.isSymbol('abc');
* // => false
*/
-var isBuffer = nativeIsBuffer || stubFalse;
-
-module.exports = isBuffer;
-
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 60)(module)))
-
-/***/ }),
-/* 60 */
-/*!***********************************!*\
- !*** (webpack)/buildin/module.js ***!
- \***********************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+function isSymbol(value) {
+ return typeof value == 'symbol' ||
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
+}
-module.exports = function(module) {
- if(!module.webpackPolyfill) {
- module.deprecate = function() {};
- module.paths = [];
- // module.parent = undefined by default
- if(!module.children) module.children = [];
- Object.defineProperty(module, "loaded", {
- enumerable: true,
- get: function() {
- return module.l;
- }
- });
- Object.defineProperty(module, "id", {
- enumerable: true,
- get: function() {
- return module.i;
- }
- });
- module.webpackPolyfill = 1;
- }
- return module;
-};
+module.exports = isSymbol;
/***/ }),
-/* 61 */
+/* 57 */
/*!*****************************************!*\
- !*** ./node_modules/lodash/isLength.js ***!
+ !*** ./node_modules/lodash/identity.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
/**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This method is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
+ * This method returns the first argument it receives.
*
* @static
+ * @since 0.1.0
* @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @category Util
+ * @param {*} value Any value.
+ * @returns {*} Returns `value`.
* @example
*
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
+ * var object = { 'a': 1 };
*
- * _.isLength('3');
- * // => false
+ * console.log(_.identity(object) === object);
+ * // => true
*/
-function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+function identity(value) {
+ return value;
}
-module.exports = isLength;
+module.exports = identity;
/***/ }),
-/* 62 */
-/*!***************************************!*\
- !*** ./node_modules/lodash/_isKey.js ***!
- \***************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/* 58 */
+/*!*********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
+ \*********************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-var isArray = __webpack_require__(/*! ./isArray */ 14),
- isSymbol = __webpack_require__(/*! ./isSymbol */ 46);
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck;
+function _classCallCheck(instance, Constructor) {
+ if (!(instance instanceof Constructor)) {
+ throw new TypeError("Cannot call a class as a function");
+ }
+}
-/** Used to match property names within property paths. */
-var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/;
+/***/ }),
+/* 59 */
+/*!******************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
+ \******************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-/**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
-function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
+function _defineProperties(target, props) {
+ for (var i = 0; i < props.length; i++) {
+ var descriptor = props[i];
+ descriptor.enumerable = descriptor.enumerable || false;
+ descriptor.configurable = true;
+ if ("value" in descriptor) descriptor.writable = true;
+ Object.defineProperty(target, descriptor.key, descriptor);
}
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
}
-module.exports = isKey;
+function _createClass(Constructor, protoProps, staticProps) {
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
+ if (staticProps) _defineProperties(Constructor, staticProps);
+ return Constructor;
+}
+
+/***/ }),
+/* 60 */
+/*!***************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
+ \***************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _inherits;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_setPrototypeOf__ = __webpack_require__(/*! @babel/runtime/helpers/esm/setPrototypeOf */ 335);
+function _inherits(subClass, superClass) {
+ if (typeof superClass !== "function" && superClass !== null) {
+ throw new TypeError("Super expression must either be null or a function");
+ }
+
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
+ constructor: {
+ value: subClass,
+ writable: true,
+ configurable: true
+ }
+ });
+ if (superClass) Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_setPrototypeOf__["a" /* default */])(subClass, superClass);
+}
/***/ }),
-/* 63 */
-/*!***************************************************!*\
- !*** ./node_modules/prop-types/checkPropTypes.js ***!
- \***************************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/* 61 */
+/*!********************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
+ \********************************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {/**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
+/* harmony export (immutable) */ __webpack_exports__["a"] = _possibleConstructorReturn;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_typeof__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ 165);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ 166);
+function _possibleConstructorReturn(self, call) {
+ if (call && (Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_typeof__["a" /* default */])(call) === "object" || typeof call === "function")) {
+ return call;
+ }
-var printWarning = function() {};
+ return Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(self);
+}
-if (process.env.NODE_ENV !== 'production') {
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ 64);
- var loggedTypeFailures = {};
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
+/***/ }),
+/* 62 */
+/*!*********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
+ \*********************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- printWarning = function(text) {
- var message = 'Warning: ' + text;
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message);
- } catch (x) {}
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _getPrototypeOf;
+function _getPrototypeOf(o) {
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
};
+ return _getPrototypeOf(o);
}
-/**
- * Assert that the values match with the type specs.
- * Error messages are memorized and will only be shown once.
- *
- * @param {object} typeSpecs Map of name to a ReactPropType
- * @param {object} values Runtime values that need to be type-checked
- * @param {string} location e.g. "prop", "context", "child context"
- * @param {string} componentName Name of the component for error messages.
- * @param {?Function} getStack Returns the component stack.
- * @private
- */
-function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
- if (process.env.NODE_ENV !== 'production') {
- for (var typeSpecName in typeSpecs) {
- if (has(typeSpecs, typeSpecName)) {
- var error;
- // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- if (typeof typeSpecs[typeSpecName] !== 'function') {
- var err = Error(
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
- );
- err.name = 'Invariant Violation';
- throw err;
- }
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
- } catch (ex) {
- error = ex;
- }
- if (error && !(error instanceof Error)) {
- printWarning(
- (componentName || 'React class') + ': type specification of ' +
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
- 'You may have forgotten to pass an argument to the type checker ' +
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
- 'shape all require an argument).'
- );
- }
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error.message] = true;
+/***/ }),
+/* 63 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_assignValue.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- var stack = getStack ? getStack() : '';
+var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 186),
+ eq = __webpack_require__(/*! ./eq */ 47);
- printWarning(
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
- );
- }
- }
- }
- }
-}
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * Resets warning cache when testing.
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+ * for equality comparisons.
*
* @private
+ * @param {Object} object The object to modify.
+ * @param {string} key The key of the property to assign.
+ * @param {*} value The value to assign.
*/
-checkPropTypes.resetWarningCache = function() {
- if (process.env.NODE_ENV !== 'production') {
- loggedTypeFailures = {};
+function assignValue(object, key, value) {
+ var objValue = object[key];
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
+ (value === undefined && !(key in object))) {
+ baseAssignValue(object, key, value);
}
}
-module.exports = checkPropTypes;
+module.exports = assignValue;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3)))
/***/ }),
/* 64 */
-/*!*************************************************************!*\
- !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
- \*************************************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/*!********************************************!*\
+ !*** ./src/components/box-shadow/index.js ***!
+ \********************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-module.exports = ReactPropTypesSecret;
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-/***/ }),
-/* 65 */
-/*!*************************************************************!*\
- !*** ./node_modules/@emotion/core/dist/core.browser.esm.js ***!
- \*************************************************************/
-/*! exports provided: css, CacheProvider, ClassNames, Global, ThemeContext, jsx, keyframes, withEmotionCache */
-/*! exports used: CacheProvider, ClassNames, jsx, keyframes */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+/**
+ * Box-Shadow reusable component.
+ *
+ */
+var __ = wp.i18n.__;
+var ColorPalette = wp.blockEditor.ColorPalette;
+var _wp$components = wp.components,
+ Button = _wp$components.Button,
+ SelectControl = _wp$components.SelectControl,
+ RangeControl = _wp$components.RangeControl,
+ Dashicon = _wp$components.Dashicon;
-"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
-/* unused harmony export Global */
-/* unused harmony export ThemeContext */
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
-/* unused harmony export withEmotionCache */
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ 262);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(/*! react */ 6);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 132);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(/*! @emotion/utils */ 265);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 134);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 133);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29);
-/* unused harmony reexport css */
+// Extend component
+var _wp$element = wp.element,
+ Component = _wp$element.Component,
+ Fragment = _wp$element.Fragment;
+var BoxShadowControl = function (_Component) {
+ _inherits(BoxShadowControl, _Component);
+ function BoxShadowControl() {
+ _classCallCheck(this, BoxShadowControl);
+ var _this = _possibleConstructorReturn(this, (BoxShadowControl.__proto__ || Object.getPrototypeOf(BoxShadowControl)).apply(this, arguments));
+ _this.onAdvancedControlClick = _this.onAdvancedControlClick.bind(_this);
+ _this.onAdvancedControlReset = _this.onAdvancedControlReset.bind(_this);
+ return _this;
+ }
+ _createClass(BoxShadowControl, [{
+ key: "onAdvancedControlClick",
+ value: function onAdvancedControlClick() {
+ var control = true;
+ var label = __("Hide Advanced", 'ultimate-addons-for-gutenberg');
+ if (this.state !== null && this.state.showAdvancedControls === true) {
+ control = false;
+ label = __("Advanced", 'ultimate-addons-for-gutenberg');
+ }
-var EmotionCacheContext = __WEBPACK_IMPORTED_MODULE_1_react__["createContext"]( // we're doing this to avoid preconstruct's dead code elimination in this one case
-// because this module is primarily intended for the browser and node
-// but it's also required in react native and similar environments sometimes
-// and we could have a special build just for that
-// but this is much easier and the native packages
-// might use a different theme context in the future anyway
-typeof HTMLElement !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */]() : null);
-var ThemeContext = __WEBPACK_IMPORTED_MODULE_1_react__["createContext"]({});
-var CacheProvider = EmotionCacheContext.Provider;
-
-var withEmotionCache = function withEmotionCache(func) {
- var render = function render(props, ref) {
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](EmotionCacheContext.Consumer, null, function (cache) {
- return func(props, cache, ref);
- });
- }; // $FlowFixMe
-
+ this.setState({
+ showAdvancedControls: control,
+ showAdvancedControlsLabel: label
+ });
+ }
+ }, {
+ key: "onAdvancedControlReset",
+ value: function onAdvancedControlReset() {
+ var setAttributes = this.props.setAttributes;
- return __WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"](render);
-};
-// thus we only need to replace what is a valid character for JS, but not for CSS
+ setAttributes({ boxShadowColor: "" });
+ setAttributes({ boxShadowHOffset: "" });
+ setAttributes({ boxShadowVOffset: "" });
+ setAttributes({ boxShadowBlur: "" });
+ setAttributes({ boxShadowSpread: "" });
+ setAttributes({ boxShadowPosition: "" });
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ var _props = this.props,
+ setAttributes = _props.setAttributes,
+ boxShadowColor = _props.boxShadowColor,
+ boxShadowHOffset = _props.boxShadowHOffset,
+ boxShadowVOffset = _props.boxShadowVOffset,
+ boxShadowBlur = _props.boxShadowBlur,
+ boxShadowSpread = _props.boxShadowSpread,
+ boxShadowPosition = _props.boxShadowPosition;
-var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
- return identifier.replace(/\$/g, '-');
-};
-var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
-var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
-var hasOwnProperty = Object.prototype.hasOwnProperty;
+ var advancedControls;
+ var boxShadowAdvancedControls;
+ var resetBoxShadowAdvancedControls;
+ if (this.state !== null && true === this.state.showAdvancedControls) {
+ advancedControls = wp.element.createElement(
+ "div",
+ { className: "uagb-box-shadow-advanced" },
+ wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(
+ "p",
+ { className: "uagb-setting-label" },
+ boxShadowColor.label,
+ wp.element.createElement(
+ "span",
+ { className: "components-base-control__label" },
+ wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: boxShadowColor.value } })
+ )
+ ),
+ wp.element.createElement(ColorPalette, {
+ value: boxShadowColor.value,
+ onChange: function onChange(colorValue) {
+ return setAttributes({ boxShadowColor: colorValue });
+ },
+ allowReset: true
+ })
+ ),
+ wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(
+ "h2",
+ null,
+ boxShadowHOffset.label
+ ),
+ wp.element.createElement(RangeControl, {
+ value: boxShadowHOffset.value,
+ onChange: function onChange(value) {
+ return setAttributes({ boxShadowHOffset: value });
+ },
+ min: -100,
+ max: 100,
+ allowReset: true
+ })
+ ),
+ wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(
+ "h2",
+ null,
+ boxShadowVOffset.label
+ ),
+ wp.element.createElement(RangeControl, {
+ value: boxShadowVOffset.value,
+ onChange: function onChange(value) {
+ return setAttributes({ boxShadowVOffset: value });
+ },
+ min: -100,
+ max: 100,
+ allowReset: true
+ })
+ ),
+ wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(
+ "h2",
+ null,
+ boxShadowBlur.label
+ ),
+ wp.element.createElement(RangeControl, {
+ value: boxShadowBlur.value,
+ onChange: function onChange(value) {
+ return setAttributes({ boxShadowBlur: value });
+ },
+ min: 0,
+ max: 100,
+ allowReset: true
+ })
+ ),
+ wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(
+ "h2",
+ null,
+ boxShadowSpread.label
+ ),
+ wp.element.createElement(RangeControl, {
+ value: boxShadowSpread.value,
+ onChange: function onChange(value) {
+ return setAttributes({ boxShadowSpread: value });
+ },
+ min: 0,
+ max: 100,
+ allowReset: true
+ })
+ ),
+ wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(SelectControl, {
+ label: boxShadowPosition.label,
+ value: boxShadowPosition.value,
+ onChange: function onChange(value) {
+ return setAttributes({ boxShadowPosition: value });
+ },
+ options: [{ value: "inset", label: __("Inset", 'ultimate-addons-for-gutenberg') }, { value: "outset", label: __("Outset", 'ultimate-addons-for-gutenberg') }]
+ })
+ )
+ );
+ }
+ resetBoxShadowAdvancedControls = wp.element.createElement(
+ Button,
+ {
+ className: "uagb-size-btn uagb-typography-reset-btn",
+ isSmall: true,
+ "aria-pressed": this.state !== null,
+ onClick: this.onAdvancedControlReset
+ },
+ wp.element.createElement(Dashicon, { icon: "image-rotate" })
+ );
-var render = function render(cache, props, theme, ref) {
- var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works
- // not passing the registered cache to serializeStyles because it would
- // make certain babel optimisations not possible
+ boxShadowAdvancedControls = wp.element.createElement(
+ Button,
+ {
+ className: "uagb-size-btn uagb-typography-control-btn",
+ isSmall: true,
+ "aria-pressed": this.state !== null,
+ onClick: this.onAdvancedControlClick
+ },
+ wp.element.createElement(Dashicon, { icon: "admin-tools" })
+ );
- if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
- cssProp = cache.registered[cssProp];
- }
+ return wp.element.createElement(
+ "div",
+ { className: "uag-typography-option-actions" },
+ wp.element.createElement(
+ "span",
+ null,
+ this.props.label
+ ),
+ boxShadowAdvancedControls,
+ resetBoxShadowAdvancedControls,
+ advancedControls
+ );
+ }
+ }]);
- var type = props[typePropName];
- var registeredStyles = [cssProp];
- var className = '';
+ return BoxShadowControl;
+}(Component);
- if (typeof props.className === 'string') {
- className = __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */](cache.registered, registeredStyles, props.className);
- } else if (props.className != null) {
- className = props.className + " ";
- }
+/* harmony default export */ __webpack_exports__["a"] = (BoxShadowControl);
- var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */](registeredStyles);
+/***/ }),
+/* 65 */
+/*!******************************************!*\
+ !*** ./src/blocks/price-list/classes.js ***!
+ \******************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
- var labelFromStack = props[labelPropName];
+"use strict";
+/**
+* Returns Dynamic Generated Classes
+*/
- if (labelFromStack) {
- serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */]([serialized, 'label:' + labelFromStack + ';']);
- }
- }
+function PositionClasses(attributes) {
- var rules = __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */](cache, serialized, typeof type === 'string');
- className += cache.key + "-" + serialized.name;
- var newProps = {};
+ var iconimgStyle_class = "";
+ var imge_cnt = 0;
+ var image = attributes.image;
- for (var key in props) {
- if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
- newProps[key] = props[key];
- }
- }
+ if (typeof attributes.rest_menu_item_arr !== "undefined") {
+ attributes.rest_menu_item_arr.map(function (item, thisIndex) {
+ var image_arr = item.image;
+ if (image_arr && typeof image_arr !== "undefined") {
+ imge_cnt++;
+ }
+ });
+ }
- newProps.ref = ref;
- newProps.className = className;
- var ele = __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](type, newProps);
+ if (typeof image !== "undefined" && image !== null && image !== "") {
+ imge_cnt++;
+ }
- return ele;
-};
+ if (imge_cnt > 0) {
+ iconimgStyle_class += "uagb-rm__image-position-" + attributes.imagePosition + " ";
+ }
-var Emotion =
-/* #__PURE__ */
-withEmotionCache(function (props, cache, ref) {
- // use Context.read for the theme when it's stable
- if (typeof props.css === 'function') {
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](ThemeContext.Consumer, null, function (theme) {
- return render(cache, props, theme, ref);
- });
- }
+ iconimgStyle_class += " uagb-rm__align-" + attributes.headingAlign + " ";
- return render(cache, props, null, ref);
-});
+ if ("left" == attributes.imagePosition || "right" == attributes.imagePosition) {
+ iconimgStyle_class += "uagb-rm__image-aligned-" + attributes.imageAlignment + " ";
+ if (attributes.stack !== "none") {
+ iconimgStyle_class += "uagb-rm-stacked-" + attributes.stack + " ";
+ if (attributes.imagePosition === "right") {
+ iconimgStyle_class += "uagb-rm-reverse-order-" + attributes.stack + " ";
+ }
+ }
+ }
-if (process.env.NODE_ENV !== 'production') {
- Emotion.displayName = 'EmotionCssPropInternal';
-} // $FlowFixMe
+ iconimgStyle_class += "uagb-rm__desk-column-" + attributes.columns + " ";
+ iconimgStyle_class += "uagb-rm__tablet-column-" + attributes.tcolumns + " ";
+ iconimgStyle_class += "uagb-rm__mobile-column-" + attributes.mcolumns + " ";
+ return [iconimgStyle_class];
+}
-var jsx = function jsx(type, props) {
- var args = arguments;
+/* harmony default export */ __webpack_exports__["a"] = (PositionClasses);
- if (props == null || !hasOwnProperty.call(props, 'css')) {
- // $FlowFixMe
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
- }
+/***/ }),
+/* 66 */
+/*!****************************************!*\
+ !*** ./src/blocks/timeline/classes.js ***!
+ \****************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
- props.css.indexOf(':') !== -1) {
- throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`");
- }
+"use strict";
+/**
+ * Returns Dynamic Generated Classes
+ */
- var argsLength = args.length;
- var createElementArgArray = new Array(argsLength);
- createElementArgArray[0] = Emotion;
- var newProps = {};
+function ContentTmClasses(attributes) {
- for (var key in props) {
- if (hasOwnProperty.call(props, key)) {
- newProps[key] = props[key];
- }
- }
+ /* Arrow position */
+ var arrow_align_class = "uagb-timeline__arrow-top" + " ";
+ if (attributes.arrowlinAlignment == "center") {
+ arrow_align_class = "uagb-timeline__arrow-center" + " ";
+ } else if (attributes.arrowlinAlignment == "bottom") {
+ arrow_align_class = "uagb-timeline__arrow-bottom" + " ";
+ }
- newProps[typePropName] = type;
+ /* Alignmnet */
+ var align_class = "uagb-timeline__center-block " + " ";
+ if (attributes.timelinAlignment == "left") {
+ align_class = "uagb-timeline__left-block" + " ";
+ } else if (attributes.timelinAlignment == "right") {
+ align_class = "uagb-timeline__right-block" + " ";
+ }
+ align_class += arrow_align_class + "";
+ align_class += "uagb-timeline__responsive-" + attributes.stack + " uagb-timeline";
- if (process.env.NODE_ENV !== 'production') {
- var error = new Error();
+ return [align_class];
+}
- if (error.stack) {
- // chrome
- var match = error.stack.match(/at (?:Object\.|)jsx.*\n\s+at ([A-Z][A-Za-z$]+) /);
+/* harmony default export */ __webpack_exports__["a"] = (ContentTmClasses);
- if (!match) {
- // safari and firefox
- match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/);
- }
+/***/ }),
+/* 67 */
+/*!****************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_property-desc.js ***!
+ \****************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
- if (match) {
- newProps[labelPropName] = sanitizeIdentifier(match[1]);
- }
- }
- }
+module.exports = function (bitmap, value) {
+ return {
+ enumerable: !(bitmap & 1),
+ configurable: !(bitmap & 2),
+ writable: !(bitmap & 4),
+ value: value
+ };
+};
- createElementArgArray[1] = newProps;
- for (var i = 2; i < argsLength; i++) {
- createElementArgArray[i] = args[i];
- } // $FlowFixMe
+/***/ }),
+/* 68 */
+/*!**************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-keys.js ***!
+ \**************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+// 19.1.2.14 / 15.2.3.14 Object.keys(O)
+var $keys = __webpack_require__(/*! ./_object-keys-internal */ 239);
+var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ 134);
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
+module.exports = Object.keys || function keys(O) {
+ return $keys(O, enumBugKeys);
};
-var warnedAboutCssPropForGlobal = false;
-var Global =
-/* #__PURE__ */
-withEmotionCache(function (props, cache) {
- if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
- // probably using the custom createElement which
- // means it will be turned into a className prop
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
- props.className || props.css)) {
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
- warnedAboutCssPropForGlobal = true;
- }
-
- var styles = props.styles;
-
- if (typeof styles === 'function') {
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](ThemeContext.Consumer, null, function (theme) {
- var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */]([styles(theme)]);
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](InnerGlobal, {
- serialized: serialized,
- cache: cache
- });
- });
- }
- var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */]([styles]);
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](InnerGlobal, {
- serialized: serialized,
- cache: cache
- });
-});
+/***/ }),
+/* 69 */
+/*!**********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_library.js ***!
+ \**********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
-// maintain place over rerenders.
-// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
-// initial client-side render from SSR, use place of hydrating tag
-var InnerGlobal =
-/*#__PURE__*/
-function (_React$Component) {
- __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default.a(InnerGlobal, _React$Component);
+module.exports = true;
- function InnerGlobal(props, context, updater) {
- return _React$Component.call(this, props, context, updater) || this;
- }
- var _proto = InnerGlobal.prototype;
+/***/ }),
+/* 70 */
+/*!******************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_uid.js ***!
+ \******************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
- _proto.componentDidMount = function componentDidMount() {
- this.sheet = new __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__["a" /* StyleSheet */]({
- key: this.props.cache.key + "-global",
- nonce: this.props.cache.sheet.nonce,
- container: this.props.cache.sheet.container
- }); // $FlowFixMe
+var id = 0;
+var px = Math.random();
+module.exports = function (key) {
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
+};
- var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
- if (node !== null) {
- this.sheet.tags.push(node);
- }
+/***/ }),
+/* 71 */
+/*!*************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-pie.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
- if (this.props.cache.sheet.tags.length) {
- this.sheet.before = this.props.cache.sheet.tags[0];
- }
+exports.f = {}.propertyIsEnumerable;
- this.insertStyles();
- };
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
- if (prevProps.serialized.name !== this.props.serialized.name) {
- this.insertStyles();
- }
- };
+/***/ }),
+/* 72 */
+/*!***************************************!*\
+ !*** ./node_modules/lodash/_Stack.js ***!
+ \***************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- _proto.insertStyles = function insertStyles$1() {
- if (this.props.serialized.next !== undefined) {
- // insert keyframes
- __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */](this.props.cache, this.props.serialized.next, true);
- }
+var ListCache = __webpack_require__(/*! ./_ListCache */ 45),
+ stackClear = __webpack_require__(/*! ./_stackClear */ 261),
+ stackDelete = __webpack_require__(/*! ./_stackDelete */ 262),
+ stackGet = __webpack_require__(/*! ./_stackGet */ 263),
+ stackHas = __webpack_require__(/*! ./_stackHas */ 264),
+ stackSet = __webpack_require__(/*! ./_stackSet */ 265);
- if (this.sheet.tags.length) {
- // if this doesn't exist then it will be null so the style element will be appended
- var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
- this.sheet.before = element;
- this.sheet.flush();
- }
+/**
+ * Creates a stack cache object to store key-value pairs.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+function Stack(entries) {
+ var data = this.__data__ = new ListCache(entries);
+ this.size = data.size;
+}
- this.props.cache.insert("", this.props.serialized, this.sheet, false);
- };
+// Add methods to `Stack`.
+Stack.prototype.clear = stackClear;
+Stack.prototype['delete'] = stackDelete;
+Stack.prototype.get = stackGet;
+Stack.prototype.has = stackHas;
+Stack.prototype.set = stackSet;
- _proto.componentWillUnmount = function componentWillUnmount() {
- this.sheet.flush();
- };
+module.exports = Stack;
- _proto.render = function render() {
- return null;
- };
+/***/ }),
+/* 73 */
+/*!*************************************!*\
+ !*** ./node_modules/lodash/_Map.js ***!
+ \*************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- return InnerGlobal;
-}(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
+var getNative = __webpack_require__(/*! ./_getNative */ 21),
+ root = __webpack_require__(/*! ./_root */ 12);
-var keyframes = function keyframes() {
- var insertable = __WEBPACK_IMPORTED_MODULE_6__emotion_css__["a" /* default */].apply(void 0, arguments);
- var name = "animation-" + insertable.name; // $FlowFixMe
+/* Built-in method references that are verified to be native. */
+var Map = getNative(root, 'Map');
- return {
- name: name,
- styles: "@keyframes " + name + "{" + insertable.styles + "}",
- anim: 1,
- toString: function toString() {
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
- }
- };
-};
+module.exports = Map;
-var classnames = function classnames(args) {
- var len = args.length;
- var i = 0;
- var cls = '';
- for (; i < len; i++) {
- var arg = args[i];
- if (arg == null) continue;
- var toAdd = void 0;
+/***/ }),
+/* 74 */
+/*!***********************************!*\
+ !*** (webpack)/buildin/global.js ***!
+ \***********************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
- switch (typeof arg) {
- case 'boolean':
- break;
+var g;
+
+// This works in non-strict mode
+g = (function() {
+ return this;
+})();
+
+try {
+ // This works if eval is allowed (see CSP)
+ g = g || Function("return this")() || (1,eval)("this");
+} catch(e) {
+ // This works if the window reference is available
+ if(typeof window === "object")
+ g = window;
+}
+
+// g can still be undefined, but nothing to do about it...
+// We return undefined, instead of nothing here, so it's
+// easier to handle this case. if(!global) { ...}
+
+module.exports = g;
- case 'object':
- {
- if (Array.isArray(arg)) {
- toAdd = classnames(arg);
- } else {
- toAdd = '';
- for (var k in arg) {
- if (arg[k] && k) {
- toAdd && (toAdd += ' ');
- toAdd += k;
- }
- }
- }
+/***/ }),
+/* 75 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_MapCache.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- break;
- }
+var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ 272),
+ mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ 279),
+ mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ 281),
+ mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ 282),
+ mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ 283);
- default:
- {
- toAdd = arg;
- }
- }
+/**
+ * Creates a map cache object to store key-value pairs.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+function MapCache(entries) {
+ var index = -1,
+ length = entries == null ? 0 : entries.length;
- if (toAdd) {
- cls && (cls += ' ');
- cls += toAdd;
- }
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
}
+}
- return cls;
-};
-
-function merge(registered, css, className) {
- var registeredStyles = [];
- var rawClassName = __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */](registered, registeredStyles, className);
+// Add methods to `MapCache`.
+MapCache.prototype.clear = mapCacheClear;
+MapCache.prototype['delete'] = mapCacheDelete;
+MapCache.prototype.get = mapCacheGet;
+MapCache.prototype.has = mapCacheHas;
+MapCache.prototype.set = mapCacheSet;
- if (registeredStyles.length < 2) {
- return className;
- }
+module.exports = MapCache;
- return rawClassName + css(registeredStyles);
-}
-var ClassNames = withEmotionCache(function (props, context) {
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](ThemeContext.Consumer, null, function (theme) {
- var hasRendered = false;
+/***/ }),
+/* 76 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_arrayPush.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
- var css = function css() {
- if (hasRendered && process.env.NODE_ENV !== 'production') {
- throw new Error('css can only be used during render');
- }
+/**
+ * Appends the elements of `values` to `array`.
+ *
+ * @private
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to append.
+ * @returns {Array} Returns `array`.
+ */
+function arrayPush(array, values) {
+ var index = -1,
+ length = values.length,
+ offset = array.length;
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
+ while (++index < length) {
+ array[offset + index] = values[index];
+ }
+ return array;
+}
- var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */](args, context.registered);
+module.exports = arrayPush;
- {
- __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */](context, serialized, false);
- }
- return context.key + "-" + serialized.name;
- };
+/***/ }),
+/* 77 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_getSymbols.js ***!
+ \********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- var cx = function cx() {
- if (hasRendered && process.env.NODE_ENV !== 'production') {
- throw new Error('cx can only be used during render');
- }
+var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ 294),
+ stubArray = __webpack_require__(/*! ./stubArray */ 152);
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
- return merge(context.registered, css, classnames(args));
- };
+/** Built-in value references. */
+var propertyIsEnumerable = objectProto.propertyIsEnumerable;
- var content = {
- css: css,
- cx: cx,
- theme: theme
- };
- var ele = props.children(content);
- hasRendered = true;
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeGetSymbols = Object.getOwnPropertySymbols;
- return ele;
+/**
+ * Creates an array of the own enumerable symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of symbols.
+ */
+var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
+ if (object == null) {
+ return [];
+ }
+ object = Object(object);
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
+ return propertyIsEnumerable.call(object, symbol);
});
-});
-
+};
+module.exports = getSymbols;
-/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3)))
/***/ }),
-/* 66 */
-/*!**********************************************************************!*\
- !*** ./node_modules/react-select/dist/utils-06b0d5a4.browser.esm.js ***!
- \**********************************************************************/
-/*! exports provided: a, b, c, d, e, f, g, h, i, j, k, n, s */
-/*! exports used: a, b, c, d, e, f, g, h, i, j, n, s */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getScrollParent; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollTop; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return animatedScrollTo; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cleanValue; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return scrollIntoView; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getBoundingClientObj; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return classNames; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isTouchCapable; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return isDocumentElement; });
-/* unused harmony export k */
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return noop; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return scrollTo; });
-// ==============================
-// NO OP
-// ==============================
-var noop = function noop() {};
-// Class Name Prefixer
-// ==============================
-
-/**
- String representation of component state for styling with class names.
-
- Expects an array of strings OR a string/object pair:
- - className(['comp', 'comp-arg', 'comp-arg-2'])
- @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
- - className('comp', { some: true, state: false })
- @returns 'react-select__comp react-select__comp--some'
-*/
+/* 78 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/isArguments.js ***!
+ \********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
-function applyPrefixToName(prefix, name) {
- if (!name) {
- return prefix;
- } else if (name[0] === '-') {
- return prefix + name;
- } else {
- return prefix + '__' + name;
- }
-}
+var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ 295),
+ isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18);
-function classNames(prefix, state, className) {
- var arr = [className];
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
- if (state && prefix) {
- for (var key in state) {
- if (state.hasOwnProperty(key) && state[key]) {
- arr.push("" + applyPrefixToName(prefix, key));
- }
- }
- }
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
- return arr.filter(function (i) {
- return i;
- }).map(function (i) {
- return String(i).trim();
- }).join(' ');
-} // ==============================
-// Clean Value
-// ==============================
+/** Built-in value references. */
+var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-var cleanValue = function cleanValue(value) {
- if (Array.isArray(value)) return value.filter(Boolean);
- if (typeof value === 'object' && value !== null) return [value];
- return [];
-}; // ==============================
-// Handle Input Change
-// ==============================
+/**
+ * Checks if `value` is likely an `arguments` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+ * else `false`.
+ * @example
+ *
+ * _.isArguments(function() { return arguments; }());
+ * // => true
+ *
+ * _.isArguments([1, 2, 3]);
+ * // => false
+ */
+var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
+ !propertyIsEnumerable.call(value, 'callee');
+};
-function handleInputChange(inputValue, actionMeta, onInputChange) {
- if (onInputChange) {
- var newValue = onInputChange(inputValue, actionMeta);
- if (typeof newValue === 'string') return newValue;
- }
+module.exports = isArguments;
- return inputValue;
-} // ==============================
-// Scroll Helpers
-// ==============================
-function isDocumentElement(el) {
- return [document.documentElement, document.body, window].indexOf(el) > -1;
-} // Normalized Scroll Top
-// ------------------------------
+/***/ }),
+/* 79 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/isBuffer.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
-function getScrollTop(el) {
- if (isDocumentElement(el)) {
- return window.pageYOffset;
- }
+/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ 12),
+ stubFalse = __webpack_require__(/*! ./stubFalse */ 296);
- return el.scrollTop;
-}
-function scrollTo(el, top) {
- // with a scroll distance, we perform scroll on the element
- if (isDocumentElement(el)) {
- window.scrollTo(0, top);
- return;
- }
+/** Detect free variable `exports`. */
+var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
- el.scrollTop = top;
-} // Get Scroll Parent
-// ------------------------------
+/** Detect free variable `module`. */
+var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-function getScrollParent(element) {
- var style = getComputedStyle(element);
- var excludeStaticParent = style.position === 'absolute';
- var overflowRx = /(auto|scroll)/;
- var docEl = document.documentElement; // suck it, flow...
+/** Detect the popular CommonJS extension `module.exports`. */
+var moduleExports = freeModule && freeModule.exports === freeExports;
- if (style.position === 'fixed') return docEl;
+/** Built-in value references. */
+var Buffer = moduleExports ? root.Buffer : undefined;
- for (var parent = element; parent = parent.parentElement;) {
- style = getComputedStyle(parent);
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
- if (excludeStaticParent && style.position === 'static') {
- continue;
- }
+/**
+ * Checks if `value` is a buffer.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.3.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
+ * @example
+ *
+ * _.isBuffer(new Buffer(2));
+ * // => true
+ *
+ * _.isBuffer(new Uint8Array(2));
+ * // => false
+ */
+var isBuffer = nativeIsBuffer || stubFalse;
- if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
- return parent;
- }
- }
+module.exports = isBuffer;
- return docEl;
-} // Animated Scroll To
-// ------------------------------
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 80)(module)))
-/**
- @param t: time (elapsed)
- @param b: initial value
- @param c: amount of change
- @param d: duration
-*/
+/***/ }),
+/* 80 */
+/*!***********************************!*\
+ !*** (webpack)/buildin/module.js ***!
+ \***********************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
-function easeOutCubic(t, b, c, d) {
- return c * ((t = t / d - 1) * t * t + 1) + b;
-}
+module.exports = function(module) {
+ if(!module.webpackPolyfill) {
+ module.deprecate = function() {};
+ module.paths = [];
+ // module.parent = undefined by default
+ if(!module.children) module.children = [];
+ Object.defineProperty(module, "loaded", {
+ enumerable: true,
+ get: function() {
+ return module.l;
+ }
+ });
+ Object.defineProperty(module, "id", {
+ enumerable: true,
+ get: function() {
+ return module.i;
+ }
+ });
+ module.webpackPolyfill = 1;
+ }
+ return module;
+};
-function animatedScrollTo(element, to, duration, callback) {
- if (duration === void 0) {
- duration = 200;
- }
- if (callback === void 0) {
- callback = noop;
- }
+/***/ }),
+/* 81 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/isLength.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
- var start = getScrollTop(element);
- var change = to - start;
- var increment = 10;
- var currentTime = 0;
+/** Used as references for various `Number` constants. */
+var MAX_SAFE_INTEGER = 9007199254740991;
- function animateScroll() {
- currentTime += increment;
- var val = easeOutCubic(currentTime, start, change, duration);
- scrollTo(element, val);
+/**
+ * Checks if `value` is a valid array-like length.
+ *
+ * **Note:** This method is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @example
+ *
+ * _.isLength(3);
+ * // => true
+ *
+ * _.isLength(Number.MIN_VALUE);
+ * // => false
+ *
+ * _.isLength(Infinity);
+ * // => false
+ *
+ * _.isLength('3');
+ * // => false
+ */
+function isLength(value) {
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+}
- if (currentTime < duration) {
- window.requestAnimationFrame(animateScroll);
- } else {
- callback(element);
- }
- }
+module.exports = isLength;
- animateScroll();
-} // Scroll Into View
-// ------------------------------
-function scrollIntoView(menuEl, focusedEl) {
- var menuRect = menuEl.getBoundingClientRect();
- var focusedRect = focusedEl.getBoundingClientRect();
- var overScroll = focusedEl.offsetHeight / 3;
+/***/ }),
+/* 82 */
+/*!***************************************!*\
+ !*** ./node_modules/lodash/_isKey.js ***!
+ \***************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- if (focusedRect.bottom + overScroll > menuRect.bottom) {
- scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
- } else if (focusedRect.top - overScroll < menuRect.top) {
- scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
- }
-} // ==============================
-// Get bounding client object
-// ==============================
-// cannot get keys using array notation with DOMRect
+var isArray = __webpack_require__(/*! ./isArray */ 14),
+ isSymbol = __webpack_require__(/*! ./isSymbol */ 56);
-function getBoundingClientObj(element) {
- var rect = element.getBoundingClientRect();
- return {
- bottom: rect.bottom,
- height: rect.height,
- left: rect.left,
- right: rect.right,
- top: rect.top,
- width: rect.width
- };
-}
-// Touch Capability Detector
-// ==============================
+/** Used to match property names within property paths. */
+var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
+ reIsPlainProp = /^\w*$/;
-function isTouchCapable() {
- try {
- document.createEvent('TouchEvent');
- return true;
- } catch (e) {
+/**
+ * Checks if `value` is a property name and not a property path.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @param {Object} [object] The object to query keys on.
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
+ */
+function isKey(value, object) {
+ if (isArray(value)) {
return false;
}
-} // ==============================
-// Mobile Device Detector
-// ==============================
-
-function isMobileDevice() {
- try {
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
- } catch (e) {
- return false;
+ var type = typeof value;
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
+ value == null || isSymbol(value)) {
+ return true;
}
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+ (object != null && value in Object(object));
}
-
+module.exports = isKey;
/***/ }),
-/* 67 */
-/*!*****************************************************!*\
- !*** ./src/blocks/post/components/FeaturedImage.js ***!
- \*****************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+/* 83 */
+/*!***************************************************!*\
+ !*** ./node_modules/prop-types/checkPropTypes.js ***!
+ \***************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+/* WEBPACK VAR INJECTION */(function(process) {/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+var printWarning = function() {};
-var decodeEntities = wp.htmlEntities.decodeEntities;
-var __ = wp.i18n.__;
+if (process.env.NODE_ENV !== 'production') {
+ var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ 84);
+ var loggedTypeFailures = {};
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
-var FeaturedImage = function (_React$Component) {
- _inherits(FeaturedImage, _React$Component);
+ printWarning = function(text) {
+ var message = 'Warning: ' + text;
+ if (typeof console !== 'undefined') {
+ console.error(message);
+ }
+ try {
+ // --- Welcome to debugging React ---
+ // This error was thrown as a convenience so that you can use this stack
+ // to find the callsite that caused this warning to fire.
+ throw new Error(message);
+ } catch (x) {}
+ };
+}
- function FeaturedImage() {
- _classCallCheck(this, FeaturedImage);
+/**
+ * Assert that the values match with the type specs.
+ * Error messages are memorized and will only be shown once.
+ *
+ * @param {object} typeSpecs Map of name to a ReactPropType
+ * @param {object} values Runtime values that need to be type-checked
+ * @param {string} location e.g. "prop", "context", "child context"
+ * @param {string} componentName Name of the component for error messages.
+ * @param {?Function} getStack Returns the component stack.
+ * @private
+ */
+function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
+ if (process.env.NODE_ENV !== 'production') {
+ for (var typeSpecName in typeSpecs) {
+ if (has(typeSpecs, typeSpecName)) {
+ var error;
+ // Prop type validation may throw. In case they do, we don't want to
+ // fail the render phase where it didn't fail before. So we log it.
+ // After these have been cleaned up, we'll let them throw.
+ try {
+ // This is intentionally an invariant that gets caught. It's the same
+ // behavior as without this statement except with a better message.
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
+ var err = Error(
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
+ );
+ err.name = 'Invariant Violation';
+ throw err;
+ }
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
+ } catch (ex) {
+ error = ex;
+ }
+ if (error && !(error instanceof Error)) {
+ printWarning(
+ (componentName || 'React class') + ': type specification of ' +
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
+ 'You may have forgotten to pass an argument to the type checker ' +
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
+ 'shape all require an argument).'
+ );
+ }
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
+ // Only monitor this failure once because there tends to be a lot of the
+ // same error.
+ loggedTypeFailures[error.message] = true;
- return _possibleConstructorReturn(this, (FeaturedImage.__proto__ || Object.getPrototypeOf(FeaturedImage)).apply(this, arguments));
- }
+ var stack = getStack ? getStack() : '';
- _createClass(FeaturedImage, [{
- key: "render",
- value: function render() {
- var _props = this.props,
- post = _props.post,
- attributes = _props.attributes;
+ printWarning(
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
+ );
+ }
+ }
+ }
+ }
+}
+/**
+ * Resets warning cache when testing.
+ *
+ * @private
+ */
+checkPropTypes.resetWarningCache = function() {
+ if (process.env.NODE_ENV !== 'production') {
+ loggedTypeFailures = {};
+ }
+}
- var target = attributes.newTab ? "_blank" : "_self";
+module.exports = checkPropTypes;
- if (attributes.displayPostImage && undefined !== post.uagb_featured_image_src && attributes.imgSize && post.uagb_featured_image_src[attributes.imgSize]) {
- var src = post.uagb_featured_image_src[attributes.imgSize];
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
- return wp.element.createElement(
- "div",
- { className: "uagb-post__image" },
- wp.element.createElement(
- "a",
- { href: post.link, target: target, rel: "noopener noreferrer" },
- wp.element.createElement("img", {
- src: src[0],
- alt: decodeEntities(post.title.rendered.trim()) || __("(Untitled)")
- })
- )
- );
- } else {
+/***/ }),
+/* 84 */
+/*!*************************************************************!*\
+ !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- return null;
- }
- }
- }]);
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
- return FeaturedImage;
-}(React.Component);
-/* harmony default export */ __webpack_exports__["a"] = (FeaturedImage);
+
+var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
+
+module.exports = ReactPropTypesSecret;
+
/***/ }),
-/* 68 */
-/*!*********************************************!*\
- !*** ./src/blocks/post/components/Title.js ***!
- \*********************************************/
-/*! exports provided: default */
-/*! exports used: default */
+/* 85 */
+/*!*************************************************************!*\
+ !*** ./node_modules/@emotion/core/dist/core.browser.esm.js ***!
+ \*************************************************************/
+/*! exports provided: CacheProvider, ThemeContext, withEmotionCache, css, ClassNames, Global, createElement, jsx, keyframes */
+/*! exports used: CacheProvider, ClassNames, jsx, keyframes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
+/* unused harmony export Global */
+/* unused harmony export createElement */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ 338);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(/*! react */ 5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 86);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__ = __webpack_require__(/*! ./emotion-element-57a3a7a3.browser.esm.js */ 169);
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["a"]; });
+/* unused harmony reexport ThemeContext */
+/* unused harmony reexport withEmotionCache */
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_utils__ = __webpack_require__(/*! @emotion/utils */ 170);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 87);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 168);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41);
+/* unused harmony reexport css */
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-var decodeEntities = wp.htmlEntities.decodeEntities;
-var __ = wp.i18n.__;
-var Title = function (_React$Component) {
- _inherits(Title, _React$Component);
- function Title() {
- _classCallCheck(this, Title);
- return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments));
- }
- _createClass(Title, [{
- key: "render",
- value: function render() {
- var _props = this.props,
- post = _props.post,
- attributes = _props.attributes;
- var Tag = attributes.titleTag;
- var target = attributes.newTab ? "_blank" : "_self";
- if (undefined == post.title) {
- return null;
- }
+var jsx = function jsx(type, props) {
+ var args = arguments;
- if (attributes.displayPostTitle) {
+ if (props == null || !__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["e" /* h */].call(props, 'css')) {
+ // $FlowFixMe
+ return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
+ }
- return wp.element.createElement(
- Tag,
- { className: "uagb-post__title" },
- wp.element.createElement(
- "a",
- { href: post.link, target: target, rel: "noopener noreferrer" },
- decodeEntities(post.title.rendered.trim()) || __("(Untitled)")
- )
- );
- } else {
- return null;
- }
- }
- }]);
+ var argsLength = args.length;
+ var createElementArgArray = new Array(argsLength);
+ createElementArgArray[0] = __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["b" /* E */];
+ createElementArgArray[1] = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["d" /* c */])(type, props);
- return Title;
-}(React.Component);
+ for (var i = 2; i < argsLength; i++) {
+ createElementArgArray[i] = args[i];
+ } // $FlowFixMe
-/* harmony default export */ __webpack_exports__["a"] = (Title);
-/***/ }),
-/* 69 */
-/*!********************************************!*\
- !*** ./src/blocks/post/components/Meta.js ***!
- \********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
+};
-"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+var warnedAboutCssPropForGlobal = false;
+var Global = /* #__PURE__ */Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, cache) {
+ if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
+ // probably using the custom createElement which
+ // means it will be turned into a className prop
+ // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
+ props.className || props.css)) {
+ console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
+ warnedAboutCssPropForGlobal = true;
+ }
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+ var styles = props.styles;
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+ if (typeof styles === 'function') {
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]);
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
+ serialized: serialized,
+ cache: cache
+ });
+ });
+ }
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles]);
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
+ serialized: serialized,
+ cache: cache
+ });
+});
-var _wp$date = wp.date,
- dateI18n = _wp$date.dateI18n,
- format = _wp$date.format,
- __experimentalGetSettings = _wp$date.__experimentalGetSettings;
+// maintain place over rerenders.
+// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
+// initial client-side render from SSR, use place of hydrating tag
+var InnerGlobal = /*#__PURE__*/function (_React$Component) {
+ Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(InnerGlobal, _React$Component);
-var Meta = function (_React$Component) {
- _inherits(Meta, _React$Component);
+ function InnerGlobal(props, context, updater) {
+ return _React$Component.call(this, props, context, updater) || this;
+ }
- function Meta() {
- _classCallCheck(this, Meta);
+ var _proto = InnerGlobal.prototype;
- return _possibleConstructorReturn(this, (Meta.__proto__ || Object.getPrototypeOf(Meta)).apply(this, arguments));
- }
+ _proto.componentDidMount = function componentDidMount() {
+ this.sheet = new __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__["a" /* StyleSheet */]({
+ key: this.props.cache.key + "-global",
+ nonce: this.props.cache.sheet.nonce,
+ container: this.props.cache.sheet.container
+ }); // $FlowFixMe
- _createClass(Meta, [{
- key: 'render',
- value: function render() {
- var _props = this.props,
- post = _props.post,
- attributes = _props.attributes,
- categoriesList = _props.categoriesList;
+ var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
+ if (node !== null) {
+ this.sheet.tags.push(node);
+ }
- var dateFormat = __experimentalGetSettings().formats.date;
+ if (this.props.cache.sheet.tags.length) {
+ this.sheet.before = this.props.cache.sheet.tags[0];
+ }
- var categoryObject = '';
+ this.insertStyles();
+ };
- this.props.categoriesList.map(function (item, thisIndex) {
- if (post.categories && item.id == post.categories[0]) {
- categoryObject = item;
- }
- });
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
+ if (prevProps.serialized.name !== this.props.serialized.name) {
+ this.insertStyles();
+ }
+ };
- return wp.element.createElement(
- 'div',
- { className: 'uagb-post-grid-byline' },
- attributes.displayPostAuthor && undefined !== post.uagb_author_info && wp.element.createElement(
- 'span',
- { className: 'uagb-post__author' },
- wp.element.createElement('span', { className: 'dashicons-admin-users dashicons' }),
- wp.element.createElement(
- 'a',
- { target: '_blank', href: post.uagb_author_info.author_link, rel: 'noopener noreferrer' },
- post.uagb_author_info.display_name
- )
- ),
- attributes.displayPostDate && post.date_gmt && wp.element.createElement(
- 'time',
- { dateTime: format("c", post.date_gmt), className: 'uagb-post__date' },
- wp.element.createElement('span', { className: 'dashicons-calendar dashicons' }),
- dateI18n(dateFormat, post.date_gmt)
- ),
- attributes.displayPostComment && undefined !== post.uagb_comment_info && wp.element.createElement(
- 'span',
- { className: 'uagb-post__comment' },
- wp.element.createElement('span', { className: 'dashicons-admin-comments dashicons' }),
- post.uagb_comment_info
- ),
- attributes.displayPostTaxonomy && '' !== categoryObject && wp.element.createElement(
- 'span',
- { className: 'uagb-post__taxonomy' },
- wp.element.createElement('span', { className: 'dashicons-tag dashicons' }),
- categoryObject.name
- )
- );
- }
- }]);
+ _proto.insertStyles = function insertStyles$1() {
+ if (this.props.serialized.next !== undefined) {
+ // insert keyframes
+ Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true);
+ }
- return Meta;
-}(React.Component);
+ if (this.sheet.tags.length) {
+ // if this doesn't exist then it will be null so the style element will be appended
+ var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
+ this.sheet.before = element;
+ this.sheet.flush();
+ }
-/* harmony default export */ __webpack_exports__["a"] = (Meta);
+ this.props.cache.insert("", this.props.serialized, this.sheet, false);
+ };
-/***/ }),
-/* 70 */
-/*!***********************************************!*\
- !*** ./src/blocks/post/components/Excerpt.js ***!
- \***********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ _proto.componentWillUnmount = function componentWillUnmount() {
+ this.sheet.flush();
+ };
-"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate__ = __webpack_require__(/*! lodash/truncate */ 292);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_truncate__);
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+ _proto.render = function render() {
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+ return null;
+ };
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+ return InnerGlobal;
+}(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+var keyframes = function keyframes() {
+ var insertable = __WEBPACK_IMPORTED_MODULE_7__emotion_css__["a" /* default */].apply(void 0, arguments);
+ var name = "animation-" + insertable.name; // $FlowFixMe
+ return {
+ name: name,
+ styles: "@keyframes " + name + "{" + insertable.styles + "}",
+ anim: 1,
+ toString: function toString() {
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
+ }
+ };
+};
+var classnames = function classnames(args) {
+ var len = args.length;
+ var i = 0;
+ var cls = '';
-var Excerpt = function (_React$Component) {
- _inherits(Excerpt, _React$Component);
+ for (; i < len; i++) {
+ var arg = args[i];
+ if (arg == null) continue;
+ var toAdd = void 0;
- function Excerpt() {
- _classCallCheck(this, Excerpt);
+ switch (typeof arg) {
+ case 'boolean':
+ break;
- return _possibleConstructorReturn(this, (Excerpt.__proto__ || Object.getPrototypeOf(Excerpt)).apply(this, arguments));
- }
+ case 'object':
+ {
+ if (Array.isArray(arg)) {
+ toAdd = classnames(arg);
+ } else {
+ toAdd = '';
- _createClass(Excerpt, [{
- key: "render",
- value: function render() {
- var _props = this.props,
- post = _props.post,
- attributes = _props.attributes;
+ for (var k in arg) {
+ if (arg[k] && k) {
+ toAdd && (toAdd += ' ');
+ toAdd += k;
+ }
+ }
+ }
+ break;
+ }
- if (post.uagb_excerpt == undefined) {
- return null;
- }
+ default:
+ {
+ toAdd = arg;
+ }
+ }
- var words = post.uagb_excerpt.split(" ");
+ if (toAdd) {
+ cls && (cls += ' ');
+ cls += toAdd;
+ }
+ }
- var excerpt = post.uagb_excerpt;
+ return cls;
+};
- var exLen = attributes.excerptLength ? attributes.excerptLength : 25;
+function merge(registered, css, className) {
+ var registeredStyles = [];
+ var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className);
- if (exLen >= words.length) {
- excerpt = post.uagb_excerpt;
- } else {
- var truncated = words.slice(0, exLen);
- excerpt = truncated.join(" ");
- excerpt += " ...";
- }
+ if (registeredStyles.length < 2) {
+ return className;
+ }
- if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "excerpt") {
+ return rawClassName + css(registeredStyles);
+}
- return wp.element.createElement(
- "div",
- { className: "uagb-post__excerpt" },
- wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: excerpt } })
- );
- } else if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "full_post") {
+var ClassNames = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, context) {
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
+ var hasRendered = false;
- return wp.element.createElement(
- "div",
- { className: "uagb-post__excerpt uagb-full_post" },
- wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: post.content.raw.trim() } })
- );
- } else {
- return null;
- }
- }
- }]);
+ var css = function css() {
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
+ throw new Error('css can only be used during render');
+ }
- return Excerpt;
-}(React.Component);
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
-/* harmony default export */ __webpack_exports__["a"] = (Excerpt);
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])(args, context.registered);
-/***/ }),
-/* 71 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_baseSlice.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ {
+ Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(context, serialized, false);
+ }
-/**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
-function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
+ return context.key + "-" + serialized.name;
+ };
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
+ var cx = function cx() {
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
+ throw new Error('cx can only be used during render');
+ }
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
-}
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
-module.exports = baseSlice;
+ return merge(context.registered, css, classnames(args));
+ };
+ var content = {
+ css: css,
+ cx: cx,
+ theme: theme
+ };
+ var ele = props.children(content);
+ hasRendered = true;
-/***/ }),
-/* 72 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_hasUnicode.js ***!
- \********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ return ele;
+ });
+});
-/** Used to compose unicode character classes. */
-var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
-/** Used to compose unicode capture groups. */
-var rsZWJ = '\\u200d';
-/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
-var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6)))
-/**
- * Checks if `string` contains Unicode symbols.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
- */
-function hasUnicode(string) {
- return reHasUnicode.test(string);
-}
+/***/ }),
+/* 86 */
+/*!***************************************************************!*\
+ !*** ./node_modules/@emotion/cache/dist/cache.browser.esm.js ***!
+ \***************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-module.exports = hasUnicode;
+"use strict";
+/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 168);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(/*! @emotion/stylis */ 339);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(/*! @emotion/weak-memoize */ 340);
-/***/ }),
-/* 73 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/toInteger.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-var toFinite = __webpack_require__(/*! ./toFinite */ 302);
-/**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
-function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
+// https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
+// inlined to avoid umd wrapper and peerDep warnings/installing stylis
+// since we use stylis after closure compiler
+var delimiter = '/*|*/';
+var needle = delimiter + '}';
- return result === result ? (remainder ? result - remainder : result) : 0;
+function toSheet(block) {
+ if (block) {
+ Sheet.current.insert(block + '}');
+ }
}
-module.exports = toInteger;
+var Sheet = {
+ current: null
+};
+var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
+ switch (context) {
+ // property
+ case 1:
+ {
+ switch (content.charCodeAt(0)) {
+ case 64:
+ {
+ // @import
+ Sheet.current.insert(content + ';');
+ return '';
+ }
+ // charcode for l
+ case 108:
+ {
+ // charcode for b
+ // this ignores label
+ if (content.charCodeAt(2) === 98) {
+ return '';
+ }
+ }
+ }
-/***/ }),
-/* 74 */
-/*!**********************************************!*\
- !*** ./src/blocks/post/components/Button.js ***!
- \**********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ break;
+ }
+ // selector
-"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+ case 2:
+ {
+ if (ns === 0) return content + delimiter;
+ break;
+ }
+ // at-rule
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+ case 3:
+ {
+ switch (ns) {
+ // @font-face, @page
+ case 102:
+ case 112:
+ {
+ Sheet.current.insert(selectors[0] + content);
+ return '';
+ }
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+ default:
+ {
+ return content + (at === 0 ? delimiter : '');
+ }
+ }
+ }
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+ case -2:
+ {
+ content.split(needle).forEach(toSheet);
+ }
+ }
+};
-var __ = wp.i18n.__;
+var createCache = function createCache(options) {
+ if (options === undefined) options = {};
+ var key = options.key || 'css';
+ var stylisOptions;
+ if (options.prefix !== undefined) {
+ stylisOptions = {
+ prefix: options.prefix
+ };
+ }
+ var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
-var Button = function (_React$Component) {
- _inherits(Button, _React$Component);
+ if (process.env.NODE_ENV !== 'production') {
+ // $FlowFixMe
+ if (/[^a-z-]/.test(key)) {
+ throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
+ }
+ }
- function Button() {
- _classCallCheck(this, Button);
+ var inserted = {}; // $FlowFixMe
- return _possibleConstructorReturn(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments));
- }
+ var container;
- _createClass(Button, [{
- key: "render",
- value: function render() {
- var _props = this.props,
- post = _props.post,
- attributes = _props.attributes;
+ {
+ container = options.container || document.head;
+ var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
+ Array.prototype.forEach.call(nodes, function (node) {
+ var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
+ attrib.split(' ').forEach(function (id) {
+ inserted[id] = true;
+ });
- if (attributes.displayPostContentRadio == "full_post") {
- return null;
- }
+ if (node.parentNode !== container) {
+ container.appendChild(node);
+ }
+ });
+ }
- var target = attributes.newTab ? "_blank" : "_self";
+ var _insert;
- if (attributes.displayPostLink) {
+ {
+ stylis.use(options.stylisPlugins)(ruleSheet);
- var cta_text = attributes.ctaText ? attributes.ctaText : __("Read More");
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
+ var name = serialized.name;
+ Sheet.current = sheet;
- return wp.element.createElement(
- "div",
- { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a('uagb-post__cta', attributes.inheritFromTheme ? 'wp-block-button' : null) },
- wp.element.createElement(
- "a",
- {
- className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a(!attributes.inheritFromTheme ? 'uagb-post__link ' : null, 'uagb-text-link', attributes.inheritFromTheme ? 'wp-block-button__link' : null),
- href: post.link,
- target: target,
- rel: "noopener noreferrer" },
- cta_text
- )
- );
- } else {
- return null;
- }
- }
- }]);
+ if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
+ var map = serialized.map;
+ Sheet.current = {
+ insert: function insert(rule) {
+ sheet.insert(rule + map);
+ }
+ };
+ }
- return Button;
-}(React.Component);
+ stylis(selector, serialized.styles);
-/* harmony default export */ __webpack_exports__["a"] = (Button);
+ if (shouldCache) {
+ cache.inserted[name] = true;
+ }
+ };
+ }
-/***/ }),
-/* 75 */
-/*!************************************!*\
- !*** ./src/blocks/post/styling.js ***!
- \************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ if (process.env.NODE_ENV !== 'production') {
+ // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
+ var commentStart = /\/\*/g;
+ var commentEnd = /\*\//g;
+ stylis.use(function (context, content) {
+ switch (context) {
+ case -1:
+ {
+ while (commentStart.test(content)) {
+ commentEnd.lastIndex = commentStart.lastIndex;
-"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4);
-/**
- * Set inline styles.
- * @param {object} props - The block object.
- * @return {object} The inline background type CSS.
- */
+ if (commentEnd.test(content)) {
+ commentStart.lastIndex = commentEnd.lastIndex;
+ continue;
+ }
+ throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
+ }
+ commentStart.lastIndex = 0;
+ break;
+ }
+ }
+ });
+ stylis.use(function (context, content, selectors) {
+ switch (context) {
+ case -1:
+ {
+ var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
+ var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
+ if (unsafePseudoClasses && cache.compat !== true) {
+ unsafePseudoClasses.forEach(function (unsafePseudoClass) {
+ var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
+ var ignore = ignoreRegExp.test(content);
-function styling(props) {
- var _props$attributes = props.attributes,
- align = _props$attributes.align,
- rowGap = _props$attributes.rowGap,
- columnGap = _props$attributes.columnGap,
- bgColor = _props$attributes.bgColor,
- contentPadding = _props$attributes.contentPadding,
- contentPaddingMobile = _props$attributes.contentPaddingMobile,
- titleColor = _props$attributes.titleColor,
- titleFontSize = _props$attributes.titleFontSize,
- titleFontSizeType = _props$attributes.titleFontSizeType,
- titleFontSizeMobile = _props$attributes.titleFontSizeMobile,
- titleFontSizeTablet = _props$attributes.titleFontSizeTablet,
- titleFontFamily = _props$attributes.titleFontFamily,
- titleFontWeight = _props$attributes.titleFontWeight,
- titleLineHeightType = _props$attributes.titleLineHeightType,
- titleLineHeight = _props$attributes.titleLineHeight,
- titleLineHeightTablet = _props$attributes.titleLineHeightTablet,
- titleLineHeightMobile = _props$attributes.titleLineHeightMobile,
- metaFontSize = _props$attributes.metaFontSize,
- metaFontSizeType = _props$attributes.metaFontSizeType,
- metaFontSizeMobile = _props$attributes.metaFontSizeMobile,
- metaFontSizeTablet = _props$attributes.metaFontSizeTablet,
- metaFontFamily = _props$attributes.metaFontFamily,
- metaFontWeight = _props$attributes.metaFontWeight,
- metaLineHeightType = _props$attributes.metaLineHeightType,
- metaLineHeight = _props$attributes.metaLineHeight,
- metaLineHeightTablet = _props$attributes.metaLineHeightTablet,
- metaLineHeightMobile = _props$attributes.metaLineHeightMobile,
- excerptFontSize = _props$attributes.excerptFontSize,
- excerptFontSizeType = _props$attributes.excerptFontSizeType,
- excerptFontSizeTablet = _props$attributes.excerptFontSizeTablet,
- excerptFontSizeMobile = _props$attributes.excerptFontSizeMobile,
- excerptFontFamily = _props$attributes.excerptFontFamily,
- excerptFontWeight = _props$attributes.excerptFontWeight,
- excerptLineHeightType = _props$attributes.excerptLineHeightType,
- excerptLineHeight = _props$attributes.excerptLineHeight,
- excerptLineHeightTablet = _props$attributes.excerptLineHeightTablet,
- excerptLineHeightMobile = _props$attributes.excerptLineHeightMobile,
- ctaFontSize = _props$attributes.ctaFontSize,
- ctaFontSizeType = _props$attributes.ctaFontSizeType,
- ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet,
- ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile,
- ctaFontFamily = _props$attributes.ctaFontFamily,
- ctaFontWeight = _props$attributes.ctaFontWeight,
- ctaLineHeightType = _props$attributes.ctaLineHeightType,
- ctaLineHeight = _props$attributes.ctaLineHeight,
- ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet,
- ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile,
- metaColor = _props$attributes.metaColor,
- excerptColor = _props$attributes.excerptColor,
- ctaColor = _props$attributes.ctaColor,
- ctaBgColor = _props$attributes.ctaBgColor,
- ctaHColor = _props$attributes.ctaHColor,
- ctaBgHColor = _props$attributes.ctaBgHColor,
- titleBottomSpace = _props$attributes.titleBottomSpace,
- metaBottomSpace = _props$attributes.metaBottomSpace,
- excerptBottomSpace = _props$attributes.excerptBottomSpace,
- overlayOpacity = _props$attributes.overlayOpacity,
- bgOverlayColor = _props$attributes.bgOverlayColor,
- borderWidth = _props$attributes.borderWidth,
- borderStyle = _props$attributes.borderStyle,
- borderColor = _props$attributes.borderColor,
- borderHColor = _props$attributes.borderHColor,
- borderRadius = _props$attributes.borderRadius,
- btnVPadding = _props$attributes.btnVPadding,
- btnHPadding = _props$attributes.btnHPadding,
- linkBox = _props$attributes.linkBox,
- arrowColor = _props$attributes.arrowColor,
- arrowSize = _props$attributes.arrowSize,
- paginationBgActiveColor = _props$attributes.paginationBgActiveColor,
- paginationActiveColor = _props$attributes.paginationActiveColor,
- paginationBgColor = _props$attributes.paginationBgColor,
- paginationColor = _props$attributes.paginationColor,
- paginationLayout = _props$attributes.paginationLayout,
- paginationBorderSize = _props$attributes.paginationBorderSize,
- paginationBorderRadius = _props$attributes.paginationBorderRadius,
- paginationBorderColor = _props$attributes.paginationBorderColor,
- paginationBorderActiveColor = _props$attributes.paginationBorderActiveColor,
- paginationSpacing = _props$attributes.paginationSpacing,
- paginationAlignment = _props$attributes.paginationAlignment,
- inheritFromTheme = _props$attributes.inheritFromTheme,
- postPagination = _props$attributes.postPagination,
- paginationMarkup = _props$attributes.paginationMarkup,
- paginationType = _props$attributes.paginationType,
- paginationEventType = _props$attributes.paginationEventType,
- paginationAlign = _props$attributes.paginationAlign,
- paginationTextColor = _props$attributes.paginationTextColor,
- paginationMasonryBgColor = _props$attributes.paginationMasonryBgColor,
- paginationMasonryBorderStyle = _props$attributes.paginationMasonryBorderStyle,
- paginationMasonryBorderWidth = _props$attributes.paginationMasonryBorderWidth,
- paginationMasonryBorderRadius = _props$attributes.paginationMasonryBorderRadius,
- paginationMasonryBorderColor = _props$attributes.paginationMasonryBorderColor,
- paginationTextHoverColor = _props$attributes.paginationTextHoverColor,
- paginationBgHoverColor = _props$attributes.paginationBgHoverColor,
- paginationFontSize = _props$attributes.paginationFontSize,
- loaderColor = _props$attributes.loaderColor,
- loaderSize = _props$attributes.loaderSize,
- paginationButtonPaddingType = _props$attributes.paginationButtonPaddingType,
- vpaginationButtonPaddingMobile = _props$attributes.vpaginationButtonPaddingMobile,
- vpaginationButtonPaddingTablet = _props$attributes.vpaginationButtonPaddingTablet,
- vpaginationButtonPaddingDesktop = _props$attributes.vpaginationButtonPaddingDesktop,
- hpaginationButtonPaddingMobile = _props$attributes.hpaginationButtonPaddingMobile,
- hpaginationButtonPaddingTablet = _props$attributes.hpaginationButtonPaddingTablet,
- hpaginationButtonPaddingDesktop = _props$attributes.hpaginationButtonPaddingDesktop;
+ if (unsafePseudoClass && !ignore) {
+ console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
+ }
+ });
+ }
+ break;
+ }
+ }
+ });
+ }
- var mobile_selectors = {};
- var tablet_selectors = {};
+ var cache = {
+ key: key,
+ sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
+ key: key,
+ container: container,
+ nonce: options.nonce,
+ speedy: options.speedy
+ }),
+ nonce: options.nonce,
+ inserted: inserted,
+ registered: {},
+ insert: _insert
+ };
+ return cache;
+};
- var selectors = {
- " .uagb-post__items": {
- "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](-rowGap / 2, "px"),
- "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](-rowGap / 2, "px")
- },
- " .uagb-post__items article": {
- "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rowGap / 2, "px"),
- "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rowGap / 2, "px"),
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](columnGap, "px")
- },
- " .uagb-post__inner-wrap": {
- "background": bgColor
- },
- " .uagb-post__text": {
- "padding": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](contentPadding, "px"),
- "text-align": align
- },
- " .uagb-post__text .uagb-post__title": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleBottomSpace, "px")
- },
- " .uagb-post__text .uagb-post-grid-byline": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaBottomSpace, "px")
- },
- " .uagb-post__text .uagb-post__excerpt": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptBottomSpace, "px")
- },
- " .uagb-post__image:before": {
- "background-color": bgOverlayColor,
- "opacity": overlayOpacity / 100
- },
- " .uagb-post-pagination-wrap": {
- "margin-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationSpacing, "px"),
- "text-align": paginationAlignment
- }
- };
+/* harmony default export */ __webpack_exports__["a"] = (createCache);
- if (!inheritFromTheme) {
- selectors[" .uagb-post__text .uagb-post__title"] = {
- "color": titleColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSize, titleFontSizeType),
- "font-family": titleFontFamily,
- "font-weight": titleFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleLineHeight, titleLineHeightType)
- };
- selectors[" .uagb-post__text .uagb-post__title a"] = {
- "color": titleColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSize, titleFontSizeType),
- "font-family": titleFontFamily,
- "font-weight": titleFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleLineHeight, titleLineHeightType)
- };
- selectors[" .uagb-post__text .uagb-post-grid-byline"] = {
- "color": metaColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSize, metaFontSizeType),
- "font-family": metaFontFamily,
- "font-weight": metaFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaLineHeight, metaLineHeightType)
- };
- selectors[" .uagb-post__text .uagb-post-grid-byline .uagb-post__author"] = {
- "color": metaColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSize, metaFontSizeType),
- "font-family": metaFontFamily,
- "font-weight": metaFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaLineHeight, metaLineHeightType)
- };
- selectors[" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a"] = {
- "color": metaColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSize, metaFontSizeType),
- "font-family": metaFontFamily,
- "font-weight": metaFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaLineHeight, metaLineHeightType)
- };
- selectors[" .uagb-post__text .uagb-post__excerpt"] = {
- "color": excerptColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptFontSize, excerptFontSizeType),
- "font-family": excerptFontFamily,
- "font-weight": excerptFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptLineHeight, excerptLineHeightType)
- };
- selectors[" .uagb-post__text .uagb-post__cta"] = {
- "color": ctaColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "font-family": ctaFontFamily,
- "font-weight": ctaFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeight, ctaLineHeightType),
- "background": ctaBgColor,
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderWidth, "px"),
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderRadius, "px"),
- "border-color": borderColor,
- "border-style": borderStyle
- };
- selectors[" .uagb-post__text .uagb-post__cta a"] = {
- "color": ctaColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "padding": btnVPadding + "px " + btnHPadding + "px"
- };
- selectors[" .uagb-post__text .uagb-post__cta:hover"] = {
- "color": ctaHColor,
- "background": ctaBgHColor,
- "border-color": borderHColor
- };
- selectors[" .uagb-post__text .uagb-post__cta:hover a"] = {
- "color": ctaHColor
- };
- }
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6)))
- if (true === postPagination && 'empty' === paginationMarkup) {
- if ('filled' == paginationLayout) {
- selectors[" .uagb-post-pagination-wrap a"] = {
+/***/ }),
+/* 87 */
+/*!***********************************************************************!*\
+ !*** ./node_modules/@emotion/serialize/dist/serialize.browser.esm.js ***!
+ \***********************************************************************/
+/*! exports provided: serializeStyles */
+/*! exports used: serializeStyles */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- "background-color": paginationBgColor,
- "color": paginationColor
- };
- if ('undefined' == typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) {
+"use strict";
+/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(/*! @emotion/hash */ 342);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(/*! @emotion/unitless */ 343);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(/*! @emotion/memoize */ 344);
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- "background-color": paginationBgColor,
- "color": paginationColor
- };
- }
- if ('undefined' == typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) {
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- "background-color": paginationBgColor,
- "color": paginationActiveColor
- };
- }
- if ('undefined' != typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) {
+var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
+var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
+var hyphenateRegex = /[A-Z]|^ms/g;
+var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
+var isCustomProperty = function isCustomProperty(property) {
+ return property.charCodeAt(1) === 45;
+};
- "background-color": paginationBgActiveColor,
- "color": paginationColor
- };
- }
- if ('undefined' != typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) {
+var isProcessableValue = function isProcessableValue(value) {
+ return value != null && typeof value !== 'boolean';
+};
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
+var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) {
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
+});
- "background-color": paginationBgActiveColor,
- "color": paginationActiveColor
- };
- }
- }
- if ('border' == paginationLayout) {
- selectors[" .uagb-post-pagination-wrap a"] = {
- "border-style": "solid",
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"),
- "border-color": paginationBorderColor,
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"),
- "color": paginationColor,
- "background-color": "transparent"
- };
- if ('undefined' != typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) {
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- "border-style": "solid",
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"),
- "border-color": paginationBorderActiveColor,
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"),
- "color": paginationActiveColor,
- "background-color": "transparent"
- };
- }
- if ('undefined' == typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) {
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- "border-style": "solid",
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"),
- "border-color": paginationBorderColor,
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"),
- "color": paginationActiveColor,
- "background-color": "transparent"
- };
- }
- if ('undefined' != typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) {
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- "border-style": "solid",
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"),
- "border-color": paginationBorderActiveColor,
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"),
- "color": paginationColor,
- "background-color": "transparent"
- };
- }
- if ('undefined' == typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) {
- selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- "border-style": "solid",
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"),
- "border-color": paginationBorderColor,
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"),
- "color": paginationColor,
- "background-color": "transparent"
- };
- }
- }
- }
-
- if (linkBox) {
- selectors[" .uagb-post__inner-wrap"]["cursor"] = "pointer";
- }
+var processStyleValue = function processStyleValue(key, value) {
+ switch (key) {
+ case 'animation':
+ case 'animationName':
+ {
+ if (typeof value === 'string') {
+ return value.replace(animationRegex, function (match, p1, p2) {
+ cursor = {
+ name: p1,
+ styles: p2,
+ next: cursor
+ };
+ return p1;
+ });
+ }
+ }
+ }
- selectors[" .slick-arrow svg"] = {
- "fill": arrowColor,
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](arrowSize, "px"),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](arrowSize, "px")
- };
+ if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
+ return value + 'px';
+ }
- if (!inheritFromTheme) {
+ return value;
+};
- mobile_selectors = {
- " .uagb-post__text .uagb-post__title": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeMobile, titleFontSizeType),
- "line-height": titleLineHeightMobile + titleLineHeightType
- },
- " .uagb-post__text .uagb-post__title a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeMobile, titleFontSizeType),
- "line-height": titleLineHeightMobile + titleLineHeightType
- },
- " .uagb-post__text .uagb-post-grid-byline": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeMobile, metaFontSizeType),
- "line-height": metaLineHeightMobile + metaLineHeightType
- },
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeMobile, metaFontSizeType),
- "line-height": metaLineHeightMobile + metaLineHeightType
- },
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeMobile, metaFontSizeType),
- "line-height": metaLineHeightMobile + metaLineHeightType
- },
- " .uagb-post__text .uagb-post__excerpt": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptFontSizeMobile, excerptFontSizeType),
- "line-height": excerptLineHeightMobile + excerptLineHeightType
- },
- " .uagb-post__text .uagb-post__cta": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "line-height": ctaLineHeightMobile + ctaLineHeightType
- },
- " .uagb-post__text .uagb-post__cta a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "line-height": ctaLineHeightMobile + ctaLineHeightType
- }
- };
+if (process.env.NODE_ENV !== 'production') {
+ var contentValuePattern = /(attr|calc|counters?|url)\(/;
+ var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
+ var oldProcessStyleValue = processStyleValue;
+ var msPattern = /^-ms-/;
+ var hyphenPattern = /-(.)/g;
+ var hyphenatedCache = {};
- tablet_selectors = {
- " .uagb-post__text .uagb-post__title": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeTablet, titleFontSizeType),
- "line-height": titleLineHeightTablet + titleLineHeightType
- },
- " .uagb-post__text .uagb-post__title a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeTablet, titleFontSizeType),
- "line-height": titleLineHeightTablet + titleLineHeightType
- },
- " .uagb-post__text .uagb-post-grid-byline": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeTablet, metaFontSizeType),
- "line-height": metaLineHeightTablet + metaLineHeightType
- },
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeTablet, metaFontSizeType),
- "line-height": metaLineHeightTablet + metaLineHeightType
- },
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeTablet, metaFontSizeType),
- "line-height": metaLineHeightTablet + metaLineHeightType
- },
- " .uagb-post__text .uagb-post__excerpt": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptFontSizeTablet, excerptFontSizeType),
- "line-height": excerptLineHeightTablet + excerptLineHeightType
- },
- " .uagb-post__text .uagb-post__cta": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "line-height": ctaLineHeightTablet + ctaLineHeightType
- },
- " .uagb-post__text .uagb-post__cta a": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "line-height": ctaLineHeightTablet + ctaLineHeightType
- }
- };
- }
+ processStyleValue = function processStyleValue(key, value) {
+ if (key === 'content') {
+ if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
+ console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
+ }
+ }
- if ('infinite' === paginationType) {
+ var processed = oldProcessStyleValue(key, value);
- if ('button' === paginationEventType) {
- selectors[' .uagb-post__load-more-wrap'] = {
- 'text-align': paginationAlign
- };
- selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = {
+ if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
+ hyphenatedCache[key] = true;
+ console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
+ return _char.toUpperCase();
+ }) + "?");
+ }
- 'color': paginationTextColor,
- "background-color": paginationMasonryBgColor,
- "border-style": paginationMasonryBorderStyle,
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationMasonryBorderWidth, 'px'),
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationMasonryBorderRadius, 'px'),
- "border-color": paginationMasonryBorderColor,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationFontSize, 'px'),
- "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingDesktop, paginationButtonPaddingType),
- "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingDesktop, paginationButtonPaddingType),
- "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingDesktop, paginationButtonPaddingType),
- "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingDesktop, paginationButtonPaddingType)
+ return processed;
+ };
+}
- };
- selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button:hover'] = {
- 'color': paginationTextHoverColor,
- "background-color": paginationBgHoverColor
- };
- mobile_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = {
- "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingMobile, paginationButtonPaddingType),
- "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingMobile, paginationButtonPaddingType),
- "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingMobile, paginationButtonPaddingType),
- "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingMobile, paginationButtonPaddingType)
- };
- tablet_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = {
- "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingTablet, paginationButtonPaddingType),
- "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingTablet, paginationButtonPaddingType),
- "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingTablet, paginationButtonPaddingType),
- "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingTablet, paginationButtonPaddingType)
- };
- }
- if ('scroll' === paginationEventType) {
- selectors['.uagb-post-grid .uagb-post-inf-loader div'] = {
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](loaderSize, "px"),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](loaderSize, "px"),
- "background-color": loaderColor
- };
- }
- }
+var shouldWarnAboutInterpolatingClassNameFromCss = true;
- mobile_selectors[" .uagb-post__text"] = {
- "padding": contentPaddingMobile + "px"
- };
+function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
+ if (interpolation == null) {
+ return '';
+ }
- var styling_css = "";
+ if (interpolation.__emotion_styles !== undefined) {
+ if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
+ throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
+ }
- styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, ".uagb-block-" + props.clientId.substr(0, 8));
+ return interpolation;
+ }
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "tablet");
+ switch (typeof interpolation) {
+ case 'boolean':
+ {
+ return '';
+ }
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "mobile");
+ case 'object':
+ {
+ if (interpolation.anim === 1) {
+ cursor = {
+ name: interpolation.name,
+ styles: interpolation.styles,
+ next: cursor
+ };
+ return interpolation.name;
+ }
- return styling_css;
-}
+ if (interpolation.styles !== undefined) {
+ var next = interpolation.next;
-/* harmony default export */ __webpack_exports__["a"] = (styling);
+ if (next !== undefined) {
+ // not the most efficient thing ever but this is a pretty rare case
+ // and there will be very few iterations of this generally
+ while (next !== undefined) {
+ cursor = {
+ name: next.name,
+ styles: next.styles,
+ next: cursor
+ };
+ next = next.next;
+ }
+ }
-/***/ }),
-/* 76 */
-/*!************************************!*\
- !*** ./src/blocks/post/style.scss ***!
- \************************************/
-/*! no static exports found */
-/***/ (function(module, exports) {
+ var styles = interpolation.styles + ";";
-// removed by extract-text-webpack-plugin
+ if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
+ styles += interpolation.map;
+ }
-/***/ }),
-/* 77 */
-/*!*************************************!*\
- !*** ./src/blocks/post/editor.scss ***!
- \*************************************/
-/*! no static exports found */
-/***/ (function(module, exports) {
+ return styles;
+ }
-// removed by extract-text-webpack-plugin
+ return createStringFromObject(mergedProps, registered, interpolation);
+ }
-/***/ }),
-/* 78 */
-/*!***********************************************!*\
- !*** ./node_modules/ev-emitter/ev-emitter.js ***!
- \***********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ case 'function':
+ {
+ if (mergedProps !== undefined) {
+ var previousCursor = cursor;
+ var result = interpolation(mergedProps);
+ cursor = previousCursor;
+ return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
+ } else if (process.env.NODE_ENV !== 'production') {
+ console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
+ }
-var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
- * EvEmitter v1.1.0
- * Lil' event emitter
- * MIT License
- */
+ break;
+ }
-/* jshint unused: true, undef: true, strict: true */
+ case 'string':
+ if (process.env.NODE_ENV !== 'production') {
+ var matched = [];
+ var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
+ var fakeVarName = "animation" + matched.length;
+ matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
+ return "${" + fakeVarName + "}";
+ });
-( function( global, factory ) {
- // universal module definition
- /* jshint strict: false */ /* globals define, module, window */
- if ( true ) {
- // AMD - RequireJS
- !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
- (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
- __WEBPACK_AMD_DEFINE_FACTORY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- } else if ( typeof module == 'object' && module.exports ) {
- // CommonJS - Browserify, Webpack
- module.exports = factory();
- } else {
- // Browser globals
- global.EvEmitter = factory();
- }
+ if (matched.length) {
+ console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
+ }
+ }
-}( typeof window != 'undefined' ? window : this, function() {
+ break;
+ } // finalize string values (regular strings and functions interpolated into css calls)
-"use strict";
-function EvEmitter() {}
+ if (registered == null) {
+ return interpolation;
+ }
-var proto = EvEmitter.prototype;
+ var cached = registered[interpolation];
-proto.on = function( eventName, listener ) {
- if ( !eventName || !listener ) {
- return;
- }
- // set events hash
- var events = this._events = this._events || {};
- // set listeners array
- var listeners = events[ eventName ] = events[ eventName ] || [];
- // only add once
- if ( listeners.indexOf( listener ) == -1 ) {
- listeners.push( listener );
+ if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
+ console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');
+ shouldWarnAboutInterpolatingClassNameFromCss = false;
}
- return this;
-};
+ return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
+}
-proto.once = function( eventName, listener ) {
- if ( !eventName || !listener ) {
- return;
- }
- // add event
- this.on( eventName, listener );
- // set once flag
- // set onceEvents hash
- var onceEvents = this._onceEvents = this._onceEvents || {};
- // set onceListeners object
- var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {};
- // set flag
- onceListeners[ listener ] = true;
+function createStringFromObject(mergedProps, registered, obj) {
+ var string = '';
- return this;
-};
+ if (Array.isArray(obj)) {
+ for (var i = 0; i < obj.length; i++) {
+ string += handleInterpolation(mergedProps, registered, obj[i], false);
+ }
+ } else {
+ for (var _key in obj) {
+ var value = obj[_key];
-proto.off = function( eventName, listener ) {
- var listeners = this._events && this._events[ eventName ];
- if ( !listeners || !listeners.length ) {
- return;
- }
- var index = listeners.indexOf( listener );
- if ( index != -1 ) {
- listeners.splice( index, 1 );
- }
+ if (typeof value !== 'object') {
+ if (registered != null && registered[value] !== undefined) {
+ string += _key + "{" + registered[value] + "}";
+ } else if (isProcessableValue(value)) {
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
+ }
+ } else {
+ if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
+ throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
+ }
- return this;
-};
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
+ for (var _i = 0; _i < value.length; _i++) {
+ if (isProcessableValue(value[_i])) {
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
+ }
+ }
+ } else {
+ var interpolated = handleInterpolation(mergedProps, registered, value, false);
-proto.emitEvent = function( eventName, args ) {
- var listeners = this._events && this._events[ eventName ];
- if ( !listeners || !listeners.length ) {
- return;
- }
- // copy over to avoid interference if .off() in listener
- listeners = listeners.slice(0);
- args = args || [];
- // once stuff
- var onceListeners = this._onceEvents && this._onceEvents[ eventName ];
+ switch (_key) {
+ case 'animation':
+ case 'animationName':
+ {
+ string += processStyleName(_key) + ":" + interpolated + ";";
+ break;
+ }
- for ( var i=0; i < listeners.length; i++ ) {
- var listener = listeners[i]
- var isOnce = onceListeners && onceListeners[ listener ];
- if ( isOnce ) {
- // remove listener
- // remove before trigger to prevent recursion
- this.off( eventName, listener );
- // unset once flag
- delete onceListeners[ listener ];
+ default:
+ {
+ if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
+ console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
+ }
+
+ string += _key + "{" + interpolated + "}";
+ }
+ }
+ }
+ }
}
- // trigger listener
- listener.apply( this, args );
}
- return this;
-};
+ return string;
+}
-proto.allOff = function() {
- delete this._events;
- delete this._onceEvents;
-};
+var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
+var sourceMapPattern;
-return EvEmitter;
+if (process.env.NODE_ENV !== 'production') {
+ sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
+} // this is the cursor for keyframes
+// keyframes are stored on the SerializedStyles object as a linked list
-}));
+var cursor;
+var serializeStyles = function serializeStyles(args, registered, mergedProps) {
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
+ return args[0];
+ }
-/***/ }),
-/* 79 */
-/*!*******************************************!*\
- !*** ./node_modules/get-size/get-size.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ var stringMode = true;
+ var styles = '';
+ cursor = undefined;
+ var strings = args[0];
-var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- * getSize v2.0.3
- * measure size of elements
- * MIT license
- */
+ if (strings == null || strings.raw === undefined) {
+ stringMode = false;
+ styles += handleInterpolation(mergedProps, registered, strings, false);
+ } else {
+ if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
+ }
-/* jshint browser: true, strict: true, undef: true, unused: true */
-/* globals console: false */
+ styles += strings[0];
+ } // we start at 1 since we've already handled the first arg
-( function( window, factory ) {
- /* jshint strict: false */ /* globals define, module */
- if ( true ) {
- // AMD
- !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
- (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
- __WEBPACK_AMD_DEFINE_FACTORY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- } else if ( typeof module == 'object' && module.exports ) {
- // CommonJS
- module.exports = factory();
- } else {
- // browser global
- window.getSize = factory();
- }
-})( window, function factory() {
-'use strict';
+ for (var i = 1; i < args.length; i++) {
+ styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
-// -------------------------- helpers -------------------------- //
+ if (stringMode) {
+ if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
+ }
-// get a number from a string, not a percentage
-function getStyleSize( value ) {
- var num = parseFloat( value );
- // not a percent like '100%', and a number
- var isValid = value.indexOf('%') == -1 && !isNaN( num );
- return isValid && num;
-}
+ styles += strings[i];
+ }
+ }
-function noop() {}
+ var sourceMap;
-var logError = typeof console == 'undefined' ? noop :
- function( message ) {
- console.error( message );
- };
+ if (process.env.NODE_ENV !== 'production') {
+ styles = styles.replace(sourceMapPattern, function (match) {
+ sourceMap = match;
+ return '';
+ });
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
-// -------------------------- measurements -------------------------- //
-var measurements = [
- 'paddingLeft',
- 'paddingRight',
- 'paddingTop',
- 'paddingBottom',
- 'marginLeft',
- 'marginRight',
- 'marginTop',
- 'marginBottom',
- 'borderLeftWidth',
- 'borderRightWidth',
- 'borderTopWidth',
- 'borderBottomWidth'
-];
+ labelPattern.lastIndex = 0;
+ var identifierName = '';
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
-var measurementsLength = measurements.length;
+ while ((match = labelPattern.exec(styles)) !== null) {
+ identifierName += '-' + // $FlowFixMe we know it's not null
+ match[1];
+ }
-function getZeroSize() {
- var size = {
- width: 0,
- height: 0,
- innerWidth: 0,
- innerHeight: 0,
- outerWidth: 0,
- outerHeight: 0
- };
- for ( var i=0; i < measurementsLength; i++ ) {
- var measurement = measurements[i];
- size[ measurement ] = 0;
- }
- return size;
-}
+ var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName;
-// -------------------------- getStyle -------------------------- //
-
-/**
- * getStyle, get style of element, check for Firefox bug
- * https://bugzilla.mozilla.org/show_bug.cgi?id=548397
- */
-function getStyle( elem ) {
- var style = getComputedStyle( elem );
- if ( !style ) {
- logError( 'Style returned ' + style +
- '. Are you running this code in a hidden iframe on Firefox? ' +
- 'See https://bit.ly/getsizebug1' );
+ if (process.env.NODE_ENV !== 'production') {
+ // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
+ return {
+ name: name,
+ styles: styles,
+ map: sourceMap,
+ next: cursor,
+ toString: function toString() {
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
+ }
+ };
}
- return style;
-}
-
-// -------------------------- setup -------------------------- //
-
-var isSetup = false;
-var isBoxSizeOuter;
+ return {
+ name: name,
+ styles: styles,
+ next: cursor
+ };
+};
-/**
- * setup
- * check isBoxSizerOuter
- * do on first getSize() rather than on page load for Firefox bug
- */
-function setup() {
- // setup once
- if ( isSetup ) {
- return;
- }
- isSetup = true;
- // -------------------------- box sizing -------------------------- //
- /**
- * Chrome & Safari measure the outer-width on style.width on border-box elems
- * IE11 & Firefox<29 measures the inner-width
- */
- var div = document.createElement('div');
- div.style.width = '200px';
- div.style.padding = '1px 2px 3px 4px';
- div.style.borderStyle = 'solid';
- div.style.borderWidth = '1px 2px 3px 4px';
- div.style.boxSizing = 'border-box';
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6)))
- var body = document.body || document.documentElement;
- body.appendChild( div );
- var style = getStyle( div );
- // round value for browser zoom. desandro/masonry#928
- isBoxSizeOuter = Math.round( getStyleSize( style.width ) ) == 200;
- getSize.isBoxSizeOuter = isBoxSizeOuter;
+/***/ }),
+/* 88 */
+/*!******************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***!
+ \******************************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- body.removeChild( div );
-}
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutProperties;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ 353);
-// -------------------------- getSize -------------------------- //
+function _objectWithoutProperties(source, excluded) {
+ if (source == null) return {};
+ var target = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(source, excluded);
+ var key, i;
-function getSize( elem ) {
- setup();
+ if (Object.getOwnPropertySymbols) {
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
- // use querySeletor if elem is string
- if ( typeof elem == 'string' ) {
- elem = document.querySelector( elem );
+ 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];
+ }
}
- // do not proceed on non-objects
- if ( !elem || typeof elem != 'object' || !elem.nodeType ) {
- return;
- }
+ return target;
+}
- var style = getStyle( elem );
+/***/ }),
+/* 89 */
+/*!**************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/extends.js ***!
+ \**************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- // if hidden, everything is 0
- if ( style.display == 'none' ) {
- return getZeroSize();
- }
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _extends;
+function _extends() {
+ _extends = Object.assign || function (target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = arguments[i];
- var size = {};
- size.width = elem.offsetWidth;
- size.height = elem.offsetHeight;
+ for (var key in source) {
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
+ target[key] = source[key];
+ }
+ }
+ }
- var isBorderBox = size.isBorderBox = style.boxSizing == 'border-box';
+ return target;
+ };
- // get all measurements
- for ( var i=0; i < measurementsLength; i++ ) {
- var measurement = measurements[i];
- var value = style[ measurement ];
- var num = parseFloat( value );
- // any 'auto', 'medium' value will be 0
- size[ measurement ] = !isNaN( num ) ? num : 0;
- }
+ return _extends.apply(this, arguments);
+}
- var paddingWidth = size.paddingLeft + size.paddingRight;
- var paddingHeight = size.paddingTop + size.paddingBottom;
- var marginWidth = size.marginLeft + size.marginRight;
- var marginHeight = size.marginTop + size.marginBottom;
- var borderWidth = size.borderLeftWidth + size.borderRightWidth;
- var borderHeight = size.borderTopWidth + size.borderBottomWidth;
+/***/ }),
+/* 90 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_baseSlice.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
- var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;
+/**
+ * The base implementation of `_.slice` without an iteratee call guard.
+ *
+ * @private
+ * @param {Array} array The array to slice.
+ * @param {number} [start=0] The start position.
+ * @param {number} [end=array.length] The end position.
+ * @returns {Array} Returns the slice of `array`.
+ */
+function baseSlice(array, start, end) {
+ var index = -1,
+ length = array.length;
- // overwrite width and height if we can get it from style
- var styleWidth = getStyleSize( style.width );
- if ( styleWidth !== false ) {
- size.width = styleWidth +
- // add padding and border unless it's already including it
- ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth );
+ if (start < 0) {
+ start = -start > length ? 0 : (length + start);
}
-
- var styleHeight = getStyleSize( style.height );
- if ( styleHeight !== false ) {
- size.height = styleHeight +
- // add padding and border unless it's already including it
- ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight );
+ end = end > length ? length : end;
+ if (end < 0) {
+ end += length;
}
+ length = start > end ? 0 : ((end - start) >>> 0);
+ start >>>= 0;
- size.innerWidth = size.width - ( paddingWidth + borderWidth );
- size.innerHeight = size.height - ( paddingHeight + borderHeight );
-
- size.outerWidth = size.width + marginWidth;
- size.outerHeight = size.height + marginHeight;
-
- return size;
+ var result = Array(length);
+ while (++index < length) {
+ result[index] = array[index + start];
+ }
+ return result;
}
-return getSize;
-
-});
+module.exports = baseSlice;
/***/ }),
-/* 80 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_getPrototype.js ***!
- \**********************************************/
-/*! no static exports found */
+/* 91 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_hasUnicode.js ***!
+ \********************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var overArg = __webpack_require__(/*! ./_overArg */ 124);
-
-/** Built-in value references. */
-var getPrototype = overArg(Object.getPrototypeOf, Object);
-
-module.exports = getPrototype;
+/***/ (function(module, exports) {
+/** Used to compose unicode character classes. */
+var rsAstralRange = '\\ud800-\\udfff',
+ rsComboMarksRange = '\\u0300-\\u036f',
+ reComboHalfMarksRange = '\\ufe20-\\ufe2f',
+ rsComboSymbolsRange = '\\u20d0-\\u20ff',
+ rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
+ rsVarRange = '\\ufe0e\\ufe0f';
-/***/ }),
-/* 81 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_getAllKeysIn.js ***!
- \**********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/** Used to compose unicode capture groups. */
+var rsZWJ = '\\u200d';
-var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 119),
- getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ 149),
- keysIn = __webpack_require__(/*! ./keysIn */ 148);
+/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
+var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
/**
- * Creates an array of own and inherited enumerable property names and
- * symbols of `object`.
+ * Checks if `string` contains Unicode symbols.
*
* @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
+ * @param {string} string The string to inspect.
+ * @returns {boolean} Returns `true` if a symbol is found, else `false`.
*/
-function getAllKeysIn(object) {
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
+function hasUnicode(string) {
+ return reHasUnicode.test(string);
}
-module.exports = getAllKeysIn;
+module.exports = hasUnicode;
/***/ }),
-/* 82 */
-/*!**************************************************!*\
- !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
- \**************************************************/
-/*! no static exports found */
+/* 92 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/toInteger.js ***!
+ \******************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 117);
+var toFinite = __webpack_require__(/*! ./toFinite */ 389);
/**
- * Creates a clone of `arrayBuffer`.
+ * Converts `value` to an integer.
*
- * @private
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
+ * **Note:** This method is loosely based on
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {number} Returns the converted integer.
+ * @example
+ *
+ * _.toInteger(3.2);
+ * // => 3
+ *
+ * _.toInteger(Number.MIN_VALUE);
+ * // => 0
+ *
+ * _.toInteger(Infinity);
+ * // => 1.7976931348623157e+308
+ *
+ * _.toInteger('3.2');
+ * // => 3
*/
-function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
- return result;
+function toInteger(value) {
+ var result = toFinite(value),
+ remainder = result % 1;
+
+ return result === result ? (remainder ? result - remainder : result) : 0;
}
-module.exports = cloneArrayBuffer;
+module.exports = toInteger;
/***/ }),
-/* 83 */
-/*!***************************************************!*\
- !*** ./src/components/gradient-settings/index.js ***!
- \***************************************************/
+/* 93 */
+/*!************************************!*\
+ !*** ./src/blocks/post/styling.js ***!
+ \************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/hexToRgba */ 84);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3);
+/**
+ * Set inline styles.
+ * @param {object} props - The block object.
+ * @return {object} The inline background type CSS.
+ */
-var __ = wp.i18n.__;
-var __experimentalPanelColorGradientSettings = wp.blockEditor.__experimentalPanelColorGradientSettings;
-function GradientSettings(_ref) {
- var attributes = _ref.attributes,
- setAttributes = _ref.setAttributes;
- var gradientValue = attributes.gradientValue,
- gradientAngle = attributes.gradientAngle,
- gradientColor1 = attributes.gradientColor1,
- gradientColor2 = attributes.gradientColor2,
- gradientLocation1 = attributes.gradientLocation1,
- gradientLocation2 = attributes.gradientLocation2,
- gradientPosition = attributes.gradientPosition,
- gradientType = attributes.gradientType;
- //set the gradient value to settings if new gradientvalue is not set
+function styling(props) {
+ var _props$attributes = props.attributes,
+ align = _props$attributes.align,
+ rowGap = _props$attributes.rowGap,
+ columnGap = _props$attributes.columnGap,
+ bgColor = _props$attributes.bgColor,
+ contentPadding = _props$attributes.contentPadding,
+ contentPaddingMobile = _props$attributes.contentPaddingMobile,
+ titleColor = _props$attributes.titleColor,
+ titleFontSize = _props$attributes.titleFontSize,
+ titleFontSizeType = _props$attributes.titleFontSizeType,
+ titleFontSizeMobile = _props$attributes.titleFontSizeMobile,
+ titleFontSizeTablet = _props$attributes.titleFontSizeTablet,
+ titleFontFamily = _props$attributes.titleFontFamily,
+ titleFontWeight = _props$attributes.titleFontWeight,
+ titleLineHeightType = _props$attributes.titleLineHeightType,
+ titleLineHeight = _props$attributes.titleLineHeight,
+ titleLineHeightTablet = _props$attributes.titleLineHeightTablet,
+ titleLineHeightMobile = _props$attributes.titleLineHeightMobile,
+ metaFontSize = _props$attributes.metaFontSize,
+ metaFontSizeType = _props$attributes.metaFontSizeType,
+ metaFontSizeMobile = _props$attributes.metaFontSizeMobile,
+ metaFontSizeTablet = _props$attributes.metaFontSizeTablet,
+ metaFontFamily = _props$attributes.metaFontFamily,
+ metaFontWeight = _props$attributes.metaFontWeight,
+ metaLineHeightType = _props$attributes.metaLineHeightType,
+ metaLineHeight = _props$attributes.metaLineHeight,
+ metaLineHeightTablet = _props$attributes.metaLineHeightTablet,
+ metaLineHeightMobile = _props$attributes.metaLineHeightMobile,
+ excerptFontSize = _props$attributes.excerptFontSize,
+ excerptFontSizeType = _props$attributes.excerptFontSizeType,
+ excerptFontSizeTablet = _props$attributes.excerptFontSizeTablet,
+ excerptFontSizeMobile = _props$attributes.excerptFontSizeMobile,
+ excerptFontFamily = _props$attributes.excerptFontFamily,
+ excerptFontWeight = _props$attributes.excerptFontWeight,
+ excerptLineHeightType = _props$attributes.excerptLineHeightType,
+ excerptLineHeight = _props$attributes.excerptLineHeight,
+ excerptLineHeightTablet = _props$attributes.excerptLineHeightTablet,
+ excerptLineHeightMobile = _props$attributes.excerptLineHeightMobile,
+ ctaFontSize = _props$attributes.ctaFontSize,
+ ctaFontSizeType = _props$attributes.ctaFontSizeType,
+ ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet,
+ ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile,
+ ctaFontFamily = _props$attributes.ctaFontFamily,
+ ctaFontWeight = _props$attributes.ctaFontWeight,
+ ctaLineHeightType = _props$attributes.ctaLineHeightType,
+ ctaLineHeight = _props$attributes.ctaLineHeight,
+ ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet,
+ ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile,
+ metaColor = _props$attributes.metaColor,
+ excerptColor = _props$attributes.excerptColor,
+ ctaColor = _props$attributes.ctaColor,
+ ctaBgColor = _props$attributes.ctaBgColor,
+ ctaHColor = _props$attributes.ctaHColor,
+ ctaBgHColor = _props$attributes.ctaBgHColor,
+ titleBottomSpace = _props$attributes.titleBottomSpace,
+ ctaBottomSpace = _props$attributes.ctaBottomSpace,
+ imageBottomSpace = _props$attributes.imageBottomSpace,
+ metaBottomSpace = _props$attributes.metaBottomSpace,
+ excerptBottomSpace = _props$attributes.excerptBottomSpace,
+ overlayOpacity = _props$attributes.overlayOpacity,
+ bgOverlayColor = _props$attributes.bgOverlayColor,
+ borderWidth = _props$attributes.borderWidth,
+ borderStyle = _props$attributes.borderStyle,
+ borderColor = _props$attributes.borderColor,
+ borderHColor = _props$attributes.borderHColor,
+ borderRadius = _props$attributes.borderRadius,
+ btnVPadding = _props$attributes.btnVPadding,
+ btnHPadding = _props$attributes.btnHPadding,
+ linkBox = _props$attributes.linkBox,
+ arrowColor = _props$attributes.arrowColor,
+ arrowSize = _props$attributes.arrowSize,
+ paginationBgActiveColor = _props$attributes.paginationBgActiveColor,
+ paginationActiveColor = _props$attributes.paginationActiveColor,
+ paginationBgColor = _props$attributes.paginationBgColor,
+ paginationColor = _props$attributes.paginationColor,
+ paginationLayout = _props$attributes.paginationLayout,
+ paginationBorderSize = _props$attributes.paginationBorderSize,
+ paginationBorderRadius = _props$attributes.paginationBorderRadius,
+ paginationBorderColor = _props$attributes.paginationBorderColor,
+ paginationBorderActiveColor = _props$attributes.paginationBorderActiveColor,
+ paginationSpacing = _props$attributes.paginationSpacing,
+ paginationAlignment = _props$attributes.paginationAlignment,
+ inheritFromTheme = _props$attributes.inheritFromTheme,
+ postPagination = _props$attributes.postPagination,
+ paginationMarkup = _props$attributes.paginationMarkup,
+ paginationType = _props$attributes.paginationType,
+ paginationEventType = _props$attributes.paginationEventType,
+ paginationAlign = _props$attributes.paginationAlign,
+ paginationTextColor = _props$attributes.paginationTextColor,
+ paginationMasonryBgColor = _props$attributes.paginationMasonryBgColor,
+ paginationMasonryBorderStyle = _props$attributes.paginationMasonryBorderStyle,
+ paginationMasonryBorderWidth = _props$attributes.paginationMasonryBorderWidth,
+ paginationMasonryBorderRadius = _props$attributes.paginationMasonryBorderRadius,
+ paginationMasonryBorderColor = _props$attributes.paginationMasonryBorderColor,
+ paginationTextHoverColor = _props$attributes.paginationTextHoverColor,
+ paginationBgHoverColor = _props$attributes.paginationBgHoverColor,
+ paginationFontSize = _props$attributes.paginationFontSize,
+ loaderColor = _props$attributes.loaderColor,
+ loaderSize = _props$attributes.loaderSize,
+ paginationButtonPaddingType = _props$attributes.paginationButtonPaddingType,
+ vpaginationButtonPaddingMobile = _props$attributes.vpaginationButtonPaddingMobile,
+ vpaginationButtonPaddingTablet = _props$attributes.vpaginationButtonPaddingTablet,
+ vpaginationButtonPaddingDesktop = _props$attributes.vpaginationButtonPaddingDesktop,
+ hpaginationButtonPaddingMobile = _props$attributes.hpaginationButtonPaddingMobile,
+ hpaginationButtonPaddingTablet = _props$attributes.hpaginationButtonPaddingTablet,
+ hpaginationButtonPaddingDesktop = _props$attributes.hpaginationButtonPaddingDesktop,
+ imgPosition = _props$attributes.imgPosition;
- if ("" === gradientValue) {
- var rgb_gradientColor1 = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */](gradientColor1);
- var rgb_gradientColor2 = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */](gradientColor2);
- if ("linear" === gradientType) {
- var value = "linear-gradient(" + gradientAngle + "deg," + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)";
- setAttributes({ gradientValue: value });
- } else {
- var value = "radial-gradient(at " + gradientPosition + ", " + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)";
- setAttributes({ gradientValue: value });
+ var mobile_selectors = {};
+ var tablet_selectors = {};
+
+ var selectors = {
+ " .uagb-post__items": {
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-rowGap / 2, "px"),
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-rowGap / 2, "px")
+ },
+ " .uagb-post__items article": {
+ "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rowGap / 2, "px"),
+ "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rowGap / 2, "px"),
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(columnGap, "px")
+ },
+ " .uagb-post__inner-wrap": {
+ "background": bgColor,
+ "padding": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(contentPadding, "px"),
+ "text-align": align
+ },
+ " .uagb-post__inner-wrap .uagb-post__cta": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBottomSpace, "px")
+ },
+ " .uagb-post__inner-wrap .uagb-post__image": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(imageBottomSpace, "px")
+ },
+ " .uagb-post__inner-wrap .uagb-post__title": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleBottomSpace, "px")
+ },
+ " .uagb-post__inner-wrap .uagb-post-grid-byline": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaBottomSpace, "px")
+ },
+ " .uagb-post__inner-wrap .uagb-post__excerpt": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptBottomSpace, "px")
+ },
+ " .uagb-post__image:before": {
+ "background-color": bgOverlayColor,
+ "opacity": overlayOpacity / 100
+ },
+ " .uagb-post-pagination-wrap": {
+ "margin-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationSpacing, "px"),
+ "text-align": paginationAlignment
}
+ };
+ if (imgPosition !== 'background') {
+ selectors[" .uagb-post__inner-wrap > .uagb-post__image:first-child"] = {
+ "margin-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-contentPadding, "px"),
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-contentPadding, "px"),
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-contentPadding, "px")
+ };
+ }
+ if (!inheritFromTheme) {
+ selectors[" .uagb-post__title"] = {
+ "color": titleColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSize, titleFontSizeType),
+ "font-family": titleFontFamily,
+ "font-weight": titleFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleLineHeight, titleLineHeightType)
+ };
+ selectors[" .uagb-post__title a"] = {
+ "color": titleColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSize, titleFontSizeType),
+ "font-family": titleFontFamily,
+ "font-weight": titleFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleLineHeight, titleLineHeightType)
+ };
+ selectors[" .uagb-post-grid-byline"] = {
+ "color": metaColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSize, metaFontSizeType),
+ "font-family": metaFontFamily,
+ "font-weight": metaFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaLineHeight, metaLineHeightType)
+ };
+ selectors[" .uagb-post-grid-byline .uagb-post__author"] = {
+ "color": metaColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSize, metaFontSizeType),
+ "font-family": metaFontFamily,
+ "font-weight": metaFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaLineHeight, metaLineHeightType)
+ };
+ selectors[" .uagb-post-grid-byline .uagb-post__author a"] = {
+ "color": metaColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSize, metaFontSizeType),
+ "font-family": metaFontFamily,
+ "font-weight": metaFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaLineHeight, metaLineHeightType)
+ };
+ selectors[" .uagb-post__excerpt"] = {
+ "color": excerptColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptFontSize, excerptFontSizeType),
+ "font-family": excerptFontFamily,
+ "font-weight": excerptFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptLineHeight, excerptLineHeightType)
+ };
+ selectors[" .uagb-post__cta"] = {
+ "color": ctaColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "font-family": ctaFontFamily,
+ "font-weight": ctaFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeight, ctaLineHeightType),
+ "background": ctaBgColor,
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderWidth, "px"),
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px"),
+ "border-color": borderColor,
+ "border-style": borderStyle
+ };
+ selectors[" .uagb-post__cta a"] = {
+ "color": ctaColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "padding": btnVPadding + "px " + btnHPadding + "px"
+ };
+ selectors[" .uagb-post__cta:hover"] = {
+ "color": ctaHColor,
+ "background": ctaBgHColor,
+ "border-color": borderHColor
+ };
+ selectors[" .uagb-post__cta:hover a"] = {
+ "color": ctaHColor
+ };
}
- var onGradientChange = function onGradientChange(value) {
- setAttributes({ gradientValue: value });
- setAttributes({ gradientAngle: "", gradientColor1: "", gradientColor2: "", gradientLocation1: "", gradientLocation2: "" });
- };
+ if (true === postPagination && 'empty' === paginationMarkup) {
+ if ('filled' == paginationLayout) {
+ selectors[" .uagb-post-pagination-wrap a"] = {
- return wp.element.createElement(__experimentalPanelColorGradientSettings, {
- title: __("Color Settings"),
- initialOpen: true,
- settings: [{
- label: __("Overlay Color"),
- gradientValue: gradientValue,
- onGradientChange: onGradientChange
- }]
- });
-}
+ "background-color": paginationBgColor,
+ "color": paginationColor
+ };
+ if ('undefined' == typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) {
-/* harmony default export */ __webpack_exports__["a"] = (GradientSettings);
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
-/***/ }),
-/* 84 */
-/*!************************************************!*\
- !*** ./dist/blocks/uagb-controls/hexToRgba.js ***!
- \************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ "background-color": paginationBgColor,
+ "color": paginationColor
+ };
+ }
+ if ('undefined' == typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) {
-"use strict";
-/**
- * Get HEX color and return RGBA. Default return RGB color.
- * @param {string} color - The color string.
- * @return {boolean} opacity The inline CSS class.
- */
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
-function hexToRgba(color, opacity) {
+ "background-color": paginationBgColor,
+ "color": paginationActiveColor
+ };
+ }
+ if ('undefined' != typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) {
- if (undefined == color) {
- return "";
- }
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- if (undefined == opacity || "" == opacity) {
- opacity = 100;
- }
+ "background-color": paginationBgActiveColor,
+ "color": paginationColor
+ };
+ }
+ if ('undefined' != typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) {
- color = color.replace("#", "");
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
- opacity = typeof opacity != "undefined" ? opacity / 100 : 1;
+ "background-color": paginationBgActiveColor,
+ "color": paginationActiveColor
+ };
+ }
+ }
+ if ('border' == paginationLayout) {
+ selectors[" .uagb-post-pagination-wrap a"] = {
+ "border-style": "solid",
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"),
+ "border-color": paginationBorderColor,
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"),
+ "color": paginationColor,
+ "background-color": "transparent"
+ };
+ if ('undefined' != typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) {
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
+ "border-style": "solid",
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"),
+ "border-color": paginationBorderActiveColor,
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"),
+ "color": paginationActiveColor,
+ "background-color": "transparent"
+ };
+ }
+ if ('undefined' == typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) {
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
+ "border-style": "solid",
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"),
+ "border-color": paginationBorderColor,
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"),
+ "color": paginationActiveColor,
+ "background-color": "transparent"
+ };
+ }
+ if ('undefined' != typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) {
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
+ "border-style": "solid",
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"),
+ "border-color": paginationBorderActiveColor,
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"),
+ "color": paginationColor,
+ "background-color": "transparent"
+ };
+ }
+ if ('undefined' == typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) {
+ selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = {
+ "border-style": "solid",
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"),
+ "border-color": paginationBorderColor,
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"),
+ "color": paginationColor,
+ "background-color": "transparent"
+ };
+ }
+ }
+ }
- // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
- var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
- color = color.replace(shorthandRegex, function (m, r, g, b) {
- return r + r + g + g + b + b;
- });
+ if (linkBox) {
+ selectors[" .uagb-post__inner-wrap"]["cursor"] = "pointer";
+ }
- var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color);
+ selectors[" .slick-arrow svg"] = {
+ "fill": arrowColor,
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(arrowSize, "px"),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(arrowSize, "px")
+ };
- var parsed_color = result ? {
- r: parseInt(result[1], 16),
- g: parseInt(result[2], 16),
- b: parseInt(result[3], 16)
- } : null;
+ if (!inheritFromTheme) {
- return "rgba(" + parsed_color.r + "," + parsed_color.g + "," + parsed_color.b + "," + opacity + ")";
-}
+ mobile_selectors = {
+ " .uagb-post__title": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeMobile, titleFontSizeType),
+ "line-height": titleLineHeightMobile + titleLineHeightType
+ },
+ " .uagb-post__title a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeMobile, titleFontSizeType),
+ "line-height": titleLineHeightMobile + titleLineHeightType
+ },
+ " .uagb-post-grid-byline": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeMobile, metaFontSizeType),
+ "line-height": metaLineHeightMobile + metaLineHeightType
+ },
+ " .uagb-post-grid-byline .uagb-post__author": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeMobile, metaFontSizeType),
+ "line-height": metaLineHeightMobile + metaLineHeightType
+ },
+ " .uagb-post-grid-byline .uagb-post__author a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeMobile, metaFontSizeType),
+ "line-height": metaLineHeightMobile + metaLineHeightType
+ },
+ " .uagb-post__excerpt": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptFontSizeMobile, excerptFontSizeType),
+ "line-height": excerptLineHeightMobile + excerptLineHeightType
+ },
+ " .uagb-post__cta": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "line-height": ctaLineHeightMobile + ctaLineHeightType
+ },
+ " .uagb-post__cta a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "line-height": ctaLineHeightMobile + ctaLineHeightType
+ }
+ };
-/* harmony default export */ __webpack_exports__["a"] = (hexToRgba);
+ tablet_selectors = {
+ " .uagb-post__title": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeTablet, titleFontSizeType),
+ "line-height": titleLineHeightTablet + titleLineHeightType
+ },
+ " .uagb-post__title a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeTablet, titleFontSizeType),
+ "line-height": titleLineHeightTablet + titleLineHeightType
+ },
+ " .uagb-post-grid-byline": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeTablet, metaFontSizeType),
+ "line-height": metaLineHeightTablet + metaLineHeightType
+ },
+ " .uagb-post-grid-byline .uagb-post__author": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeTablet, metaFontSizeType),
+ "line-height": metaLineHeightTablet + metaLineHeightType
+ },
+ " .uagb-post-grid-byline .uagb-post__author a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeTablet, metaFontSizeType),
+ "line-height": metaLineHeightTablet + metaLineHeightType
+ },
+ " .uagb-post__excerpt": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptFontSizeTablet, excerptFontSizeType),
+ "line-height": excerptLineHeightTablet + excerptLineHeightType
+ },
+ " .uagb-post__cta": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "line-height": ctaLineHeightTablet + ctaLineHeightType
+ },
+ " .uagb-post__cta a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "line-height": ctaLineHeightTablet + ctaLineHeightType
+ }
+ };
+ }
-/***/ }),
-/* 85 */
-/*!**************************************************!*\
- !*** ./src/blocks/info-box/components/Prefix.js ***!
- \**************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ if ('infinite' === paginationType) {
-"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+ if ('button' === paginationEventType) {
+ selectors[' .uagb-post__load-more-wrap'] = {
+ 'text-align': paginationAlign
+ };
+ selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = {
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+ 'color': paginationTextColor,
+ "background-color": paginationMasonryBgColor,
+ "border-style": paginationMasonryBorderStyle,
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationMasonryBorderWidth, 'px'),
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationMasonryBorderRadius, 'px'),
+ "border-color": paginationMasonryBorderColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationFontSize, 'px'),
+ "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingDesktop, paginationButtonPaddingType),
+ "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingDesktop, paginationButtonPaddingType),
+ "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingDesktop, paginationButtonPaddingType),
+ "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingDesktop, paginationButtonPaddingType)
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+ };
+ selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button:hover'] = {
+ 'color': paginationTextHoverColor,
+ "background-color": paginationBgHoverColor
+ };
+ mobile_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = {
+ "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingMobile, paginationButtonPaddingType),
+ "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingMobile, paginationButtonPaddingType),
+ "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingMobile, paginationButtonPaddingType),
+ "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingMobile, paginationButtonPaddingType)
+ };
+ tablet_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = {
+ "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingTablet, paginationButtonPaddingType),
+ "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingTablet, paginationButtonPaddingType),
+ "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingTablet, paginationButtonPaddingType),
+ "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingTablet, paginationButtonPaddingType)
+ };
+ }
+ if ('scroll' === paginationEventType) {
+ selectors['.uagb-post-grid .uagb-post-inf-loader div'] = {
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(loaderSize, "px"),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(loaderSize, "px"),
+ "background-color": loaderColor
+ };
+ }
+ }
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+ mobile_selectors[" .uagb-post__inner-wrap"] = {
+ "padding": contentPaddingMobile + "px"
+ };
+ mobile_selectors[".uagb-post__inner-wrap > .uagb-post__image:first-child"] = {
+ "margin-top": -contentPadding + "px",
+ "margin-left": -contentPadding + "px",
+ "margin-right": -contentPadding + "px"
+ };
+ var styling_css = "";
-var RichText = wp.blockEditor.RichText;
-var __ = wp.i18n.__;
-var createBlock = wp.blocks.createBlock;
+ styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, ".uagb-block-" + props.clientId.substr(0, 8));
-var Prefix = function (_React$Component) {
- _inherits(Prefix, _React$Component);
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "tablet");
- function Prefix() {
- _classCallCheck(this, Prefix);
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "mobile");
- return _possibleConstructorReturn(this, (Prefix.__proto__ || Object.getPrototypeOf(Prefix)).apply(this, arguments));
- }
+ return styling_css;
+}
- _createClass(Prefix, [{
- key: "render",
- value: function render() {
+/* harmony default export */ __webpack_exports__["a"] = (styling);
- //const { attributes, setAttributes } = this.props;
+/***/ }),
+/* 94 */
+/*!************************************!*\
+ !*** ./src/blocks/post/style.scss ***!
+ \************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
- var _props = this.props,
- attributes = _props.attributes,
- setAttributes = _props.setAttributes,
- props = _props.props;
+// removed by extract-text-webpack-plugin
+/***/ }),
+/* 95 */
+/*!*************************************!*\
+ !*** ./src/blocks/post/editor.scss ***!
+ \*************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
- if (setAttributes !== "not_set") {
- return wp.element.createElement(RichText, {
- tagName: "div",
- value: attributes.prefixTitle,
- placeholder: __("Write a Prefix"),
- className: "uagb-ifb-title-prefix",
- multiline: false,
- onChange: function onChange(value) {
- setAttributes({ prefixTitle: value });
- },
- onMerge: props.mergeBlocks,
- unstableOnSplit: props.insertBlocksAfter ? function (before, after) {
- for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- blocks[_key - 2] = arguments[_key];
- }
+// removed by extract-text-webpack-plugin
- setAttributes({ content: before });
- props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })]));
- } : undefined,
- onRemove: function onRemove() {
- return props.onReplace([]);
- }
- });
- } else {
- return wp.element.createElement(RichText.Content, {
- tagName: "span",
- value: attributes.prefixTitle,
- className: "uagb-ifb-title-prefix"
- });
- }
- }
- }]);
+/***/ }),
+/* 96 */
+/*!***********************************************!*\
+ !*** ./node_modules/ev-emitter/ev-emitter.js ***!
+ \***********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- return Prefix;
-}(React.Component);
+var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
+ * EvEmitter v1.1.0
+ * Lil' event emitter
+ * MIT License
+ */
-/* harmony default export */ __webpack_exports__["a"] = (Prefix);
+/* jshint unused: true, undef: true, strict: true */
-/***/ }),
-/* 86 */
-/*!*************************************************!*\
- !*** ./src/blocks/info-box/components/Title.js ***!
- \*************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+( function( global, factory ) {
+ // universal module definition
+ /* jshint strict: false */ /* globals define, module, window */
+ if ( true ) {
+ // AMD - RequireJS
+ !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
+ (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
+ __WEBPACK_AMD_DEFINE_FACTORY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ } else if ( typeof module == 'object' && module.exports ) {
+ // CommonJS - Browserify, Webpack
+ module.exports = factory();
+ } else {
+ // Browser globals
+ global.EvEmitter = factory();
+ }
+
+}( typeof window != 'undefined' ? window : this, function() {
"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+function EvEmitter() {}
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+var proto = EvEmitter.prototype;
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+proto.on = function( eventName, listener ) {
+ if ( !eventName || !listener ) {
+ return;
+ }
+ // set events hash
+ var events = this._events = this._events || {};
+ // set listeners array
+ var listeners = events[ eventName ] = events[ eventName ] || [];
+ // only add once
+ if ( listeners.indexOf( listener ) == -1 ) {
+ listeners.push( listener );
+ }
-var RichText = wp.blockEditor.RichText;
-var createBlock = wp.blocks.createBlock;
-var __ = wp.i18n.__;
+ return this;
+};
-var Title = function (_React$Component) {
- _inherits(Title, _React$Component);
+proto.once = function( eventName, listener ) {
+ if ( !eventName || !listener ) {
+ return;
+ }
+ // add event
+ this.on( eventName, listener );
+ // set once flag
+ // set onceEvents hash
+ var onceEvents = this._onceEvents = this._onceEvents || {};
+ // set onceListeners object
+ var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {};
+ // set flag
+ onceListeners[ listener ] = true;
- function Title() {
- _classCallCheck(this, Title);
+ return this;
+};
- return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments));
- }
+proto.off = function( eventName, listener ) {
+ var listeners = this._events && this._events[ eventName ];
+ if ( !listeners || !listeners.length ) {
+ return;
+ }
+ var index = listeners.indexOf( listener );
+ if ( index != -1 ) {
+ listeners.splice( index, 1 );
+ }
- _createClass(Title, [{
- key: "render",
- value: function render() {
+ return this;
+};
- //const { attributes, setAttributes , props } = this.props;
- var _props = this.props,
- attributes = _props.attributes,
- setAttributes = _props.setAttributes,
- props = _props.props;
+proto.emitEvent = function( eventName, args ) {
+ var listeners = this._events && this._events[ eventName ];
+ if ( !listeners || !listeners.length ) {
+ return;
+ }
+ // copy over to avoid interference if .off() in listener
+ listeners = listeners.slice(0);
+ args = args || [];
+ // once stuff
+ var onceListeners = this._onceEvents && this._onceEvents[ eventName ];
+ for ( var i=0; i < listeners.length; i++ ) {
+ var listener = listeners[i]
+ var isOnce = onceListeners && onceListeners[ listener ];
+ if ( isOnce ) {
+ // remove listener
+ // remove before trigger to prevent recursion
+ this.off( eventName, listener );
+ // unset once flag
+ delete onceListeners[ listener ];
+ }
+ // trigger listener
+ listener.apply( this, args );
+ }
- if (setAttributes !== "not_set") {
- return wp.element.createElement(RichText, {
- tagName: attributes.headingTag,
- placeholder: __("Write a Heading"),
- value: attributes.infoBoxTitle,
- className: "uagb-ifb-title",
- onChange: function onChange(value) {
- return setAttributes({ infoBoxTitle: value });
- },
- multiline: false,
- onMerge: props.mergeBlocks,
- unstableOnSplit: props.insertBlocksAfter ? function (before, after) {
- for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- blocks[_key - 2] = arguments[_key];
- }
+ return this;
+};
- setAttributes({ content: before });
- props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })]));
- } : undefined,
- onRemove: function onRemove() {
- return props.onReplace([]);
- }
- });
- } else {
- return wp.element.createElement(RichText.Content, {
- tagName: attributes.headingTag,
- value: attributes.infoBoxTitle,
- className: "uagb-ifb-title"
- });
- }
- }
- }]);
+proto.allOff = function() {
+ delete this._events;
+ delete this._onceEvents;
+};
- return Title;
-}(React.Component);
+return EvEmitter;
-/* harmony default export */ __webpack_exports__["a"] = (Title);
+}));
-/***/ }),
-/* 87 */
-/*!************************************************!*\
- !*** ./src/blocks/info-box/components/Icon.js ***!
- \************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2);
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+/***/ }),
+/* 97 */
+/*!*******************************************!*\
+ !*** ./node_modules/get-size/get-size.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
+ * getSize v2.0.3
+ * measure size of elements
+ * MIT license
+ */
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+/* jshint browser: true, strict: true, undef: true, unused: true */
+/* globals console: false */
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+( function( window, factory ) {
+ /* jshint strict: false */ /* globals define, module */
+ if ( true ) {
+ // AMD
+ !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
+ (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
+ __WEBPACK_AMD_DEFINE_FACTORY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ } else if ( typeof module == 'object' && module.exports ) {
+ // CommonJS
+ module.exports = factory();
+ } else {
+ // browser global
+ window.getSize = factory();
+ }
+})( window, function factory() {
+'use strict';
+// -------------------------- helpers -------------------------- //
-var RichText = wp.blockEditor.RichText;
-var __ = wp.i18n.__;
+// get a number from a string, not a percentage
+function getStyleSize( value ) {
+ var num = parseFloat( value );
+ // not a percent like '100%', and a number
+ var isValid = value.indexOf('%') == -1 && !isNaN( num );
+ return isValid && num;
+}
-var Icon = function (_React$Component) {
- _inherits(Icon, _React$Component);
+function noop() {}
- function Icon() {
- _classCallCheck(this, Icon);
+var logError = typeof console == 'undefined' ? noop :
+ function( message ) {
+ console.error( message );
+ };
- return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments));
- }
+// -------------------------- measurements -------------------------- //
- _createClass(Icon, [{
- key: "render",
- value: function render() {
- var attributes = this.props.attributes;
+var measurements = [
+ 'paddingLeft',
+ 'paddingRight',
+ 'paddingTop',
+ 'paddingBottom',
+ 'marginLeft',
+ 'marginRight',
+ 'marginTop',
+ 'marginBottom',
+ 'borderLeftWidth',
+ 'borderRightWidth',
+ 'borderTopWidth',
+ 'borderBottomWidth'
+];
+var measurementsLength = measurements.length;
- return wp.element.createElement(
- "div",
- { className: "uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap" },
- wp.element.createElement(
- "div",
- { className: "uagb-ifb-icon-wrap" },
- wp.element.createElement(
- "span",
- { className: "uagb-ifb-icon" },
- __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__["a" /* default */](attributes.icon)
- )
- )
- );
+function getZeroSize() {
+ var size = {
+ width: 0,
+ height: 0,
+ innerWidth: 0,
+ innerHeight: 0,
+ outerWidth: 0,
+ outerHeight: 0
+ };
+ for ( var i=0; i < measurementsLength; i++ ) {
+ var measurement = measurements[i];
+ size[ measurement ] = 0;
+ }
+ return size;
+}
+
+// -------------------------- getStyle -------------------------- //
+
+/**
+ * getStyle, get style of element, check for Firefox bug
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=548397
+ */
+function getStyle( elem ) {
+ var style = getComputedStyle( elem );
+ if ( !style ) {
+ logError( 'Style returned ' + style +
+ '. Are you running this code in a hidden iframe on Firefox? ' +
+ 'See https://bit.ly/getsizebug1' );
+ }
+ return style;
+}
+
+// -------------------------- setup -------------------------- //
+
+var isSetup = false;
+
+var isBoxSizeOuter;
+
+/**
+ * setup
+ * check isBoxSizerOuter
+ * do on first getSize() rather than on page load for Firefox bug
+ */
+function setup() {
+ // setup once
+ if ( isSetup ) {
+ return;
+ }
+ isSetup = true;
+
+ // -------------------------- box sizing -------------------------- //
+
+ /**
+ * Chrome & Safari measure the outer-width on style.width on border-box elems
+ * IE11 & Firefox<29 measures the inner-width
+ */
+ var div = document.createElement('div');
+ div.style.width = '200px';
+ div.style.padding = '1px 2px 3px 4px';
+ div.style.borderStyle = 'solid';
+ div.style.borderWidth = '1px 2px 3px 4px';
+ div.style.boxSizing = 'border-box';
+
+ var body = document.body || document.documentElement;
+ body.appendChild( div );
+ var style = getStyle( div );
+ // round value for browser zoom. desandro/masonry#928
+ isBoxSizeOuter = Math.round( getStyleSize( style.width ) ) == 200;
+ getSize.isBoxSizeOuter = isBoxSizeOuter;
+
+ body.removeChild( div );
+}
+
+// -------------------------- getSize -------------------------- //
+
+function getSize( elem ) {
+ setup();
+
+ // use querySeletor if elem is string
+ if ( typeof elem == 'string' ) {
+ elem = document.querySelector( elem );
+ }
+
+ // do not proceed on non-objects
+ if ( !elem || typeof elem != 'object' || !elem.nodeType ) {
+ return;
+ }
+
+ var style = getStyle( elem );
+
+ // if hidden, everything is 0
+ if ( style.display == 'none' ) {
+ return getZeroSize();
+ }
+
+ var size = {};
+ size.width = elem.offsetWidth;
+ size.height = elem.offsetHeight;
+
+ var isBorderBox = size.isBorderBox = style.boxSizing == 'border-box';
+
+ // get all measurements
+ for ( var i=0; i < measurementsLength; i++ ) {
+ var measurement = measurements[i];
+ var value = style[ measurement ];
+ var num = parseFloat( value );
+ // any 'auto', 'medium' value will be 0
+ size[ measurement ] = !isNaN( num ) ? num : 0;
+ }
+
+ var paddingWidth = size.paddingLeft + size.paddingRight;
+ var paddingHeight = size.paddingTop + size.paddingBottom;
+ var marginWidth = size.marginLeft + size.marginRight;
+ var marginHeight = size.marginTop + size.marginBottom;
+ var borderWidth = size.borderLeftWidth + size.borderRightWidth;
+ var borderHeight = size.borderTopWidth + size.borderBottomWidth;
+
+ var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;
+
+ // overwrite width and height if we can get it from style
+ var styleWidth = getStyleSize( style.width );
+ if ( styleWidth !== false ) {
+ size.width = styleWidth +
+ // add padding and border unless it's already including it
+ ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth );
+ }
+
+ var styleHeight = getStyleSize( style.height );
+ if ( styleHeight !== false ) {
+ size.height = styleHeight +
+ // add padding and border unless it's already including it
+ ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight );
+ }
+
+ size.innerWidth = size.width - ( paddingWidth + borderWidth );
+ size.innerHeight = size.height - ( paddingHeight + borderHeight );
+
+ size.outerWidth = size.width + marginWidth;
+ size.outerHeight = size.height + marginHeight;
+
+ return size;
+}
+
+return getSize;
+
+});
+
+
+/***/ }),
+/* 98 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_getPrototype.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var overArg = __webpack_require__(/*! ./_overArg */ 156);
+
+/** Built-in value references. */
+var getPrototype = overArg(Object.getPrototypeOf, Object);
+
+module.exports = getPrototype;
+
+
+/***/ }),
+/* 99 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_getAllKeysIn.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 151),
+ getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ 193),
+ keysIn = __webpack_require__(/*! ./keysIn */ 192);
+
+/**
+ * Creates an array of own and inherited enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+function getAllKeysIn(object) {
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
+}
+
+module.exports = getAllKeysIn;
+
+
+/***/ }),
+/* 100 */
+/*!**************************************************!*\
+ !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
+ \**************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 149);
+
+/**
+ * Creates a clone of `arrayBuffer`.
+ *
+ * @private
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
+ */
+function cloneArrayBuffer(arrayBuffer) {
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
+ return result;
+}
+
+module.exports = cloneArrayBuffer;
+
+
+/***/ }),
+/* 101 */
+/*!***************************************************!*\
+ !*** ./src/components/gradient-settings/index.js ***!
+ \***************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/hexToRgba */ 102);
+
+var __ = wp.i18n.__;
+var __experimentalPanelColorGradientSettings = wp.blockEditor.__experimentalPanelColorGradientSettings;
+
+
+function GradientSettings(_ref) {
+ var attributes = _ref.attributes,
+ setAttributes = _ref.setAttributes;
+ var gradientValue = attributes.gradientValue,
+ gradientAngle = attributes.gradientAngle,
+ gradientColor1 = attributes.gradientColor1,
+ gradientColor2 = attributes.gradientColor2,
+ gradientLocation1 = attributes.gradientLocation1,
+ gradientLocation2 = attributes.gradientLocation2,
+ gradientPosition = attributes.gradientPosition,
+ gradientType = attributes.gradientType;
+
+ //set the gradient value to settings if new gradientvalue is not set
+
+ if ("" === gradientValue) {
+ var rgb_gradientColor1 = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */])(gradientColor1);
+ var rgb_gradientColor2 = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */])(gradientColor2);
+
+ if ("linear" === gradientType) {
+ var value = "linear-gradient(" + gradientAngle + "deg," + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)";
+ setAttributes({ gradientValue: value });
+ } else {
+ var value = "radial-gradient(at " + gradientPosition + ", " + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)";
+ setAttributes({ gradientValue: value });
}
- }]);
+ }
- return Icon;
-}(React.Component);
+ var onGradientChange = function onGradientChange(value) {
+ setAttributes({ gradientValue: value });
+ setAttributes({ gradientAngle: "", gradientColor1: "", gradientColor2: "", gradientLocation1: "", gradientLocation2: "" });
+ };
-/* harmony default export */ __webpack_exports__["a"] = (Icon);
+ return wp.element.createElement(__experimentalPanelColorGradientSettings, {
+ title: __("Color Settings", 'ultimate-addons-for-gutenberg'),
+ initialOpen: true,
+ settings: [{
+ label: __("Overlay Color", 'ultimate-addons-for-gutenberg'),
+ gradientValue: gradientValue,
+ onGradientChange: onGradientChange
+ }]
+ });
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (GradientSettings);
/***/ }),
-/* 88 */
-/*!*******************************************************!*\
- !*** ./src/blocks/info-box/components/InfoBoxDesc.js ***!
- \*******************************************************/
+/* 102 */
+/*!************************************************!*\
+ !*** ./dist/blocks/uagb-controls/hexToRgba.js ***!
+ \************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/**
+ * Get HEX color and return RGBA. Default return RGB color.
+ * @param {string} color - The color string.
+ * @return {boolean} opacity The inline CSS class.
+ */
+
+function hexToRgba(color, opacity) {
+
+ if (undefined == color) {
+ return "";
+ }
+
+ if (undefined == opacity || "" == opacity) {
+ opacity = 100;
+ }
+
+ color = color.replace("#", "");
+
+ opacity = typeof opacity != "undefined" ? opacity / 100 : 1;
+
+ // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
+ var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
+ color = color.replace(shorthandRegex, function (m, r, g, b) {
+ return r + r + g + g + b + b;
+ });
+
+ var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color);
+
+ var parsed_color = result ? {
+ r: parseInt(result[1], 16),
+ g: parseInt(result[2], 16),
+ b: parseInt(result[3], 16)
+ } : null;
+
+ return "rgba(" + parsed_color.r + "," + parsed_color.g + "," + parsed_color.b + "," + opacity + ")";
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (hexToRgba);
+
+/***/ }),
+/* 103 */
+/*!**************************************************!*\
+ !*** ./src/blocks/info-box/components/Prefix.js ***!
+ \**************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -6991,20 +7071,21 @@ var RichText = wp.blockEditor.RichText;
var __ = wp.i18n.__;
var createBlock = wp.blocks.createBlock;
-var InfoBoxDesc = function (_React$Component) {
- _inherits(InfoBoxDesc, _React$Component);
+var Prefix = function (_React$Component) {
+ _inherits(Prefix, _React$Component);
- function InfoBoxDesc() {
- _classCallCheck(this, InfoBoxDesc);
+ function Prefix() {
+ _classCallCheck(this, Prefix);
- return _possibleConstructorReturn(this, (InfoBoxDesc.__proto__ || Object.getPrototypeOf(InfoBoxDesc)).apply(this, arguments));
+ return _possibleConstructorReturn(this, (Prefix.__proto__ || Object.getPrototypeOf(Prefix)).apply(this, arguments));
}
- _createClass(InfoBoxDesc, [{
+ _createClass(Prefix, [{
key: "render",
value: function render() {
//const { attributes, setAttributes } = this.props;
+
var _props = this.props,
attributes = _props.attributes,
setAttributes = _props.setAttributes,
@@ -7013,12 +7094,13 @@ var InfoBoxDesc = function (_React$Component) {
if (setAttributes !== "not_set") {
return wp.element.createElement(RichText, {
- tagName: "p",
- value: attributes.headingDesc,
- placeholder: __("Write a Description"),
- className: "uagb-ifb-desc",
+ tagName: "div",
+ value: attributes.prefixTitle,
+ placeholder: __("Write a Prefix"),
+ className: "uagb-ifb-title-prefix",
+ multiline: false,
onChange: function onChange(value) {
- return setAttributes({ headingDesc: value });
+ setAttributes({ prefixTitle: value });
},
onMerge: props.mergeBlocks,
unstableOnSplit: props.insertBlocksAfter ? function (before, after) {
@@ -7035,86 +7117,110 @@ var InfoBoxDesc = function (_React$Component) {
});
} else {
return wp.element.createElement(RichText.Content, {
- tagName: "p",
- value: attributes.headingDesc,
- className: "uagb-ifb-desc"
+ tagName: "span",
+ value: attributes.prefixTitle,
+ className: "uagb-ifb-title-prefix"
});
}
}
}]);
- return InfoBoxDesc;
+ return Prefix;
}(React.Component);
-/* harmony default export */ __webpack_exports__["a"] = (InfoBoxDesc);
+/* harmony default export */ __webpack_exports__["a"] = (Prefix);
/***/ }),
-/* 89 */
-/*!****************************************!*\
- !*** ./src/blocks/info-box/classes.js ***!
- \****************************************/
+/* 104 */
+/*!*************************************************!*\
+ !*** ./src/blocks/info-box/components/Title.js ***!
+ \*************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/**
- * Returns Dynamic Generated Classes
- */
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-function InfoBoxPositionClasses(attributes) {
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var sourceClass = "uagb-infobox-has-image";
- if (attributes.source_type == "icon") {
- sourceClass = "uagb-infobox-has-icon";
- }
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
- var iconimgStyle_class = "";
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
- iconimgStyle_class += "uagb-infobox" + " ";
- iconimgStyle_class += sourceClass + " ";
- iconimgStyle_class += "uagb-infobox-icon-" + attributes.iconimgPosition + " ";
+var RichText = wp.blockEditor.RichText;
+var createBlock = wp.blocks.createBlock;
+var __ = wp.i18n.__;
- if (attributes.iconimgPosition === "left" || attributes.iconimgPosition === "left-title") {
- iconimgStyle_class += "uagb-infobox-left" + " ";
- }
+var Title = function (_React$Component) {
+ _inherits(Title, _React$Component);
- if (attributes.iconimgPosition === "right" || attributes.iconimgPosition === "right-title") {
- iconimgStyle_class += "uagb-infobox-right" + " ";
- }
+ function Title() {
+ _classCallCheck(this, Title);
- if ((attributes.iconimgPosition === "left" || attributes.iconimgPosition === "right") && attributes.stack !== "none") {
- iconimgStyle_class += "uagb-infobox-stacked-" + attributes.stack + " ";
- if (attributes.iconimgPosition === "right") {
- iconimgStyle_class += "uagb-infobox-reverse-order-" + attributes.stack + " ";
- }
+ return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments));
}
- if (attributes.iconimgPosition !== "above-title" || attributes.iconimgPosition !== "below-title") {
- iconimgStyle_class += "uagb-infobox-image-valign-" + attributes.sourceAlign + " ";
- }
+ _createClass(Title, [{
+ key: "render",
+ value: function render() {
- if (attributes.enableBorder) {
- iconimgStyle_class += "uagb-infobox-enable-border" + " ";
- }
+ //const { attributes, setAttributes , props } = this.props;
+ var _props = this.props,
+ attributes = _props.attributes,
+ setAttributes = _props.setAttributes,
+ props = _props.props;
- iconimgStyle_class += "uagb-infobox-enable-border-radius" + " ";
- return [iconimgStyle_class];
-}
+ if (setAttributes !== "not_set") {
+ return wp.element.createElement(RichText, {
+ tagName: attributes.headingTag,
+ placeholder: __("Write a Heading"),
+ value: attributes.infoBoxTitle,
+ className: "uagb-ifb-title",
+ onChange: function onChange(value) {
+ return setAttributes({ infoBoxTitle: value });
+ },
+ multiline: false,
+ onMerge: props.mergeBlocks,
+ unstableOnSplit: props.insertBlocksAfter ? function (before, after) {
+ for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
+ blocks[_key - 2] = arguments[_key];
+ }
-/* harmony default export */ __webpack_exports__["a"] = (InfoBoxPositionClasses);
+ setAttributes({ content: before });
+ props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })]));
+ } : undefined,
+ onRemove: function onRemove() {
+ return props.onReplace([]);
+ }
+ });
+ } else {
+ return wp.element.createElement(RichText.Content, {
+ tagName: attributes.headingTag,
+ value: attributes.infoBoxTitle,
+ className: "uagb-ifb-title"
+ });
+ }
+ }
+ }]);
+
+ return Title;
+}(React.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (Title);
/***/ }),
-/* 90 */
-/*!************************************************************!*\
- !*** ./src/blocks/info-box/components/InfoBoxSeparator.js ***!
- \************************************************************/
+/* 105 */
+/*!************************************************!*\
+ !*** ./src/blocks/info-box/components/Icon.js ***!
+ \************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -7123,16 +7229,21 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-var InfoBoxSeparator = function (_React$Component) {
- _inherits(InfoBoxSeparator, _React$Component);
- function InfoBoxSeparator() {
- _classCallCheck(this, InfoBoxSeparator);
- return _possibleConstructorReturn(this, (InfoBoxSeparator.__proto__ || Object.getPrototypeOf(InfoBoxSeparator)).apply(this, arguments));
+var RichText = wp.blockEditor.RichText;
+var __ = wp.i18n.__;
+
+var Icon = function (_React$Component) {
+ _inherits(Icon, _React$Component);
+
+ function Icon() {
+ _classCallCheck(this, Icon);
+
+ return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments));
}
- _createClass(InfoBoxSeparator, [{
+ _createClass(Icon, [{
key: "render",
value: function render() {
var attributes = this.props.attributes;
@@ -7140,30 +7251,220 @@ var InfoBoxSeparator = function (_React$Component) {
return wp.element.createElement(
"div",
- { className: "uagb-ifb-separator-parent" },
- wp.element.createElement("div", { className: "uagb-ifb-separator" })
+ { className: "uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap" },
+ wp.element.createElement(
+ "div",
+ { className: "uagb-ifb-icon-wrap" },
+ wp.element.createElement(
+ "span",
+ { className: "uagb-ifb-icon" },
+ Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__["a" /* default */])(attributes.icon)
+ )
+ )
);
}
}]);
- return InfoBoxSeparator;
+ return Icon;
}(React.Component);
-/* harmony default export */ __webpack_exports__["a"] = (InfoBoxSeparator);
+/* harmony default export */ __webpack_exports__["a"] = (Icon);
/***/ }),
-/* 91 */
-/*!********************************************************!*\
- !*** ./src/blocks/info-box/components/CallToAction.js ***!
- \********************************************************/
+/* 106 */
+/*!*******************************************************!*\
+ !*** ./src/blocks/info-box/components/InfoBoxDesc.js ***!
+ \*******************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2);
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var RichText = wp.blockEditor.RichText;
+var __ = wp.i18n.__;
+var createBlock = wp.blocks.createBlock;
+
+var InfoBoxDesc = function (_React$Component) {
+ _inherits(InfoBoxDesc, _React$Component);
+
+ function InfoBoxDesc() {
+ _classCallCheck(this, InfoBoxDesc);
+
+ return _possibleConstructorReturn(this, (InfoBoxDesc.__proto__ || Object.getPrototypeOf(InfoBoxDesc)).apply(this, arguments));
+ }
+
+ _createClass(InfoBoxDesc, [{
+ key: "render",
+ value: function render() {
+
+ //const { attributes, setAttributes } = this.props;
+ var _props = this.props,
+ attributes = _props.attributes,
+ setAttributes = _props.setAttributes,
+ props = _props.props;
+
+
+ if (setAttributes !== "not_set") {
+ return wp.element.createElement(RichText, {
+ tagName: "p",
+ value: attributes.headingDesc,
+ placeholder: __("Write a Description"),
+ className: "uagb-ifb-desc",
+ onChange: function onChange(value) {
+ return setAttributes({ headingDesc: value });
+ },
+ onMerge: props.mergeBlocks,
+ unstableOnSplit: props.insertBlocksAfter ? function (before, after) {
+ for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
+ blocks[_key - 2] = arguments[_key];
+ }
+
+ setAttributes({ content: before });
+ props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })]));
+ } : undefined,
+ onRemove: function onRemove() {
+ return props.onReplace([]);
+ }
+ });
+ } else {
+ return wp.element.createElement(RichText.Content, {
+ tagName: "p",
+ value: attributes.headingDesc,
+ className: "uagb-ifb-desc"
+ });
+ }
+ }
+ }]);
+
+ return InfoBoxDesc;
+}(React.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (InfoBoxDesc);
+
+/***/ }),
+/* 107 */
+/*!****************************************!*\
+ !*** ./src/blocks/info-box/classes.js ***!
+ \****************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/**
+ * Returns Dynamic Generated Classes
+ */
+
+function InfoBoxPositionClasses(attributes) {
+
+ var sourceClass = "uagb-infobox-has-image";
+ if (attributes.source_type == "icon") {
+ sourceClass = "uagb-infobox-has-icon";
+ }
+
+ var iconimgStyle_class = "";
+
+ iconimgStyle_class += "uagb-infobox" + " ";
+ iconimgStyle_class += sourceClass + " ";
+ iconimgStyle_class += "uagb-infobox-icon-" + attributes.iconimgPosition + " ";
+
+ if (attributes.iconimgPosition === "left" || attributes.iconimgPosition === "left-title") {
+ iconimgStyle_class += "uagb-infobox-left" + " ";
+ }
+
+ if (attributes.iconimgPosition === "right" || attributes.iconimgPosition === "right-title") {
+ iconimgStyle_class += "uagb-infobox-right" + " ";
+ }
+
+ if ((attributes.iconimgPosition === "left" || attributes.iconimgPosition === "right") && attributes.stack !== "none") {
+ iconimgStyle_class += "uagb-infobox-stacked-" + attributes.stack + " ";
+ if (attributes.iconimgPosition === "right") {
+ iconimgStyle_class += "uagb-infobox-reverse-order-" + attributes.stack + " ";
+ }
+ }
+
+ if (attributes.iconimgPosition !== "above-title" || attributes.iconimgPosition !== "below-title") {
+ iconimgStyle_class += "uagb-infobox-image-valign-" + attributes.sourceAlign + " ";
+ }
+
+ if (attributes.enableBorder) {
+ iconimgStyle_class += "uagb-infobox-enable-border" + " ";
+ }
+
+ iconimgStyle_class += "uagb-infobox-enable-border-radius" + " ";
+
+ return [iconimgStyle_class];
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (InfoBoxPositionClasses);
+
+/***/ }),
+/* 108 */
+/*!************************************************************!*\
+ !*** ./src/blocks/info-box/components/InfoBoxSeparator.js ***!
+ \************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var InfoBoxSeparator = function (_React$Component) {
+ _inherits(InfoBoxSeparator, _React$Component);
+
+ function InfoBoxSeparator() {
+ _classCallCheck(this, InfoBoxSeparator);
+
+ return _possibleConstructorReturn(this, (InfoBoxSeparator.__proto__ || Object.getPrototypeOf(InfoBoxSeparator)).apply(this, arguments));
+ }
+
+ _createClass(InfoBoxSeparator, [{
+ key: "render",
+ value: function render() {
+ var attributes = this.props.attributes;
+
+
+ return wp.element.createElement(
+ "div",
+ { className: "uagb-ifb-separator-parent" },
+ wp.element.createElement("div", { className: "uagb-ifb-separator" })
+ );
+ }
+ }]);
+
+ return InfoBoxSeparator;
+}(React.Component);
+
+/* harmony default export */ __webpack_exports__["a"] = (InfoBoxSeparator);
+
+/***/ }),
+/* 109 */
+/*!********************************************************!*\
+ !*** ./src/blocks/info-box/components/CallToAction.js ***!
+ \********************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -7212,8 +7513,8 @@ var InfoBoxCta = function (_React$Component) {
if (attributes.ctaIcon !== "") {
cta_icon_output = wp.element.createElement(
"span",
- { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-ifb-" + attributes.ctaType + "-icon", "uagb-ifb-align-icon-" + attributes.ctaIconPosition) },
- __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */](attributes.ctaIcon)
+ { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-ifb-" + attributes.ctaType + "-icon", "uagb-ifb-align-icon-" + attributes.ctaIconPosition) },
+ Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */])(attributes.ctaIcon)
);
}
@@ -7235,7 +7536,7 @@ var InfoBoxCta = function (_React$Component) {
),
attributes.ctaType === "button" && wp.element.createElement(
"div",
- { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) },
+ { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) },
wp.element.createElement(
"a",
{ className: ctaBtnClass, target: target, rel: rel },
@@ -7269,7 +7570,7 @@ var InfoBoxCta = function (_React$Component) {
),
attributes.ctaType === "button" && wp.element.createElement(
"div",
- { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) },
+ { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) },
wp.element.createElement(
"a",
{ href: attributes.ctaLink, className: ctaBtnClass, target: target, rel: rel },
@@ -7296,7 +7597,7 @@ var InfoBoxCta = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (InfoBoxCta);
/***/ }),
-/* 92 */
+/* 110 */
/*!*********************************************************!*\
!*** ./src/blocks/testimonial/components/AuthorName.js ***!
\*********************************************************/
@@ -7350,7 +7651,7 @@ var AuthorName = function (_React$Component) {
return wp.element.createElement(RichText, {
tagName: "div",
value: author_name,
- placeholder: __("Author Name"),
+ placeholder: __("Author Name", 'ultimate-addons-for-gutenberg'),
className: "uagb-tm__author-name",
onChange: function onChange(value) {
var new_content = { "description": data_copy[index_value]["description"], "name": value, "company": data_copy[index_value]["company"], "image": data_copy[index_value]["image"] };
@@ -7386,7 +7687,7 @@ var AuthorName = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (AuthorName);
/***/ }),
-/* 93 */
+/* 111 */
/*!******************************************************!*\
!*** ./src/blocks/testimonial/components/Company.js ***!
\******************************************************/
@@ -7447,7 +7748,7 @@ var Company = function (_React$Component) {
setAttributes({ "test_block": data_copy });
},
multiline: false,
- placeholder: __("Company Name"),
+ placeholder: __("Company Name", 'ultimate-addons-for-gutenberg'),
onMerge: props.mergeBlocks,
unstableOnSplit: props.insertBlocksAfter ? function (before, after) {
for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
@@ -7477,7 +7778,7 @@ var Company = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Company);
/***/ }),
-/* 94 */
+/* 112 */
/*!**********************************************************!*\
!*** ./src/blocks/testimonial/components/Description.js ***!
\**********************************************************/
@@ -7531,7 +7832,7 @@ var Description = function (_React$Component) {
return wp.element.createElement(RichText, {
tagName: "div",
value: description,
- placeholder: __("Write Description"),
+ placeholder: __("Write Description", 'ultimate-addons-for-gutenberg'),
className: "uagb-tm__desc",
onChange: function onChange(value) {
@@ -7568,7 +7869,7 @@ var Description = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Description);
/***/ }),
-/* 95 */
+/* 113 */
/*!*******************************************!*\
!*** ./src/blocks/testimonial/classes.js ***!
\*******************************************/
@@ -7605,7 +7906,7 @@ function PositionClasses(attributes) {
/* harmony default export */ __webpack_exports__["a"] = (PositionClasses);
/***/ }),
-/* 96 */
+/* 114 */
/*!******************************************!*\
!*** ./src/blocks/social-share/links.js ***!
\******************************************/
@@ -7632,7 +7933,7 @@ var links = {
/* harmony default export */ __webpack_exports__["a"] = (links);
/***/ }),
-/* 97 */
+/* 115 */
/*!*********************************************************!*\
!*** ./src/blocks/price-list-child/components/Title.js ***!
\*********************************************************/
@@ -7709,7 +8010,7 @@ var Title = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Title);
/***/ }),
-/* 98 */
+/* 116 */
/*!*********************************************************!*\
!*** ./src/blocks/price-list-child/components/Price.js ***!
\*********************************************************/
@@ -7785,7 +8086,7 @@ var Price = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Price);
/***/ }),
-/* 99 */
+/* 117 */
/*!***************************************************************!*\
!*** ./src/blocks/price-list-child/components/Description.js ***!
\***************************************************************/
@@ -7861,7 +8162,7 @@ var Description = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Description);
/***/ }),
-/* 100 */
+/* 118 */
/*!*****************************************************************!*\
!*** ./src/blocks/price-list-child/components/RestMenuImage.js ***!
\*****************************************************************/
@@ -7958,7 +8259,17 @@ var RestMenuImage = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (RestMenuImage);
/***/ }),
-/* 101 */
+/* 119 */
+/*!****************************************!*\
+ !*** ./src/blocks/timeline/style.scss ***!
+ \****************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
+
+// removed by extract-text-webpack-plugin
+
+/***/ }),
+/* 120 */
/*!*******************************************************!*\
!*** ./src/blocks/call-to-action/components/Title.js ***!
\*******************************************************/
@@ -8036,7 +8347,7 @@ var Title = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Title);
/***/ }),
-/* 102 */
+/* 121 */
/*!*************************************************************!*\
!*** ./src/blocks/call-to-action/components/Description.js ***!
\*************************************************************/
@@ -8113,7 +8424,7 @@ var Description = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Description);
/***/ }),
-/* 103 */
+/* 122 */
/*!**********************************************!*\
!*** ./src/blocks/call-to-action/classes.js ***!
\**********************************************/
@@ -8155,7 +8466,7 @@ function CtaPositionClasses(attributes) {
/* harmony default export */ __webpack_exports__["a"] = (CtaPositionClasses);
/***/ }),
-/* 104 */
+/* 123 */
/*!*****************************************************!*\
!*** ./src/blocks/call-to-action/components/CTA.js ***!
\*****************************************************/
@@ -8210,8 +8521,8 @@ var CTA = function (_React$Component) {
if (attributes.ctaIcon !== "") {
cta_icon_output = wp.element.createElement(
"span",
- { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-cta-" + attributes.ctaType + "-icon", "uagb-cta__align-button-" + attributes.ctaIconPosition, "uagb-cta-with-svg") },
- __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */](attributes.ctaIcon)
+ { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-cta-" + attributes.ctaType + "-icon", "uagb-cta__align-button-" + attributes.ctaIconPosition, "uagb-cta-with-svg") },
+ Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */])(attributes.ctaIcon)
);
}
@@ -8224,12 +8535,12 @@ var CTA = function (_React$Component) {
{ className: "uagb-cta__link-wrapper uagb-cta__block-link-style" },
(attributes.ctaType === "button" || attributes.ctaType === "text") && wp.element.createElement(
"div",
- { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-cta__button-wrapper", attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button' : null) },
+ { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-cta__button-wrapper", attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button' : null) },
wp.element.createElement(
"a",
{
href: link,
- className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a('uagb-cta__button-link-wrapper', !attributes.inheritFromTheme ? 'uagb-cta__block-link' : null, !attributes.inheritFromTheme ? "uagb-cta-typeof-" + attributes.ctaType : null, attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button__link' : null),
+ className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()('uagb-cta__button-link-wrapper', !attributes.inheritFromTheme ? 'uagb-cta__block-link' : null, !attributes.inheritFromTheme ? "uagb-cta-typeof-" + attributes.ctaType : null, attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button__link' : null),
target: target,
rel: rel
},
@@ -8256,7 +8567,7 @@ var CTA = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (CTA);
/***/ }),
-/* 105 */
+/* 124 */
/*!**************************************!*\
!*** ./src/blocks/columns/shapes.js ***!
\**************************************/
@@ -8291,7 +8602,7 @@ var shapes = {
/* harmony default export */ __webpack_exports__["a"] = (shapes);
/***/ }),
-/* 106 */
+/* 125 */
/*!************************************************************!*\
!*** ./src/blocks/blockquote/components/TweetButtonCTA.js ***!
\************************************************************/
@@ -8365,7 +8676,7 @@ var TweetButtonCTA = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (TweetButtonCTA);
/***/ }),
-/* 107 */
+/* 126 */
/*!*********************************************************!*\
!*** ./src/blocks/blockquote/components/Description.js ***!
\*********************************************************/
@@ -8408,7 +8719,7 @@ var Description = function (_React$Component) {
return wp.element.createElement(RichText, {
tagName: "div",
value: attributes.descriptionText,
- placeholder: __("Write a Quote"),
+ placeholder: __("Write a Quote", 'ultimate-addons-for-gutenberg'),
className: "uagb-blockquote__content",
onChange: function onChange(value) {
return setAttributes({ descriptionText: value });
@@ -8442,7 +8753,7 @@ var Description = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (Description);
/***/ }),
-/* 108 */
+/* 127 */
/*!********************************************************!*\
!*** ./src/blocks/blockquote/components/AuthorText.js ***!
\********************************************************/
@@ -8485,7 +8796,7 @@ var AuthorText = function (_React$Component) {
return wp.element.createElement(RichText, {
tagName: "div",
value: attributes.author,
- placeholder: __("Author"),
+ placeholder: __("Author", 'ultimate-addons-for-gutenberg'),
className: "uagb-blockquote__author",
onChange: function onChange(value) {
return setAttributes({ author: value });
@@ -8519,7 +8830,7 @@ var AuthorText = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (AuthorText);
/***/ }),
-/* 109 */
+/* 128 */
/*!*********************************************************!*\
!*** ./src/blocks/blockquote/components/AuthorImage.js ***!
\*********************************************************/
@@ -8588,7 +8899,259 @@ var AuthorImage = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (AuthorImage);
/***/ }),
-/* 110 */
+/* 129 */
+/*!***************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_to-primitive.js ***!
+ \***************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+// 7.1.1 ToPrimitive(input [, PreferredType])
+var isObject = __webpack_require__(/*! ./_is-object */ 37);
+// instead of the ES6 spec version, we didn't implement @@toPrimitive case
+// and the second argument - flag - preferred type is a string
+module.exports = function (it, S) {
+ if (!isObject(it)) return it;
+ var fn, val;
+ if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
+ if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
+ if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
+ throw TypeError("Can't convert object to primitive value");
+};
+
+
+/***/ }),
+/* 130 */
+/*!**********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_defined.js ***!
+ \**********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+// 7.2.1 RequireObjectCoercible(argument)
+module.exports = function (it) {
+ if (it == undefined) throw TypeError("Can't call method on " + it);
+ return it;
+};
+
+
+/***/ }),
+/* 131 */
+/*!*************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_to-integer.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+// 7.1.4 ToInteger
+var ceil = Math.ceil;
+var floor = Math.floor;
+module.exports = function (it) {
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
+};
+
+
+/***/ }),
+/* 132 */
+/*!*************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_shared-key.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var shared = __webpack_require__(/*! ./_shared */ 133)('keys');
+var uid = __webpack_require__(/*! ./_uid */ 70);
+module.exports = function (key) {
+ return shared[key] || (shared[key] = uid(key));
+};
+
+
+/***/ }),
+/* 133 */
+/*!*********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_shared.js ***!
+ \*********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var core = __webpack_require__(/*! ./_core */ 16);
+var global = __webpack_require__(/*! ./_global */ 20);
+var SHARED = '__core-js_shared__';
+var store = global[SHARED] || (global[SHARED] = {});
+
+(module.exports = function (key, value) {
+ return store[key] || (store[key] = value !== undefined ? value : {});
+})('versions', []).push({
+ version: core.version,
+ mode: __webpack_require__(/*! ./_library */ 69) ? 'pure' : 'global',
+ copyright: 'ยฉ 2018 Denis Pushkarev (zloirock.ru)'
+});
+
+
+/***/ }),
+/* 134 */
+/*!****************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_enum-bug-keys.js ***!
+ \****************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+// IE 8- don't enum bug keys
+module.exports = (
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
+).split(',');
+
+
+/***/ }),
+/* 135 */
+/*!**************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-gops.js ***!
+ \**************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+exports.f = Object.getOwnPropertySymbols;
+
+
+/***/ }),
+/* 136 */
+/*!************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_to-object.js ***!
+ \************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+// 7.1.13 ToObject(argument)
+var defined = __webpack_require__(/*! ./_defined */ 130);
+module.exports = function (it) {
+ return Object(defined(it));
+};
+
+
+/***/ }),
+/* 137 */
+/*!************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_iterators.js ***!
+ \************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+module.exports = {};
+
+
+/***/ }),
+/* 138 */
+/*!****************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-create.js ***!
+ \****************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
+var anObject = __webpack_require__(/*! ./_an-object */ 43);
+var dPs = __webpack_require__(/*! ./_object-dps */ 772);
+var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ 134);
+var IE_PROTO = __webpack_require__(/*! ./_shared-key */ 132)('IE_PROTO');
+var Empty = function () { /* empty */ };
+var PROTOTYPE = 'prototype';
+
+// Create object with fake `null` prototype: use iframe Object with cleared prototype
+var createDict = function () {
+ // Thrash, waste and sodomy: IE GC bug
+ var iframe = __webpack_require__(/*! ./_dom-create */ 238)('iframe');
+ var i = enumBugKeys.length;
+ var lt = '<';
+ var gt = '>';
+ var iframeDocument;
+ iframe.style.display = 'none';
+ __webpack_require__(/*! ./_html */ 773).appendChild(iframe);
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
+ // createDict = iframe.contentWindow.Object;
+ // html.removeChild(iframe);
+ iframeDocument = iframe.contentWindow.document;
+ iframeDocument.open();
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
+ iframeDocument.close();
+ createDict = iframeDocument.F;
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
+ return createDict();
+};
+
+module.exports = Object.create || function create(O, Properties) {
+ var result;
+ if (O !== null) {
+ Empty[PROTOTYPE] = anObject(O);
+ result = new Empty();
+ Empty[PROTOTYPE] = null;
+ // add "__proto__" for Object.getPrototypeOf polyfill
+ result[IE_PROTO] = O;
+ } else result = createDict();
+ return Properties === undefined ? result : dPs(result, Properties);
+};
+
+
+/***/ }),
+/* 139 */
+/*!********************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_set-to-string-tag.js ***!
+ \********************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var def = __webpack_require__(/*! ./_object-dp */ 24).f;
+var has = __webpack_require__(/*! ./_has */ 26);
+var TAG = __webpack_require__(/*! ./_wks */ 40)('toStringTag');
+
+module.exports = function (it, tag, stat) {
+ if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
+};
+
+
+/***/ }),
+/* 140 */
+/*!**********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_wks-ext.js ***!
+ \**********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports.f = __webpack_require__(/*! ./_wks */ 40);
+
+
+/***/ }),
+/* 141 */
+/*!*************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_wks-define.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var global = __webpack_require__(/*! ./_global */ 20);
+var core = __webpack_require__(/*! ./_core */ 16);
+var LIBRARY = __webpack_require__(/*! ./_library */ 69);
+var wksExt = __webpack_require__(/*! ./_wks-ext */ 140);
+var defineProperty = __webpack_require__(/*! ./_object-dp */ 24).f;
+module.exports = function (name) {
+ var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
+ if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
+};
+
+
+/***/ }),
+/* 142 */
/*!***************************************************!*\
!*** ./src/blocks/advanced-heading/attributes.js ***!
\***************************************************/
@@ -8745,19 +9308,19 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 111 */
+/* 143 */
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseIteratee.js ***!
\**********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseMatches = __webpack_require__(/*! ./_baseMatches */ 192),
- baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ 243),
- identity = __webpack_require__(/*! ./identity */ 47),
+var baseMatches = __webpack_require__(/*! ./_baseMatches */ 254),
+ baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ 305),
+ identity = __webpack_require__(/*! ./identity */ 57),
isArray = __webpack_require__(/*! ./isArray */ 14),
- property = __webpack_require__(/*! ./property */ 250);
+ property = __webpack_require__(/*! ./property */ 312);
/**
* The base implementation of `_.iteratee`.
@@ -8787,15 +9350,15 @@ module.exports = baseIteratee;
/***/ }),
-/* 112 */
+/* 144 */
/*!*******************************************!*\
!*** ./node_modules/lodash/isFunction.js ***!
\*******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20),
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22),
isObject = __webpack_require__(/*! ./isObject */ 13);
/** `Object#toString` result references. */
@@ -8835,11 +9398,11 @@ module.exports = isFunction;
/***/ }),
-/* 113 */
+/* 145 */
/*!********************************************!*\
!*** ./node_modules/lodash/_freeGlobal.js ***!
\********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -8848,14 +9411,14 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object
module.exports = freeGlobal;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 54)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 74)))
/***/ }),
-/* 114 */
+/* 146 */
/*!******************************************!*\
!*** ./node_modules/lodash/_toSource.js ***!
\******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -8888,16 +9451,16 @@ module.exports = toSource;
/***/ }),
-/* 115 */
+/* 147 */
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseIsEqual.js ***!
\*********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ 222),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17);
+var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ 284),
+ isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18);
/**
* The base implementation of `_.isEqual` which supports partial comparisons
@@ -8927,17 +9490,17 @@ module.exports = baseIsEqual;
/***/ }),
-/* 116 */
+/* 148 */
/*!*********************************************!*\
!*** ./node_modules/lodash/_equalArrays.js ***!
\*********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var SetCache = __webpack_require__(/*! ./_SetCache */ 223),
- arraySome = __webpack_require__(/*! ./_arraySome */ 226),
- cacheHas = __webpack_require__(/*! ./_cacheHas */ 227);
+var SetCache = __webpack_require__(/*! ./_SetCache */ 285),
+ arraySome = __webpack_require__(/*! ./_arraySome */ 288),
+ cacheHas = __webpack_require__(/*! ./_cacheHas */ 289);
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
@@ -9021,11 +9584,11 @@ module.exports = equalArrays;
/***/ }),
-/* 117 */
+/* 149 */
/*!********************************************!*\
!*** ./node_modules/lodash/_Uint8Array.js ***!
\********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -9038,17 +9601,17 @@ module.exports = Uint8Array;
/***/ }),
-/* 118 */
+/* 150 */
/*!********************************************!*\
!*** ./node_modules/lodash/_getAllKeys.js ***!
\********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 119),
- getSymbols = __webpack_require__(/*! ./_getSymbols */ 57),
- keys = __webpack_require__(/*! ./keys */ 23);
+var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 151),
+ getSymbols = __webpack_require__(/*! ./_getSymbols */ 77),
+ keys = __webpack_require__(/*! ./keys */ 28);
/**
* Creates an array of own enumerable property names and symbols of `object`.
@@ -9065,15 +9628,15 @@ module.exports = getAllKeys;
/***/ }),
-/* 119 */
+/* 151 */
/*!************************************************!*\
!*** ./node_modules/lodash/_baseGetAllKeys.js ***!
\************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var arrayPush = __webpack_require__(/*! ./_arrayPush */ 56),
+var arrayPush = __webpack_require__(/*! ./_arrayPush */ 76),
isArray = __webpack_require__(/*! ./isArray */ 14);
/**
@@ -9096,11 +9659,11 @@ module.exports = baseGetAllKeys;
/***/ }),
-/* 120 */
+/* 152 */
/*!******************************************!*\
!*** ./node_modules/lodash/stubArray.js ***!
\******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -9130,20 +9693,20 @@ module.exports = stubArray;
/***/ }),
-/* 121 */
+/* 153 */
/*!***********************************************!*\
!*** ./node_modules/lodash/_arrayLikeKeys.js ***!
\***********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseTimes = __webpack_require__(/*! ./_baseTimes */ 122),
- isArguments = __webpack_require__(/*! ./isArguments */ 58),
+var baseTimes = __webpack_require__(/*! ./_baseTimes */ 154),
+ isArguments = __webpack_require__(/*! ./isArguments */ 78),
isArray = __webpack_require__(/*! ./isArray */ 14),
- isBuffer = __webpack_require__(/*! ./isBuffer */ 59),
- isIndex = __webpack_require__(/*! ./_isIndex */ 40),
- isTypedArray = __webpack_require__(/*! ./isTypedArray */ 123);
+ isBuffer = __webpack_require__(/*! ./isBuffer */ 79),
+ isIndex = __webpack_require__(/*! ./_isIndex */ 50),
+ isTypedArray = __webpack_require__(/*! ./isTypedArray */ 155);
/** Used for built-in method references. */
var objectProto = Object.prototype;
@@ -9190,11 +9753,11 @@ module.exports = arrayLikeKeys;
/***/ }),
-/* 122 */
+/* 154 */
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseTimes.js ***!
\*******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -9221,17 +9784,17 @@ module.exports = baseTimes;
/***/ }),
-/* 123 */
+/* 155 */
/*!*********************************************!*\
!*** ./node_modules/lodash/isTypedArray.js ***!
\*********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ 235),
- baseUnary = __webpack_require__(/*! ./_baseUnary */ 41),
- nodeUtil = __webpack_require__(/*! ./_nodeUtil */ 42);
+var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ 297),
+ baseUnary = __webpack_require__(/*! ./_baseUnary */ 51),
+ nodeUtil = __webpack_require__(/*! ./_nodeUtil */ 52);
/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
@@ -9259,11 +9822,11 @@ module.exports = isTypedArray;
/***/ }),
-/* 124 */
+/* 156 */
/*!*****************************************!*\
!*** ./node_modules/lodash/_overArg.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -9285,11 +9848,11 @@ module.exports = overArg;
/***/ }),
-/* 125 */
+/* 157 */
/*!****************************************************!*\
!*** ./node_modules/lodash/_isStrictComparable.js ***!
\****************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -9311,11 +9874,11 @@ module.exports = isStrictComparable;
/***/ }),
-/* 126 */
+/* 158 */
/*!*********************************************************!*\
!*** ./node_modules/lodash/_matchesStrictComparable.js ***!
\*********************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -9342,15 +9905,15 @@ module.exports = matchesStrictComparable;
/***/ }),
-/* 127 */
+/* 159 */
/*!************************************!*\
!*** ./node_modules/lodash/get.js ***!
\************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseGet = __webpack_require__(/*! ./_baseGet */ 45);
+var baseGet = __webpack_require__(/*! ./_baseGet */ 55);
/**
* Gets the value at `path` of `object`. If the resolved value is
@@ -9386,15 +9949,15 @@ module.exports = get;
/***/ }),
-/* 128 */
+/* 160 */
/*!*****************************************!*\
!*** ./node_modules/lodash/toString.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseToString = __webpack_require__(/*! ./_baseToString */ 129);
+var baseToString = __webpack_require__(/*! ./_baseToString */ 161);
/**
* Converts `value` to a string. An empty string is returned for `null`
@@ -9425,18 +9988,18 @@ module.exports = toString;
/***/ }),
-/* 129 */
+/* 161 */
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseToString.js ***!
\**********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var Symbol = __webpack_require__(/*! ./_Symbol */ 22),
- arrayMap = __webpack_require__(/*! ./_arrayMap */ 34),
+var Symbol = __webpack_require__(/*! ./_Symbol */ 27),
+ arrayMap = __webpack_require__(/*! ./_arrayMap */ 44),
isArray = __webpack_require__(/*! ./isArray */ 14),
- isSymbol = __webpack_require__(/*! ./isSymbol */ 46);
+ isSymbol = __webpack_require__(/*! ./isSymbol */ 56);
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
@@ -9473,11 +10036,11 @@ module.exports = baseToString;
/***/ }),
-/* 130 */
+/* 162 */
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseProperty.js ***!
\**********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -9498,7 +10061,96 @@ module.exports = baseProperty;
/***/ }),
-/* 131 */
+/* 163 */
+/*!*****************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
+ \*****************************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ 164);
+
+function _unsupportedIterableToArray(o, minLen) {
+ if (!o) return;
+ if (typeof o === "string") return arrayLikeToArray(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 arrayLikeToArray(o, minLen);
+}
+
+module.exports = _unsupportedIterableToArray;
+
+/***/ }),
+/* 164 */
+/*!*******************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
+ \*******************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+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;
+}
+
+module.exports = _arrayLikeToArray;
+
+/***/ }),
+/* 165 */
+/*!*************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
+ \*************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
+function _typeof(obj) {
+ "@babel/helpers - typeof";
+
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
+ _typeof = function _typeof(obj) {
+ return typeof obj;
+ };
+ } else {
+ _typeof = function _typeof(obj) {
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
+ };
+ }
+
+ return _typeof(obj);
+}
+
+/***/ }),
+/* 166 */
+/*!****************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
+ \****************************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized;
+function _assertThisInitialized(self) {
+ if (self === void 0) {
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ }
+
+ return self;
+}
+
+/***/ }),
+/* 167 */
/*!************************************************************************************!*\
!*** ./node_modules/react-select/node_modules/memoize-one/dist/memoize-one.esm.js ***!
\************************************************************************************/
@@ -9546,233 +10198,7 @@ function memoizeOne(resultFn, isEqual) {
/***/ }),
-/* 132 */
-/*!***************************************************************!*\
- !*** ./node_modules/@emotion/cache/dist/cache.browser.esm.js ***!
- \***************************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 133);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(/*! @emotion/stylis */ 263);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(/*! @emotion/weak-memoize */ 264);
-
-
-
-
-// https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
-// inlined to avoid umd wrapper and peerDep warnings/installing stylis
-// since we use stylis after closure compiler
-var delimiter = '/*|*/';
-var needle = delimiter + '}';
-
-function toSheet(block) {
- if (block) {
- Sheet.current.insert(block + '}');
- }
-}
-
-var Sheet = {
- current: null
-};
-var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
- switch (context) {
- // property
- case 1:
- {
- switch (content.charCodeAt(0)) {
- case 64:
- {
- // @import
- Sheet.current.insert(content + ';');
- return '';
- }
- // charcode for l
-
- case 108:
- {
- // charcode for b
- // this ignores label
- if (content.charCodeAt(2) === 98) {
- return '';
- }
- }
- }
-
- break;
- }
- // selector
-
- case 2:
- {
- if (ns === 0) return content + delimiter;
- break;
- }
- // at-rule
-
- case 3:
- {
- switch (ns) {
- // @font-face, @page
- case 102:
- case 112:
- {
- Sheet.current.insert(selectors[0] + content);
- return '';
- }
-
- default:
- {
- return content + (at === 0 ? delimiter : '');
- }
- }
- }
-
- case -2:
- {
- content.split(needle).forEach(toSheet);
- }
- }
-};
-
-var createCache = function createCache(options) {
- if (options === undefined) options = {};
- var key = options.key || 'css';
- var stylisOptions;
-
- if (options.prefix !== undefined) {
- stylisOptions = {
- prefix: options.prefix
- };
- }
-
- var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
-
- if (process.env.NODE_ENV !== 'production') {
- // $FlowFixMe
- if (/[^a-z-]/.test(key)) {
- throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
- }
- }
-
- var inserted = {}; // $FlowFixMe
-
- var container;
-
- {
- container = options.container || document.head;
- var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
- Array.prototype.forEach.call(nodes, function (node) {
- var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
-
- attrib.split(' ').forEach(function (id) {
- inserted[id] = true;
- });
-
- if (node.parentNode !== container) {
- container.appendChild(node);
- }
- });
- }
-
- var _insert;
-
- {
- stylis.use(options.stylisPlugins)(ruleSheet);
-
- _insert = function insert(selector, serialized, sheet, shouldCache) {
- var name = serialized.name;
- Sheet.current = sheet;
-
- if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
- var map = serialized.map;
- Sheet.current = {
- insert: function insert(rule) {
- sheet.insert(rule + map);
- }
- };
- }
-
- stylis(selector, serialized.styles);
-
- if (shouldCache) {
- cache.inserted[name] = true;
- }
- };
- }
-
- if (process.env.NODE_ENV !== 'production') {
- // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
- var commentStart = /\/\*/g;
- var commentEnd = /\*\//g;
- stylis.use(function (context, content) {
- switch (context) {
- case -1:
- {
- while (commentStart.test(content)) {
- commentEnd.lastIndex = commentStart.lastIndex;
-
- if (commentEnd.test(content)) {
- commentStart.lastIndex = commentEnd.lastIndex;
- continue;
- }
-
- throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
- }
-
- commentStart.lastIndex = 0;
- break;
- }
- }
- });
- stylis.use(function (context, content, selectors) {
- switch (context) {
- case -1:
- {
- var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
- var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
-
- if (unsafePseudoClasses && cache.compat !== true) {
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
- var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
- var ignore = ignoreRegExp.test(content);
-
- if (unsafePseudoClass && !ignore) {
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
- }
- });
- }
-
- break;
- }
- }
- });
- }
-
- var cache = {
- key: key,
- sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
- key: key,
- container: container,
- nonce: options.nonce,
- speedy: options.speedy
- }),
- nonce: options.nonce,
- inserted: inserted,
- registered: {},
- insert: _insert
- };
- return cache;
-};
-
-/* harmony default export */ __webpack_exports__["a"] = (createCache);
-
-/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3)))
-
-/***/ }),
-/* 133 */
+/* 168 */
/*!***************************************************************!*\
!*** ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js ***!
\***************************************************************/
@@ -9918,373 +10344,230 @@ function () {
-/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6)))
/***/ }),
-/* 134 */
-/*!***********************************************************************!*\
- !*** ./node_modules/@emotion/serialize/dist/serialize.browser.esm.js ***!
- \***********************************************************************/
-/*! exports provided: serializeStyles */
-/*! exports used: serializeStyles */
+/* 169 */
+/*!*********************************************************************************!*\
+ !*** ./node_modules/@emotion/core/dist/emotion-element-57a3a7a3.browser.esm.js ***!
+ \*********************************************************************************/
+/*! exports provided: C, E, T, c, h, w */
+/*! exports used: C, E, T, c, h, w */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(/*! @emotion/hash */ 266);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(/*! @emotion/unitless */ 267);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(/*! @emotion/memoize */ 268);
+/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Emotion; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ThemeContext; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createEmotionProps; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return hasOwnProperty; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return withEmotionCache; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ 341);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(/*! react */ 5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 86);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(/*! @emotion/utils */ 170);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 87);
-var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
-var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
-var hyphenateRegex = /[A-Z]|^ms/g;
-var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
-var isCustomProperty = function isCustomProperty(property) {
- return property.charCodeAt(1) === 45;
-};
-var isProcessableValue = function isProcessableValue(value) {
- return value != null && typeof value !== 'boolean';
-};
+var hasOwnProperty = Object.prototype.hasOwnProperty;
-var processStyleName = __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */](function (styleName) {
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
-});
+var EmotionCacheContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case
+// because this module is primarily intended for the browser and node
+// but it's also required in react native and similar environments sometimes
+// and we could have a special build just for that
+// but this is much easier and the native packages
+// might use a different theme context in the future anyway
+typeof HTMLElement !== 'undefined' ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */])() : null);
+var ThemeContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])({});
+var CacheProvider = EmotionCacheContext.Provider;
-var processStyleValue = function processStyleValue(key, value) {
- switch (key) {
- case 'animation':
- case 'animationName':
- {
- if (typeof value === 'string') {
- return value.replace(animationRegex, function (match, p1, p2) {
- cursor = {
- name: p1,
- styles: p2,
- next: cursor
- };
- return p1;
- });
- }
- }
- }
+var withEmotionCache = function withEmotionCache(func) {
+ var render = function render(props, ref) {
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(EmotionCacheContext.Consumer, null, function (cache) {
+ return func(props, cache, ref);
+ });
+ }; // $FlowFixMe
- if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
- return value + 'px';
- }
- return value;
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"])(render);
};
-if (process.env.NODE_ENV !== 'production') {
- var contentValuePattern = /(attr|calc|counters?|url)\(/;
- var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
- var oldProcessStyleValue = processStyleValue;
- var msPattern = /^-ms-/;
- var hyphenPattern = /-(.)/g;
- var hyphenatedCache = {};
-
- processStyleValue = function processStyleValue(key, value) {
- if (key === 'content') {
- if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
- console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
- }
- }
-
- var processed = oldProcessStyleValue(key, value);
-
- if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
- hyphenatedCache[key] = true;
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
- return _char.toUpperCase();
- }) + "?");
- }
-
- return processed;
- };
-}
+// thus we only need to replace what is a valid character for JS, but not for CSS
-var shouldWarnAboutInterpolatingClassNameFromCss = true;
+var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
+ return identifier.replace(/\$/g, '-');
+};
-function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
- if (interpolation == null) {
- return '';
+var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
+var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
+var createEmotionProps = function createEmotionProps(type, props) {
+ if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
+ props.css.indexOf(':') !== -1) {
+ throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`");
}
- if (interpolation.__emotion_styles !== undefined) {
- if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
- }
+ var newProps = {};
- return interpolation;
+ for (var key in props) {
+ if (hasOwnProperty.call(props, key)) {
+ newProps[key] = props[key];
+ }
}
- switch (typeof interpolation) {
- case 'boolean':
- {
- return '';
- }
-
- case 'object':
- {
- if (interpolation.anim === 1) {
- cursor = {
- name: interpolation.name,
- styles: interpolation.styles,
- next: cursor
- };
- return interpolation.name;
- }
-
- if (interpolation.styles !== undefined) {
- var next = interpolation.next;
-
- if (next !== undefined) {
- // not the most efficient thing ever but this is a pretty rare case
- // and there will be very few iterations of this generally
- while (next !== undefined) {
- cursor = {
- name: next.name,
- styles: next.styles,
- next: cursor
- };
- next = next.next;
- }
- }
-
- var styles = interpolation.styles + ";";
-
- if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
- styles += interpolation.map;
- }
-
- return styles;
- }
+ newProps[typePropName] = type; // TODO: check if this still works with all of those different JSX functions
- return createStringFromObject(mergedProps, registered, interpolation);
- }
+ if (process.env.NODE_ENV !== 'production') {
+ var error = new Error();
- case 'function':
- {
- if (mergedProps !== undefined) {
- var previousCursor = cursor;
- var result = interpolation(mergedProps);
- cursor = previousCursor;
- return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
- } else if (process.env.NODE_ENV !== 'production') {
- console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
- }
+ if (error.stack) {
+ // chrome
+ var match = error.stack.match(/at (?:Object\.|Module\.|)(?:jsx|createEmotionProps).*\n\s+at (?:Object\.|)([A-Z][A-Za-z$]+) /);
- break;
+ if (!match) {
+ // safari and firefox
+ match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/);
}
- case 'string':
- if (process.env.NODE_ENV !== 'production') {
- var matched = [];
- var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
- var fakeVarName = "animation" + matched.length;
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
- return "${" + fakeVarName + "}";
- });
-
- if (matched.length) {
- console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
- }
+ if (match) {
+ newProps[labelPropName] = sanitizeIdentifier(match[1]);
}
+ }
+ }
- break;
- } // finalize string values (regular strings and functions interpolated into css calls)
+ return newProps;
+};
+var render = function render(cache, props, theme, ref) {
+ var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works
+ // not passing the registered cache to serializeStyles because it would
+ // make certain babel optimisations not possible
- if (registered == null) {
- return interpolation;
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
+ cssProp = cache.registered[cssProp];
}
- var cached = registered[interpolation];
+ var type = props[typePropName];
+ var registeredStyles = [cssProp];
+ var className = '';
- if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
- console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');
- shouldWarnAboutInterpolatingClassNameFromCss = false;
+ if (typeof props.className === 'string') {
+ className = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(cache.registered, registeredStyles, props.className);
+ } else if (props.className != null) {
+ className = props.className + " ";
}
- return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
-}
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(registeredStyles);
-function createStringFromObject(mergedProps, registered, obj) {
- var string = '';
+ if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
+ var labelFromStack = props[labelPropName];
- if (Array.isArray(obj)) {
- for (var i = 0; i < obj.length; i++) {
- string += handleInterpolation(mergedProps, registered, obj[i], false);
+ if (labelFromStack) {
+ serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([serialized, 'label:' + labelFromStack + ';']);
}
- } else {
- for (var _key in obj) {
- var value = obj[_key];
-
- if (typeof value !== 'object') {
- if (registered != null && registered[value] !== undefined) {
- string += _key + "{" + registered[value] + "}";
- } else if (isProcessableValue(value)) {
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
- }
- } else {
- if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
- }
-
- if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
- for (var _i = 0; _i < value.length; _i++) {
- if (isProcessableValue(value[_i])) {
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
- }
- }
- } else {
- var interpolated = handleInterpolation(mergedProps, registered, value, false);
-
- switch (_key) {
- case 'animation':
- case 'animationName':
- {
- string += processStyleName(_key) + ":" + interpolated + ";";
- break;
- }
+ }
- default:
- {
- if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
- }
+ var rules = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(cache, serialized, typeof type === 'string');
+ className += cache.key + "-" + serialized.name;
+ var newProps = {};
- string += _key + "{" + interpolated + "}";
- }
- }
- }
- }
+ for (var key in props) {
+ if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
+ newProps[key] = props[key];
}
}
- return string;
-}
-
-var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
-var sourceMapPattern;
+ newProps.ref = ref;
+ newProps.className = className;
+ var ele = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(type, newProps);
-if (process.env.NODE_ENV !== 'production') {
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
-} // this is the cursor for keyframes
-// keyframes are stored on the SerializedStyles object as a linked list
+ return ele;
+}; // eslint-disable-next-line no-undef
-var cursor;
-var serializeStyles = function serializeStyles(args, registered, mergedProps) {
- if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
- return args[0];
+var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
+ if (typeof props.css === 'function') {
+ return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
+ return render(cache, props, theme, ref);
+ });
}
- var stringMode = true;
- var styles = '';
- cursor = undefined;
- var strings = args[0];
+ return render(cache, props, null, ref);
+});
- if (strings == null || strings.raw === undefined) {
- stringMode = false;
- styles += handleInterpolation(mergedProps, registered, strings, false);
- } else {
- if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
- }
+if (process.env.NODE_ENV !== 'production') {
+ Emotion.displayName = 'EmotionCssPropInternal';
+}
- styles += strings[0];
- } // we start at 1 since we've already handled the first arg
- for (var i = 1; i < args.length; i++) {
- styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6)))
- if (stringMode) {
- if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
- }
+/***/ }),
+/* 170 */
+/*!***************************************************************!*\
+ !*** ./node_modules/@emotion/utils/dist/utils.browser.esm.js ***!
+ \***************************************************************/
+/*! exports provided: getRegisteredStyles, insertStyles */
+/*! exports used: getRegisteredStyles, insertStyles */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- styles += strings[i];
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; });
+var isBrowser = "object" !== 'undefined';
+function getRegisteredStyles(registered, registeredStyles, classNames) {
+ var rawClassName = '';
+ classNames.split(' ').forEach(function (className) {
+ if (registered[className] !== undefined) {
+ registeredStyles.push(registered[className]);
+ } else {
+ rawClassName += className + " ";
}
- }
-
- var sourceMap;
-
- if (process.env.NODE_ENV !== 'production') {
- styles = styles.replace(sourceMapPattern, function (match) {
- sourceMap = match;
- return '';
- });
- } // using a global regex with .exec is stateful so lastIndex has to be reset each time
-
-
- labelPattern.lastIndex = 0;
- var identifierName = '';
- var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
+ });
+ return rawClassName;
+}
+var insertStyles = function insertStyles(cache, serialized, isStringTag) {
+ var className = cache.key + "-" + serialized.name;
- while ((match = labelPattern.exec(styles)) !== null) {
- identifierName += '-' + // $FlowFixMe we know it's not null
- match[1];
+ if ( // we only need to add the styles to the registered cache if the
+ // class name could be used further down
+ // the tree but if it's a string tag, we know it won't
+ // so we don't have to add it to registered cache.
+ // this improves memory usage since we can avoid storing the whole style string
+ (isStringTag === false || // we need to always store it if we're in compat mode and
+ // in node since emotion-server relies on whether a style is in
+ // the registered cache to know whether a style is global or not
+ // also, note that this check will be dead code eliminated in the browser
+ isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
+ cache.registered[className] = serialized.styles;
}
- var name = __WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */](styles) + identifierName;
+ if (cache.inserted[serialized.name] === undefined) {
+ var current = serialized;
- if (process.env.NODE_ENV !== 'production') {
- // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
- return {
- name: name,
- styles: styles,
- map: sourceMap,
- next: cursor,
- toString: function toString() {
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
- }
- };
- }
+ do {
+ var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
- return {
- name: name,
- styles: styles,
- next: cursor
- };
+ current = current.next;
+ } while (current !== undefined);
+ }
};
-/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3)))
-
-/***/ }),
-/* 135 */
-/*!****************************************************************!*\
- !*** ./node_modules/react-dom/node_modules/scheduler/index.js ***!
- \****************************************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {
-
-if (process.env.NODE_ENV === 'production') {
- module.exports = __webpack_require__(/*! ./cjs/scheduler.production.min.js */ 270);
-} else {
- module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ 271);
-}
-
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../../process/browser.js */ 3)))
/***/ }),
-/* 136 */
-/*!****************************************!*\
- !*** ./node_modules/react-is/index.js ***!
- \****************************************/
-/*! no static exports found */
+/* 171 */
+/*!*****************************************!*\
+ !*** ./node_modules/scheduler/index.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -10292,61 +10575,75 @@ if (process.env.NODE_ENV === 'production') {
/* WEBPACK VAR INJECTION */(function(process) {
if (process.env.NODE_ENV === 'production') {
- module.exports = __webpack_require__(/*! ./cjs/react-is.production.min.js */ 276);
+ module.exports = __webpack_require__(/*! ./cjs/scheduler.production.min.js */ 346);
} else {
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ 277);
+ module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ 347);
}
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
/***/ }),
-/* 137 */
+/* 172 */
/*!**********************************************************************!*\
- !*** ./node_modules/react-select/dist/index-4322c0ed.browser.esm.js ***!
+ !*** ./node_modules/react-select/dist/index-4b37608a.browser.esm.js ***!
\**********************************************************************/
-/*! exports provided: M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y */
-/*! exports used: M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x */
+/*! exports provided: A, B, C, D, E, F, G, M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z */
+/*! exports used: A, B, C, D, E, M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MenuPlacer; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return containerCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return css; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return clearIndicatorCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dropdownIndicatorCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return groupHeadingCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return indicatorSeparatorCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return groupCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return inputCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return indicatorsContainerCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return loadingMessageCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return menuListCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return loadingIndicatorCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return menuCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return menuPortalCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return multiValueCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return multiValueLabelCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return multiValueRemoveCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return noOptionsMessageCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return optionCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return placeholderCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return css$1; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return valueContainerCSS; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return defaultComponents; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return exportedEqual; });
-/* unused harmony export y */
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_core__ = __webpack_require__(/*! @emotion/core */ 65);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(/*! react-dom */ 18);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(/*! prop-types */ 15);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(/*! ./utils-06b0d5a4.browser.esm.js */ 66);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 138);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize__);
-
+/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return exportedEqual; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cleanValue; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return scrollIntoView; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return classNames; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return noop; });
+/* unused harmony export F */
+/* unused harmony export G */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return MenuPlacer; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return containerCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return css; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return clearIndicatorCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return dropdownIndicatorCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return groupHeadingCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return indicatorSeparatorCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return groupCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return inputCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return indicatorsContainerCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return loadingMessageCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return menuListCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return loadingIndicatorCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return menuCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return menuPortalCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return multiValueCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return multiValueLabelCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return multiValueRemoveCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return noOptionsMessageCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return optionCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return placeholderCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return css$1; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return valueContainerCSS; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isTouchCapable; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isMobileDevice; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return defaultComponents; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isDocumentElement; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 88);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 89);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 173);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ 58);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ 59);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ 60);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ 61);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ 62);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(/*! react */ 5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__emotion_core__ = __webpack_require__(/*! @emotion/core */ 85);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(/*! react-dom */ 33);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ 165);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__ = __webpack_require__(/*! @babel/runtime/helpers/esm/taggedTemplateLiteral */ 354);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 174);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize__);
@@ -10354,91 +10651,300 @@ if (process.env.NODE_ENV === 'production') {
-function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
-function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
-function getMenuPlacement(_ref) {
- var maxHeight = _ref.maxHeight,
- menuEl = _ref.menuEl,
- minHeight = _ref.minHeight,
- placement = _ref.placement,
- shouldScroll = _ref.shouldScroll,
- isFixedPosition = _ref.isFixedPosition,
- theme = _ref.theme;
- var spacing = theme.spacing;
- var scrollParent = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["a"](menuEl);
- var defaultState = {
- placement: 'bottom',
- maxHeight: maxHeight
- }; // something went wrong, return default state
- if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
- // the menu is rendered
- var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
- scrollHeight = _scrollParent$getBoun.height;
- var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
- menuBottom = _menuEl$getBoundingCl.bottom,
- menuHeight = _menuEl$getBoundingCl.height,
- menuTop = _menuEl$getBoundingCl.top;
- var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
- containerTop = _menuEl$offsetParent$.top;
- var viewHeight = window.innerHeight;
- var scrollTop = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["b"](scrollParent);
- var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
- var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
- var viewSpaceAbove = containerTop - marginTop;
- var viewSpaceBelow = viewHeight - menuTop;
- var scrollSpaceAbove = viewSpaceAbove + scrollTop;
- var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
- var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
- var scrollUp = scrollTop + menuTop - marginTop;
- var scrollDuration = 160;
- switch (placement) {
- case 'auto':
- case 'bottom':
- // 1: the menu will fit, do nothing
- if (viewSpaceBelow >= menuHeight) {
- return {
- placement: 'bottom',
- maxHeight: maxHeight
- };
- } // 2: the menu will fit, if scrolled
- if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
- if (shouldScroll) {
- __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollDown, scrollDuration);
- }
+// ==============================
+// NO OP
+// ==============================
+var noop = function noop() {};
+// Class Name Prefixer
+// ==============================
- return {
- placement: 'bottom',
- maxHeight: maxHeight
- };
- } // 3: the menu will fit, if constrained
+/**
+ String representation of component state for styling with class names.
+ Expects an array of strings OR a string/object pair:
+ - className(['comp', 'comp-arg', 'comp-arg-2'])
+ @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
+ - className('comp', { some: true, state: false })
+ @returns 'react-select__comp react-select__comp--some'
+*/
- if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
- if (shouldScroll) {
- __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollDown, scrollDuration);
- } // we want to provide as much of the menu as possible to the user,
- // so give them whatever is available below rather than the minHeight.
+function applyPrefixToName(prefix, name) {
+ if (!name) {
+ return prefix;
+ } else if (name[0] === '-') {
+ return prefix + name;
+ } else {
+ return prefix + '__' + name;
+ }
+}
+function classNames(prefix, state, className) {
+ var arr = [className];
- var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
- return {
- placement: 'bottom',
- maxHeight: constrainedHeight
- };
- } // 4. Forked beviour when there isn't enough space below
- // AUTO: flip the menu, render above
+ if (state && prefix) {
+ for (var key in state) {
+ if (state.hasOwnProperty(key) && state[key]) {
+ arr.push("".concat(applyPrefixToName(prefix, key)));
+ }
+ }
+ }
+ return arr.filter(function (i) {
+ return i;
+ }).map(function (i) {
+ return String(i).trim();
+ }).join(' ');
+} // ==============================
+// Clean Value
+// ==============================
- if (placement === 'auto' || isFixedPosition) {
+var cleanValue = function cleanValue(value) {
+ if (Array.isArray(value)) return value.filter(Boolean);
+ if (Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(value) === 'object' && value !== null) return [value];
+ return [];
+}; // ==============================
+// Handle Input Change
+// ==============================
+
+function handleInputChange(inputValue, actionMeta, onInputChange) {
+ if (onInputChange) {
+ var newValue = onInputChange(inputValue, actionMeta);
+ if (typeof newValue === 'string') return newValue;
+ }
+
+ return inputValue;
+} // ==============================
+// Scroll Helpers
+// ==============================
+
+function isDocumentElement(el) {
+ return [document.documentElement, document.body, window].indexOf(el) > -1;
+} // Normalized Scroll Top
+// ------------------------------
+
+function getScrollTop(el) {
+ if (isDocumentElement(el)) {
+ return window.pageYOffset;
+ }
+
+ return el.scrollTop;
+}
+function scrollTo(el, top) {
+ // with a scroll distance, we perform scroll on the element
+ if (isDocumentElement(el)) {
+ window.scrollTo(0, top);
+ return;
+ }
+
+ el.scrollTop = top;
+} // Get Scroll Parent
+// ------------------------------
+
+function getScrollParent(element) {
+ var style = getComputedStyle(element);
+ var excludeStaticParent = style.position === 'absolute';
+ var overflowRx = /(auto|scroll)/;
+ var docEl = document.documentElement; // suck it, flow...
+
+ if (style.position === 'fixed') return docEl;
+
+ for (var parent = element; parent = parent.parentElement;) {
+ style = getComputedStyle(parent);
+
+ if (excludeStaticParent && style.position === 'static') {
+ continue;
+ }
+
+ if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
+ return parent;
+ }
+ }
+
+ return docEl;
+} // Animated Scroll To
+// ------------------------------
+
+/**
+ @param t: time (elapsed)
+ @param b: initial value
+ @param c: amount of change
+ @param d: duration
+*/
+
+function easeOutCubic(t, b, c, d) {
+ return c * ((t = t / d - 1) * t * t + 1) + b;
+}
+
+function animatedScrollTo(element, to) {
+ var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;
+ var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;
+ var start = getScrollTop(element);
+ var change = to - start;
+ var increment = 10;
+ var currentTime = 0;
+
+ function animateScroll() {
+ currentTime += increment;
+ var val = easeOutCubic(currentTime, start, change, duration);
+ scrollTo(element, val);
+
+ if (currentTime < duration) {
+ window.requestAnimationFrame(animateScroll);
+ } else {
+ callback(element);
+ }
+ }
+
+ animateScroll();
+} // Scroll Into View
+// ------------------------------
+
+function scrollIntoView(menuEl, focusedEl) {
+ var menuRect = menuEl.getBoundingClientRect();
+ var focusedRect = focusedEl.getBoundingClientRect();
+ var overScroll = focusedEl.offsetHeight / 3;
+
+ if (focusedRect.bottom + overScroll > menuRect.bottom) {
+ scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
+ } else if (focusedRect.top - overScroll < menuRect.top) {
+ scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
+ }
+} // ==============================
+// Get bounding client object
+// ==============================
+// cannot get keys using array notation with DOMRect
+
+function getBoundingClientObj(element) {
+ var rect = element.getBoundingClientRect();
+ return {
+ bottom: rect.bottom,
+ height: rect.height,
+ left: rect.left,
+ right: rect.right,
+ top: rect.top,
+ width: rect.width
+ };
+}
+// Touch Capability Detector
+// ==============================
+
+function isTouchCapable() {
+ try {
+ document.createEvent('TouchEvent');
+ return true;
+ } catch (e) {
+ return false;
+ }
+} // ==============================
+// Mobile Device Detector
+// ==============================
+
+function isMobileDevice() {
+ try {
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
+ } catch (e) {
+ return false;
+ }
+}
+
+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(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_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; }
+
+function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
+
+function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
+function getMenuPlacement(_ref) {
+ var maxHeight = _ref.maxHeight,
+ menuEl = _ref.menuEl,
+ minHeight = _ref.minHeight,
+ placement = _ref.placement,
+ shouldScroll = _ref.shouldScroll,
+ isFixedPosition = _ref.isFixedPosition,
+ theme = _ref.theme;
+ var spacing = theme.spacing;
+ var scrollParent = getScrollParent(menuEl);
+ var defaultState = {
+ placement: 'bottom',
+ maxHeight: maxHeight
+ }; // something went wrong, return default state
+
+ if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
+ // the menu is rendered
+
+ var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
+ scrollHeight = _scrollParent$getBoun.height;
+
+ var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
+ menuBottom = _menuEl$getBoundingCl.bottom,
+ menuHeight = _menuEl$getBoundingCl.height,
+ menuTop = _menuEl$getBoundingCl.top;
+
+ var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
+ containerTop = _menuEl$offsetParent$.top;
+
+ var viewHeight = window.innerHeight;
+ var scrollTop = getScrollTop(scrollParent);
+ var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
+ var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
+ var viewSpaceAbove = containerTop - marginTop;
+ var viewSpaceBelow = viewHeight - menuTop;
+ var scrollSpaceAbove = viewSpaceAbove + scrollTop;
+ var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
+ var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
+ var scrollUp = scrollTop + menuTop - marginTop;
+ var scrollDuration = 160;
+
+ switch (placement) {
+ case 'auto':
+ case 'bottom':
+ // 1: the menu will fit, do nothing
+ if (viewSpaceBelow >= menuHeight) {
+ return {
+ placement: 'bottom',
+ maxHeight: maxHeight
+ };
+ } // 2: the menu will fit, if scrolled
+
+
+ if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
+ if (shouldScroll) {
+ animatedScrollTo(scrollParent, scrollDown, scrollDuration);
+ }
+
+ return {
+ placement: 'bottom',
+ maxHeight: maxHeight
+ };
+ } // 3: the menu will fit, if constrained
+
+
+ if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
+ if (shouldScroll) {
+ animatedScrollTo(scrollParent, scrollDown, scrollDuration);
+ } // we want to provide as much of the menu as possible to the user,
+ // so give them whatever is available below rather than the minHeight.
+
+
+ var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
+ return {
+ placement: 'bottom',
+ maxHeight: constrainedHeight
+ };
+ } // 4. Forked beviour when there isn't enough space below
+ // AUTO: flip the menu, render above
+
+
+ if (placement === 'auto' || isFixedPosition) {
// may need to be constrained after flipping
var _constrainedHeight = maxHeight;
var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
@@ -10455,7 +10961,7 @@ function getMenuPlacement(_ref) {
if (placement === 'bottom') {
- __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["l" /* s */](scrollParent, scrollDown);
+ scrollTo(scrollParent, scrollDown);
return {
placement: 'bottom',
maxHeight: maxHeight
@@ -10476,7 +10982,7 @@ function getMenuPlacement(_ref) {
if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
if (shouldScroll) {
- __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollUp, scrollDuration);
+ animatedScrollTo(scrollParent, scrollUp, scrollDuration);
}
return {
@@ -10495,7 +11001,7 @@ function getMenuPlacement(_ref) {
}
if (shouldScroll) {
- __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollUp, scrollDuration);
+ animatedScrollTo(scrollParent, scrollUp, scrollDuration);
}
return {
@@ -10513,7 +11019,7 @@ function getMenuPlacement(_ref) {
};
default:
- throw new Error("Invalid placement provided \"" + placement + "\".");
+ throw new Error("Invalid placement provided \"".concat(placement, "\"."));
} // fulfil contract with flow: implicit return value of undefined
@@ -10543,22 +11049,27 @@ var menuCSS = function menuCSS(_ref2) {
colors = _ref2$theme.colors;
return _ref3 = {
label: 'menu'
- }, _ref3[alignToControl(placement)] = '100%', _ref3.backgroundColor = colors.neutral0, _ref3.borderRadius = borderRadius, _ref3.boxShadow = '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)', _ref3.marginBottom = spacing.menuGutter, _ref3.marginTop = spacing.menuGutter, _ref3.position = 'absolute', _ref3.width = '100%', _ref3.zIndex = 1, _ref3;
-}; // NOTE: internal only
+ }, Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, alignToControl(placement), '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "backgroundColor", colors.neutral0), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "borderRadius", borderRadius), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginBottom", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginTop", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "position", 'absolute'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "width", '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "zIndex", 1), _ref3;
+};
+var PortalPlacementContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_8_react__["createContext"])({
+ getPortalPlacement: null
+}); // NOTE: internal only
-var MenuPlacer =
-/*#__PURE__*/
-function (_Component) {
- _inheritsLoose(MenuPlacer, _Component);
+var MenuPlacer = /*#__PURE__*/function (_Component) {
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPlacer, _Component);
+
+ var _super = _createSuper(MenuPlacer);
function MenuPlacer() {
var _this;
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPlacer);
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
- _this = _Component.call.apply(_Component, [this].concat(args)) || this;
+ _this = _super.call.apply(_super, [this].concat(args));
_this.state = {
maxHeight: _this.props.maxMenuHeight,
placement: null
@@ -10572,7 +11083,6 @@ function (_Component) {
menuPosition = _this$props.menuPosition,
menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
theme = _this$props.theme;
- var getPortalPlacement = _this.context.getPortalPlacement;
if (!ref) return; // DO NOT scroll if position is fixed
var isFixedPosition = menuPosition === 'fixed';
@@ -10586,6 +11096,7 @@ function (_Component) {
isFixedPosition: isFixedPosition,
theme: theme
});
+ var getPortalPlacement = _this.context.getPortalPlacement;
if (getPortalPlacement) getPortalPlacement(state);
_this.setState(state);
@@ -10594,7 +11105,7 @@ function (_Component) {
_this.getUpdatedProps = function () {
var menuPlacement = _this.props.menuPlacement;
var placement = _this.state.placement || coercePlacement(menuPlacement);
- return _extends({}, _this.props, {
+ return _objectSpread(_objectSpread({}, _this.props), {}, {
placement: placement,
maxHeight: _this.state.maxHeight
});
@@ -10603,21 +11114,20 @@ function (_Component) {
return _this;
}
- var _proto = MenuPlacer.prototype;
-
- _proto.render = function render() {
- var children = this.props.children;
- return children({
- ref: this.getPlacement,
- placerProps: this.getUpdatedProps()
- });
- };
+ Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPlacer, [{
+ key: "render",
+ value: function render() {
+ var children = this.props.children;
+ return children({
+ ref: this.getPlacement,
+ placerProps: this.getUpdatedProps()
+ });
+ }
+ }]);
return MenuPlacer;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
-MenuPlacer.contextTypes = {
- getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func
-};
+}(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
+MenuPlacer.contextType = PortalPlacementContext;
var Menu = function Menu(props) {
var children = props.children,
@@ -10626,7 +11136,7 @@ var Menu = function Menu(props) {
getStyles = props.getStyles,
innerRef = props.innerRef,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: getStyles('menu', props),
className: cx({
menu: true
@@ -10658,7 +11168,7 @@ var MenuList = function MenuList(props) {
getStyles = props.getStyles,
isMulti = props.isMulti,
innerRef = props.innerRef;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
css: getStyles('menuList', props),
className: cx({
'menu-list': true,
@@ -10676,7 +11186,7 @@ var noticeCSS = function noticeCSS(_ref5) {
colors = _ref5$theme.colors;
return {
color: colors.neutral40,
- padding: baseUnit * 2 + "px " + baseUnit * 3 + "px",
+ padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px"),
textAlign: 'center'
};
};
@@ -10689,7 +11199,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
cx = props.cx,
getStyles = props.getStyles,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: getStyles('noOptionsMessage', props),
className: cx({
'menu-notice': true,
@@ -10706,7 +11216,7 @@ var LoadingMessage = function LoadingMessage(props) {
cx = props.cx,
getStyles = props.getStyles,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: getStyles('loadingMessage', props),
className: cx({
'menu-notice': true,
@@ -10732,19 +11242,21 @@ var menuPortalCSS = function menuPortalCSS(_ref6) {
zIndex: 1
};
};
-var MenuPortal =
-/*#__PURE__*/
-function (_Component2) {
- _inheritsLoose(MenuPortal, _Component2);
+var MenuPortal = /*#__PURE__*/function (_Component2) {
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPortal, _Component2);
+
+ var _super2 = _createSuper(MenuPortal);
function MenuPortal() {
var _this2;
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPortal);
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
- _this2 = _Component2.call.apply(_Component2, [this].concat(args)) || this;
+ _this2 = _super2.call.apply(_super2, [this].concat(args));
_this2.state = {
placement: null
};
@@ -10763,50 +11275,45 @@ function (_Component2) {
return _this2;
}
- var _proto2 = MenuPortal.prototype;
+ Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPortal, [{
+ key: "render",
+ value: function render() {
+ var _this$props2 = this.props,
+ appendTo = _this$props2.appendTo,
+ children = _this$props2.children,
+ controlElement = _this$props2.controlElement,
+ menuPlacement = _this$props2.menuPlacement,
+ position = _this$props2.menuPosition,
+ getStyles = _this$props2.getStyles;
+ var isFixed = position === 'fixed'; // bail early if required elements aren't present
+
+ if (!appendTo && !isFixed || !controlElement) {
+ return null;
+ }
- _proto2.getChildContext = function getChildContext() {
- return {
- getPortalPlacement: this.getPortalPlacement
- };
- } // callback for occassions where the menu must "flip"
- ;
+ var placement = this.state.placement || coercePlacement(menuPlacement);
+ var rect = getBoundingClientObj(controlElement);
+ var scrollDistance = isFixed ? 0 : window.pageYOffset;
+ var offset = rect[placement] + scrollDistance;
+ var state = {
+ offset: offset,
+ position: position,
+ rect: rect
+ }; // same wrapper element whether fixed or portalled
- _proto2.render = function render() {
- var _this$props2 = this.props,
- appendTo = _this$props2.appendTo,
- children = _this$props2.children,
- controlElement = _this$props2.controlElement,
- menuPlacement = _this$props2.menuPlacement,
- position = _this$props2.menuPosition,
- getStyles = _this$props2.getStyles;
- var isFixed = position === 'fixed'; // bail early if required elements aren't present
-
- if (!appendTo && !isFixed || !controlElement) {
- return null;
+ var menuWrapper = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
+ css: getStyles('menuPortal', state)
+ }, children);
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(PortalPlacementContext.Provider, {
+ value: {
+ getPortalPlacement: this.getPortalPlacement
+ }
+ }, appendTo ? /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_10_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper);
}
-
- var placement = this.state.placement || coercePlacement(menuPlacement);
- var rect = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["g"](controlElement);
- var scrollDistance = isFixed ? 0 : window.pageYOffset;
- var offset = rect[placement] + scrollDistance;
- var state = {
- offset: offset,
- position: position,
- rect: rect
- }; // same wrapper element whether fixed or portalled
-
- var menuWrapper = __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", {
- css: getStyles('menuPortal', state)
- }, children);
- return appendTo ? __WEBPACK_IMPORTED_MODULE_2_react_dom__["createPortal"](menuWrapper, appendTo) : menuWrapper;
- };
+ }]);
return MenuPortal;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
-MenuPortal.childContextTypes = {
- getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func
-};
+}(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
var isArray = Array.isArray;
var keyList = Object.keys;
@@ -10816,7 +11323,7 @@ function equal(a, b) {
// fast-deep-equal index.js 2.0.1
if (a === b) return true;
- if (a && b && typeof a == 'object' && typeof b == 'object') {
+ if (a && b && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(a) == 'object' && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(b) == 'object') {
var arrA = isArray(a),
arrB = isArray(b),
i,
@@ -10898,7 +11405,6 @@ function exportedEqual(a, b) {
}
}
-function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
var containerCSS = function containerCSS(_ref) {
var isDisabled = _ref.isDisabled,
isRtl = _ref.isRtl;
@@ -10918,7 +11424,7 @@ var SelectContainer = function SelectContainer(props) {
innerProps = props.innerProps,
isDisabled = props.isDisabled,
isRtl = props.isRtl;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$1({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: getStyles('container', props),
className: cx({
'--is-disabled': isDisabled,
@@ -10936,7 +11442,7 @@ var valueContainerCSS = function valueContainerCSS(_ref2) {
display: 'flex',
flex: 1,
flexWrap: 'wrap',
- padding: spacing.baseUnit / 2 + "px " + spacing.baseUnit * 2 + "px",
+ padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px"),
WebkitOverflowScrolling: 'touch',
position: 'relative',
overflow: 'hidden'
@@ -10949,7 +11455,7 @@ var ValueContainer = function ValueContainer(props) {
isMulti = props.isMulti,
getStyles = props.getStyles,
hasValue = props.hasValue;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
css: getStyles('valueContainer', props),
className: cx({
'value-container': true,
@@ -10974,7 +11480,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
className = props.className,
cx = props.cx,
getStyles = props.getStyles;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
css: getStyles('indicatorsContainer', props),
className: cx({
indicators: true
@@ -10983,7 +11489,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
};
function _templateObject() {
- var data = _taggedTemplateLiteralLoose(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);
+ var data = Object(__WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__["a" /* default */])(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);
_templateObject = function _templateObject() {
return data;
@@ -10992,11 +11498,7 @@ function _templateObject() {
return data;
}
-function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
-
-function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
-
-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; }
+function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
var _ref2 = process.env.NODE_ENV === "production" ? {
name: "19bqh2r",
@@ -11004,7 +11506,8 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
} : {
name: "19bqh2r",
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */"
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */",
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
// ==============================
@@ -11012,9 +11515,9 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
// ==============================
var Svg = function Svg(_ref) {
var size = _ref.size,
- props = _objectWithoutPropertiesLoose(_ref, ["size"]);
+ props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["size"]);
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("svg", _extends$2({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("svg", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
height: size,
width: size,
viewBox: "0 0 20 20",
@@ -11025,16 +11528,16 @@ var Svg = function Svg(_ref) {
};
var CrossIcon = function CrossIcon(props) {
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Svg, _extends$2({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
size: 20
- }, props), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("path", {
+ }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
}));
};
var DownChevron = function DownChevron(props) {
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Svg, _extends$2({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
size: 20
- }, props), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("path", {
+ }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
}));
}; // ==============================
@@ -11065,13 +11568,13 @@ var DropdownIndicator = function DropdownIndicator(props) {
cx = props.cx,
getStyles = props.getStyles,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$2({}, innerProps, {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
css: getStyles('dropdownIndicator', props),
className: cx({
indicator: true,
'dropdown-indicator': true
}, className)
- }), children || __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](DownChevron, null));
+ }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(DownChevron, null));
};
var clearIndicatorCSS = baseCSS;
var ClearIndicator = function ClearIndicator(props) {
@@ -11080,13 +11583,13 @@ var ClearIndicator = function ClearIndicator(props) {
cx = props.cx,
getStyles = props.getStyles,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$2({}, innerProps, {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
css: getStyles('clearIndicator', props),
className: cx({
indicator: true,
'clear-indicator': true
}, className)
- }), children || __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](CrossIcon, null));
+ }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, null));
}; // ==============================
// Separator
// ==============================
@@ -11110,7 +11613,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
cx = props.cx,
getStyles = props.getStyles,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("span", _extends$2({}, innerProps, {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
css: getStyles('indicatorSeparator', props),
className: cx({
'indicator-separator': true
@@ -11120,7 +11623,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
// Loading
// ==============================
-var loadingDotAnimations = __WEBPACK_IMPORTED_MODULE_1__emotion_core__["d" /* keyframes */](_templateObject());
+var loadingDotAnimations = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["d" /* keyframes */])(_templateObject());
var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
var isFocused = _ref5.isFocused,
size = _ref5.size,
@@ -11145,11 +11648,9 @@ var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
var LoadingDot = function LoadingDot(_ref6) {
var delay = _ref6.delay,
offset = _ref6.offset;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("span", {
- css:
- /*#__PURE__*/
- __WEBPACK_IMPORTED_MODULE_5__emotion_css__["a" /* default */]({
- animation: loadingDotAnimations + " 1s ease-in-out " + delay + "ms infinite;",
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", {
+ css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_12__emotion_css__["a" /* default */])({
+ animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
backgroundColor: 'currentColor',
borderRadius: '1em',
display: 'inline-block',
@@ -11167,19 +11668,19 @@ var LoadingIndicator = function LoadingIndicator(props) {
getStyles = props.getStyles,
innerProps = props.innerProps,
isRtl = props.isRtl;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$2({}, innerProps, {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
css: getStyles('loadingIndicator', props),
className: cx({
indicator: true,
'loading-indicator': true
}, className)
- }), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](LoadingDot, {
+ }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
delay: 0,
offset: isRtl
- }), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](LoadingDot, {
+ }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
delay: 160,
offset: true
- }), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](LoadingDot, {
+ }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
delay: 320,
offset: !isRtl
}));
@@ -11188,7 +11689,6 @@ LoadingIndicator.defaultProps = {
size: 4
};
-function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
var css = function css(_ref) {
var isDisabled = _ref.isDisabled,
isFocused = _ref.isFocused,
@@ -11204,7 +11704,7 @@ var css = function css(_ref) {
borderRadius: borderRadius,
borderStyle: 'solid',
borderWidth: 1,
- boxShadow: isFocused ? "0 0 0 1px " + colors.primary : null,
+ boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : null,
cursor: 'default',
display: 'flex',
flexWrap: 'wrap',
@@ -11229,7 +11729,7 @@ var Control = function Control(props) {
innerRef = props.innerRef,
innerProps = props.innerProps,
menuIsOpen = props.menuIsOpen;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$3({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
ref: innerRef,
css: getStyles('control', props),
className: cx({
@@ -11241,9 +11741,9 @@ var Control = function Control(props) {
}, innerProps), children);
};
-function _objectWithoutPropertiesLoose$1(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; }
+function ownKeys$1(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 _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
+function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var groupCSS = function groupCSS(_ref) {
var spacing = _ref.theme.spacing;
return {
@@ -11262,17 +11762,17 @@ var Group = function Group(props) {
label = props.label,
theme = props.theme,
selectProps = props.selectProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
css: getStyles('group', props),
className: cx({
group: true
}, className)
- }, __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Heading, _extends$4({}, headingProps, {
+ }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Heading, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, headingProps, {
selectProps: selectProps,
theme: theme,
getStyles: getStyles,
cx: cx
- }), label), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", null, children));
+ }), label), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", null, children));
};
var groupHeadingCSS = function groupHeadingCSS(_ref2) {
@@ -11296,10 +11796,10 @@ var GroupHeading = function GroupHeading(props) {
getStyles = props.getStyles,
theme = props.theme,
selectProps = props.selectProps,
- cleanProps = _objectWithoutPropertiesLoose$1(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
+ cleanProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$4({
- css: getStyles('groupHeading', _extends$4({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
+ css: getStyles('groupHeading', _objectSpread$1({
theme: theme
}, cleanProps)),
className: cx({
@@ -11308,9 +11808,9 @@ var GroupHeading = function GroupHeading(props) {
}, cleanProps));
};
-function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
+function ownKeys$2(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 _objectWithoutPropertiesLoose$2(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; }
+function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var inputCSS = function inputCSS(_ref) {
var isDisabled = _ref.isDisabled,
_ref$theme = _ref.theme,
@@ -11347,13 +11847,13 @@ var Input = function Input(_ref2) {
isDisabled = _ref2.isDisabled,
theme = _ref2.theme,
selectProps = _ref2.selectProps,
- props = _objectWithoutPropertiesLoose$2(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
+ props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", {
- css: getStyles('input', _extends$5({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
+ css: getStyles('input', _objectSpread$2({
theme: theme
}, props))
- }, __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](__WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default.a, _extends$5({
+ }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default.a, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
className: cx({
input: true
}, className),
@@ -11363,7 +11863,9 @@ var Input = function Input(_ref2) {
}, props)));
};
-function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
+function ownKeys$3(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$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var multiValueCSS = function multiValueCSS(_ref) {
var _ref$theme = _ref.theme,
spacing = _ref$theme.spacing,
@@ -11417,14 +11919,14 @@ var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
var MultiValueGeneric = function MultiValueGeneric(_ref4) {
var children = _ref4.children,
innerProps = _ref4.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", innerProps, children);
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children);
};
var MultiValueContainer = MultiValueGeneric;
var MultiValueLabel = MultiValueGeneric;
function MultiValueRemove(_ref5) {
var children = _ref5.children,
innerProps = _ref5.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", innerProps, children || __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](CrossIcon, {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, {
size: 14
}));
}
@@ -11443,19 +11945,19 @@ var MultiValue = function MultiValue(props) {
var Container = components.Container,
Label = components.Label,
Remove = components.Remove;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](__WEBPACK_IMPORTED_MODULE_1__emotion_core__["b" /* ClassNames */], null, function (_ref6) {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["b" /* ClassNames */], null, function (_ref6) {
var css = _ref6.css,
emotionCx = _ref6.cx;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Container, {
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Container, {
data: data,
- innerProps: _extends$6({}, innerProps, {
+ innerProps: _objectSpread$3(_objectSpread$3({}, innerProps), {}, {
className: emotionCx(css(getStyles('multiValue', props)), cx({
'multi-value': true,
'multi-value--is-disabled': isDisabled
}, className))
}),
selectProps: selectProps
- }, __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Label, {
+ }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Label, {
data: data,
innerProps: {
className: emotionCx(css(getStyles('multiValueLabel', props)), cx({
@@ -11463,9 +11965,9 @@ var MultiValue = function MultiValue(props) {
}, className))
},
selectProps: selectProps
- }, children), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Remove, {
+ }, children), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Remove, {
data: data,
- innerProps: _extends$6({
+ innerProps: _objectSpread$3({
className: emotionCx(css(getStyles('multiValueRemove', props)), cx({
'multi-value__remove': true
}, className))
@@ -11479,7 +11981,6 @@ MultiValue.defaultProps = {
cropWithEllipsis: true
};
-function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
var optionCSS = function optionCSS(_ref) {
var isDisabled = _ref.isDisabled,
isFocused = _ref.isFocused,
@@ -11494,7 +11995,7 @@ var optionCSS = function optionCSS(_ref) {
cursor: 'default',
display: 'block',
fontSize: 'inherit',
- padding: spacing.baseUnit * 2 + "px " + spacing.baseUnit * 3 + "px",
+ padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
width: '100%',
userSelect: 'none',
WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
@@ -11515,7 +12016,7 @@ var Option = function Option(props) {
isSelected = props.isSelected,
innerRef = props.innerRef,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$7({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: getStyles('option', props),
className: cx({
option: true,
@@ -11527,7 +12028,6 @@ var Option = function Option(props) {
}, innerProps), children);
};
-function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
var placeholderCSS = function placeholderCSS(_ref) {
var _ref$theme = _ref.theme,
spacing = _ref$theme.spacing,
@@ -11549,7 +12049,7 @@ var Placeholder = function Placeholder(props) {
cx = props.cx,
getStyles = props.getStyles,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$8({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: getStyles('placeholder', props),
className: cx({
placeholder: true
@@ -11557,7 +12057,6 @@ var Placeholder = function Placeholder(props) {
}, innerProps), children);
};
-function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
var css$1 = function css(_ref) {
var isDisabled = _ref.isDisabled,
_ref$theme = _ref.theme,
@@ -11568,7 +12067,7 @@ var css$1 = function css(_ref) {
color: isDisabled ? colors.neutral40 : colors.neutral80,
marginLeft: spacing.baseUnit / 2,
marginRight: spacing.baseUnit / 2,
- maxWidth: "calc(100% - " + spacing.baseUnit * 2 + "px)",
+ maxWidth: "calc(100% - ".concat(spacing.baseUnit * 2, "px)"),
overflow: 'hidden',
position: 'absolute',
textOverflow: 'ellipsis',
@@ -11585,7 +12084,7 @@ var SingleValue = function SingleValue(props) {
getStyles = props.getStyles,
isDisabled = props.isDisabled,
innerProps = props.innerProps;
- return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$9({
+ return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: getStyles('singleValue', props),
className: cx({
'single-value': true,
@@ -11594,7 +12093,9 @@ var SingleValue = function SingleValue(props) {
}, innerProps), children);
};
-function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
+function ownKeys$4(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$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var components = {
ClearIndicator: ClearIndicator,
Control: Control,
@@ -11623,19 +12124,45 @@ var components = {
ValueContainer: ValueContainer
};
var defaultComponents = function defaultComponents(props) {
- return _extends$a({}, components, props.components);
+ return _objectSpread$4(_objectSpread$4({}, components), props.components);
};
-/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 6)))
/***/ }),
-/* 138 */
+/* 173 */
+/*!*********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
+ \*********************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _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;
+}
+
+/***/ }),
+/* 174 */
/*!****************************************************************!*\
!*** ./node_modules/react-input-autosize/lib/AutosizeInput.js ***!
\****************************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! exports used: default */
/***/ (function(module, exports, __webpack_require__) {
@@ -11650,7 +12177,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-var _react = __webpack_require__(/*! react */ 6);
+var _react = __webpack_require__(/*! react */ 5);
var _react2 = _interopRequireDefault(_react);
@@ -11910,9 +12437,29 @@ AutosizeInput.defaultProps = {
exports.default = AutosizeInput;
/***/ }),
-/* 139 */
+/* 175 */
+/*!****************************************!*\
+ !*** ./node_modules/react-is/index.js ***!
+ \****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/* WEBPACK VAR INJECTION */(function(process) {
+
+if (process.env.NODE_ENV === 'production') {
+ module.exports = __webpack_require__(/*! ./cjs/react-is.production.min.js */ 355);
+} else {
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ 356);
+}
+
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
+
+/***/ }),
+/* 176 */
/*!***********************************************************************!*\
- !*** ./node_modules/react-select/dist/Select-9fdb8cd0.browser.esm.js ***!
+ !*** ./node_modules/react-select/dist/Select-5d18b8d9.browser.esm.js ***!
\***********************************************************************/
/*! exports provided: S, a, c, d, m */
/*! exports used: S */
@@ -11924,15 +12471,35 @@ exports.default = AutosizeInput;
/* unused harmony export c */
/* unused harmony export d */
/* unused harmony export m */
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(/*! memoize-one */ 131);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_core__ = __webpack_require__(/*! @emotion/core */ 65);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(/*! react-dom */ 18);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(/*! ./utils-06b0d5a4.browser.esm.js */ 66);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__ = __webpack_require__(/*! ./index-4322c0ed.browser.esm.js */ 137);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 88);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 89);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 359);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 363);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 173);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ 58);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ 59);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ 166);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ 60);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ 61);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ 62);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(/*! react */ 5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(/*! memoize-one */ 167);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(/*! @emotion/core */ 85);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(/*! react-dom */ 33);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__ = __webpack_require__(/*! ./index-4b37608a.browser.esm.js */ 172);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41);
+
+
+
+
+
+
+
+
+
+
@@ -11943,278 +12510,291 @@ exports.default = AutosizeInput;
var diacritics = [{
base: 'A',
- letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g
+ letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
}, {
base: 'AA',
- letters: /[\uA732]/g
+ letters: "\uA732"
}, {
base: 'AE',
- letters: /[\u00C6\u01FC\u01E2]/g
+ letters: "\xC6\u01FC\u01E2"
}, {
base: 'AO',
- letters: /[\uA734]/g
+ letters: "\uA734"
}, {
base: 'AU',
- letters: /[\uA736]/g
+ letters: "\uA736"
}, {
base: 'AV',
- letters: /[\uA738\uA73A]/g
+ letters: "\uA738\uA73A"
}, {
base: 'AY',
- letters: /[\uA73C]/g
+ letters: "\uA73C"
}, {
base: 'B',
- letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g
+ letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"
}, {
base: 'C',
- letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g
+ letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"
}, {
base: 'D',
- letters: /[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g
+ letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"
}, {
base: 'DZ',
- letters: /[\u01F1\u01C4]/g
+ letters: "\u01F1\u01C4"
}, {
base: 'Dz',
- letters: /[\u01F2\u01C5]/g
+ letters: "\u01F2\u01C5"
}, {
base: 'E',
- letters: /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g
+ letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"
}, {
base: 'F',
- letters: /[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g
+ letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B"
}, {
base: 'G',
- letters: /[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g
+ letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"
}, {
base: 'H',
- letters: /[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g
+ letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"
}, {
base: 'I',
- letters: /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g
+ letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"
}, {
base: 'J',
- letters: /[\u004A\u24BF\uFF2A\u0134\u0248]/g
+ letters: "J\u24BF\uFF2A\u0134\u0248"
}, {
base: 'K',
- letters: /[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g
+ letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"
}, {
base: 'L',
- letters: /[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g
+ letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"
}, {
base: 'LJ',
- letters: /[\u01C7]/g
+ letters: "\u01C7"
}, {
base: 'Lj',
- letters: /[\u01C8]/g
+ letters: "\u01C8"
}, {
base: 'M',
- letters: /[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g
+ letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"
}, {
base: 'N',
- letters: /[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g
+ letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"
}, {
base: 'NJ',
- letters: /[\u01CA]/g
+ letters: "\u01CA"
}, {
base: 'Nj',
- letters: /[\u01CB]/g
+ letters: "\u01CB"
}, {
base: 'O',
- letters: /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g
+ letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"
}, {
base: 'OI',
- letters: /[\u01A2]/g
+ letters: "\u01A2"
}, {
base: 'OO',
- letters: /[\uA74E]/g
+ letters: "\uA74E"
}, {
base: 'OU',
- letters: /[\u0222]/g
+ letters: "\u0222"
}, {
base: 'P',
- letters: /[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g
+ letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"
}, {
base: 'Q',
- letters: /[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g
+ letters: "Q\u24C6\uFF31\uA756\uA758\u024A"
}, {
base: 'R',
- letters: /[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g
+ letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"
}, {
base: 'S',
- letters: /[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g
+ letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"
}, {
base: 'T',
- letters: /[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g
+ letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"
}, {
base: 'TZ',
- letters: /[\uA728]/g
+ letters: "\uA728"
}, {
base: 'U',
- letters: /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g
+ letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"
}, {
base: 'V',
- letters: /[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g
+ letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"
}, {
base: 'VY',
- letters: /[\uA760]/g
+ letters: "\uA760"
}, {
base: 'W',
- letters: /[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g
+ letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"
}, {
base: 'X',
- letters: /[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g
+ letters: "X\u24CD\uFF38\u1E8A\u1E8C"
}, {
base: 'Y',
- letters: /[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g
+ letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"
}, {
base: 'Z',
- letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g
+ letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"
}, {
base: 'a',
- letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g
+ letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"
}, {
base: 'aa',
- letters: /[\uA733]/g
+ letters: "\uA733"
}, {
base: 'ae',
- letters: /[\u00E6\u01FD\u01E3]/g
+ letters: "\xE6\u01FD\u01E3"
}, {
base: 'ao',
- letters: /[\uA735]/g
+ letters: "\uA735"
}, {
base: 'au',
- letters: /[\uA737]/g
+ letters: "\uA737"
}, {
base: 'av',
- letters: /[\uA739\uA73B]/g
+ letters: "\uA739\uA73B"
}, {
base: 'ay',
- letters: /[\uA73D]/g
+ letters: "\uA73D"
}, {
base: 'b',
- letters: /[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g
+ letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"
}, {
base: 'c',
- letters: /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g
+ letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"
}, {
base: 'd',
- letters: /[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g
+ letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"
}, {
base: 'dz',
- letters: /[\u01F3\u01C6]/g
+ letters: "\u01F3\u01C6"
}, {
base: 'e',
- letters: /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g
+ letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"
}, {
base: 'f',
- letters: /[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g
+ letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C"
}, {
base: 'g',
- letters: /[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g
+ letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"
}, {
base: 'h',
- letters: /[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g
+ letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"
}, {
base: 'hv',
- letters: /[\u0195]/g
+ letters: "\u0195"
}, {
base: 'i',
- letters: /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g
+ letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"
}, {
base: 'j',
- letters: /[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g
+ letters: "j\u24D9\uFF4A\u0135\u01F0\u0249"
}, {
base: 'k',
- letters: /[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g
+ letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"
}, {
base: 'l',
- letters: /[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g
+ letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"
}, {
base: 'lj',
- letters: /[\u01C9]/g
+ letters: "\u01C9"
}, {
base: 'm',
- letters: /[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g
+ letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"
}, {
base: 'n',
- letters: /[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g
+ letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"
}, {
base: 'nj',
- letters: /[\u01CC]/g
+ letters: "\u01CC"
}, {
base: 'o',
- letters: /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g
+ letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"
}, {
base: 'oi',
- letters: /[\u01A3]/g
+ letters: "\u01A3"
}, {
base: 'ou',
- letters: /[\u0223]/g
+ letters: "\u0223"
}, {
base: 'oo',
- letters: /[\uA74F]/g
+ letters: "\uA74F"
}, {
base: 'p',
- letters: /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g
+ letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"
}, {
base: 'q',
- letters: /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g
+ letters: "q\u24E0\uFF51\u024B\uA757\uA759"
}, {
base: 'r',
- letters: /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g
+ letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"
}, {
base: 's',
- letters: /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g
+ letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"
}, {
base: 't',
- letters: /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g
+ letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"
}, {
base: 'tz',
- letters: /[\uA729]/g
+ letters: "\uA729"
}, {
base: 'u',
- letters: /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g
+ letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"
}, {
base: 'v',
- letters: /[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g
+ letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"
}, {
base: 'vy',
- letters: /[\uA761]/g
+ letters: "\uA761"
}, {
base: 'w',
- letters: /[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g
+ letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"
}, {
base: 'x',
- letters: /[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g
+ letters: "x\u24E7\uFF58\u1E8B\u1E8D"
}, {
base: 'y',
- letters: /[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g
+ letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"
}, {
base: 'z',
- letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g
+ letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"
}];
-var stripDiacritics = function stripDiacritics(str) {
- for (var i = 0; i < diacritics.length; i++) {
- str = str.replace(diacritics[i].letters, diacritics[i].base);
+var anyDiacritic = new RegExp('[' + diacritics.map(function (d) {
+ return d.letters;
+}).join('') + ']', 'g');
+var diacriticToBase = {};
+
+for (var i = 0; i < diacritics.length; i++) {
+ var diacritic = diacritics[i];
+
+ for (var j = 0; j < diacritic.letters.length; j++) {
+ diacriticToBase[diacritic.letters[j]] = diacritic.base;
}
+}
- return str;
+var stripDiacritics = function stripDiacritics(str) {
+ return str.replace(anyDiacritic, function (match) {
+ return diacriticToBase[match];
+ });
};
-function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
+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(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_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; }
var trimString = function trimString(str) {
return str.replace(/^\s+|\s+$/g, '');
};
var defaultStringify = function defaultStringify(option) {
- return option.label + " " + option.value;
+ return "".concat(option.label, " ").concat(option.value);
};
var createFilter = function createFilter(config) {
return function (option, rawInput) {
- var _ignoreCase$ignoreAcc = _extends({
+ var _ignoreCase$ignoreAcc = _objectSpread({
ignoreCase: true,
ignoreAccents: true,
stringify: defaultStringify,
@@ -12244,7 +12824,7 @@ var createFilter = function createFilter(config) {
};
};
-function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
+function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
var _ref = process.env.NODE_ENV === "production" ? {
name: "1laao21-a11yText",
@@ -12252,18 +12832,16 @@ var _ref = process.env.NODE_ENV === "production" ? {
} : {
name: "1laao21-a11yText",
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */"
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */",
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
var A11yText = function A11yText(props) {
- return __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("span", _extends$1({
+ return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
css: _ref
}, props));
};
-function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
-
-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; }
function DummyInput(_ref) {
var inProp = _ref.in,
out = _ref.out,
@@ -12273,14 +12851,12 @@ function DummyInput(_ref) {
exit = _ref.exit,
innerRef = _ref.innerRef,
emotion = _ref.emotion,
- props = _objectWithoutPropertiesLoose(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
+ props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
- return __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("input", _extends$2({
+ return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("input", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
ref: innerRef
}, props, {
- css:
- /*#__PURE__*/
- __WEBPACK_IMPORTED_MODULE_6__emotion_css__["a" /* default */]({
+ css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__["a" /* default */])({
label: 'dummyInput',
// get rid of any default styles
background: 0,
@@ -12301,33 +12877,40 @@ function DummyInput(_ref) {
}));
}
-function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
-var NodeResolver =
-/*#__PURE__*/
-function (_Component) {
- _inheritsLoose(NodeResolver, _Component);
+function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
- function NodeResolver() {
- return _Component.apply(this, arguments) || this;
- }
+var NodeResolver = /*#__PURE__*/function (_Component) {
+ Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NodeResolver, _Component);
- var _proto = NodeResolver.prototype;
+ var _super = _createSuper(NodeResolver);
- _proto.componentDidMount = function componentDidMount() {
- this.props.innerRef(__WEBPACK_IMPORTED_MODULE_3_react_dom__["findDOMNode"](this));
- };
+ function NodeResolver() {
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NodeResolver);
- _proto.componentWillUnmount = function componentWillUnmount() {
- this.props.innerRef(null);
- };
+ return _super.apply(this, arguments);
+ }
- _proto.render = function render() {
- return this.props.children;
- };
+ Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NodeResolver, [{
+ key: "componentDidMount",
+ value: function componentDidMount() {
+ this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__["findDOMNode"])(this));
+ }
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ this.props.innerRef(null);
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ return this.props.children;
+ }
+ }]);
return NodeResolver;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
+}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];
var LOCK_STYLES = {
@@ -12361,23 +12944,27 @@ function isTouchDevice() {
return 'ontouchstart' in window || navigator.maxTouchPoints;
}
-function _inheritsLoose$1(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
+
+function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var canUseDOM = !!( window.document && window.document.createElement);
var activeScrollLocks = 0;
-var ScrollLock =
-/*#__PURE__*/
-function (_Component) {
- _inheritsLoose$1(ScrollLock, _Component);
+var ScrollLock = /*#__PURE__*/function (_Component) {
+ Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollLock, _Component);
+
+ var _super = _createSuper$1(ScrollLock);
function ScrollLock() {
var _this;
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollLock);
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
- _this = _Component.call.apply(_Component, [this].concat(args)) || this;
+ _this = _super.call.apply(_super, [this].concat(args));
_this.originalStyles = {};
_this.listenerOptions = {
capture: false,
@@ -12386,104 +12973,111 @@ function (_Component) {
return _this;
}
- var _proto = ScrollLock.prototype;
+ Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollLock, [{
+ key: "componentDidMount",
+ value: function componentDidMount() {
+ var _this2 = this;
- _proto.componentDidMount = function componentDidMount() {
- var _this2 = this;
+ if (!canUseDOM) return;
+ var _this$props = this.props,
+ accountForScrollbars = _this$props.accountForScrollbars,
+ touchScrollTarget = _this$props.touchScrollTarget;
+ var target = document.body;
+ var targetStyle = target && target.style;
+
+ if (accountForScrollbars) {
+ // store any styles already applied to the body
+ STYLE_KEYS.forEach(function (key) {
+ var val = targetStyle && targetStyle[key];
+ _this2.originalStyles[key] = val;
+ });
+ } // apply the lock styles and padding if this is the first scroll lock
- if (!canUseDOM) return;
- var _this$props = this.props,
- accountForScrollbars = _this$props.accountForScrollbars,
- touchScrollTarget = _this$props.touchScrollTarget;
- var target = document.body;
- var targetStyle = target && target.style;
-
- if (accountForScrollbars) {
- // store any styles already applied to the body
- STYLE_KEYS.forEach(function (key) {
- var val = targetStyle && targetStyle[key];
- _this2.originalStyles[key] = val;
- });
- } // apply the lock styles and padding if this is the first scroll lock
+ if (accountForScrollbars && activeScrollLocks < 1) {
+ var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
+ var clientWidth = document.body ? document.body.clientWidth : 0;
+ var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
+ Object.keys(LOCK_STYLES).forEach(function (key) {
+ var val = LOCK_STYLES[key];
- if (accountForScrollbars && activeScrollLocks < 1) {
- var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
- var clientWidth = document.body ? document.body.clientWidth : 0;
- var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
- Object.keys(LOCK_STYLES).forEach(function (key) {
- var val = LOCK_STYLES[key];
+ if (targetStyle) {
+ targetStyle[key] = val;
+ }
+ });
if (targetStyle) {
- targetStyle[key] = val;
+ targetStyle.paddingRight = "".concat(adjustedPadding, "px");
}
- });
-
- if (targetStyle) {
- targetStyle.paddingRight = adjustedPadding + "px";
- }
- } // account for touch devices
-
+ } // account for touch devices
- if (target && isTouchDevice()) {
- // Mobile Safari ignores { overflow: hidden } declaration on the body.
- target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
- if (touchScrollTarget) {
- touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
- touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
- }
- } // increment active scroll locks
+ if (target && isTouchDevice()) {
+ // Mobile Safari ignores { overflow: hidden } declaration on the body.
+ target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
+ if (touchScrollTarget) {
+ touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
+ touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
+ }
+ } // increment active scroll locks
- activeScrollLocks += 1;
- };
- _proto.componentWillUnmount = function componentWillUnmount() {
- var _this3 = this;
+ activeScrollLocks += 1;
+ }
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ var _this3 = this;
- if (!canUseDOM) return;
- var _this$props2 = this.props,
- accountForScrollbars = _this$props2.accountForScrollbars,
- touchScrollTarget = _this$props2.touchScrollTarget;
- var target = document.body;
- var targetStyle = target && target.style; // safely decrement active scroll locks
+ if (!canUseDOM) return;
+ var _this$props2 = this.props,
+ accountForScrollbars = _this$props2.accountForScrollbars,
+ touchScrollTarget = _this$props2.touchScrollTarget;
+ var target = document.body;
+ var targetStyle = target && target.style; // safely decrement active scroll locks
- activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
+ activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
- if (accountForScrollbars && activeScrollLocks < 1) {
- STYLE_KEYS.forEach(function (key) {
- var val = _this3.originalStyles[key];
+ if (accountForScrollbars && activeScrollLocks < 1) {
+ STYLE_KEYS.forEach(function (key) {
+ var val = _this3.originalStyles[key];
- if (targetStyle) {
- targetStyle[key] = val;
- }
- });
- } // remove touch listeners
+ if (targetStyle) {
+ targetStyle[key] = val;
+ }
+ });
+ } // remove touch listeners
- if (target && isTouchDevice()) {
- target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
+ if (target && isTouchDevice()) {
+ target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
- if (touchScrollTarget) {
- touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
- touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
+ if (touchScrollTarget) {
+ touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
+ touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
+ }
}
}
- };
-
- _proto.render = function render() {
- return null;
- };
+ }, {
+ key: "render",
+ value: function render() {
+ return null;
+ }
+ }]);
return ScrollLock;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
+}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
ScrollLock.defaultProps = {
accountForScrollbars: true
};
-function _inheritsLoose$2(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
+
+function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
+
+function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var _ref$1 = process.env.NODE_ENV === "production" ? {
name: "1dsbpcp",
@@ -12491,26 +13085,29 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
} : {
name: "1dsbpcp",
styles: "position:fixed;left:0;bottom:0;right:0;top:0;",
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */"
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */",
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
};
// NOTE:
// We shouldn't need this after updating to React v16.3.0, which introduces:
// - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
// - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
-var ScrollBlock =
-/*#__PURE__*/
-function (_PureComponent) {
- _inheritsLoose$2(ScrollBlock, _PureComponent);
+var ScrollBlock = /*#__PURE__*/function (_PureComponent) {
+ Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollBlock, _PureComponent);
+
+ var _super = _createSuper$2(ScrollBlock);
function ScrollBlock() {
var _this;
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollBlock);
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
- _this = _PureComponent.call.apply(_PureComponent, [this].concat(args)) || this;
+ _this = _super.call.apply(_super, [this].concat(args));
_this.state = {
touchScrollTarget: null
};
@@ -12532,58 +13129,61 @@ function (_PureComponent) {
return _this;
}
- var _proto = ScrollBlock.prototype;
-
- _proto.render = function render() {
- var _this$props = this.props,
- children = _this$props.children,
- isEnabled = _this$props.isEnabled;
- var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled
+ Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollBlock, [{
+ key: "render",
+ value: function render() {
+ var _this$props = this.props,
+ children = _this$props.children,
+ isEnabled = _this$props.isEnabled;
+ var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled
- if (!isEnabled) return children;
- /*
- * Div
- * ------------------------------
- * blocks scrolling on non-body elements behind the menu
- * NodeResolver
- * ------------------------------
- * we need a reference to the scrollable element to "unlock" scroll on
- * mobile devices
- * ScrollLock
- * ------------------------------
- * actually does the scroll locking
- */
+ if (!isEnabled) return children;
+ /*
+ * Div
+ * ------------------------------
+ * blocks scrolling on non-body elements behind the menu
+ * NodeResolver
+ * ------------------------------
+ * we need a reference to the scrollable element to "unlock" scroll on
+ * mobile devices
+ * ScrollLock
+ * ------------------------------
+ * actually does the scroll locking
+ */
- return __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("div", null, __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("div", {
- onClick: this.blurSelectInput,
- css: _ref$1
- }), __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */](NodeResolver, {
- innerRef: this.getScrollTarget
- }, children), touchScrollTarget ? __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */](ScrollLock, {
- touchScrollTarget: touchScrollTarget
- }) : null);
- };
+ return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", null, Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", {
+ onClick: this.blurSelectInput,
+ css: _ref$1
+ }), Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(NodeResolver, {
+ innerRef: this.getScrollTarget
+ }, children), touchScrollTarget ? Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(ScrollLock, {
+ touchScrollTarget: touchScrollTarget
+ }) : null);
+ }
+ }]);
return ScrollBlock;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"]);
+}(__WEBPACK_IMPORTED_MODULE_11_react__["PureComponent"]);
-function _objectWithoutPropertiesLoose$1(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; }
+function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
-function _inheritsLoose$3(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
-var ScrollCaptor =
-/*#__PURE__*/
-function (_Component) {
- _inheritsLoose$3(ScrollCaptor, _Component);
+var ScrollCaptor = /*#__PURE__*/function (_Component) {
+ Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollCaptor, _Component);
+
+ var _super = _createSuper$3(ScrollCaptor);
function ScrollCaptor() {
var _this;
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollCaptor);
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
- _this = _Component.call.apply(_Component, [this].concat(args)) || this;
+ _this = _super.call.apply(_super, [this].concat(args));
_this.isBottom = false;
_this.isTop = false;
_this.scrollTarget = void 0;
@@ -12666,82 +13266,83 @@ function (_Component) {
return _this;
}
- var _proto = ScrollCaptor.prototype;
-
- _proto.componentDidMount = function componentDidMount() {
- this.startListening(this.scrollTarget);
- };
-
- _proto.componentWillUnmount = function componentWillUnmount() {
- this.stopListening(this.scrollTarget);
- };
-
- _proto.startListening = function startListening(el) {
- // bail early if no element is available to attach to
- if (!el) return; // all the if statements are to appease Flow ๐ข
-
- if (typeof el.addEventListener === 'function') {
- el.addEventListener('wheel', this.onWheel, false);
+ Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollCaptor, [{
+ key: "componentDidMount",
+ value: function componentDidMount() {
+ this.startListening(this.scrollTarget);
}
-
- if (typeof el.addEventListener === 'function') {
- el.addEventListener('touchstart', this.onTouchStart, false);
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ this.stopListening(this.scrollTarget);
}
+ }, {
+ key: "startListening",
+ value: function startListening(el) {
+ // bail early if no element is available to attach to
+ if (!el) return; // all the if statements are to appease Flow ๐ข
- if (typeof el.addEventListener === 'function') {
- el.addEventListener('touchmove', this.onTouchMove, false);
- }
- };
+ if (typeof el.addEventListener === 'function') {
+ el.addEventListener('wheel', this.onWheel, false);
+ }
- _proto.stopListening = function stopListening(el) {
- // all the if statements are to appease Flow ๐ข
- if (typeof el.removeEventListener === 'function') {
- el.removeEventListener('wheel', this.onWheel, false);
- }
+ if (typeof el.addEventListener === 'function') {
+ el.addEventListener('touchstart', this.onTouchStart, false);
+ }
- if (typeof el.removeEventListener === 'function') {
- el.removeEventListener('touchstart', this.onTouchStart, false);
+ if (typeof el.addEventListener === 'function') {
+ el.addEventListener('touchmove', this.onTouchMove, false);
+ }
}
+ }, {
+ key: "stopListening",
+ value: function stopListening(el) {
+ // all the if statements are to appease Flow ๐ข
+ if (typeof el.removeEventListener === 'function') {
+ el.removeEventListener('wheel', this.onWheel, false);
+ }
- if (typeof el.removeEventListener === 'function') {
- el.removeEventListener('touchmove', this.onTouchMove, false);
- }
- };
+ if (typeof el.removeEventListener === 'function') {
+ el.removeEventListener('touchstart', this.onTouchStart, false);
+ }
- _proto.render = function render() {
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NodeResolver, {
- innerRef: this.getScrollTarget
- }, this.props.children);
- };
+ if (typeof el.removeEventListener === 'function') {
+ el.removeEventListener('touchmove', this.onTouchMove, false);
+ }
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver, {
+ innerRef: this.getScrollTarget
+ }, this.props.children);
+ }
+ }]);
return ScrollCaptor;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
+}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
function ScrollCaptorSwitch(_ref) {
var _ref$isEnabled = _ref.isEnabled,
isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled,
- props = _objectWithoutPropertiesLoose$1(_ref, ["isEnabled"]);
+ props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["isEnabled"]);
- return isEnabled ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptor, props) : props.children;
+ return isEnabled ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor, props) : props.children;
}
-var instructionsAriaMessage = function instructionsAriaMessage(event, context) {
- if (context === void 0) {
- context = {};
- }
-
- var _context = context,
- isSearchable = _context.isSearchable,
- isMulti = _context.isMulti,
- label = _context.label,
- isDisabled = _context.isDisabled;
+var instructionsAriaMessage = function instructionsAriaMessage(event) {
+ var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+ var isSearchable = context.isSearchable,
+ isMulti = context.isMulti,
+ label = context.label,
+ isDisabled = context.isDisabled;
switch (event) {
case 'menu':
- return "Use Up and Down to choose options" + (isDisabled ? '' : ', press Enter to select the currently focused option') + ", press Escape to exit the menu, press Tab to select the option and exit the menu.";
+ return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu, press Tab to select the option and exit the menu.");
case 'input':
- return (label ? label : 'Select') + " is focused " + (isSearchable ? ',type to refine list' : '') + ", press Down to open the menu, " + (isMulti ? ' press left to focus selected values' : '');
+ return "".concat(label ? label : 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
case 'value':
return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
@@ -12756,28 +13357,28 @@ var valueEventAriaMessage = function valueEventAriaMessage(event, context) {
case 'deselect-option':
case 'pop-value':
case 'remove-value':
- return "option " + value + ", deselected.";
+ return "option ".concat(value, ", deselected.");
case 'select-option':
- return isDisabled ? "option " + value + " is disabled. Select another option." : "option " + value + ", selected.";
+ return isDisabled ? "option ".concat(value, " is disabled. Select another option.") : "option ".concat(value, ", selected.");
}
};
var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {
var focusedValue = _ref.focusedValue,
getOptionLabel = _ref.getOptionLabel,
selectValue = _ref.selectValue;
- return "value " + getOptionLabel(focusedValue) + " focused, " + (selectValue.indexOf(focusedValue) + 1) + " of " + selectValue.length + ".";
+ return "value ".concat(getOptionLabel(focusedValue), " focused, ").concat(selectValue.indexOf(focusedValue) + 1, " of ").concat(selectValue.length, ".");
};
var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {
var focusedOption = _ref2.focusedOption,
getOptionLabel = _ref2.getOptionLabel,
options = _ref2.options;
- return "option " + getOptionLabel(focusedOption) + " focused" + (focusedOption.isDisabled ? ' disabled' : '') + ", " + (options.indexOf(focusedOption) + 1) + " of " + options.length + ".";
+ return "option ".concat(getOptionLabel(focusedOption), " focused").concat(focusedOption.isDisabled ? ' disabled' : '', ", ").concat(options.indexOf(focusedOption) + 1, " of ").concat(options.length, ".");
};
var resultsAriaMessage = function resultsAriaMessage(_ref3) {
var inputValue = _ref3.inputValue,
screenReaderMessage = _ref3.screenReaderMessage;
- return "" + screenReaderMessage + (inputValue ? ' for search term ' + inputValue : '') + ".";
+ return "".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', ".");
};
var formatGroupLabel = function formatGroupLabel(group) {
@@ -12793,40 +13394,40 @@ var isOptionDisabled = function isOptionDisabled(option) {
return !!option.isDisabled;
};
-function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
+function ownKeys$1(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$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var defaultStyles = {
- clearIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["d" /* c */],
- container: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["b" /* a */],
- control: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["c" /* b */],
- dropdownIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["e" /* d */],
- group: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["h" /* g */],
- groupHeading: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["f" /* e */],
- indicatorsContainer: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["j" /* i */],
- indicatorSeparator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["g" /* f */],
- input: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["i" /* h */],
- loadingIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["m" /* l */],
- loadingMessage: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["k" /* j */],
- menu: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["n" /* m */],
- menuList: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["l" /* k */],
- menuPortal: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["o" /* n */],
- multiValue: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["p" /* o */],
- multiValueLabel: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["q" /* p */],
- multiValueRemove: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["r" /* q */],
- noOptionsMessage: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["s" /* r */],
- option: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["t" /* s */],
- placeholder: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["u" /* t */],
- singleValue: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["v" /* u */],
- valueContainer: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["w" /* v */]
+ clearIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["i" /* c */],
+ container: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["g" /* a */],
+ control: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["h" /* b */],
+ dropdownIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["j" /* d */],
+ group: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["m" /* g */],
+ groupHeading: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["k" /* e */],
+ indicatorsContainer: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["o" /* i */],
+ indicatorSeparator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["l" /* f */],
+ input: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["n" /* h */],
+ loadingIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["r" /* l */],
+ loadingMessage: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["p" /* j */],
+ menu: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["s" /* m */],
+ menuList: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["q" /* k */],
+ menuPortal: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["t" /* n */],
+ multiValue: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["u" /* o */],
+ multiValueLabel: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["v" /* p */],
+ multiValueRemove: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["w" /* q */],
+ noOptionsMessage: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["x" /* r */],
+ option: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["y" /* s */],
+ placeholder: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["z" /* t */],
+ singleValue: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["A" /* u */],
+ valueContainer: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["B" /* v */]
}; // Merge Utility
// Allows consumers to extend a base Select with additional styles
-function mergeStyles(source, target) {
- if (target === void 0) {
- target = {};
- }
+function mergeStyles(source) {
+ var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
// initialize with source styles
- var styles = _extends$3({}, source); // massage in target styles
+ var styles = _objectSpread$1({}, source); // massage in target styles
Object.keys(target).forEach(function (key) {
@@ -12878,17 +13479,17 @@ var defaultTheme = {
spacing: spacing
};
-function _objectWithoutPropertiesLoose$2(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; }
+function ownKeys$2(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 _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
+function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
-function _inheritsLoose$4(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
-function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
+function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var defaultProps = {
backspaceRemovesValue: true,
- blurInputOnSelect: __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["i"](),
- captureMenuScroll: !__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["i"](),
+ blurInputOnSelect: Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["C" /* w */])(),
+ captureMenuScroll: !Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["C" /* w */])(),
closeMenuOnSelect: true,
closeMenuOnScroll: false,
components: {},
@@ -12913,7 +13514,7 @@ var defaultProps = {
menuPlacement: 'bottom',
menuPosition: 'absolute',
menuShouldBlockScroll: false,
- menuShouldScrollIntoView: !__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["d"](),
+ menuShouldScrollIntoView: !Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["D" /* x */])(),
noOptionsMessage: function noOptionsMessage() {
return 'No options';
},
@@ -12924,7 +13525,7 @@ var defaultProps = {
placeholder: 'Select...',
screenReaderStatus: function screenReaderStatus(_ref) {
var count = _ref.count;
- return count + " result" + (count !== 1 ? 's' : '') + " available";
+ return "".concat(count, " result").concat(count !== 1 ? 's' : '', " available");
},
styles: {},
tabIndex: '0',
@@ -12932,10 +13533,10 @@ var defaultProps = {
};
var instanceId = 1;
-var Select =
-/*#__PURE__*/
-function (_Component) {
- _inheritsLoose$4(Select, _Component);
+var Select = /*#__PURE__*/function (_Component) {
+ Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(Select, _Component);
+
+ var _super = _createSuper$4(Select);
// Misc. Instance Properties
// ------------------------------
@@ -12947,7 +13548,9 @@ function (_Component) {
function Select(_props) {
var _this;
- _this = _Component.call(this, _props) || this;
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, Select);
+
+ _this = _super.call(this, _props);
_this.state = {
ariaLiveSelection: '',
ariaLiveContext: '',
@@ -12999,7 +13602,7 @@ function (_Component) {
};
_this.cacheComponents = function (components) {
- _this.components = __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["x" /* w */]({
+ _this.components = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["E" /* y */])({
components: components
});
};
@@ -13011,16 +13614,14 @@ function (_Component) {
var _this$props = _this.props,
onChange = _this$props.onChange,
name = _this$props.name;
- onChange(newValue, _extends$4({}, actionMeta, {
+ onChange(newValue, _objectSpread$2(_objectSpread$2({}, actionMeta), {}, {
name: name
}));
};
- _this.setValue = function (newValue, action, option) {
- if (action === void 0) {
- action = 'set-value';
- }
-
+ _this.setValue = function (newValue) {
+ var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value';
+ var option = arguments.length > 2 ? arguments[2] : undefined;
var _this$props2 = _this.props,
closeMenuOnSelect = _this$props2.closeMenuOnSelect,
isMulti = _this$props2.isMulti;
@@ -13066,7 +13667,7 @@ function (_Component) {
});
} else {
if (!_this.isOptionDisabled(newValue, selectValue)) {
- _this.setValue([].concat(selectValue, [newValue]), 'select-option', newValue);
+ _this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(selectValue), [newValue]), 'select-option', newValue);
_this.announceAriaLiveSelection({
event: 'select-option',
@@ -13178,7 +13779,7 @@ function (_Component) {
};
_this.getElementId = function (element) {
- return _this.instancePrefix + "-" + element;
+ return "".concat(_this.instancePrefix, "-").concat(element);
};
_this.getActiveDescendentId = function () {
@@ -13206,7 +13807,7 @@ function (_Component) {
context = _ref3.context;
_this.setState({
- ariaLiveContext: instructionsAriaMessage(event, _extends$4({}, context, {
+ ariaLiveContext: instructionsAriaMessage(event, _objectSpread$2(_objectSpread$2({}, context), {}, {
label: _this.props['aria-label']
}))
});
@@ -13300,7 +13901,7 @@ function (_Component) {
_this.onScroll = function (event) {
if (typeof _this.props.closeMenuOnScroll === 'boolean') {
- if (event.target instanceof HTMLElement && __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["j"](event.target)) {
+ if (event.target instanceof HTMLElement && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["F" /* z */])(event.target)) {
_this.props.onMenuClose();
}
} else if (typeof _this.props.closeMenuOnScroll === 'function') {
@@ -13320,7 +13921,7 @@ function (_Component) {
_this.onTouchStart = function (_ref4) {
var touches = _ref4.touches;
- var touch = touches.item(0);
+ var touch = touches && touches.item(0);
if (!touch) {
return;
@@ -13333,7 +13934,7 @@ function (_Component) {
_this.onTouchMove = function (_ref5) {
var touches = _ref5.touches;
- var touch = touches.item(0);
+ var touch = touches && touches.item(0);
if (!touch) {
return;
@@ -13385,7 +13986,9 @@ function (_Component) {
action: 'input-change'
});
- _this.onMenuOpen();
+ if (!_this.props.menuIsOpen) {
+ _this.onMenuOpen();
+ }
};
_this.onInputFocus = function (event) {
@@ -13666,7 +14269,7 @@ function (_Component) {
var onSelect = isDisabled ? undefined : function () {
return _this.selectOption(option);
};
- var optionId = _this.getElementId('option') + "-" + id;
+ var optionId = "".concat(_this.getElementId('option'), "-").concat(id);
return {
innerProps: {
id: optionId,
@@ -13691,13 +14294,13 @@ function (_Component) {
if (!_this.hasGroups) _this.hasGroups = true;
var items = item.options;
var children = items.map(function (child, i) {
- var option = toOption(child, itemIndex + "-" + i);
+ var option = toOption(child, "".concat(itemIndex, "-").concat(i));
if (option) acc.focusable.push(child);
return option;
}).filter(Boolean);
if (children.length) {
- var groupId = _this.getElementId('group') + "-" + itemIndex;
+ var groupId = "".concat(_this.getElementId('group'), "-").concat(itemIndex);
acc.render.push({
type: 'group',
key: groupId,
@@ -13706,7 +14309,7 @@ function (_Component) {
});
}
} else {
- var option = toOption(item, "" + itemIndex);
+ var option = toOption(item, "".concat(itemIndex));
if (option) {
acc.render.push(option);
@@ -13722,23 +14325,27 @@ function (_Component) {
};
var _value = _props.value;
- _this.cacheComponents = __WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */](_this.cacheComponents, __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */]).bind(_assertThisInitialized(_assertThisInitialized(_this)));
+ _this.cacheComponents = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.cacheComponents, __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */]).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this));
_this.cacheComponents(_props.components);
_this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
- var _selectValue = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["e"](_value);
+ var _selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["b" /* B */])(_value);
- _this.buildMenuOptions = __WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */](_this.buildMenuOptions, function (newArgs, lastArgs) {
+ _this.buildMenuOptions = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.buildMenuOptions, function (newArgs, lastArgs) {
var _ref6 = newArgs,
- newProps = _ref6[0],
- newSelectValue = _ref6[1];
- var _ref7 = lastArgs,
- lastProps = _ref7[0],
- lastSelectValue = _ref7[1];
- return __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */](newSelectValue, lastSelectValue) && __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */](newProps.inputValue, lastProps.inputValue) && __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */](newProps.options, lastProps.options);
- }).bind(_assertThisInitialized(_assertThisInitialized(_this)));
+ _ref7 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref6, 2),
+ newProps = _ref7[0],
+ newSelectValue = _ref7[1];
+
+ var _ref8 = lastArgs,
+ _ref9 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref8, 2),
+ lastProps = _ref9[0],
+ lastSelectValue = _ref9[1];
+
+ return Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newSelectValue, lastSelectValue) && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newProps.inputValue, lastProps.inputValue) && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newProps.options, lastProps.options);
+ }).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this));
var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : {
render: [],
@@ -13750,947 +14357,1257 @@ function (_Component) {
return _this;
}
- var _proto = Select.prototype;
+ Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(Select, [{
+ key: "componentDidMount",
+ value: function componentDidMount() {
+ this.startListeningComposition();
+ this.startListeningToTouch();
- _proto.componentDidMount = function componentDidMount() {
- this.startListeningComposition();
- this.startListeningToTouch();
+ if (this.props.closeMenuOnScroll && document && document.addEventListener) {
+ // Listen to all scroll events, and filter them out inside of 'onScroll'
+ document.addEventListener('scroll', this.onScroll, true);
+ }
- if (this.props.closeMenuOnScroll && document && document.addEventListener) {
- // Listen to all scroll events, and filter them out inside of 'onScroll'
- document.addEventListener('scroll', this.onScroll, true);
+ if (this.props.autoFocus) {
+ this.focusInput();
+ }
}
+ }, {
+ key: "UNSAFE_componentWillReceiveProps",
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
+ var _this$props8 = this.props,
+ options = _this$props8.options,
+ value = _this$props8.value,
+ menuIsOpen = _this$props8.menuIsOpen,
+ inputValue = _this$props8.inputValue; // re-cache custom components
- if (this.props.autoFocus) {
- this.focusInput();
- }
- };
+ this.cacheComponents(nextProps.components); // rebuild the menu options
- _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
- var _this$props8 = this.props,
- options = _this$props8.options,
- value = _this$props8.value,
- menuIsOpen = _this$props8.menuIsOpen,
- inputValue = _this$props8.inputValue; // re-cache custom components
+ if (nextProps.value !== value || nextProps.options !== options || nextProps.menuIsOpen !== menuIsOpen || nextProps.inputValue !== inputValue) {
+ var selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["b" /* B */])(nextProps.value);
+ var menuOptions = nextProps.menuIsOpen ? this.buildMenuOptions(nextProps, selectValue) : {
+ render: [],
+ focusable: []
+ };
+ var focusedValue = this.getNextFocusedValue(selectValue);
+ var focusedOption = this.getNextFocusedOption(menuOptions.focusable);
+ this.setState({
+ menuOptions: menuOptions,
+ selectValue: selectValue,
+ focusedOption: focusedOption,
+ focusedValue: focusedValue
+ });
+ } // some updates should toggle the state of the input visibility
- this.cacheComponents(nextProps.components); // rebuild the menu options
- if (nextProps.value !== value || nextProps.options !== options || nextProps.menuIsOpen !== menuIsOpen || nextProps.inputValue !== inputValue) {
- var selectValue = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["e"](nextProps.value);
- var menuOptions = nextProps.menuIsOpen ? this.buildMenuOptions(nextProps, selectValue) : {
- render: [],
- focusable: []
- };
- var focusedValue = this.getNextFocusedValue(selectValue);
- var focusedOption = this.getNextFocusedOption(menuOptions.focusable);
- this.setState({
- menuOptions: menuOptions,
- selectValue: selectValue,
- focusedOption: focusedOption,
- focusedValue: focusedValue
+ if (this.inputIsHiddenAfterUpdate != null) {
+ this.setState({
+ inputIsHidden: this.inputIsHiddenAfterUpdate
+ });
+ delete this.inputIsHiddenAfterUpdate;
+ }
+ }
+ }, {
+ key: "componentDidUpdate",
+ value: function componentDidUpdate(prevProps) {
+ var _this$props9 = this.props,
+ isDisabled = _this$props9.isDisabled,
+ menuIsOpen = _this$props9.menuIsOpen;
+ var isFocused = this.state.isFocused;
+
+ if ( // ensure focus is restored correctly when the control becomes enabled
+ isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens
+ isFocused && menuIsOpen && !prevProps.menuIsOpen) {
+ this.focusInput();
+ } // scroll the focused option into view if necessary
+
+
+ if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {
+ Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["c" /* C */])(this.menuListRef, this.focusedOptionRef);
+ this.scrollToFocusedOptionOnUpdate = false;
+ }
+ }
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ this.stopListeningComposition();
+ this.stopListeningToTouch();
+ document.removeEventListener('scroll', this.onScroll, true);
+ }
+ }, {
+ key: "onMenuOpen",
+ // ==============================
+ // Consumer Handlers
+ // ==============================
+ value: function onMenuOpen() {
+ this.props.onMenuOpen();
+ }
+ }, {
+ key: "onMenuClose",
+ value: function onMenuClose() {
+ var _this$props10 = this.props,
+ isSearchable = _this$props10.isSearchable,
+ isMulti = _this$props10.isMulti;
+ this.announceAriaLiveContext({
+ event: 'input',
+ context: {
+ isSearchable: isSearchable,
+ isMulti: isMulti
+ }
});
- } // some updates should toggle the state of the input visibility
-
-
- if (this.inputIsHiddenAfterUpdate != null) {
- this.setState({
- inputIsHidden: this.inputIsHiddenAfterUpdate
+ this.onInputChange('', {
+ action: 'menu-close'
});
- delete this.inputIsHiddenAfterUpdate;
- }
- };
+ this.props.onMenuClose();
+ }
+ }, {
+ key: "onInputChange",
+ value: function onInputChange(newValue, actionMeta) {
+ this.props.onInputChange(newValue, actionMeta);
+ } // ==============================
+ // Methods
+ // ==============================
+
+ }, {
+ key: "focusInput",
+ value: function focusInput() {
+ if (!this.inputRef) return;
+ this.inputRef.focus();
+ }
+ }, {
+ key: "blurInput",
+ value: function blurInput() {
+ if (!this.inputRef) return;
+ this.inputRef.blur();
+ } // aliased for consumers
+
+ }, {
+ key: "openMenu",
+ value: function openMenu(focusOption) {
+ var _this2 = this;
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
- var _this$props9 = this.props,
- isDisabled = _this$props9.isDisabled,
- menuIsOpen = _this$props9.menuIsOpen;
- var isFocused = this.state.isFocused;
+ var _this$state3 = this.state,
+ selectValue = _this$state3.selectValue,
+ isFocused = _this$state3.isFocused;
+ var menuOptions = this.buildMenuOptions(this.props, selectValue);
+ var isMulti = this.props.isMulti;
+ var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;
- if ( // ensure focus is restored correctly when the control becomes enabled
- isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens
- isFocused && menuIsOpen && !prevProps.menuIsOpen) {
- this.focusInput();
- } // scroll the focused option into view if necessary
+ if (!isMulti) {
+ var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);
+ if (selectedIndex > -1) {
+ openAtIndex = selectedIndex;
+ }
+ } // only scroll if the menu isn't already open
- if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {
- __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["f"](this.menuListRef, this.focusedOptionRef);
- this.scrollToFocusedOptionOnUpdate = false;
- }
- };
- _proto.componentWillUnmount = function componentWillUnmount() {
- this.stopListeningComposition();
- this.stopListeningToTouch();
- document.removeEventListener('scroll', this.onScroll, true);
- };
+ this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);
+ this.inputIsHiddenAfterUpdate = false;
+ this.setState({
+ menuOptions: menuOptions,
+ focusedValue: null,
+ focusedOption: menuOptions.focusable[openAtIndex]
+ }, function () {
+ _this2.onMenuOpen();
- // ==============================
- // Consumer Handlers
- // ==============================
- _proto.onMenuOpen = function onMenuOpen() {
- this.props.onMenuOpen();
- };
+ _this2.announceAriaLiveContext({
+ event: 'menu'
+ });
+ });
+ }
+ }, {
+ key: "focusValue",
+ value: function focusValue(direction) {
+ var _this$props11 = this.props,
+ isMulti = _this$props11.isMulti,
+ isSearchable = _this$props11.isSearchable;
+ var _this$state4 = this.state,
+ selectValue = _this$state4.selectValue,
+ focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing
+
+ if (!isMulti) return;
+ this.setState({
+ focusedOption: null
+ });
+ var focusedIndex = selectValue.indexOf(focusedValue);
- _proto.onMenuClose = function onMenuClose() {
- var _this$props10 = this.props,
- isSearchable = _this$props10.isSearchable,
- isMulti = _this$props10.isMulti;
- this.announceAriaLiveContext({
- event: 'input',
- context: {
- isSearchable: isSearchable,
- isMulti: isMulti
+ if (!focusedValue) {
+ focusedIndex = -1;
+ this.announceAriaLiveContext({
+ event: 'value'
+ });
}
- });
- this.onInputChange('', {
- action: 'menu-close'
- });
- this.props.onMenuClose();
- };
-
- _proto.onInputChange = function onInputChange(newValue, actionMeta) {
- this.props.onInputChange(newValue, actionMeta);
- } // ==============================
- // Methods
- // ==============================
- ;
- _proto.focusInput = function focusInput() {
- if (!this.inputRef) return;
- this.inputRef.focus();
- };
-
- _proto.blurInput = function blurInput() {
- if (!this.inputRef) return;
- this.inputRef.blur();
- } // aliased for consumers
- ;
+ var lastIndex = selectValue.length - 1;
+ var nextFocus = -1;
+ if (!selectValue.length) return;
- _proto.openMenu = function openMenu(focusOption) {
- var _this2 = this;
+ switch (direction) {
+ case 'previous':
+ if (focusedIndex === 0) {
+ // don't cycle from the start to the end
+ nextFocus = 0;
+ } else if (focusedIndex === -1) {
+ // if nothing is focused, focus the last value first
+ nextFocus = lastIndex;
+ } else {
+ nextFocus = focusedIndex - 1;
+ }
- var _this$state3 = this.state,
- selectValue = _this$state3.selectValue,
- isFocused = _this$state3.isFocused;
- var menuOptions = this.buildMenuOptions(this.props, selectValue);
- var isMulti = this.props.isMulti;
- var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;
+ break;
- if (!isMulti) {
- var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);
+ case 'next':
+ if (focusedIndex > -1 && focusedIndex < lastIndex) {
+ nextFocus = focusedIndex + 1;
+ }
- if (selectedIndex > -1) {
- openAtIndex = selectedIndex;
+ break;
}
- } // only scroll if the menu isn't already open
-
-
- this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);
- this.inputIsHiddenAfterUpdate = false;
- this.setState({
- menuOptions: menuOptions,
- focusedValue: null,
- focusedOption: menuOptions.focusable[openAtIndex]
- }, function () {
- _this2.onMenuOpen();
-
- _this2.announceAriaLiveContext({
- event: 'menu'
- });
- });
- };
- _proto.focusValue = function focusValue(direction) {
- var _this$props11 = this.props,
- isMulti = _this$props11.isMulti,
- isSearchable = _this$props11.isSearchable;
- var _this$state4 = this.state,
- selectValue = _this$state4.selectValue,
- focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing
-
- if (!isMulti) return;
- this.setState({
- focusedOption: null
- });
- var focusedIndex = selectValue.indexOf(focusedValue);
+ if (nextFocus === -1) {
+ this.announceAriaLiveContext({
+ event: 'input',
+ context: {
+ isSearchable: isSearchable,
+ isMulti: isMulti
+ }
+ });
+ }
- if (!focusedValue) {
- focusedIndex = -1;
- this.announceAriaLiveContext({
- event: 'value'
+ this.setState({
+ inputIsHidden: nextFocus !== -1,
+ focusedValue: selectValue[nextFocus]
});
}
+ }, {
+ key: "focusOption",
+ value: function focusOption() {
+ var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';
+ var pageSize = this.props.pageSize;
+ var _this$state5 = this.state,
+ focusedOption = _this$state5.focusedOption,
+ menuOptions = _this$state5.menuOptions;
+ var options = menuOptions.focusable;
+ if (!options.length) return;
+ var nextFocus = 0; // handles 'first'
+
+ var focusedIndex = options.indexOf(focusedOption);
+
+ if (!focusedOption) {
+ focusedIndex = -1;
+ this.announceAriaLiveContext({
+ event: 'menu'
+ });
+ }
- var lastIndex = selectValue.length - 1;
- var nextFocus = -1;
- if (!selectValue.length) return;
-
- switch (direction) {
- case 'previous':
- if (focusedIndex === 0) {
- // don't cycle from the start to the end
- nextFocus = 0;
- } else if (focusedIndex === -1) {
- // if nothing is focused, focus the last value first
- nextFocus = lastIndex;
- } else {
- nextFocus = focusedIndex - 1;
- }
-
- break;
-
- case 'next':
- if (focusedIndex > -1 && focusedIndex < lastIndex) {
- nextFocus = focusedIndex + 1;
- }
-
- break;
- }
+ if (direction === 'up') {
+ nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;
+ } else if (direction === 'down') {
+ nextFocus = (focusedIndex + 1) % options.length;
+ } else if (direction === 'pageup') {
+ nextFocus = focusedIndex - pageSize;
+ if (nextFocus < 0) nextFocus = 0;
+ } else if (direction === 'pagedown') {
+ nextFocus = focusedIndex + pageSize;
+ if (nextFocus > options.length - 1) nextFocus = options.length - 1;
+ } else if (direction === 'last') {
+ nextFocus = options.length - 1;
+ }
- if (nextFocus === -1) {
+ this.scrollToFocusedOptionOnUpdate = true;
+ this.setState({
+ focusedOption: options[nextFocus],
+ focusedValue: null
+ });
this.announceAriaLiveContext({
- event: 'input',
+ event: 'menu',
context: {
- isSearchable: isSearchable,
- isMulti: isMulti
+ isDisabled: isOptionDisabled(options[nextFocus])
}
});
}
+ }, {
+ key: "getTheme",
+ // ==============================
+ // Getters
+ // ==============================
+ value: function getTheme() {
+ // Use the default theme if there are no customizations.
+ if (!this.props.theme) {
+ return defaultTheme;
+ } // If the theme prop is a function, assume the function
+ // knows how to merge the passed-in default theme with
+ // its own modifications.
+
+
+ if (typeof this.props.theme === 'function') {
+ return this.props.theme(defaultTheme);
+ } // Otherwise, if a plain theme object was passed in,
+ // overlay it with the default theme.
+
+
+ return _objectSpread$2(_objectSpread$2({}, defaultTheme), this.props.theme);
+ }
+ }, {
+ key: "getCommonProps",
+ value: function getCommonProps() {
+ var clearValue = this.clearValue,
+ getStyles = this.getStyles,
+ setValue = this.setValue,
+ selectOption = this.selectOption,
+ props = this.props;
+ var classNamePrefix = props.classNamePrefix,
+ isMulti = props.isMulti,
+ isRtl = props.isRtl,
+ options = props.options;
+ var selectValue = this.state.selectValue;
+ var hasValue = this.hasValue();
- this.setState({
- inputIsHidden: nextFocus !== -1,
- focusedValue: selectValue[nextFocus]
- });
- };
-
- _proto.focusOption = function focusOption(direction) {
- if (direction === void 0) {
- direction = 'first';
- }
-
- var pageSize = this.props.pageSize;
- var _this$state5 = this.state,
- focusedOption = _this$state5.focusedOption,
- menuOptions = _this$state5.menuOptions;
- var options = menuOptions.focusable;
- if (!options.length) return;
- var nextFocus = 0; // handles 'first'
-
- var focusedIndex = options.indexOf(focusedOption);
+ var getValue = function getValue() {
+ return selectValue;
+ };
- if (!focusedOption) {
- focusedIndex = -1;
- this.announceAriaLiveContext({
- event: 'menu'
- });
+ var cx = __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["d" /* D */].bind(null, classNamePrefix);
+ return {
+ cx: cx,
+ clearValue: clearValue,
+ getStyles: getStyles,
+ getValue: getValue,
+ hasValue: hasValue,
+ isMulti: isMulti,
+ isRtl: isRtl,
+ options: options,
+ selectOption: selectOption,
+ setValue: setValue,
+ selectProps: props,
+ theme: this.getTheme()
+ };
}
-
- if (direction === 'up') {
- nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;
- } else if (direction === 'down') {
- nextFocus = (focusedIndex + 1) % options.length;
- } else if (direction === 'pageup') {
- nextFocus = focusedIndex - pageSize;
- if (nextFocus < 0) nextFocus = 0;
- } else if (direction === 'pagedown') {
- nextFocus = focusedIndex + pageSize;
- if (nextFocus > options.length - 1) nextFocus = options.length - 1;
- } else if (direction === 'last') {
- nextFocus = options.length - 1;
- }
-
- this.scrollToFocusedOptionOnUpdate = true;
- this.setState({
- focusedOption: options[nextFocus],
- focusedValue: null
- });
- this.announceAriaLiveContext({
- event: 'menu',
- context: {
- isDisabled: isOptionDisabled(options[nextFocus])
+ }, {
+ key: "getNextFocusedValue",
+ value: function getNextFocusedValue(nextSelectValue) {
+ if (this.clearFocusValueOnUpdate) {
+ this.clearFocusValueOnUpdate = false;
+ return null;
}
- });
- };
-
- // ==============================
- // Getters
- // ==============================
- _proto.getTheme = function getTheme() {
- // Use the default theme if there are no customizations.
- if (!this.props.theme) {
- return defaultTheme;
- } // If the theme prop is a function, assume the function
- // knows how to merge the passed-in default theme with
- // its own modifications.
+ var _this$state6 = this.state,
+ focusedValue = _this$state6.focusedValue,
+ lastSelectValue = _this$state6.selectValue;
+ var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);
- if (typeof this.props.theme === 'function') {
- return this.props.theme(defaultTheme);
- } // Otherwise, if a plain theme object was passed in,
- // overlay it with the default theme.
-
-
- return _extends$4({}, defaultTheme, this.props.theme);
- };
-
- _proto.getCommonProps = function getCommonProps() {
- var clearValue = this.clearValue,
- getStyles = this.getStyles,
- setValue = this.setValue,
- selectOption = this.selectOption,
- props = this.props;
- var classNamePrefix = props.classNamePrefix,
- isMulti = props.isMulti,
- isRtl = props.isRtl,
- options = props.options;
- var selectValue = this.state.selectValue;
- var hasValue = this.hasValue();
-
- var getValue = function getValue() {
- return selectValue;
- };
+ if (lastFocusedIndex > -1) {
+ var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);
- var cx = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["h"].bind(null, classNamePrefix);
- return {
- cx: cx,
- clearValue: clearValue,
- getStyles: getStyles,
- getValue: getValue,
- hasValue: hasValue,
- isMulti: isMulti,
- isRtl: isRtl,
- options: options,
- selectOption: selectOption,
- setValue: setValue,
- selectProps: props,
- theme: this.getTheme()
- };
- };
+ if (nextFocusedIndex > -1) {
+ // the focused value is still in the selectValue, return it
+ return focusedValue;
+ } else if (lastFocusedIndex < nextSelectValue.length) {
+ // the focusedValue is not present in the next selectValue array by
+ // reference, so return the new value at the same index
+ return nextSelectValue[lastFocusedIndex];
+ }
+ }
- _proto.getNextFocusedValue = function getNextFocusedValue(nextSelectValue) {
- if (this.clearFocusValueOnUpdate) {
- this.clearFocusValueOnUpdate = false;
return null;
}
-
- var _this$state6 = this.state,
- focusedValue = _this$state6.focusedValue,
- lastSelectValue = _this$state6.selectValue;
- var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);
-
- if (lastFocusedIndex > -1) {
- var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);
-
- if (nextFocusedIndex > -1) {
- // the focused value is still in the selectValue, return it
- return focusedValue;
- } else if (lastFocusedIndex < nextSelectValue.length) {
- // the focusedValue is not present in the next selectValue array by
- // reference, so return the new value at the same index
- return nextSelectValue[lastFocusedIndex];
- }
- }
-
- return null;
- };
-
- _proto.getNextFocusedOption = function getNextFocusedOption(options) {
- var lastFocusedOption = this.state.focusedOption;
- return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
- };
-
- _proto.hasValue = function hasValue() {
- var selectValue = this.state.selectValue;
- return selectValue.length > 0;
- };
-
- _proto.hasOptions = function hasOptions() {
- return !!this.state.menuOptions.render.length;
- };
-
- _proto.countOptions = function countOptions() {
- return this.state.menuOptions.focusable.length;
- };
-
- _proto.isClearable = function isClearable() {
- var _this$props12 = this.props,
- isClearable = _this$props12.isClearable,
- isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable
- // multi select, by default, IS clearable
-
- if (isClearable === undefined) return isMulti;
- return isClearable;
- };
-
- _proto.isOptionDisabled = function isOptionDisabled(option, selectValue) {
- return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;
- };
-
- _proto.isOptionSelected = function isOptionSelected(option, selectValue) {
- var _this3 = this;
-
- if (selectValue.indexOf(option) > -1) return true;
-
- if (typeof this.props.isOptionSelected === 'function') {
- return this.props.isOptionSelected(option, selectValue);
+ }, {
+ key: "getNextFocusedOption",
+ value: function getNextFocusedOption(options) {
+ var lastFocusedOption = this.state.focusedOption;
+ return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
}
-
- var candidate = this.getOptionValue(option);
- return selectValue.some(function (i) {
- return _this3.getOptionValue(i) === candidate;
- });
- };
-
- _proto.filterOption = function filterOption(option, inputValue) {
- return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;
- };
-
- _proto.formatOptionLabel = function formatOptionLabel(data, context) {
- if (typeof this.props.formatOptionLabel === 'function') {
- var inputValue = this.props.inputValue;
+ }, {
+ key: "hasValue",
+ value: function hasValue() {
var selectValue = this.state.selectValue;
- return this.props.formatOptionLabel(data, {
- context: context,
- inputValue: inputValue,
- selectValue: selectValue
- });
- } else {
- return this.getOptionLabel(data);
+ return selectValue.length > 0;
}
- };
-
- _proto.formatGroupLabel = function formatGroupLabel(data) {
- return this.props.formatGroupLabel(data);
- } // ==============================
- // Mouse Handlers
- // ==============================
- ;
-
- // ==============================
- // Composition Handlers
- // ==============================
- _proto.startListeningComposition = function startListeningComposition() {
- if (document && document.addEventListener) {
- document.addEventListener('compositionstart', this.onCompositionStart, false);
- document.addEventListener('compositionend', this.onCompositionEnd, false);
+ }, {
+ key: "hasOptions",
+ value: function hasOptions() {
+ return !!this.state.menuOptions.render.length;
}
- };
-
- _proto.stopListeningComposition = function stopListeningComposition() {
- if (document && document.removeEventListener) {
- document.removeEventListener('compositionstart', this.onCompositionStart);
- document.removeEventListener('compositionend', this.onCompositionEnd);
+ }, {
+ key: "countOptions",
+ value: function countOptions() {
+ return this.state.menuOptions.focusable.length;
}
- };
+ }, {
+ key: "isClearable",
+ value: function isClearable() {
+ var _this$props12 = this.props,
+ isClearable = _this$props12.isClearable,
+ isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable
+ // multi select, by default, IS clearable
- // ==============================
- // Touch Handlers
- // ==============================
- _proto.startListeningToTouch = function startListeningToTouch() {
- if (document && document.addEventListener) {
- document.addEventListener('touchstart', this.onTouchStart, false);
- document.addEventListener('touchmove', this.onTouchMove, false);
- document.addEventListener('touchend', this.onTouchEnd, false);
+ if (isClearable === undefined) return isMulti;
+ return isClearable;
}
- };
+ }, {
+ key: "isOptionDisabled",
+ value: function isOptionDisabled(option, selectValue) {
+ return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;
+ }
+ }, {
+ key: "isOptionSelected",
+ value: function isOptionSelected(option, selectValue) {
+ var _this3 = this;
+
+ if (selectValue.indexOf(option) > -1) return true;
- _proto.stopListeningToTouch = function stopListeningToTouch() {
- if (document && document.removeEventListener) {
- document.removeEventListener('touchstart', this.onTouchStart);
- document.removeEventListener('touchmove', this.onTouchMove);
- document.removeEventListener('touchend', this.onTouchEnd);
+ if (typeof this.props.isOptionSelected === 'function') {
+ return this.props.isOptionSelected(option, selectValue);
+ }
+
+ var candidate = this.getOptionValue(option);
+ return selectValue.some(function (i) {
+ return _this3.getOptionValue(i) === candidate;
+ });
}
- };
+ }, {
+ key: "filterOption",
+ value: function filterOption(option, inputValue) {
+ return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;
+ }
+ }, {
+ key: "formatOptionLabel",
+ value: function formatOptionLabel(data, context) {
+ if (typeof this.props.formatOptionLabel === 'function') {
+ var inputValue = this.props.inputValue;
+ var selectValue = this.state.selectValue;
+ return this.props.formatOptionLabel(data, {
+ context: context,
+ inputValue: inputValue,
+ selectValue: selectValue
+ });
+ } else {
+ return this.getOptionLabel(data);
+ }
+ }
+ }, {
+ key: "formatGroupLabel",
+ value: function formatGroupLabel(data) {
+ return this.props.formatGroupLabel(data);
+ } // ==============================
+ // Mouse Handlers
+ // ==============================
+
+ }, {
+ key: "startListeningComposition",
+ // ==============================
+ // Composition Handlers
+ // ==============================
+ value: function startListeningComposition() {
+ if (document && document.addEventListener) {
+ document.addEventListener('compositionstart', this.onCompositionStart, false);
+ document.addEventListener('compositionend', this.onCompositionEnd, false);
+ }
+ }
+ }, {
+ key: "stopListeningComposition",
+ value: function stopListeningComposition() {
+ if (document && document.removeEventListener) {
+ document.removeEventListener('compositionstart', this.onCompositionStart);
+ document.removeEventListener('compositionend', this.onCompositionEnd);
+ }
+ }
+ }, {
+ key: "startListeningToTouch",
+ // ==============================
+ // Touch Handlers
+ // ==============================
+ value: function startListeningToTouch() {
+ if (document && document.addEventListener) {
+ document.addEventListener('touchstart', this.onTouchStart, false);
+ document.addEventListener('touchmove', this.onTouchMove, false);
+ document.addEventListener('touchend', this.onTouchEnd, false);
+ }
+ }
+ }, {
+ key: "stopListeningToTouch",
+ value: function stopListeningToTouch() {
+ if (document && document.removeEventListener) {
+ document.removeEventListener('touchstart', this.onTouchStart);
+ document.removeEventListener('touchmove', this.onTouchMove);
+ document.removeEventListener('touchend', this.onTouchEnd);
+ }
+ }
+ }, {
+ key: "constructAriaLiveMessage",
+ // ==============================
+ // Renderers
+ // ==============================
+ value: function constructAriaLiveMessage() {
+ var _this$state7 = this.state,
+ ariaLiveContext = _this$state7.ariaLiveContext,
+ selectValue = _this$state7.selectValue,
+ focusedValue = _this$state7.focusedValue,
+ focusedOption = _this$state7.focusedOption;
+ var _this$props13 = this.props,
+ options = _this$props13.options,
+ menuIsOpen = _this$props13.menuIsOpen,
+ inputValue = _this$props13.inputValue,
+ screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.
+
+ var focusedValueMsg = focusedValue ? valueFocusAriaMessage({
+ focusedValue: focusedValue,
+ getOptionLabel: this.getOptionLabel,
+ selectValue: selectValue
+ }) : ''; // An aria live message representing the currently focused option in the select.
- // ==============================
- // Renderers
- // ==============================
- _proto.constructAriaLiveMessage = function constructAriaLiveMessage() {
- var _this$state7 = this.state,
- ariaLiveContext = _this$state7.ariaLiveContext,
- selectValue = _this$state7.selectValue,
- focusedValue = _this$state7.focusedValue,
- focusedOption = _this$state7.focusedOption;
- var _this$props13 = this.props,
- options = _this$props13.options,
- menuIsOpen = _this$props13.menuIsOpen,
- inputValue = _this$props13.inputValue,
- screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.
-
- var focusedValueMsg = focusedValue ? valueFocusAriaMessage({
- focusedValue: focusedValue,
- getOptionLabel: this.getOptionLabel,
- selectValue: selectValue
- }) : ''; // An aria live message representing the currently focused option in the select.
-
- var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({
- focusedOption: focusedOption,
- getOptionLabel: this.getOptionLabel,
- options: options
- }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.
-
- var resultsMsg = resultsAriaMessage({
- inputValue: inputValue,
- screenReaderMessage: screenReaderStatus({
- count: this.countOptions()
- })
- });
- return focusedValueMsg + " " + focusedOptionMsg + " " + resultsMsg + " " + ariaLiveContext;
- };
+ var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({
+ focusedOption: focusedOption,
+ getOptionLabel: this.getOptionLabel,
+ options: options
+ }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.
- _proto.renderInput = function renderInput() {
- var _this$props14 = this.props,
- isDisabled = _this$props14.isDisabled,
- isSearchable = _this$props14.isSearchable,
- inputId = _this$props14.inputId,
- inputValue = _this$props14.inputValue,
- tabIndex = _this$props14.tabIndex;
- var Input = this.components.Input;
- var inputIsHidden = this.state.inputIsHidden;
- var id = inputId || this.getElementId('input'); // aria attributes makes the JSX "noisy", separated for clarity
-
- var ariaAttributes = {
- 'aria-autocomplete': 'list',
- 'aria-label': this.props['aria-label'],
- 'aria-labelledby': this.props['aria-labelledby']
- };
+ var resultsMsg = resultsAriaMessage({
+ inputValue: inputValue,
+ screenReaderMessage: screenReaderStatus({
+ count: this.countOptions()
+ })
+ });
+ return "".concat(focusedValueMsg, " ").concat(focusedOptionMsg, " ").concat(resultsMsg, " ").concat(ariaLiveContext);
+ }
+ }, {
+ key: "renderInput",
+ value: function renderInput() {
+ var _this$props14 = this.props,
+ isDisabled = _this$props14.isDisabled,
+ isSearchable = _this$props14.isSearchable,
+ inputId = _this$props14.inputId,
+ inputValue = _this$props14.inputValue,
+ tabIndex = _this$props14.tabIndex,
+ form = _this$props14.form;
+ var Input = this.components.Input;
+ var inputIsHidden = this.state.inputIsHidden;
+ var id = inputId || this.getElementId('input'); // aria attributes makes the JSX "noisy", separated for clarity
+
+ var ariaAttributes = {
+ 'aria-autocomplete': 'list',
+ 'aria-label': this.props['aria-label'],
+ 'aria-labelledby': this.props['aria-labelledby']
+ };
- if (!isSearchable) {
- // use a dummy input to maintain focus/blur functionality
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DummyInput, _extends$4({
+ if (!isSearchable) {
+ // use a dummy input to maintain focus/blur functionality
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
+ id: id,
+ innerRef: this.getInputRef,
+ onBlur: this.onInputBlur,
+ onChange: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["e" /* E */],
+ onFocus: this.onInputFocus,
+ readOnly: true,
+ disabled: isDisabled,
+ tabIndex: tabIndex,
+ form: form,
+ value: ""
+ }, ariaAttributes));
+ }
+
+ var _this$commonProps = this.commonProps,
+ cx = _this$commonProps.cx,
+ theme = _this$commonProps.theme,
+ selectProps = _this$commonProps.selectProps;
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
+ autoCapitalize: "none",
+ autoComplete: "off",
+ autoCorrect: "off",
+ cx: cx,
+ getStyles: this.getStyles,
id: id,
innerRef: this.getInputRef,
+ isDisabled: isDisabled,
+ isHidden: inputIsHidden,
onBlur: this.onInputBlur,
- onChange: __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["k" /* n */],
+ onChange: this.handleInputChange,
onFocus: this.onInputFocus,
- readOnly: true,
- disabled: isDisabled,
+ selectProps: selectProps,
+ spellCheck: "false",
tabIndex: tabIndex,
- value: ""
+ form: form,
+ theme: theme,
+ type: "text",
+ value: inputValue
}, ariaAttributes));
}
-
- var _this$commonProps = this.commonProps,
- cx = _this$commonProps.cx,
- theme = _this$commonProps.theme,
- selectProps = _this$commonProps.selectProps;
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Input, _extends$4({
- autoCapitalize: "none",
- autoComplete: "off",
- autoCorrect: "off",
- cx: cx,
- getStyles: this.getStyles,
- id: id,
- innerRef: this.getInputRef,
- isDisabled: isDisabled,
- isHidden: inputIsHidden,
- onBlur: this.onInputBlur,
- onChange: this.handleInputChange,
- onFocus: this.onInputFocus,
- selectProps: selectProps,
- spellCheck: "false",
- tabIndex: tabIndex,
- theme: theme,
- type: "text",
- value: inputValue
- }, ariaAttributes));
- };
-
- _proto.renderPlaceholderOrValue = function renderPlaceholderOrValue() {
- var _this4 = this;
-
- var _this$components = this.components,
- MultiValue = _this$components.MultiValue,
- MultiValueContainer = _this$components.MultiValueContainer,
- MultiValueLabel = _this$components.MultiValueLabel,
- MultiValueRemove = _this$components.MultiValueRemove,
- SingleValue = _this$components.SingleValue,
- Placeholder = _this$components.Placeholder;
- var commonProps = this.commonProps;
- var _this$props15 = this.props,
- controlShouldRenderValue = _this$props15.controlShouldRenderValue,
- isDisabled = _this$props15.isDisabled,
- isMulti = _this$props15.isMulti,
- inputValue = _this$props15.inputValue,
- placeholder = _this$props15.placeholder;
- var _this$state8 = this.state,
- selectValue = _this$state8.selectValue,
- focusedValue = _this$state8.focusedValue,
- isFocused = _this$state8.isFocused;
-
- if (!this.hasValue() || !controlShouldRenderValue) {
- return inputValue ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Placeholder, _extends$4({}, commonProps, {
- key: "placeholder",
- isDisabled: isDisabled,
- isFocused: isFocused
- }), placeholder);
- }
-
- if (isMulti) {
- var selectValues = selectValue.map(function (opt, index) {
- var isOptionFocused = opt === focusedValue;
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MultiValue, _extends$4({}, commonProps, {
- components: {
- Container: MultiValueContainer,
- Label: MultiValueLabel,
- Remove: MultiValueRemove
- },
- isFocused: isOptionFocused,
+ }, {
+ key: "renderPlaceholderOrValue",
+ value: function renderPlaceholderOrValue() {
+ var _this4 = this;
+
+ var _this$components = this.components,
+ MultiValue = _this$components.MultiValue,
+ MultiValueContainer = _this$components.MultiValueContainer,
+ MultiValueLabel = _this$components.MultiValueLabel,
+ MultiValueRemove = _this$components.MultiValueRemove,
+ SingleValue = _this$components.SingleValue,
+ Placeholder = _this$components.Placeholder;
+ var commonProps = this.commonProps;
+ var _this$props15 = this.props,
+ controlShouldRenderValue = _this$props15.controlShouldRenderValue,
+ isDisabled = _this$props15.isDisabled,
+ isMulti = _this$props15.isMulti,
+ inputValue = _this$props15.inputValue,
+ placeholder = _this$props15.placeholder;
+ var _this$state8 = this.state,
+ selectValue = _this$state8.selectValue,
+ focusedValue = _this$state8.focusedValue,
+ isFocused = _this$state8.isFocused;
+
+ if (!this.hasValue() || !controlShouldRenderValue) {
+ return inputValue ? null : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ key: "placeholder",
isDisabled: isDisabled,
- key: _this4.getOptionValue(opt),
- index: index,
- removeProps: {
- onClick: function onClick() {
- return _this4.removeValue(opt);
+ isFocused: isFocused
+ }), placeholder);
+ }
+
+ if (isMulti) {
+ var selectValues = selectValue.map(function (opt, index) {
+ var isOptionFocused = opt === focusedValue;
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ components: {
+ Container: MultiValueContainer,
+ Label: MultiValueLabel,
+ Remove: MultiValueRemove
},
- onTouchEnd: function onTouchEnd() {
- return _this4.removeValue(opt);
+ isFocused: isOptionFocused,
+ isDisabled: isDisabled,
+ key: _this4.getOptionValue(opt),
+ index: index,
+ removeProps: {
+ onClick: function onClick() {
+ return _this4.removeValue(opt);
+ },
+ onTouchEnd: function onTouchEnd() {
+ return _this4.removeValue(opt);
+ },
+ onMouseDown: function onMouseDown(e) {
+ e.preventDefault();
+ e.stopPropagation();
+ }
},
- onMouseDown: function onMouseDown(e) {
- e.preventDefault();
- e.stopPropagation();
- }
- },
- data: opt
- }), _this4.formatOptionLabel(opt, 'value'));
- });
- return selectValues;
- }
-
- if (inputValue) {
- return null;
- }
-
- var singleValue = selectValue[0];
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SingleValue, _extends$4({}, commonProps, {
- data: singleValue,
- isDisabled: isDisabled
- }), this.formatOptionLabel(singleValue, 'value'));
- };
+ data: opt
+ }), _this4.formatOptionLabel(opt, 'value'));
+ });
+ return selectValues;
+ }
- _proto.renderClearIndicator = function renderClearIndicator() {
- var ClearIndicator = this.components.ClearIndicator;
- var commonProps = this.commonProps;
- var _this$props16 = this.props,
- isDisabled = _this$props16.isDisabled,
- isLoading = _this$props16.isLoading;
- var isFocused = this.state.isFocused;
+ if (inputValue) {
+ return null;
+ }
- if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {
- return null;
+ var singleValue = selectValue[0];
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ data: singleValue,
+ isDisabled: isDisabled
+ }), this.formatOptionLabel(singleValue, 'value'));
}
+ }, {
+ key: "renderClearIndicator",
+ value: function renderClearIndicator() {
+ var ClearIndicator = this.components.ClearIndicator;
+ var commonProps = this.commonProps;
+ var _this$props16 = this.props,
+ isDisabled = _this$props16.isDisabled,
+ isLoading = _this$props16.isLoading;
+ var isFocused = this.state.isFocused;
- var innerProps = {
- onMouseDown: this.onClearIndicatorMouseDown,
- onTouchEnd: this.onClearIndicatorTouchEnd,
- 'aria-hidden': 'true'
- };
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ClearIndicator, _extends$4({}, commonProps, {
- innerProps: innerProps,
- isFocused: isFocused
- }));
- };
-
- _proto.renderLoadingIndicator = function renderLoadingIndicator() {
- var LoadingIndicator = this.components.LoadingIndicator;
- var commonProps = this.commonProps;
- var _this$props17 = this.props,
- isDisabled = _this$props17.isDisabled,
- isLoading = _this$props17.isLoading;
- var isFocused = this.state.isFocused;
- if (!LoadingIndicator || !isLoading) return null;
- var innerProps = {
- 'aria-hidden': 'true'
- };
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingIndicator, _extends$4({}, commonProps, {
- innerProps: innerProps,
- isDisabled: isDisabled,
- isFocused: isFocused
- }));
- };
-
- _proto.renderIndicatorSeparator = function renderIndicatorSeparator() {
- var _this$components2 = this.components,
- DropdownIndicator = _this$components2.DropdownIndicator,
- IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator
-
- if (!DropdownIndicator || !IndicatorSeparator) return null;
- var commonProps = this.commonProps;
- var isDisabled = this.props.isDisabled;
- var isFocused = this.state.isFocused;
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorSeparator, _extends$4({}, commonProps, {
- isDisabled: isDisabled,
- isFocused: isFocused
- }));
- };
-
- _proto.renderDropdownIndicator = function renderDropdownIndicator() {
- var DropdownIndicator = this.components.DropdownIndicator;
- if (!DropdownIndicator) return null;
- var commonProps = this.commonProps;
- var isDisabled = this.props.isDisabled;
- var isFocused = this.state.isFocused;
- var innerProps = {
- onMouseDown: this.onDropdownIndicatorMouseDown,
- onTouchEnd: this.onDropdownIndicatorTouchEnd,
- 'aria-hidden': 'true'
- };
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DropdownIndicator, _extends$4({}, commonProps, {
- innerProps: innerProps,
- isDisabled: isDisabled,
- isFocused: isFocused
- }));
- };
+ if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {
+ return null;
+ }
- _proto.renderMenu = function renderMenu() {
- var _this5 = this;
-
- var _this$components3 = this.components,
- Group = _this$components3.Group,
- GroupHeading = _this$components3.GroupHeading,
- Menu = _this$components3.Menu,
- MenuList = _this$components3.MenuList,
- MenuPortal = _this$components3.MenuPortal,
- LoadingMessage = _this$components3.LoadingMessage,
- NoOptionsMessage = _this$components3.NoOptionsMessage,
- Option = _this$components3.Option;
- var commonProps = this.commonProps;
- var _this$state9 = this.state,
- focusedOption = _this$state9.focusedOption,
- menuOptions = _this$state9.menuOptions;
- var _this$props18 = this.props,
- captureMenuScroll = _this$props18.captureMenuScroll,
- inputValue = _this$props18.inputValue,
- isLoading = _this$props18.isLoading,
- loadingMessage = _this$props18.loadingMessage,
- minMenuHeight = _this$props18.minMenuHeight,
- maxMenuHeight = _this$props18.maxMenuHeight,
- menuIsOpen = _this$props18.menuIsOpen,
- menuPlacement = _this$props18.menuPlacement,
- menuPosition = _this$props18.menuPosition,
- menuPortalTarget = _this$props18.menuPortalTarget,
- menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,
- menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,
- noOptionsMessage = _this$props18.noOptionsMessage,
- onMenuScrollToTop = _this$props18.onMenuScrollToTop,
- onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;
- if (!menuIsOpen) return null; // TODO: Internal Option Type here
-
- var render = function render(props) {
- // for performance, the menu options in state aren't changed when the
- // focused option changes so we calculate additional props based on that
- var isFocused = focusedOption === props.data;
- props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Option, _extends$4({}, commonProps, props, {
+ var innerProps = {
+ onMouseDown: this.onClearIndicatorMouseDown,
+ onTouchEnd: this.onClearIndicatorTouchEnd,
+ 'aria-hidden': 'true'
+ };
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ innerProps: innerProps,
isFocused: isFocused
- }), _this5.formatOptionLabel(props.data, 'menu'));
- };
-
- var menuUI;
-
- if (this.hasOptions()) {
- menuUI = menuOptions.render.map(function (item) {
- if (item.type === 'group') {
- var type = item.type,
- group = _objectWithoutPropertiesLoose$2(item, ["type"]);
-
- var headingId = item.key + "-heading";
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Group, _extends$4({}, commonProps, group, {
- Heading: GroupHeading,
- headingProps: {
- id: headingId
- },
- label: _this5.formatGroupLabel(item.data)
- }), item.options.map(function (option) {
- return render(option);
- }));
- } else if (item.type === 'option') {
- return render(item);
- }
- });
- } else if (isLoading) {
- var message = loadingMessage({
- inputValue: inputValue
- });
- if (message === null) return null;
- menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingMessage, commonProps, message);
- } else {
- var _message = noOptionsMessage({
- inputValue: inputValue
- });
-
- if (_message === null) return null;
- menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NoOptionsMessage, commonProps, _message);
+ }));
}
+ }, {
+ key: "renderLoadingIndicator",
+ value: function renderLoadingIndicator() {
+ var LoadingIndicator = this.components.LoadingIndicator;
+ var commonProps = this.commonProps;
+ var _this$props17 = this.props,
+ isDisabled = _this$props17.isDisabled,
+ isLoading = _this$props17.isLoading;
+ var isFocused = this.state.isFocused;
+ if (!LoadingIndicator || !isLoading) return null;
+ var innerProps = {
+ 'aria-hidden': 'true'
+ };
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ innerProps: innerProps,
+ isDisabled: isDisabled,
+ isFocused: isFocused
+ }));
+ }
+ }, {
+ key: "renderIndicatorSeparator",
+ value: function renderIndicatorSeparator() {
+ var _this$components2 = this.components,
+ DropdownIndicator = _this$components2.DropdownIndicator,
+ IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator
+
+ if (!DropdownIndicator || !IndicatorSeparator) return null;
+ var commonProps = this.commonProps;
+ var isDisabled = this.props.isDisabled;
+ var isFocused = this.state.isFocused;
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ isDisabled: isDisabled,
+ isFocused: isFocused
+ }));
+ }
+ }, {
+ key: "renderDropdownIndicator",
+ value: function renderDropdownIndicator() {
+ var DropdownIndicator = this.components.DropdownIndicator;
+ if (!DropdownIndicator) return null;
+ var commonProps = this.commonProps;
+ var isDisabled = this.props.isDisabled;
+ var isFocused = this.state.isFocused;
+ var innerProps = {
+ onMouseDown: this.onDropdownIndicatorMouseDown,
+ onTouchEnd: this.onDropdownIndicatorTouchEnd,
+ 'aria-hidden': 'true'
+ };
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ innerProps: innerProps,
+ isDisabled: isDisabled,
+ isFocused: isFocused
+ }));
+ }
+ }, {
+ key: "renderMenu",
+ value: function renderMenu() {
+ var _this5 = this;
+
+ var _this$components3 = this.components,
+ Group = _this$components3.Group,
+ GroupHeading = _this$components3.GroupHeading,
+ Menu = _this$components3.Menu,
+ MenuList = _this$components3.MenuList,
+ MenuPortal = _this$components3.MenuPortal,
+ LoadingMessage = _this$components3.LoadingMessage,
+ NoOptionsMessage = _this$components3.NoOptionsMessage,
+ Option = _this$components3.Option;
+ var commonProps = this.commonProps;
+ var _this$state9 = this.state,
+ focusedOption = _this$state9.focusedOption,
+ menuOptions = _this$state9.menuOptions;
+ var _this$props18 = this.props,
+ captureMenuScroll = _this$props18.captureMenuScroll,
+ inputValue = _this$props18.inputValue,
+ isLoading = _this$props18.isLoading,
+ loadingMessage = _this$props18.loadingMessage,
+ minMenuHeight = _this$props18.minMenuHeight,
+ maxMenuHeight = _this$props18.maxMenuHeight,
+ menuIsOpen = _this$props18.menuIsOpen,
+ menuPlacement = _this$props18.menuPlacement,
+ menuPosition = _this$props18.menuPosition,
+ menuPortalTarget = _this$props18.menuPortalTarget,
+ menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,
+ menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,
+ noOptionsMessage = _this$props18.noOptionsMessage,
+ onMenuScrollToTop = _this$props18.onMenuScrollToTop,
+ onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;
+ if (!menuIsOpen) return null; // TODO: Internal Option Type here
+
+ var render = function render(props) {
+ // for performance, the menu options in state aren't changed when the
+ // focused option changes so we calculate additional props based on that
+ var isFocused = focusedOption === props.data;
+ props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, props, {
+ isFocused: isFocused
+ }), _this5.formatOptionLabel(props.data, 'menu'));
+ };
- var menuPlacementProps = {
- minMenuHeight: minMenuHeight,
- maxMenuHeight: maxMenuHeight,
- menuPlacement: menuPlacement,
- menuPosition: menuPosition,
- menuShouldScrollIntoView: menuShouldScrollIntoView
- };
- var menuElement = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["a" /* M */], _extends$4({}, commonProps, menuPlacementProps), function (_ref8) {
- var ref = _ref8.ref,
- _ref8$placerProps = _ref8.placerProps,
- placement = _ref8$placerProps.placement,
- maxHeight = _ref8$placerProps.maxHeight;
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Menu, _extends$4({}, commonProps, menuPlacementProps, {
- innerRef: ref,
- innerProps: {
- onMouseDown: _this5.onMenuMouseDown,
- onMouseMove: _this5.onMenuMouseMove
- },
- isLoading: isLoading,
- placement: placement
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptorSwitch, {
- isEnabled: captureMenuScroll,
- onTopArrive: onMenuScrollToTop,
- onBottomArrive: onMenuScrollToBottom
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollBlock, {
- isEnabled: menuShouldBlockScroll
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuList, _extends$4({}, commonProps, {
- innerRef: _this5.getMenuListRef,
- isLoading: isLoading,
- maxHeight: maxHeight
- }), menuUI))));
- }); // positioning behaviour is almost identical for portalled and fixed,
- // so we use the same component. the actual portalling logic is forked
- // within the component based on `menuPosition`
-
- return menuPortalTarget || menuPosition === 'fixed' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuPortal, _extends$4({}, commonProps, {
- appendTo: menuPortalTarget,
- controlElement: this.controlRef,
- menuPlacement: menuPlacement,
- menuPosition: menuPosition
- }), menuElement) : menuElement;
- };
-
- _proto.renderFormField = function renderFormField() {
- var _this6 = this;
-
- var _this$props19 = this.props,
- delimiter = _this$props19.delimiter,
- isDisabled = _this$props19.isDisabled,
- isMulti = _this$props19.isMulti,
- name = _this$props19.name;
- var selectValue = this.state.selectValue;
- if (!name || isDisabled) return;
-
- if (isMulti) {
- if (delimiter) {
- var value = selectValue.map(function (opt) {
- return _this6.getOptionValue(opt);
- }).join(delimiter);
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
- name: name,
- type: "hidden",
- value: value
+ var menuUI;
+
+ if (this.hasOptions()) {
+ menuUI = menuOptions.render.map(function (item) {
+ if (item.type === 'group') {
+ var type = item.type,
+ group = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(item, ["type"]);
+
+ var headingId = "".concat(item.key, "-heading");
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, group, {
+ Heading: GroupHeading,
+ headingProps: {
+ id: headingId
+ },
+ label: _this5.formatGroupLabel(item.data)
+ }), item.options.map(function (option) {
+ return render(option);
+ }));
+ } else if (item.type === 'option') {
+ return render(item);
+ }
});
+ } else if (isLoading) {
+ var message = loadingMessage({
+ inputValue: inputValue
+ });
+ if (message === null) return null;
+ menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage, commonProps, message);
} else {
- var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
- key: "i-" + i,
+ var _message = noOptionsMessage({
+ inputValue: inputValue
+ });
+
+ if (_message === null) return null;
+ menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage, commonProps, _message);
+ }
+
+ var menuPlacementProps = {
+ minMenuHeight: minMenuHeight,
+ maxMenuHeight: maxMenuHeight,
+ menuPlacement: menuPlacement,
+ menuPosition: menuPosition,
+ menuShouldScrollIntoView: menuShouldScrollIntoView
+ };
+ var menuElement = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["f" /* M */], Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps), function (_ref10) {
+ var ref = _ref10.ref,
+ _ref10$placerProps = _ref10.placerProps,
+ placement = _ref10$placerProps.placement,
+ maxHeight = _ref10$placerProps.maxHeight;
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps, {
+ innerRef: ref,
+ innerProps: {
+ onMouseDown: _this5.onMenuMouseDown,
+ onMouseMove: _this5.onMenuMouseMove
+ },
+ isLoading: isLoading,
+ placement: placement
+ }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch, {
+ isEnabled: captureMenuScroll,
+ onTopArrive: onMenuScrollToTop,
+ onBottomArrive: onMenuScrollToBottom
+ }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock, {
+ isEnabled: menuShouldBlockScroll
+ }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ innerRef: _this5.getMenuListRef,
+ isLoading: isLoading,
+ maxHeight: maxHeight
+ }), menuUI))));
+ }); // positioning behaviour is almost identical for portalled and fixed,
+ // so we use the same component. the actual portalling logic is forked
+ // within the component based on `menuPosition`
+
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ appendTo: menuPortalTarget,
+ controlElement: this.controlRef,
+ menuPlacement: menuPlacement,
+ menuPosition: menuPosition
+ }), menuElement) : menuElement;
+ }
+ }, {
+ key: "renderFormField",
+ value: function renderFormField() {
+ var _this6 = this;
+
+ var _this$props19 = this.props,
+ delimiter = _this$props19.delimiter,
+ isDisabled = _this$props19.isDisabled,
+ isMulti = _this$props19.isMulti,
+ name = _this$props19.name;
+ var selectValue = this.state.selectValue;
+ if (!name || isDisabled) return;
+
+ if (isMulti) {
+ if (delimiter) {
+ var value = selectValue.map(function (opt) {
+ return _this6.getOptionValue(opt);
+ }).join(delimiter);
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
name: name,
type: "hidden",
- value: _this6.getOptionValue(opt)
+ value: value
+ });
+ } else {
+ var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
+ key: "i-".concat(i),
+ name: name,
+ type: "hidden",
+ value: _this6.getOptionValue(opt)
+ });
+ }) : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
+ name: name,
+ type: "hidden"
});
- }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div", null, input);
+ }
+ } else {
+ var _value2 = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
+
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
name: name,
- type: "hidden"
+ type: "hidden",
+ value: _value2
});
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, input);
}
- } else {
- var _value2 = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
-
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
- name: name,
- type: "hidden",
- value: _value2
- });
}
- };
-
- _proto.renderLiveRegion = function renderLiveRegion() {
- if (!this.state.isFocused) return null;
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(A11yText, {
- "aria-live": "polite"
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
- id: "aria-selection-event"
- }, "\xA0", this.state.ariaLiveSelection), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
- id: "aria-context"
- }, "\xA0", this.constructAriaLiveMessage()));
- };
-
- _proto.render = function render() {
- var _this$components4 = this.components,
- Control = _this$components4.Control,
- IndicatorsContainer = _this$components4.IndicatorsContainer,
- SelectContainer = _this$components4.SelectContainer,
- ValueContainer = _this$components4.ValueContainer;
- var _this$props20 = this.props,
- className = _this$props20.className,
- id = _this$props20.id,
- isDisabled = _this$props20.isDisabled,
- menuIsOpen = _this$props20.menuIsOpen;
- var isFocused = this.state.isFocused;
- var commonProps = this.commonProps = this.getCommonProps();
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectContainer, _extends$4({}, commonProps, {
- className: className,
- innerProps: {
- id: id,
- onKeyDown: this.onKeyDown
- },
- isDisabled: isDisabled,
- isFocused: isFocused
- }), this.renderLiveRegion(), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Control, _extends$4({}, commonProps, {
- innerRef: this.getControlRef,
- innerProps: {
- onMouseDown: this.onControlMouseDown,
- onTouchEnd: this.onControlTouchEnd
- },
- isDisabled: isDisabled,
- isFocused: isFocused,
- menuIsOpen: menuIsOpen
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ValueContainer, _extends$4({}, commonProps, {
- isDisabled: isDisabled
- }), this.renderPlaceholderOrValue(), this.renderInput()), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorsContainer, _extends$4({}, commonProps, {
- isDisabled: isDisabled
- }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
- };
+ }, {
+ key: "renderLiveRegion",
+ value: function renderLiveRegion() {
+ if (!this.state.isFocused) return null;
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText, {
+ "aria-live": "polite"
+ }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", {
+ id: "aria-selection-event"
+ }, "\xA0", this.state.ariaLiveSelection), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", {
+ id: "aria-context"
+ }, "\xA0", this.constructAriaLiveMessage()));
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ var _this$components4 = this.components,
+ Control = _this$components4.Control,
+ IndicatorsContainer = _this$components4.IndicatorsContainer,
+ SelectContainer = _this$components4.SelectContainer,
+ ValueContainer = _this$components4.ValueContainer;
+ var _this$props20 = this.props,
+ className = _this$props20.className,
+ id = _this$props20.id,
+ isDisabled = _this$props20.isDisabled,
+ menuIsOpen = _this$props20.menuIsOpen;
+ var isFocused = this.state.isFocused;
+ var commonProps = this.commonProps = this.getCommonProps();
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ className: className,
+ innerProps: {
+ id: id,
+ onKeyDown: this.onKeyDown
+ },
+ isDisabled: isDisabled,
+ isFocused: isFocused
+ }), this.renderLiveRegion(), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ innerRef: this.getControlRef,
+ innerProps: {
+ onMouseDown: this.onControlMouseDown,
+ onTouchEnd: this.onControlTouchEnd
+ },
+ isDisabled: isDisabled,
+ isFocused: isFocused,
+ menuIsOpen: menuIsOpen
+ }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ isDisabled: isDisabled
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
+ isDisabled: isDisabled
+ }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
+ }
+ }]);
return Select;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
+}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
Select.defaultProps = defaultProps;
-/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 6)))
/***/ }),
-/* 140 */
+/* 177 */
+/*!*********************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
+ \*********************************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _unsupportedIterableToArray;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_arrayLikeToArray__ = __webpack_require__(/*! @babel/runtime/helpers/esm/arrayLikeToArray */ 178);
+
+function _unsupportedIterableToArray(o, minLen) {
+ if (!o) return;
+ if (typeof o === "string") return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_arrayLikeToArray__["a" /* default */])(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(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_arrayLikeToArray__["a" /* default */])(o, minLen);
+}
+
+/***/ }),
+/* 178 */
+/*!***********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
+ \***********************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _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;
+}
+
+/***/ }),
+/* 179 */
/*!************************************************!*\
!*** ./src/blocks/advanced-heading/style.scss ***!
\************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
-/* 141 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/toNumber.js ***!
+/* 180 */
+/*!********************************************!*\
+ !*** ./src/blocks/post/post-title/edit.js ***!
+ \********************************************/
+/*! exports provided: PostTitle */
+/*! exports used: PostTitle */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostTitle; });
+var decodeEntities = wp.htmlEntities.decodeEntities;
+var __ = wp.i18n.__;
+
+
+var PostTitle = function PostTitle(props) {
+ var attributes = props.attributes,
+ post = props.post;
+
+
+ var Tag = attributes.titleTag;
+
+ var target = attributes.newTab ? "_blank" : "_self";
+
+ if (undefined == post.title) {
+ return null;
+ }
+
+ if (attributes.displayPostTitle) {
+
+ return wp.element.createElement(
+ "div",
+ { className: "uagb-post__text" },
+ wp.element.createElement(
+ Tag,
+ { className: "uagb-post__title" },
+ wp.element.createElement(
+ "a",
+ { href: post.link, target: target, rel: "noopener noreferrer" },
+ decodeEntities(post.title.rendered.trim()) || __("(Untitled)")
+ )
+ )
+ );
+ } else {
+ return null;
+ }
+};
+
+/***/ }),
+/* 181 */
+/*!*******************************************!*\
+ !*** ./src/blocks/post/post-meta/edit.js ***!
+ \*******************************************/
+/*! exports provided: PostMeta */
+/*! exports used: PostMeta */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostMeta; });
+var _wp$date = wp.date,
+ dateI18n = _wp$date.dateI18n,
+ format = _wp$date.format,
+ __experimentalGetSettings = _wp$date.__experimentalGetSettings;
+
+
+var PostMeta = function PostMeta(props) {
+ var post = props.post,
+ attributes = props.attributes,
+ categoriesList = props.categoriesList;
+
+
+ var dateFormat = __experimentalGetSettings().formats.date;
+
+ var categoryObject = '';
+
+ categoriesList.map(function (item, thisIndex) {
+ if (post.categories && item.id == post.categories[0]) {
+ categoryObject = item;
+ }
+ });
+
+ return wp.element.createElement(
+ 'div',
+ { className: ' uagb-post__text ' },
+ wp.element.createElement(
+ 'div',
+ { className: 'uagb-post-grid-byline' },
+ attributes.displayPostAuthor && undefined !== post.uagb_author_info && wp.element.createElement(
+ 'span',
+ { className: 'uagb-post__author' },
+ wp.element.createElement('span', { className: 'dashicons-admin-users dashicons' }),
+ wp.element.createElement(
+ 'a',
+ { target: '_blank', href: post.uagb_author_info.author_link, rel: 'noopener noreferrer' },
+ post.uagb_author_info.display_name
+ )
+ ),
+ attributes.displayPostDate && post.date_gmt && wp.element.createElement(
+ 'time',
+ { dateTime: format("c", post.date_gmt), className: 'uagb-post__date' },
+ wp.element.createElement('span', { className: 'dashicons-calendar dashicons' }),
+ dateI18n(dateFormat, post.date_gmt)
+ ),
+ attributes.displayPostComment && undefined !== post.uagb_comment_info && wp.element.createElement(
+ 'span',
+ { className: 'uagb-post__comment' },
+ wp.element.createElement('span', { className: 'dashicons-admin-comments dashicons' }),
+ post.uagb_comment_info
+ ),
+ attributes.displayPostTaxonomy && '' !== categoryObject && wp.element.createElement(
+ 'span',
+ { className: 'uagb-post__taxonomy' },
+ wp.element.createElement('span', { className: 'dashicons-tag dashicons' }),
+ categoryObject.name
+ )
+ )
+ );
+};
+
+/***/ }),
+/* 182 */
+/*!********************************************!*\
+ !*** ./src/blocks/post/post-image/edit.js ***!
+ \********************************************/
+/*! exports provided: PostImage */
+/*! exports used: PostImage */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostImage; });
+var decodeEntities = wp.htmlEntities.decodeEntities;
+var __ = wp.i18n.__;
+
+
+var PostImage = function PostImage(props) {
+ var post = props.post,
+ attributes = props.attributes;
+
+
+ var target = attributes.newTab ? "_blank" : "_self";
+
+ if (attributes.displayPostImage && undefined !== post.uagb_featured_image_src && attributes.imgSize && post.uagb_featured_image_src[attributes.imgSize]) {
+ var src = post.uagb_featured_image_src[attributes.imgSize];
+
+ return wp.element.createElement(
+ "div",
+ { className: "uagb-post__image" },
+ wp.element.createElement(
+ "a",
+ { href: post.link, target: target, rel: "noopener noreferrer" },
+ wp.element.createElement("img", {
+ src: src[0],
+ alt: decodeEntities(post.title.rendered.trim()) || __("(Untitled)")
+ })
+ )
+ );
+ } else {
+
+ return null;
+ }
+};
+
+/***/ }),
+/* 183 */
+/*!**********************************************!*\
+ !*** ./src/blocks/post/post-excerpt/edit.js ***!
+ \**********************************************/
+/*! exports provided: PostExcerpt */
+/*! exports used: PostExcerpt */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostExcerpt; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate__ = __webpack_require__(/*! lodash/truncate */ 379);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_truncate__);
+
+
+var PostExcerpt = function PostExcerpt(props) {
+ var post = props.post,
+ attributes = props.attributes;
+
+
+ if (post.uagb_excerpt == undefined) {
+ return null;
+ }
+
+ var words = post.uagb_excerpt.split(" ");
+
+ var excerpt = post.uagb_excerpt;
+
+ var exLen = attributes.excerptLength ? attributes.excerptLength : 25;
+
+ if (exLen >= words.length) {
+ excerpt = post.uagb_excerpt;
+ } else {
+ var truncated = words.slice(0, exLen);
+ excerpt = truncated.join(" ");
+ excerpt += " ...";
+ }
+
+ if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "excerpt") {
+
+ return wp.element.createElement(
+ "div",
+ { className: "uagb-post__text" },
+ wp.element.createElement(
+ "div",
+ { className: "uagb-post__excerpt" },
+ wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: excerpt } })
+ )
+ );
+ } else if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "full_post") {
+
+ return wp.element.createElement(
+ "div",
+ { className: "uagb-post__text" },
+ wp.element.createElement(
+ "div",
+ { className: "uagb-post__excerpt uagb-full_post" },
+ wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: post.content.raw.trim() } })
+ )
+ );
+ } else {
+ return null;
+ }
+};
+
+/***/ }),
+/* 184 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/toNumber.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(/*! ./isObject */ 13),
- isSymbol = __webpack_require__(/*! ./isSymbol */ 46);
+ isSymbol = __webpack_require__(/*! ./isSymbol */ 56);
/** Used as references for various `Number` constants. */
var NAN = 0 / 0;
@@ -14758,15 +15675,69 @@ module.exports = toNumber;
/***/ }),
-/* 142 */
+/* 185 */
+/*!*********************************************!*\
+ !*** ./src/blocks/post/post-button/edit.js ***!
+ \*********************************************/
+/*! exports provided: PostButton */
+/*! exports used: PostButton */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostButton; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);
+var __ = wp.i18n.__;
+
+
+
+var PostButton = function PostButton(props) {
+ var attributes = props.attributes,
+ post = props.post;
+
+
+ if (attributes.displayPostContentRadio == "full_post") {
+ return null;
+ }
+
+ var target = attributes.newTab ? "_blank" : "_self";
+
+ if (attributes.displayPostLink) {
+
+ var cta_text = attributes.ctaText ? attributes.ctaText : __("Read More");
+
+ return wp.element.createElement(
+ "div",
+ { className: "uagb-post__text" },
+ wp.element.createElement(
+ "div",
+ { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()('uagb-post__cta', attributes.inheritFromTheme ? 'wp-block-button' : null) },
+ wp.element.createElement(
+ "a",
+ {
+ className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()(!attributes.inheritFromTheme ? 'uagb-post__link ' : null, 'uagb-text-link', attributes.inheritFromTheme ? 'wp-block-button__link' : null),
+ href: post.link,
+ target: target,
+ rel: "noopener noreferrer" },
+ cta_text
+ )
+ )
+ );
+ } else {
+ return null;
+ }
+};
+
+/***/ }),
+/* 186 */
/*!*************************************************!*\
!*** ./node_modules/lodash/_baseAssignValue.js ***!
\*************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var defineProperty = __webpack_require__(/*! ./_defineProperty */ 143);
+var defineProperty = __webpack_require__(/*! ./_defineProperty */ 187);
/**
* The base implementation of `assignValue` and `assignMergeValue` without
@@ -14794,15 +15765,15 @@ module.exports = baseAssignValue;
/***/ }),
-/* 143 */
+/* 187 */
/*!************************************************!*\
!*** ./node_modules/lodash/_defineProperty.js ***!
\************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var getNative = __webpack_require__(/*! ./_getNative */ 19);
+var getNative = __webpack_require__(/*! ./_getNative */ 21);
var defineProperty = (function() {
try {
@@ -14816,15 +15787,15 @@ module.exports = defineProperty;
/***/ }),
-/* 144 */
+/* 188 */
/*!******************************************!*\
!*** ./node_modules/lodash/_overRest.js ***!
\******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var apply = __webpack_require__(/*! ./_apply */ 316);
+var apply = __webpack_require__(/*! ./_apply */ 403);
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;
@@ -14863,16 +15834,16 @@ module.exports = overRest;
/***/ }),
-/* 145 */
+/* 189 */
/*!*********************************************!*\
!*** ./node_modules/lodash/_setToString.js ***!
\*********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ 317),
- shortOut = __webpack_require__(/*! ./_shortOut */ 319);
+var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ 404),
+ shortOut = __webpack_require__(/*! ./_shortOut */ 406);
/**
* Sets the `toString` method of `func` to return `string`.
@@ -14888,11 +15859,11 @@ module.exports = setToString;
/***/ }),
-/* 146 */
+/* 190 */
/*!**********************************************************************!*\
!*** ./node_modules/element-resize-detector/src/collection-utils.js ***!
\**********************************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -14919,11 +15890,11 @@ utils.forEach = function(collection, callback) {
/***/ }),
-/* 147 */
+/* 191 */
/*!**********************************************************************!*\
!*** ./node_modules/element-resize-detector/src/browser-detector.js ***!
\**********************************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -14970,17 +15941,17 @@ detector.isLegacyOpera = function() {
/***/ }),
-/* 148 */
+/* 192 */
/*!***************************************!*\
!*** ./node_modules/lodash/keysIn.js ***!
\***************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 121),
- baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ 339),
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24);
+var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 153),
+ baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ 426),
+ isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29);
/**
* Creates an array of the own and inherited enumerable property names of `object`.
@@ -15013,18 +15984,18 @@ module.exports = keysIn;
/***/ }),
-/* 149 */
+/* 193 */
/*!**********************************************!*\
!*** ./node_modules/lodash/_getSymbolsIn.js ***!
\**********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var arrayPush = __webpack_require__(/*! ./_arrayPush */ 56),
- getPrototype = __webpack_require__(/*! ./_getPrototype */ 80),
- getSymbols = __webpack_require__(/*! ./_getSymbols */ 57),
- stubArray = __webpack_require__(/*! ./stubArray */ 120);
+var arrayPush = __webpack_require__(/*! ./_arrayPush */ 76),
+ getPrototype = __webpack_require__(/*! ./_getPrototype */ 98),
+ getSymbols = __webpack_require__(/*! ./_getSymbols */ 77),
+ stubArray = __webpack_require__(/*! ./stubArray */ 152);
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -15049,33 +16020,35 @@ module.exports = getSymbolsIn;
/***/ }),
-/* 150 */
+/* 194 */
/*!***********************************************!*\
!*** ./node_modules/react-slick/lib/index.js ***!
\***********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! exports used: default */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-exports.__esModule = true;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
-var _slider = __webpack_require__(/*! ./slider */ 375);
+var _slider = _interopRequireDefault(__webpack_require__(/*! ./slider */ 458));
-var _slider2 = _interopRequireDefault(_slider);
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-exports.default = _slider2.default;
+var _default = _slider["default"];
+exports["default"] = _default;
/***/ }),
-/* 151 */
+/* 195 */
/*!*********************************************!*\
!*** ./node_modules/enquire.js/src/Util.js ***!
\*********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
@@ -15126,7 +16099,7 @@ module.exports = {
/***/ }),
-/* 152 */
+/* 196 */
/*!******************************************!*\
!*** ./src/blocks/section/attributes.js ***!
\******************************************/
@@ -15437,7 +16410,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 153 */
+/* 197 */
/*!*********************************************!*\
!*** ./src/blocks/section/inline-styles.js ***!
\*********************************************/
@@ -15446,7 +16419,7 @@ var attributes = {
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3);
/**
* Returns Dynamic Generated CSS
*/
@@ -15488,36 +16461,36 @@ function inlineStyles(props, isEditor) {
var style = {
- "padding-top": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topPadding, desktopPaddingType),
- "padding-bottom": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomPadding, desktopPaddingType),
- "padding-left": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](leftPadding, desktopPaddingType),
- "padding-right": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rightPadding, desktopPaddingType),
- "border-radius": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderRadius, "px")
+ "padding-top": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topPadding, desktopPaddingType),
+ "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomPadding, desktopPaddingType),
+ "padding-left": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(leftPadding, desktopPaddingType),
+ "padding-right": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rightPadding, desktopPaddingType),
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px")
};
if ("right" == align) {
style["margin-left"] = "auto";
- style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType);
- style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType);
- style["margin-right"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rightMargin, desktopMarginType);
+ style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType);
+ style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType);
+ style["margin-right"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rightMargin, desktopMarginType);
} else if ("left" == align) {
style["margin-right"] = "auto";
- style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType);
- style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType);
- style["margin-left"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](leftMargin, desktopMarginType);
+ style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType);
+ style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType);
+ style["margin-left"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(leftMargin, desktopMarginType);
} else if ("center" == align) {
style["margin-right"] = "auto";
style["margin-left"] = "auto";
- style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType);
- style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType);
+ style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType);
+ style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType);
} else {
- style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType);
- style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType);
+ style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType);
+ style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType);
}
if (borderStyle != "none") {
style["border-style"] = borderStyle;
- style["border-width"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderWidth, "px");
+ style["border-width"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderWidth, "px");
style["border-color"] = borderColor;
}
@@ -15548,7 +16521,7 @@ function inlineStyles(props, isEditor) {
/* harmony default export */ __webpack_exports__["a"] = (inlineStyles);
/***/ }),
-/* 154 */
+/* 198 */
/*!******************************************!*\
!*** ./src/blocks/buttons/attributes.js ***!
\******************************************/
@@ -15641,7 +16614,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 155 */
+/* 199 */
/*!************************************************!*\
!*** ./src/blocks/buttons-child/attributes.js ***!
\************************************************/
@@ -15795,11 +16768,11 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 156 */
+/* 200 */
/*!***********************************************************!*\
!*** ./node_modules/react-transition-group/Transition.js ***!
\***********************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -15811,13 +16784,13 @@ exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports
var PropTypes = _interopRequireWildcard(__webpack_require__(/*! prop-types */ 15));
-var _react = _interopRequireDefault(__webpack_require__(/*! react */ 6));
+var _react = _interopRequireDefault(__webpack_require__(/*! react */ 5));
-var _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ 18));
+var _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ 33));
-var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ 157);
+var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ 201);
-var _PropTypes = __webpack_require__(/*! ./utils/PropTypes */ 158);
+var _PropTypes = __webpack_require__(/*! ./utils/PropTypes */ 202);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -16413,10 +17386,10 @@ Transition.EXITING = 4;
var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
exports.default = _default;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
/***/ }),
-/* 157 */
+/* 201 */
/*!****************************************************************************!*\
!*** ./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js ***!
\****************************************************************************/
@@ -16588,11 +17561,11 @@ function polyfill(Component) {
/***/ }),
-/* 158 */
+/* 202 */
/*!****************************************************************!*\
!*** ./node_modules/react-transition-group/utils/PropTypes.js ***!
\****************************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -16625,14 +17598,14 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default
exitActive: _propTypes.default.string
})]) : null;
exports.classNamesShape = classNamesShape;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 6)))
/***/ }),
-/* 159 */
+/* 203 */
/*!****************************************************************!*\
!*** ./node_modules/react-transition-group/TransitionGroup.js ***!
\****************************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
@@ -16644,11 +17617,11 @@ exports.default = void 0;
var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ 15));
-var _react = _interopRequireDefault(__webpack_require__(/*! react */ 6));
+var _react = _interopRequireDefault(__webpack_require__(/*! react */ 5));
-var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ 157);
+var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ 201);
-var _ChildMapping = __webpack_require__(/*! ./utils/ChildMapping */ 416);
+var _ChildMapping = __webpack_require__(/*! ./utils/ChildMapping */ 516);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -16845,10 +17818,10 @@ var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
exports.default = _default;
module.exports = exports["default"];
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6)))
/***/ }),
-/* 160 */
+/* 204 */
/*!**********************************************!*\
!*** ./src/blocks/info-box/inline-styles.js ***!
\**********************************************/
@@ -16857,8 +17830,8 @@ module.exports = exports["default"];
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3);
/**
* Returns Dynamic Generated CSS
*/
@@ -16947,17 +17920,17 @@ function InfoBoxStyle(props) {
var selectors = {
// Icon css
" .uagb-ifb-icon": {
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px")
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px")
},
" .uagb-ifb-icon > span": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"),
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
"color": iconColor,
"fill": iconColor,
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px")
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px")
},
" .uagb-ifb-icon > svg": {
"fill": iconColor
@@ -16972,17 +17945,17 @@ function InfoBoxStyle(props) {
"fill": iconHover
},
" .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap": {
- "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconLeftMargin, "px"),
- "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconRightMargin, "px"),
- "margin-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconTopMargin, "px"),
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconBottomMargin, "px")
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconLeftMargin, "px"),
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconRightMargin, "px"),
+ "margin-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconTopMargin, "px"),
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconBottomMargin, "px")
},
" .uagb-infobox .uagb-ifb-image-content img": {
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconimgBorderRadius, "px")
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconimgBorderRadius, "px")
},
// CTA style
" .uagb-infobox-cta-link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
"font-family": ctaFontFamily,
"font-weight": ctaFontWeight,
"color": ctaLinkColor
@@ -16991,16 +17964,16 @@ function InfoBoxStyle(props) {
"color": ctaLinkHoverColor
},
" .uagb-infobox-cta-link .uagb-ifb-text-icon": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType)
},
" .uagb-infobox-cta-link .uagb-ifb-button-icon": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType)
},
" .uagb-infobox-cta-link svg": {
"fill": ctaLinkColor
@@ -17013,12 +17986,12 @@ function InfoBoxStyle(props) {
"background-color": ctaBgColor,
"border-style": ctaBorderStyle,
"border-color": ctaBorderColor,
- "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBorderRadius, "px"),
- "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBorderWidth, "px"),
- "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnVertPadding, "px"),
- "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnVertPadding, "px"),
- "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnHrPadding, "px"),
- "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnHrPadding, "px")
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBorderRadius, "px"),
+ "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBorderWidth, "px"),
+ "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnVertPadding, "px"),
+ "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnVertPadding, "px"),
+ "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnHrPadding, "px"),
+ "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnHrPadding, "px")
},
" .uagb-ifb-button-wrapper:hover .uagb-infobox-cta-link": {
"color": ctaLinkHoverColor,
@@ -17033,60 +18006,60 @@ function InfoBoxStyle(props) {
},
// Prefix Style
" .block-editor-rich-text__editable.uagb-ifb-title-prefix": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixFontSize, prefixFontSizeType),
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixFontSize, prefixFontSizeType),
"font-family": prefixFontFamily,
"font-weight": prefixFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixLineHeight, prefixLineHeightType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixLineHeight, prefixLineHeightType),
"color": prefixColor,
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixSpace, "px")
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixSpace, "px")
},
// Title Style
" .block-editor-rich-text__editable.uagb-ifb-title a": {
"color": headingColor
},
" .block-editor-rich-text__editable.uagb-ifb-title": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType),
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType),
"font-family": headFontFamily,
"font-weight": headFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType),
"color": headingColor,
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headSpace, "px")
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px")
},
// Description Style
" .block-editor-rich-text__editable.uagb-ifb-desc": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSize, subHeadFontSizeType),
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType),
"font-family": subHeadFontFamily,
"font-weight": subHeadFontWeight,
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeight, subHeadLineHeightType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType),
"color": subHeadingColor,
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadSpace, "px")
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadSpace, "px")
},
// Seperator
" .uagb-ifb-separator": {
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](seperatorWidth, separatorWidthType),
- "border-top-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](seperatorThickness, "px"),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(seperatorWidth, separatorWidthType),
+ "border-top-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(seperatorThickness, "px"),
"border-top-color": seperatorColor,
"border-top-style": seperatorStyle
},
" .uagb-ifb-separator-parent": {
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](seperatorSpace, "px")
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(seperatorSpace, "px")
},
" .uagb-ifb-content": {
"padding": typeof blockPadding != "undefined" ? blockPadding + "px" : "inherit"
},
" .uagb-ifb-align-icon-after": {
- "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaIconSpace, "px")
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaIconSpace, "px")
},
" .uagb-ifb-align-icon-before": {
- "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaIconSpace, "px")
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaIconSpace, "px")
}
};
if (imageWidthType) {
// Image
selectors[" .uagb-ifb-image-content img"] = {
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](imageWidth, "px"),
- "max-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](imageWidth, "px")
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(imageWidth, "px"),
+ "max-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(imageWidth, "px")
};
}
@@ -17098,77 +18071,77 @@ function InfoBoxStyle(props) {
var tablet_selectors = {
" .block-editor-rich-text__editable.uagb-ifb-desc": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeTablet, subHeadFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightTablet, subHeadLineHeightType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType)
},
" .block-editor-rich-text__editable.uagb-ifb-title": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType)
},
" .block-editor-rich-text__editable.uagb-ifb-title-prefix": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixFontSizeTablet, prefixFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixLineHeightTablet, prefixLineHeightType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixFontSizeTablet, prefixFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixLineHeightTablet, prefixLineHeightType)
},
" .uagb-infobox-cta-link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType)
},
" .uagb-infobox-cta-link .uagb-ifb-text-icon": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType)
},
" .uagb-infobox-cta-link .uagb-ifb-button-icon": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType)
}
};
var mobile_selectors = {
" .block-editor-rich-text__editable.uagb-ifb-desc": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeMobile, subHeadFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightMobile, subHeadLineHeightType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType)
},
" .block-editor-rich-text__editable.uagb-ifb-title": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType)
},
" .block-editor-rich-text__editable.uagb-ifb-title-prefix": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixFontSizeMobile, prefixFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixLineHeightMobile, prefixLineHeightType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixFontSizeMobile, prefixFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixLineHeightMobile, prefixLineHeightType)
},
" .uagb-infobox-cta-link": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType)
},
" .uagb-infobox-cta-link .uagb-ifb-text-icon": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType)
},
" .uagb-infobox-cta-link .uagb-ifb-button-icon": {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType)
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType)
}
};
var id = ".block-editor-page #wpwrap .uagb-block-" + props.clientId.substr(0, 8);
- var styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, id);
+ var styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, id);
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, id, true, "tablet");
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, id, true, "tablet");
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, id, true, "mobile");
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, id, true, "mobile");
return styling_css;
}
/* harmony default export */ __webpack_exports__["a"] = (InfoBoxStyle);
/***/ }),
-/* 161 */
+/* 205 */
/*!*****************************************************!*\
!*** ./src/blocks/info-box/components/IconImage.js ***!
\*****************************************************/
@@ -17248,7 +18221,7 @@ var InfoBoxIconImage = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (InfoBoxIconImage);
/***/ }),
-/* 162 */
+/* 206 */
/*!*******************************************!*\
!*** ./src/blocks/info-box/attributes.js ***!
\*******************************************/
@@ -17665,7 +18638,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 163 */
+/* 207 */
/*!****************************************************!*\
!*** ./src/blocks/testimonial/components/Image.js ***!
\****************************************************/
@@ -17750,7 +18723,7 @@ var TestimonialImage = function (_React$Component) {
/* harmony default export */ __webpack_exports__["a"] = (TestimonialImage);
/***/ }),
-/* 164 */
+/* 208 */
/*!**********************************************!*\
!*** ./src/blocks/testimonial/attributes.js ***!
\**********************************************/
@@ -18112,7 +19085,7 @@ var attributes = (_attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 165 */
+/* 209 */
/*!***************************************!*\
!*** ./src/blocks/team/attributes.js ***!
\***************************************/
@@ -18407,7 +19380,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 166 */
+/* 210 */
/*!***********************************************!*\
!*** ./src/blocks/social-share/attributes.js ***!
\***********************************************/
@@ -18513,7 +19486,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 167 */
+/* 211 */
/*!*****************************************************!*\
!*** ./src/blocks/social-share-child/attributes.js ***!
\*****************************************************/
@@ -18566,7 +19539,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 168 */
+/* 212 */
/*!************************************************!*\
!*** ./src/blocks/social-share-child/links.js ***!
\************************************************/
@@ -18601,7 +19574,7 @@ var links = {
/* harmony default export */ __webpack_exports__["a"] = (links);
/***/ }),
-/* 169 */
+/* 213 */
/*!********************************************!*\
!*** ./src/blocks/icon-list/attributes.js ***!
\********************************************/
@@ -18758,7 +19731,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 170 */
+/* 214 */
/*!**************************************************!*\
!*** ./src/blocks/icon-list-child/attributes.js ***!
\**************************************************/
@@ -18837,7 +19810,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 171 */
+/* 215 */
/*!*********************************************!*\
!*** ./src/blocks/price-list/attributes.js ***!
\*********************************************/
@@ -19128,17 +20101,7 @@ var attributes = {
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 172 */
-/*!****************************************!*\
- !*** ./src/blocks/timeline/style.scss ***!
- \****************************************/
-/*! no static exports found */
-/***/ (function(module, exports) {
-
-// removed by extract-text-webpack-plugin
-
-/***/ }),
-/* 173 */
+/* 216 */
/*!************************************************************!*\
!*** ./src/blocks/timeline/content-timeline/attributes.js ***!
\************************************************************/
@@ -19147,10 +20110,6 @@ var attributes = {
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-var _attributes;
-
-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; }
-
/**
* BLOCK: UAGB Timeline Attributes
*/
@@ -19158,14 +20117,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
var __ = wp.i18n.__;
+var ITEM_COUNT = 5;
+
var item = [];
var date_arr = [];
-for (var i = 1; i <= 5; i++) {
+for (var i = 1; i <= ITEM_COUNT; i++) {
item.push({
- "time_heading": __("Timeline Heading ") + i,
- "time_desc": __("This is Timeline description, you can change me anytime click here ")
+ "time_heading": __("Timeline Heading ", 'ultimate-addons-for-gutenberg') + i,
+ "time_desc": __("This is Timeline description, you can change me anytime click here ", 'ultimate-addons-for-gutenberg')
});
var j = i - 1;
@@ -19190,7 +20151,10 @@ for (var i = 1; i <= 5; i++) {
});
}
-var attributes = (_attributes = {
+var attributes = {
+ content_class: {
+ type: "string"
+ },
tm_content: {
type: "array",
default: item
@@ -19199,6 +20163,10 @@ var attributes = (_attributes = {
type: "boolean",
default: false
},
+ childMigrate: {
+ type: "boolean",
+ default: false
+ },
dateFormat: {
type: "string",
default: "F j, Y"
@@ -19255,1491 +20223,1510 @@ var attributes = (_attributes = {
headFontSizeType: {
type: "string",
default: "px"
- }
-}, _defineProperty(_attributes, "headFontSize", {
- type: "number"
-}), _defineProperty(_attributes, "headFontSizeTablet", {
- type: "number"
-}), _defineProperty(_attributes, "headFontSizeMobile", {
- type: "number"
-}), _defineProperty(_attributes, "headFontFamily", {
- type: "string",
- default: "Default"
-}), _defineProperty(_attributes, "headFontWeight", {
- type: "string"
-}), _defineProperty(_attributes, "headFontSubset", {
- type: "string"
-}), _defineProperty(_attributes, "headLineHeightType", {
- type: "string",
- default: "em"
-}), _defineProperty(_attributes, "headLineHeight", {
- type: "number"
-}), _defineProperty(_attributes, "headLineHeightTablet", {
- type: "number"
-}), _defineProperty(_attributes, "headLineHeightMobile", {
- type: "number"
-}), _defineProperty(_attributes, "headLoadGoogleFonts", {
- type: "boolean",
- default: false
-}), _defineProperty(_attributes, "timelinAlignment", {
- type: "string",
- default: "center"
-}), _defineProperty(_attributes, "arrowlinAlignment", {
- type: "string",
- default: "center"
-}), _defineProperty(_attributes, "subHeadFontSizeType", {
- type: "string",
- default: "px"
-}), _defineProperty(_attributes, "subHeadFontSize", {
- type: "number"
-}), _defineProperty(_attributes, "subHeadFontSizeTablet", {
- type: "number"
-}), _defineProperty(_attributes, "subHeadFontSizeMobile", {
- type: "number"
-}), _defineProperty(_attributes, "subHeadFontFamily", {
- type: "string",
- default: "Default"
-}), _defineProperty(_attributes, "subHeadFontWeight", {
- type: "string"
-}), _defineProperty(_attributes, "subHeadFontSubset", {
- type: "string"
-}), _defineProperty(_attributes, "subHeadLineHeightType", {
- type: "string",
- default: "em"
-}), _defineProperty(_attributes, "subHeadLineHeight", {
- type: "number"
-}), _defineProperty(_attributes, "subHeadLineHeightTablet", {
- type: "number"
-}), _defineProperty(_attributes, "subHeadLineHeightMobile", {
- type: "number"
-}), _defineProperty(_attributes, "subHeadLoadGoogleFonts", {
- type: "boolean",
- default: false
-}), _defineProperty(_attributes, "headSpace", {
- type: "number",
- default: 5
-}), _defineProperty(_attributes, "separatorwidth", {
- type: "number",
- default: 3
-}), _defineProperty(_attributes, "borderwidth", {
- type: "number",
- default: 0
-}), _defineProperty(_attributes, "iconColor", {
- type: "string",
- default: "#333"
-}), _defineProperty(_attributes, "iconFocus", {
- type: "string",
- default: "#fff"
-}), _defineProperty(_attributes, "iconBgFocus", {
- type: "string",
- default: "#61ce70"
-}), _defineProperty(_attributes, "dateColor", {
- type: "string",
- default: "#333"
-}), _defineProperty(_attributes, "dateFontsizeType", {
- type: "string",
- default: "px"
-}), _defineProperty(_attributes, "dateFontsize", {
- type: "number"
-}), _defineProperty(_attributes, "dateFontsizeTablet", {
- type: "number"
-}), _defineProperty(_attributes, "dateFontsizeMobile", {
- type: "number"
-}), _defineProperty(_attributes, "dateFontFamily", {
- type: "string",
- default: "Default"
-}), _defineProperty(_attributes, "dateFontWeight", {
- type: "string"
-}), _defineProperty(_attributes, "dateFontSubset", {
- type: "string"
-}), _defineProperty(_attributes, "dateLineHeightType", {
- type: "string",
- default: "em"
-}), _defineProperty(_attributes, "dateLineHeight", {
- type: "number"
-}), _defineProperty(_attributes, "dateLineHeightTablet", {
- type: "number"
-}), _defineProperty(_attributes, "dateLineHeightMobile", {
- type: "number"
-}), _defineProperty(_attributes, "dateLoadGoogleFonts", {
- type: "boolean",
- default: false
-}), _defineProperty(_attributes, "connectorBgsize", {
- type: "number",
- default: 35
-}), _defineProperty(_attributes, "subHeadSpace", {
- type: "number",
- default: 5
-}), _defineProperty(_attributes, "dateBottomspace", {
- type: "number",
- default: 5
-}), _defineProperty(_attributes, "block_id", {
- type: "string",
- default: "0"
-}), _defineProperty(_attributes, "timelineItem", {
- type: "number",
- default: 5
-}), _defineProperty(_attributes, "tm_client_id", {
- type: "string",
- default: "not_set"
-}), _defineProperty(_attributes, "borderRadius", {
- type: "number",
- default: 2
-}), _defineProperty(_attributes, "bgPadding", {
- type: "number",
- default: 20
-}), _defineProperty(_attributes, "iconSize", {
- type: "number",
- default: 12
-}), _defineProperty(_attributes, "icon", {
- type: "string",
- default: "fab fa fa-calendar-alt"
-}), _defineProperty(_attributes, "t_date", {
- type: "array",
- default: date_arr
-}), _defineProperty(_attributes, "displayPostDate", {
- type: "boolean",
- default: true
-}), _defineProperty(_attributes, "stack", {
- type: "string",
- default: "tablet"
-}), _attributes);
-
-/* harmony default export */ __webpack_exports__["a"] = (attributes);
-
-/***/ }),
-/* 174 */
-/*!*************************************************!*\
- !*** ./src/blocks/call-to-action/attributes.js ***!
- \*************************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/**
- * BLOCK: Call To Action - Attributes
- */
-
-var attributes = {
- inheritFromTheme: {
- type: "boolean",
- default: false
- },
- ctaTitle: {
- source: "html",
- selector: "h1,h2,h3,h4,h5,h6",
- default: "Call To Action"
- },
- classMigrate: {
- type: "boolean",
- default: false
- },
- description: {
- source: "html",
- selector: "p",
- default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."
- },
- textAlign: {
- type: "string",
- default: "left"
- },
- titleColor: {
- type: "string"
- },
- descColor: {
- type: "string"
- },
- ctaPosition: {
- type: "string",
- default: "right"
- },
- titleTag: {
- type: "string",
- default: "h3"
- },
- titleFontSize: {
- type: "number"
- },
- titleFontSizeType: {
- type: "string",
- default: "px"
},
- titleFontSizeMobile: {
+ headFontSizeTablet: {
type: "number"
},
- titleFontSizeTablet: {
+ headFontSizeMobile: {
type: "number"
},
- titleFontFamily: {
+ headFontFamily: {
type: "string",
default: "Default"
},
- titleFontWeight: {
+ headFontWeight: {
type: "string"
},
- titleFontSubset: {
+ headFontSubset: {
type: "string"
},
- titleLineHeightType: {
+ headLineHeightType: {
type: "string",
default: "em"
},
- titleLineHeight: {
+ headLineHeight: {
type: "number"
},
- titleLineHeightTablet: {
+ headLineHeightTablet: {
type: "number"
},
- titleLineHeightMobile: {
+ headLineHeightMobile: {
type: "number"
},
- titleLoadGoogleFonts: {
+ headLoadGoogleFonts: {
type: "boolean",
default: false
},
- descFontSize: {
- type: "number"
+ timelinAlignment: {
+ type: "string",
+ default: "center"
},
- descFontSizeType: {
+ arrowlinAlignment: {
+ type: "string",
+ default: "center"
+ },
+ subHeadFontSizeType: {
type: "string",
default: "px"
},
- descFontSizeMobile: {
+ subHeadFontSize: {
type: "number"
},
- descFontSizeTablet: {
+ subHeadFontSizeTablet: {
type: "number"
},
- descFontFamily: {
+ subHeadFontSizeMobile: {
+ type: "number"
+ },
+ subHeadFontFamily: {
type: "string",
default: "Default"
},
- descFontWeight: {
+ subHeadFontWeight: {
type: "string"
},
- descFontSubset: {
+ subHeadFontSubset: {
type: "string"
},
- descLineHeightType: {
+ subHeadLineHeightType: {
type: "string",
default: "em"
},
- descLineHeight: {
+ subHeadLineHeight: {
type: "number"
},
- descLineHeightTablet: {
+ subHeadLineHeightTablet: {
type: "number"
},
- descLineHeightMobile: {
+ subHeadLineHeightMobile: {
type: "number"
},
- descLoadGoogleFonts: {
+ subHeadLoadGoogleFonts: {
type: "boolean",
default: false
},
- titleSpace: {
+ headSpace: {
type: "number",
- default: 10
+ default: 5
},
- descSpace: {
+ separatorwidth: {
type: "number",
- default: 10
+ default: 3
},
- block_id: {
- type: "string",
- default: "not_set"
+ borderwidth: {
+ type: "number",
+ default: 0
},
- buttonAlign: {
+ iconColor: {
type: "string",
- default: "middle"
- },
- ctaTarget: {
- type: "boolean",
- default: false
+ default: "#333"
},
- ctaIcon: {
+ iconFocus: {
type: "string",
- default: ""
+ default: "#fff"
},
- ctaIconPosition: {
+ iconBgFocus: {
type: "string",
- default: "after"
- },
- ctaIconSpace: {
- type: "number",
- default: 5
+ default: "#61ce70"
},
- ctaType: {
+ dateColor: {
type: "string",
- default: "button"
- },
- ctaText: {
- type: "html",
- default: "Read More"
+ default: "#333"
},
- ctaLink: {
+ dateFontsizeType: {
type: "string",
- default: "#"
+ default: "px"
},
- ctaFontSize: {
+ dateFontsize: {
type: "number"
},
- ctaFontSizeType: {
- type: "string",
- default: "px"
- },
- ctaFontSizeMobile: {
+ dateFontsizeTablet: {
type: "number"
},
- ctaFontSizeTablet: {
+ dateFontsizeMobile: {
type: "number"
},
- ctaFontFamily: {
+ dateFontFamily: {
type: "string",
default: "Default"
},
- ctaFontWeight: {
+ dateFontWeight: {
type: "string"
},
- ctaFontSubset: {
+ dateFontSubset: {
type: "string"
},
- ctaLoadGoogleFonts: {
- type: "boolean",
- default: false
- },
- contentWidth: {
- type: "number",
- default: "70"
- },
- ctaBtnLinkColor: {
- type: "string",
- default: "#333"
- },
- ctaLinkHoverColor: {
- type: "string",
- default: ""
- },
- ctaBgColor: {
- type: "string",
- default: "transparent"
- },
- ctaBgHoverColor: {
- type: "string",
- default: "transparent"
- },
- ctaBorderColor: {
- type: "string",
- default: "#333"
- },
- ctaBorderhoverColor: {
- type: "string",
- default: ""
- },
- ctaBorderStyle: {
+ dateLineHeightType: {
type: "string",
- default: "solid"
- },
- ctaBtnVertPadding: {
- type: "number",
- default: 10
- },
- ctaBtnHrPadding: {
- type: "number",
- default: 14
- },
- ctaBorderWidth: {
- type: "number",
- default: 1
- },
- ctaBorderRadius: {
- type: "number",
- default: 0
+ default: "em"
},
- stack: {
- type: "string",
- default: "tablet"
+ dateLineHeight: {
+ type: "number"
},
- ctaLeftSpace: {
- type: "number",
- default: 5
+ dateLineHeightTablet: {
+ type: "number"
},
- ctaRightSpace: {
- type: "number",
- default: 5
- }
-};
-
-/* harmony default export */ __webpack_exports__["a"] = (attributes);
-
-/***/ }),
-/* 175 */
-/*!*****************************************!*\
- !*** ./src/blocks/column/attributes.js ***!
- \*****************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-var attributes = {
- block_id: {
- type: "string"
+ dateLineHeightMobile: {
+ type: "number"
},
- classMigrate: {
+ dateLoadGoogleFonts: {
type: "boolean",
default: false
},
- align: {
- type: "string",
- default: "center"
- },
- alignTablet: {
- type: "string",
- default: ""
- },
- alignMobile: {
- type: "string",
- default: ""
- },
- topPadding: {
- type: "number",
- default: ""
- },
- bottomPadding: {
- type: "number",
- default: ""
- },
- leftPadding: {
- type: "number",
- default: ""
- },
- rightPadding: {
- type: "number",
- default: ""
- },
- topMargin: {
- type: "number",
- default: ""
- },
- bottomMargin: {
- type: "number",
- default: ""
- },
- leftMargin: {
- type: "number",
- default: ""
- },
- rightMargin: {
- type: "number",
- default: ""
- },
- topPaddingTablet: {
- type: "number",
- default: ""
- },
- bottomPaddingTablet: {
- type: "number",
- default: ""
- },
- leftPaddingTablet: {
- type: "number",
- default: ""
- },
- rightPaddingTablet: {
- type: "number",
- default: ""
- },
- topMarginTablet: {
- type: "number",
- default: ""
- },
- bottomMarginTablet: {
- type: "number",
- default: ""
- },
- leftMarginTablet: {
- type: "number",
- default: ""
- },
- rightMarginTablet: {
- type: "number",
- default: ""
- },
-
- topPaddingMobile: {
- type: "number",
- default: ""
- },
- bottomPaddingMobile: {
- type: "number",
- default: ""
- },
- leftPaddingMobile: {
- type: "number",
- default: ""
- },
- rightPaddingMobile: {
- type: "number",
- default: ""
- },
- topMarginMobile: {
- type: "number",
- default: ""
- },
- bottomMarginMobile: {
- type: "number",
- default: ""
- },
- leftMarginMobile: {
- type: "number",
- default: ""
- },
- rightMarginMobile: {
- type: "number",
- default: ""
- },
- colWidth: {
+ connectorBgsize: {
type: "number",
- default: ""
+ default: 35
},
- colWidthTablet: {
+ subHeadSpace: {
type: "number",
- default: ""
+ default: 5
},
- colWidthMobile: {
+ dateBottomspace: {
type: "number",
- default: ""
- },
- backgroundType: {
- type: "string"
- },
- backgroundImage: {
- type: "object"
- },
- backgroundPosition: {
- type: "string",
- default: "center-center"
- },
- backgroundSize: {
- type: "string",
- default: "cover"
- },
- backgroundRepeat: {
- type: "string",
- default: "no-repeat"
- },
- backgroundAttachment: {
- type: "string",
- default: "scroll"
- },
- backgroundColor: {
- type: "string"
- },
- gradientColor1: {
- type: "string"
- },
- gradientColor2: {
- type: "string"
+ default: 5
},
- gradientType: {
+ block_id: {
type: "string",
- default: "linear"
- },
- gradientLocation1: {
- type: "number",
- default: 0
+ default: "0"
},
- gradientLocation2: {
- type: "number",
- default: 100
- },
- gradientAngle: {
+ timelineItem: {
type: "number",
- default: 0
- },
- backgroundOpacity: {
- type: "number"
- },
- backgroundImageColor: {
- type: "string"
+ default: ITEM_COUNT
},
- borderStyle: {
+ tm_client_id: {
type: "string",
- default: "none"
- },
- borderWidth: {
- type: "number",
- default: 1
+ default: "not_set"
},
borderRadius: {
- type: "number"
- },
- borderColor: {
- type: "string"
- },
- overlayType: {
- type: "string",
- default: "color"
- },
- gradientOverlayColor1: {
- type: "string"
- },
- gradientOverlayColor2: {
- type: "string"
- },
- gradientOverlayType: {
- type: "string",
- default: "linear"
- },
- gradientOverlayLocation1: {
type: "number",
- default: 0
+ default: 2
},
- gradientOverlayLocation2: {
+ bgPadding: {
type: "number",
- default: 100
+ default: 20
},
- gradientOverlayAngle: {
+ iconSize: {
type: "number",
- default: 0
- },
- mobileMarginType: {
- type: "string",
- default: 'px'
- },
- tabletMarginType: {
- type: "string",
- default: 'px'
- },
- desktopMarginType: {
- type: "string",
- default: 'px'
+ default: 12
},
- mobilePaddingType: {
+ icon: {
type: "string",
- default: 'px'
+ default: "fab fa fa-calendar-alt"
},
- tabletPaddingType: {
- type: "string",
- default: 'px'
+ t_date: {
+ type: "array",
+ default: date_arr
},
- desktopPaddingType: {
- type: "string",
- default: 'px'
+ displayPostDate: {
+ type: "boolean",
+ default: true
},
- gradientValue: {
+ stack: {
type: "string",
- default: ""
+ default: "tablet"
}
};
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 176 */
-/*!******************************************!*\
- !*** ./src/blocks/columns/attributes.js ***!
- \******************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/**
- * BLOCK: Columns - Attributes
- */
-
-var attributes = {
- block_id: {
- type: "string"
- },
- classMigrate: {
- type: "boolean",
- default: false
- },
- columns: {
- type: "number",
- default: 2
- },
- align: {
- type: "string"
- },
- vAlign: {
- type: "string"
- },
- stack: {
- type: "string",
- default: "mobile"
- },
- columnGap: {
- type: "string",
- default: "10"
- },
- topPadding: {
- type: "number",
- default: 20
- },
- bottomPadding: {
- type: "number",
- default: 20
- },
- leftPadding: {
- type: "number",
- default: 20
- },
- rightPadding: {
- type: "number",
- default: 20
- },
- topPaddingTablet: {
- type: "number"
- },
- bottomPaddingTablet: {
- type: "number"
- },
- leftPaddingTablet: {
- type: "number"
- },
- rightPaddingTablet: {
- type: "number"
- },
- topPaddingMobile: {
- type: "number"
- },
- bottomPaddingMobile: {
- type: "number"
- },
- leftPaddingMobile: {
- type: "number"
- },
- rightPaddingMobile: {
- type: "number"
- },
- topMargin: {
- type: "number",
- default: 0
- },
- bottomMargin: {
- type: "number",
- default: 0
- },
- topMarginMobile: {
- type: "number"
- },
- bottomMarginMobile: {
- type: "number"
- },
- topMarginTablet: {
- type: "number"
- },
- bottomMarginTablet: {
- type: "number"
- },
- contentWidth: {
- type: "string",
- default: "theme"
- },
- width: {
- type: "number",
- default: 900
- },
- widthType: {
- type: "string",
- default: "px"
- },
- tag: {
- type: "string",
- default: "section"
- },
- backgroundType: {
- type: "string"
- },
- backgroundImage: {
- type: "object"
- },
- backgroundPosition: {
- type: "string",
- default: "center-center"
- },
- backgroundSize: {
- type: "string",
- default: "cover"
- },
- backgroundRepeat: {
- type: "string",
- default: "no-repeat"
- },
- backgroundAttachment: {
- type: "string",
- default: "scroll"
- },
- backgroundVideo: {
- type: "object"
- },
- backgroundColor: {
- type: "string"
- },
- gradientColor1: {
- type: "string"
- },
- gradientColor2: {
- type: "string"
- },
- gradientType: {
- type: "string",
- default: "linear"
- },
- gradientLocation1: {
- type: "number",
- default: 0
- },
- gradientLocation2: {
- type: "number",
- default: 100
- },
- gradientAngle: {
- type: "number",
- default: 0
- },
- gradientPosition: {
- type: "string",
- default: "center center"
- },
- backgroundOpacity: {
- type: "number"
- },
- backgroundVideoOpacity: {
- type: "number",
- default: 50
- },
- backgroundVideoColor: {
- type: "string"
- },
- backgroundImageColor: {
- type: "string"
- },
- borderStyle: {
- type: "string",
- default: "none"
- },
- borderWidth: {
- type: "number",
- default: 1
- },
- borderRadius: {
- type: "number"
- },
- borderColor: {
- type: "string"
- },
- bottomType: {
- type: "string",
- default: "none"
- },
- bottomColor: {
- type: "string"
- },
- bottomHeight: {
- type: "number"
- },
- bottomHeightTablet: {
- type: "number"
- },
- bottomHeightMobile: {
- type: "number"
- },
- bottomWidth: {
- type: "number"
- },
- topType: {
- type: "string",
- default: "none"
- },
- topColor: {
- type: "string"
- },
- topHeight: {
- type: "number"
- },
- topHeightTablet: {
- type: "number"
- },
- topHeightMobile: {
- type: "number"
- },
- topWidth: {
- type: "number"
- },
- topFlip: {
- type: "boolean",
- default: false
- },
- bottomFlip: {
- type: "boolean",
- default: false
- },
- reverseTablet: {
- type: "boolean",
- default: false
- },
- reverseMobile: {
- type: "boolean",
- default: false
- },
- topDividerOpacity: {
- type: "number",
- default: 100
- },
- bottomDividerOpacity: {
- type: "number",
- default: 100
- },
- topContentAboveShape: {
- type: "boolean",
- default: false
- },
- bottomContentAboveShape: {
- type: "boolean",
- default: false
- },
- mobileMarginType: {
- type: "string",
- default: 'px'
- },
- tabletMarginType: {
- type: "string",
- default: 'px'
- },
- desktopMarginType: {
- type: "string",
- default: 'px'
- },
- mobilePaddingType: {
- type: "string",
- default: 'px'
- },
- tabletPaddingType: {
- type: "string",
- default: 'px'
- },
- desktopPaddingType: {
- type: "string",
- default: 'px'
- },
- boxShadowColor: {
- type: "string"
- },
- boxShadowHOffset: {
- type: "number",
- default: 0
- },
- boxShadowVOffset: {
- type: "number",
- default: 0
- },
- boxShadowBlur: {
- type: "number"
- },
- boxShadowSpread: {
- type: "number"
- },
- boxShadowPosition: {
- type: "string",
- default: "outset"
- },
- gradientValue: {
- type: "string",
- default: ""
- }
-
-};
-
-/* harmony default export */ __webpack_exports__["a"] = (attributes);
-
-/***/ }),
-/* 177 */
-/*!*************************************!*\
- !*** ./src/blocks/columns/icons.js ***!
- \*************************************/
+/* 217 */
+/*!**********************************************!*\
+ !*** ./src/blocks/timeline/inline-styles.js ***!
+ \**********************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3);
/**
- * WordPress dependencies
- */
-
-var _wp$components = wp.components,
- Path = _wp$components.Path,
- SVG = _wp$components.SVG,
- G = _wp$components.G;
-/**
- * Custom icons
+ * Returns Dynamic Generated CSS
*/
-var rowIcons = {};
-
-rowIcons.colOne = wp.element.createElement(
- SVG,
- { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
- wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z" })
-);
-
-rowIcons.layout5050 = wp.element.createElement(
- SVG,
- { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
- wp.element.createElement(
- G,
- { fillRule: "evenodd" },
- wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }),
- wp.element.createElement(Path, { d: "m24 2h2v22h-2z" })
- )
-);
-rowIcons.layout502525 = wp.element.createElement(
- SVG,
- { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
- wp.element.createElement(
- G,
- { fillRule: "evenodd" },
- wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }),
- wp.element.createElement(Path, { d: "m36 2h2v22h-2z" }),
- wp.element.createElement(Path, { d: "m24 2h2v22h-2z" })
- )
-);
-rowIcons.layout25252525 = wp.element.createElement(
- SVG,
- { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
- wp.element.createElement(
- G,
- { fillRule: "evenodd" },
- wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }),
- wp.element.createElement(Path, { d: "m12 2h2v22h-2z" }),
- wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }),
- wp.element.createElement(Path, { d: "m36 2h2v22h-2z" })
- )
-);
-rowIcons.layout3366 = wp.element.createElement(
- SVG,
- { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" },
- wp.element.createElement(Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"
- })
-);
+function contentTimelineStyle(props) {
+ var _props$attributes = props.attributes,
+ dateBottomspace = _props$attributes.dateBottomspace,
+ backgroundColor = _props$attributes.backgroundColor,
+ separatorColor = _props$attributes.separatorColor,
+ separatorFillColor = _props$attributes.separatorFillColor,
+ separatorBg = _props$attributes.separatorBg,
+ separatorBorder = _props$attributes.separatorBorder,
+ borderFocus = _props$attributes.borderFocus,
+ verticalSpace = _props$attributes.verticalSpace,
+ horizontalSpace = _props$attributes.horizontalSpace,
+ separatorwidth = _props$attributes.separatorwidth,
+ borderwidth = _props$attributes.borderwidth,
+ connectorBgsize = _props$attributes.connectorBgsize,
+ borderRadius = _props$attributes.borderRadius,
+ bgPadding = _props$attributes.bgPadding,
+ width = _props$attributes.width,
+ readMoreText = _props$attributes.readMoreText,
+ icon = _props$attributes.icon,
+ iconColor = _props$attributes.iconColor,
+ dateFontsizeType = _props$attributes.dateFontsizeType,
+ dateFontsize = _props$attributes.dateFontsize,
+ dateFontsizeTablet = _props$attributes.dateFontsizeTablet,
+ dateFontsizeMobile = _props$attributes.dateFontsizeMobile,
+ dateFontFamily = _props$attributes.dateFontFamily,
+ dateFontWeight = _props$attributes.dateFontWeight,
+ dateFontSubset = _props$attributes.dateFontSubset,
+ dateLineHeightType = _props$attributes.dateLineHeightType,
+ dateLineHeight = _props$attributes.dateLineHeight,
+ dateLineHeightTablet = _props$attributes.dateLineHeightTablet,
+ dateLineHeightMobile = _props$attributes.dateLineHeightMobile,
+ dateLoadGoogleFonts = _props$attributes.dateLoadGoogleFonts,
+ dateColor = _props$attributes.dateColor,
+ iconSize = _props$attributes.iconSize,
+ iconFocus = _props$attributes.iconFocus,
+ iconBgFocus = _props$attributes.iconBgFocus,
+ block_id = _props$attributes.block_id,
+ headFontSizeType = _props$attributes.headFontSizeType,
+ headFontSize = _props$attributes.headFontSize,
+ headFontSizeTablet = _props$attributes.headFontSizeTablet,
+ headFontSizeMobile = _props$attributes.headFontSizeMobile,
+ headFontFamily = _props$attributes.headFontFamily,
+ headFontWeight = _props$attributes.headFontWeight,
+ headFontSubset = _props$attributes.headFontSubset,
+ headLineHeightType = _props$attributes.headLineHeightType,
+ headLineHeight = _props$attributes.headLineHeight,
+ headLineHeightTablet = _props$attributes.headLineHeightTablet,
+ headLineHeightMobile = _props$attributes.headLineHeightMobile,
+ headLoadGoogleFonts = _props$attributes.headLoadGoogleFonts,
+ align = _props$attributes.align,
+ headingColor = _props$attributes.headingColor,
+ headSpace = _props$attributes.headSpace,
+ subHeadFontSizeType = _props$attributes.subHeadFontSizeType,
+ subHeadFontSize = _props$attributes.subHeadFontSize,
+ subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet,
+ subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile,
+ subHeadFontFamily = _props$attributes.subHeadFontFamily,
+ subHeadFontWeight = _props$attributes.subHeadFontWeight,
+ subHeadFontSubset = _props$attributes.subHeadFontSubset,
+ subHeadLineHeightType = _props$attributes.subHeadLineHeightType,
+ subHeadLineHeight = _props$attributes.subHeadLineHeight,
+ subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet,
+ subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile,
+ subHeadLoadGoogleFonts = _props$attributes.subHeadLoadGoogleFonts,
+ subHeadingColor = _props$attributes.subHeadingColor,
+ authorSpace = _props$attributes.authorSpace,
+ authorColor = _props$attributes.authorColor,
+ authorFontSizeType = _props$attributes.authorFontSizeType,
+ authorFontSize = _props$attributes.authorFontSize,
+ authorFontSizeTablet = _props$attributes.authorFontSizeTablet,
+ authorFontSizeMobile = _props$attributes.authorFontSizeMobile,
+ authorFontFamily = _props$attributes.authorFontFamily,
+ authorFontWeight = _props$attributes.authorFontWeight,
+ authorFontSubset = _props$attributes.authorFontSubset,
+ authorLineHeightType = _props$attributes.authorLineHeightType,
+ authorLineHeight = _props$attributes.authorLineHeight,
+ authorLineHeightTablet = _props$attributes.authorLineHeightTablet,
+ authorLineHeightMobile = _props$attributes.authorLineHeightMobile,
+ authorLoadGoogleFonts = _props$attributes.authorLoadGoogleFonts,
+ ctaColor = _props$attributes.ctaColor,
+ ctaFontSizeType = _props$attributes.ctaFontSizeType,
+ ctaFontSize = _props$attributes.ctaFontSize,
+ ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet,
+ ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile,
+ ctaFontFamily = _props$attributes.ctaFontFamily,
+ ctaFontWeight = _props$attributes.ctaFontWeight,
+ ctaFontSubset = _props$attributes.ctaFontSubset,
+ ctaLineHeightType = _props$attributes.ctaLineHeightType,
+ ctaLineHeight = _props$attributes.ctaLineHeight,
+ ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet,
+ ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile,
+ ctaLoadGoogleFonts = _props$attributes.ctaLoadGoogleFonts,
+ ctaBackground = _props$attributes.ctaBackground;
-rowIcons.layout6633 = wp.element.createElement(
- SVG,
- {
- width: "48",
- height: "48",
- viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- },
- wp.element.createElement(Path, {
- fillRule: "evenodd",
- clipRule: "evenodd",
- d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"
- })
-);
-rowIcons.layout333333 = wp.element.createElement(
- SVG,
- {
- width: "48",
- height: "48",
- viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- },
- wp.element.createElement(Path, {
- fillRule: "evenodd",
- d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"
- })
-);
+ var resp_selectors = "left";
-rowIcons.layout255025 = wp.element.createElement(
- SVG,
- {
- width: "48",
- height: "48",
- viewBox: "0 0 48 48",
- xmlns: "http://www.w3.org/2000/svg"
- },
- wp.element.createElement(Path, {
- fillRule: "evenodd",
- d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"
- })
-);
+ var selectors = {
+ " .uagb-timeline__heading": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType),
+ "font-family": headFontFamily,
+ "font-weight": headFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType),
+ "text-align": align,
+ "color": headingColor
+ },
+ " .uagb-timeline__heading a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType),
+ "font-family": headFontFamily,
+ "font-weight": headFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType),
+ "text-align": align,
+ "color": headingColor
+ },
+ " .uagb-timeline__heading-text": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px")
+ },
+ " .uagb-timeline-desc-content": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType),
+ "font-family": subHeadFontFamily,
+ "font-weight": subHeadFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType),
+ "text-align": align,
+ "color": subHeadingColor
+ },
+ " .uagb-timeline__events-new": {
+ "text-align": align
+ },
+ " .uagb-timeline__date-inner": {
+ "text-align": align
+ },
+ " .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after": {
+ "border-left-color": backgroundColor
+ },
+ " .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after": {
+ "border-left-color": backgroundColor
+ },
+ " .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after": {
+ "border-right-color": backgroundColor
+ },
+ " .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after": {
+ "border-right-color": backgroundColor
+ },
+ " .uagb-timeline__line__inner": {
+ "background-color": separatorFillColor
+ },
+ " .uagb-timeline__line": {
+ "background-color": separatorColor,
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorwidth, "px")
+ },
+ " .uagb-timeline__right-block .uagb-timeline__line": {
+ "right": "calc( " + connectorBgsize + "px / 2 )"
+ },
+ " .uagb-timeline__left-block .uagb-timeline__line": {
+ "left": "calc( " + connectorBgsize + "px / 2 )"
+ },
+ " .uagb-timeline__center-block .uagb-timeline__line": {
+ "right": "calc( " + connectorBgsize + "px / 2 )"
+ },
+ " .uagb-timeline__marker": {
+ "background-color": separatorBg,
+ "min-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"),
+ "min-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"),
+ "border": borderwidth + "px solid" + separatorBorder
+ },
+ " .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow": {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ },
+ " .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow": {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ },
+ " .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow": {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ },
+ " .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow": {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ },
+ " .uagb-timeline__center-block .uagb-timeline__marker": {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px"),
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ },
+ " .uagb-timeline__field:not(:last-child)": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(verticalSpace, "px")
+ },
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateBottomspace, "px"),
+ "color": dateColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType),
+ "font-family": dateFontFamily,
+ "font-weight": dateFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType),
+ "text-align": align
+ },
+ " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left": {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ },
+ " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right": {
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ },
+ " .uagb-timeline__date-new": {
+ "color": dateColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType),
+ "font-family": dateFontFamily,
+ "font-weight": dateFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType)
+ },
+ " .uagb-timeline__events-inner-new": {
+ "background-color": backgroundColor,
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px"),
+ "padding": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bgPadding, "px")
+ },
+ " .uagb-timeline__main .uagb-timeline__icon-new": {
+ "color": iconColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px")
+ },
+ " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon": {
+ "background": iconBgFocus,
+ "border-color": borderFocus
+ },
+ " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new": {
+ "color": iconFocus
+ },
+ " .uagb-timeline__main .uagb-timeline__icon-new svg": {
+ "fill": iconColor
+ },
+ " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg": {
+ "fill": iconFocus
+ },
-/* harmony default export */ __webpack_exports__["a"] = (rowIcons);
+ //Author and CTA
+ " .uagb-timeline__author": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorSpace, "px"),
+ "text-align": align
+ },
+ " .uagb-timeline__author .dashicons-admin-users": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType),
+ "font-weight": authorFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType),
+ "color": authorColor
+ },
+ " .uagb-timeline__author-link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType),
+ "font-family": authorFontFamily,
+ "font-weight": authorFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType),
+ "color": authorColor
+ },
+
+ " .uagb-timeline__link_parent": {
+ "text-align": align
+ },
+ " .uagb-timeline__link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "font-family": ctaFontFamily,
+ "font-weight": ctaFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeight, ctaLineHeightType),
+ "color": ctaColor,
+ "background-color": ctaBackground
+ }
+
+ /* Generate Responsive CSS for timeline */
+ };var tablet_selectors = {
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType)
+ },
+ " .uagb-timeline__date-new": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType)
+ },
+ " .uagb-timeline__heading": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType)
+ },
+ " .uagb-timeline__heading a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType)
+ },
+ " .uagb-timeline-desc-content": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType)
+ },
+ " .uagb-timeline__center-block .uagb-timeline__marker": {
+ "margin-left": 0,
+ "margin-right": 0
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after": {
+ "border-right-color": backgroundColor
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line": {
+ "left": "calc( " + connectorBgsize + "px / 2 )"
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a": {
+ "text-align": resp_selectors
+ },
+
+ // CTA AUTHOR.
+ " .uagb-timeline__author .dashicons-admin-users": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType)
+ },
+ " .uagb-timeline__author-link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType)
+ },
+ " .uagb-timeline__link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightTablet, ctaLineHeightType)
+ }
+ };
+
+ var mobile_selectors = {
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType)
+ },
+ " .uagb-timeline__date-new": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType)
+ },
+ " .uagb-timeline__heading": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType)
+ },
+ " .uagb-timeline__heading a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType)
+ },
+ " .uagb-timeline-desc-content": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType)
+ },
+ " .uagb-timeline__center-block .uagb-timeline__marker": {
+ "margin-left": 0,
+ "margin-right": 0
+ },
+ " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left": {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ },
+ " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right": {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after": {
+ "border-right-color": backgroundColor
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line": {
+ "left": "calc( " + connectorBgsize + "px / 2 )"
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a": {
+ "text-align": resp_selectors
+ },
+
+ // CTA AUthor
+ " .uagb-timeline__author .dashicons-admin-users": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType)
+ },
+ " .uagb-timeline__author-link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType)
+ },
+ " .uagb-timeline__link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightMobile, ctaLineHeightType)
+ }
+ };
+
+ var styling_css = "";
+ var id = ".block-editor-page #wpwrap .uagb-block-" + props.clientId;
+
+ styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, id);
+
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, id, true, "tablet");
+
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, id, true, "mobile");
+
+ return styling_css;
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (contentTimelineStyle);
/***/ }),
-/* 178 */
-/*!*********************************************!*\
- !*** ./src/blocks/blockquote/attributes.js ***!
- \*********************************************/
+/* 218 */
+/*!**********************************************!*\
+ !*** ./src/blocks/timeline/align-classes.js ***!
+ \**********************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/**
- * BLOCK: UAGB Quote Block Attributes
+ * Function name: AlignClass
+ * @param array attributes settign array of attributes.
+ * @param int index_val index values.
+ */
+function AlignClass(attributes, index_val) {
+
+ var align_class = "";
+ if ("left" == attributes.timelinAlignment) {
+ align_class = "uagb-timeline__widget uagb-timeline__left";
+ } else if ("right" == attributes.timelinAlignment) {
+ align_class = "uagb-timeline__widget uagb-timeline__right";
+ } else if ("center" == attributes.timelinAlignment) {
+ if (index_val % 2 == "0") {
+ align_class = "uagb-timeline__widget uagb-timeline__right";
+ } else {
+ align_class = "uagb-timeline__widget uagb-timeline__left";
+ }
+ }
+
+ return [align_class];
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (AlignClass);
+
+/***/ }),
+/* 219 */
+/*!**************************************************!*\
+ !*** ./src/blocks/timeline/day-align-classes.js ***!
+ \**************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/**
+ * Returns Dynamic Generated Classes
+ */
+
+function DayAlignClass(attributes, index_val) {
+
+ var day_align_class = "";
+
+ if ("left" == attributes.timelinAlignment) {
+ day_align_class = "uagb-timeline__day-new uagb-timeline__day-left";
+ } else if ("right" == attributes.timelinAlignment) {
+ day_align_class = "uagb-timeline__day-new uagb-timeline__day-right";
+ } else if ("center" == attributes.timelinAlignment) {
+ if (index_val % 2 == "0") {
+ day_align_class = "uagb-timeline__day-new uagb-timeline__day-right";
+ } else {
+ day_align_class = "uagb-timeline__day-new uagb-timeline__day-left";
+ }
+ }
+
+ return [day_align_class];
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (DayAlignClass);
+
+/***/ }),
+/* 220 */
+/*!*********************************************************!*\
+ !*** ./src/blocks/timeline/content-timeline/styling.js ***!
+ \*********************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/generateCSS */ 4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/generateCSSUnit */ 3);
+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; }
+
+/**
+ * Returns Dynamic Generated CSS
+ */
+
+
+
+
+function contentTimelineStyle(props) {
+ var _selectors;
+
+ var _props$attributes = props.attributes,
+ dateBottomspace = _props$attributes.dateBottomspace,
+ backgroundColor = _props$attributes.backgroundColor,
+ separatorColor = _props$attributes.separatorColor,
+ separatorFillColor = _props$attributes.separatorFillColor,
+ separatorBg = _props$attributes.separatorBg,
+ separatorBorder = _props$attributes.separatorBorder,
+ borderFocus = _props$attributes.borderFocus,
+ verticalSpace = _props$attributes.verticalSpace,
+ horizontalSpace = _props$attributes.horizontalSpace,
+ separatorwidth = _props$attributes.separatorwidth,
+ borderwidth = _props$attributes.borderwidth,
+ connectorBgsize = _props$attributes.connectorBgsize,
+ borderRadius = _props$attributes.borderRadius,
+ bgPadding = _props$attributes.bgPadding,
+ iconColor = _props$attributes.iconColor,
+ dateFontsizeType = _props$attributes.dateFontsizeType,
+ dateFontsize = _props$attributes.dateFontsize,
+ dateFontsizeTablet = _props$attributes.dateFontsizeTablet,
+ dateFontsizeMobile = _props$attributes.dateFontsizeMobile,
+ dateFontFamily = _props$attributes.dateFontFamily,
+ dateFontWeight = _props$attributes.dateFontWeight,
+ dateLineHeightType = _props$attributes.dateLineHeightType,
+ dateLineHeight = _props$attributes.dateLineHeight,
+ dateLineHeightTablet = _props$attributes.dateLineHeightTablet,
+ dateLineHeightMobile = _props$attributes.dateLineHeightMobile,
+ dateColor = _props$attributes.dateColor,
+ iconSize = _props$attributes.iconSize,
+ iconFocus = _props$attributes.iconFocus,
+ iconBgFocus = _props$attributes.iconBgFocus,
+ block_id = _props$attributes.block_id,
+ headFontSizeType = _props$attributes.headFontSizeType,
+ headFontSize = _props$attributes.headFontSize,
+ headFontSizeTablet = _props$attributes.headFontSizeTablet,
+ headFontSizeMobile = _props$attributes.headFontSizeMobile,
+ headFontFamily = _props$attributes.headFontFamily,
+ headFontWeight = _props$attributes.headFontWeight,
+ headLineHeightType = _props$attributes.headLineHeightType,
+ headLineHeight = _props$attributes.headLineHeight,
+ headLineHeightTablet = _props$attributes.headLineHeightTablet,
+ headLineHeightMobile = _props$attributes.headLineHeightMobile,
+ align = _props$attributes.align,
+ headingColor = _props$attributes.headingColor,
+ headSpace = _props$attributes.headSpace,
+ subHeadFontSizeType = _props$attributes.subHeadFontSizeType,
+ subHeadFontSize = _props$attributes.subHeadFontSize,
+ subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet,
+ subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile,
+ subHeadFontFamily = _props$attributes.subHeadFontFamily,
+ subHeadFontWeight = _props$attributes.subHeadFontWeight,
+ subHeadLineHeightType = _props$attributes.subHeadLineHeightType,
+ subHeadLineHeight = _props$attributes.subHeadLineHeight,
+ subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet,
+ subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile,
+ subHeadingColor = _props$attributes.subHeadingColor,
+ authorSpace = _props$attributes.authorSpace,
+ authorColor = _props$attributes.authorColor,
+ authorFontSizeType = _props$attributes.authorFontSizeType,
+ authorFontSize = _props$attributes.authorFontSize,
+ authorFontSizeTablet = _props$attributes.authorFontSizeTablet,
+ authorFontSizeMobile = _props$attributes.authorFontSizeMobile,
+ authorFontFamily = _props$attributes.authorFontFamily,
+ authorFontWeight = _props$attributes.authorFontWeight,
+ authorLineHeightType = _props$attributes.authorLineHeightType,
+ authorLineHeight = _props$attributes.authorLineHeight,
+ authorLineHeightTablet = _props$attributes.authorLineHeightTablet,
+ authorLineHeightMobile = _props$attributes.authorLineHeightMobile,
+ ctaColor = _props$attributes.ctaColor,
+ ctaFontSizeType = _props$attributes.ctaFontSizeType,
+ ctaFontSize = _props$attributes.ctaFontSize,
+ ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet,
+ ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile,
+ ctaFontFamily = _props$attributes.ctaFontFamily,
+ ctaFontWeight = _props$attributes.ctaFontWeight,
+ ctaLineHeightType = _props$attributes.ctaLineHeightType,
+ ctaLineHeight = _props$attributes.ctaLineHeight,
+ ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet,
+ ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile,
+ ctaBackground = _props$attributes.ctaBackground;
+
+
+ var resp_selectors = "left";
+
+ var selectors = (_selectors = {
+ " .uagb-timeline__heading.rich-text": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType),
+ "font-family": headFontFamily,
+ "font-weight": headFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType),
+ "text-align": align,
+ "color": headingColor
+ },
+ " .uagb-timeline__heading a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType),
+ "font-family": headFontFamily,
+ "font-weight": headFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType),
+ "text-align": align,
+ "color": headingColor
+ },
+ " .uagb-timeline__heading-text": {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px")
+ },
+ " p.uagb-timeline-desc-content": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType),
+ "font-family": subHeadFontFamily,
+ "font-weight": subHeadFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType),
+ "text-align": align,
+ "color": subHeadingColor
+ },
+ " .uagb-timeline__events-new": {
+ "text-align": align
+ },
+ " .uagb-timeline__date-inner": {
+ "text-align": align
+ },
+ ' .uagb-timeline__day-right .uagb-timeline__arrow:after': {
+ 'border-left-color': backgroundColor
+ }
+ }, _defineProperty(_selectors, " .uagb-timeline__day-right .uagb-timeline__arrow:after", {
+ 'border-right-color': backgroundColor
+ }), _defineProperty(_selectors, " .uagb-timeline__day-right .uagb-timeline__arrow:after", {
+ 'border-left-color': backgroundColor
+ }), _defineProperty(_selectors, " .uagb-timeline__day-right .uagb-timeline__arrow:after", {
+ 'border-right-color': backgroundColor
+ }), _defineProperty(_selectors, ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after', {
+ 'border-left-color': backgroundColor
+ }), _defineProperty(_selectors, ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after', {
+ 'border-left-color': backgroundColor
+ }), _defineProperty(_selectors, ' .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after', {
+ 'border-left-color': backgroundColor
+ }), _defineProperty(_selectors, ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after', {
+ 'border-right-color': backgroundColor
+ }), _defineProperty(_selectors, ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after', {
+ 'border-right-color': backgroundColor
+ }), _defineProperty(_selectors, " .uagb-timeline__line__inner", {
+ "background-color": separatorFillColor
+ }), _defineProperty(_selectors, " .uagb-timeline__line", {
+ "background-color": separatorColor,
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorwidth, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__line", {
+ "right": "calc( " + connectorBgsize + "px / 2 )"
+ }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__line", {
+ "left": "calc( " + connectorBgsize + "px / 2 )"
+ }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__line", {
+ "right": "calc( " + connectorBgsize + "px / 2 )"
+ }), _defineProperty(_selectors, " .uagb-timeline__marker", {
+ "background-color": separatorBg,
+ "min-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"),
+ "min-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"),
+ "border": borderwidth + "px solid" + separatorBorder
+ }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow", {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow", {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow", {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow", {
+ "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__marker", {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px"),
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__field", {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(verticalSpace, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__date-hide.uagb-timeline__date-inner", {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateBottomspace, "px"),
+ "color": dateColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType),
+ "font-family": dateFontFamily,
+ "font-weight": dateFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType),
+ "text-align": align
+ }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left", {
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left", {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right", {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right", {
+ "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__date-new", {
+ "color": dateColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType),
+ "font-family": dateFontFamily,
+ "font-weight": dateFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType)
+ }), _defineProperty(_selectors, " .uagb-timeline__events-inner-new", {
+ "background-color": backgroundColor,
+ "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px"),
+ "padding": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bgPadding, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__icon-new", {
+ "color": iconColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__icon-new svg", {
+ "fill": iconColor,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px")
+ }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon", {
+ "background": iconBgFocus,
+ "border-color": borderFocus
+ }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new", {
+ "color": iconFocus
+ }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg", {
+ "fill": iconColor
+ }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg", {
+ "fill": iconFocus
+ }), _defineProperty(_selectors, " .uagb-timeline__author", {
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorSpace, "px"),
+ "text-align": align
+ }), _defineProperty(_selectors, " .uagb-timeline__author .dashicons-admin-users", {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType),
+ "font-weight": authorFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType),
+ "color": authorColor
+ }), _defineProperty(_selectors, " .uagb-timeline__author-link", {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType),
+ "font-family": authorFontFamily,
+ "font-weight": authorFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType),
+ "color": authorColor
+ }), _defineProperty(_selectors, " .uagb-timeline__link_parent", {
+ "text-align": align
+ }), _defineProperty(_selectors, " .uagb-timeline__link", {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType),
+ "font-family": ctaFontFamily,
+ "font-weight": ctaFontWeight,
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeight, ctaLineHeightType),
+ "color": ctaColor,
+ "background-color": ctaBackground
+ }), _selectors);
+
+ /* Generate Responsive CSS for timeline */
+ var tablet_selectors = {
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType)
+ },
+ " .uagb-timeline__date-new": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType)
+ },
+ " .uagb-timeline__heading": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType)
+ },
+ " .uagb-timeline__heading a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType)
+ },
+ " p.uagb-timeline-desc-content": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType)
+ },
+ " .uagb-timeline__center-block .uagb-timeline__marker": {
+ "margin-left": 0,
+ "margin-right": 0
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet p.uagb-timeline-desc-content": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after": {
+ "border-right-color": backgroundColor
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line": {
+ "left": "calc( " + connectorBgsize + "px / 2 )"
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a": {
+ "text-align": resp_selectors
+ },
+
+ // CTA AUTHOR.
+ " .uagb-timeline__author .dashicons-admin-users": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType)
+ },
+ " .uagb-timeline__author-link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType)
+ },
+ " .uagb-timeline__link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightTablet, ctaLineHeightType)
+ }
+ };
+
+ var mobile_selectors = {
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType)
+ },
+ " .uagb-timeline__date-new": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType)
+ },
+ " .uagb-timeline__heading": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType)
+ },
+ " .uagb-timeline__heading a": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType)
+ },
+ " p.uagb-timeline-desc-content": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType)
+ },
+ " .uagb-timeline__center-block .uagb-timeline__marker": {
+ "margin-left": 0,
+ "margin-right": 0
+ },
+ " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left": {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ },
+ " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right": {
+ "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px")
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile p.uagb-timeline-desc-content": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after": {
+ "border-right-color": backgroundColor
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line": {
+ "left": "calc( " + connectorBgsize + "px / 2 )"
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent": {
+ "text-align": resp_selectors
+ },
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a": {
+ "text-align": resp_selectors
+ },
+
+ // CTA AUthor
+ " .uagb-timeline__author .dashicons-admin-users": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType)
+ },
+ " .uagb-timeline__author-link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType)
+ },
+ " .uagb-timeline__link": {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightMobile, ctaLineHeightType)
+ }
+ };
+
+ var styling_css = "";
+ var id = ".uagb-block-" + props.clientId;
+
+ styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, id);
+
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, id, true, "tablet");
+
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, id, true, "mobile");
+
+ return styling_css;
+}
+
+/* harmony default export */ __webpack_exports__["a"] = (contentTimelineStyle);
+
+/***/ }),
+/* 221 */
+/*!******************************************************************!*\
+ !*** ./src/blocks/timeline/content-timeline-child/attributes.js ***!
+ \******************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/**
+ * BLOCK: UAGB Timeline Child Attributes
*/
+var __ = wp.i18n.__;
+
+
var attributes = {
- block_id: {
+ content_class: {
type: "string"
},
- classMigrate: {
- type: "boolean",
- default: false
+ dayalign_class: {
+ type: "string"
},
- skinStyle: {
+ time_heading: {
type: "string",
- default: "border"
+ default: __("Timeline Heading ", 'ultimate-addons-for-gutenberg')
},
- align: {
+ time_desc: {
type: "string",
- default: "left"
- },
- descriptionText: {
- selector: "div.uagb-blockquote__content",
- default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."
- },
- descColor: {
- type: "string"
+ default: __("This is Timeline description, you can change me anytime click here ", 'ultimate-addons-for-gutenberg')
},
- descFontSize: {
- type: "number"
- },
- descFontSizeType: {
+ dateFormat: {
type: "string",
- default: "px"
- },
- descFontSizeTablet: {
- type: "number"
- },
- descFontSizeMobile: {
- type: "number"
+ default: "F j, Y"
},
- descFontFamily: {
+ align: {
type: "string",
- default: "Default"
- },
- descFontWeight: {
- type: "string"
+ default: "center"
},
- descFontSubset: {
- type: "string"
+ headingTag: {
+ type: "string",
+ default: "h4"
},
- descLineHeightType: {
+ timelinAlignment: {
type: "string",
- default: "em"
+ default: "center"
},
- descLineHeight: {
- type: "number"
+ arrowlinAlignment: {
+ type: "string",
+ default: "center"
},
- descLineHeightTablet: {
- type: "number"
+ block_id: {
+ type: "string",
+ default: "0"
},
- descLineHeightMobile: {
- type: "number"
+ timelineItem: {
+ type: "number",
+ default: 5
},
- descLoadGoogleFonts: {
- type: "boolean",
- default: false
+ tm_client_id: {
+ type: "string",
+ default: "not_set"
},
- descSpace: {
+ iconSize: {
type: "number",
- default: 20
- },
- author: {
- selector: ".uagb-blockquote__author",
- default: "Author"
+ default: 12
},
- authorColor: {
+ icon: {
type: "string",
- default: "#888888"
+ default: "fab fa fa-calendar-alt"
},
- authorFontSize: {
- type: "number"
- },
- authorFontSizeType: {
+ t_date: {
type: "string",
- default: "px"
+ default: '1/1/2019'
},
- authorFontSizeTablet: {
- type: "number"
+ displayPostDate: {
+ type: "boolean"
},
- authorFontSizeMobile: {
- type: "number"
- },
- authorFontFamily: {
- type: "string",
- default: "Default"
- },
- authorFontWeight: {
- type: "string"
- },
- authorFontSubset: {
- type: "string"
- },
- authorLineHeightType: {
+ stack: {
type: "string",
- default: "em"
- },
- authorLineHeight: {
- type: "number"
- },
- authorLineHeightTablet: {
- type: "number"
+ default: "tablet"
+ }
+};
+
+/* harmony default export */ __webpack_exports__["a"] = (attributes);
+
+/***/ }),
+/* 222 */
+/*!*************************************************!*\
+ !*** ./src/blocks/call-to-action/attributes.js ***!
+ \*************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/**
+ * BLOCK: Call To Action - Attributes
+ */
+
+var attributes = {
+ inheritFromTheme: {
+ type: "boolean",
+ default: false
},
- authorLineHeightMobile: {
- type: "number"
+ ctaTitle: {
+ source: "html",
+ selector: "h1,h2,h3,h4,h5,h6",
+ default: "Call To Action"
},
- authorLoadGoogleFonts: {
+ classMigrate: {
type: "boolean",
default: false
},
- authorSpace: {
- type: "number",
- default: 10
- },
- authorImage: {
- type: "object",
- default: {
- "url": "",
- "alt": "Author Image"
- }
+ description: {
+ source: "html",
+ selector: "p",
+ default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."
},
- authorImageSize: {
+ textAlign: {
type: "string",
- default: "thumbnail"
+ default: "left"
},
- authorImageWidth: {
- type: "number",
- default: 40
+ titleColor: {
+ type: "string"
},
- authorImgBorderRadius: {
- type: "number",
- default: 100
+ descColor: {
+ type: "string"
},
- authorImgPosition: {
+ ctaPosition: {
type: "string",
- default: "left"
+ default: "right"
},
- stack: {
+ titleTag: {
type: "string",
- default: "none"
+ default: "h3"
},
- enableTweet: {
- type: "boolean",
- default: true
+ titleFontSize: {
+ type: "number"
},
- iconView: {
+ titleFontSizeType: {
type: "string",
- default: "icon_text"
+ default: "px"
},
- iconSkin: {
- type: "string",
- default: "classic"
+ titleFontSizeMobile: {
+ type: "number"
},
- iconLabel: {
- type: "string",
- default: "Tweet"
+ titleFontSizeTablet: {
+ type: "number"
},
- iconShareVia: {
+ titleFontFamily: {
type: "string",
- default: ""
+ default: "Default"
},
- iconTargetUrl: {
- type: "string",
- default: "current"
+ titleFontWeight: {
+ type: "string"
},
- customUrl: {
+ titleFontSubset: {
type: "string"
},
- tweetLinkColor: {
+ titleLineHeightType: {
type: "string",
- default: "#1DA1F2"
+ default: "em"
},
- tweetBtnColor: {
- type: "string",
- default: "#fff"
+ titleLineHeight: {
+ type: "number"
},
- tweetBtnBgColor: {
- type: "string",
- default: "#1DA1F2"
+ titleLineHeightTablet: {
+ type: "number"
},
- tweetBtnHoverColor: {
- type: "string"
+ titleLineHeightMobile: {
+ type: "number"
},
- tweetBtnBgHoverColor: {
- type: "string",
- default: "#1DA1F2"
+ titleLoadGoogleFonts: {
+ type: "boolean",
+ default: false
},
- tweetBtnFontSize: {
- type: "number",
- default: 15
+ descFontSize: {
+ type: "number"
},
- tweetBtnFontSizeType: {
+ descFontSizeType: {
type: "string",
default: "px"
},
- tweetBtnFontSizeTablet: {
+ descFontSizeMobile: {
type: "number"
},
- tweetBtnFontSizeMobile: {
+ descFontSizeTablet: {
type: "number"
},
- tweetBtnFontFamily: {
+ descFontFamily: {
type: "string",
default: "Default"
},
- tweetBtnFontWeight: {
+ descFontWeight: {
type: "string"
},
- tweetBtnFontSubset: {
+ descFontSubset: {
type: "string"
},
- tweetBtnLineHeightType: {
+ descLineHeightType: {
type: "string",
default: "em"
},
- tweetBtnLineHeight: {
+ descLineHeight: {
type: "number"
},
- tweetBtnLineHeightTablet: {
+ descLineHeightTablet: {
type: "number"
},
- tweetBtnLineHeightMobile: {
+ descLineHeightMobile: {
type: "number"
},
- tweetBtnLoadGoogleFonts: {
+ descLoadGoogleFonts: {
type: "boolean",
default: false
},
- tweetBtnHrPadding: {
+ titleSpace: {
type: "number",
default: 10
},
- tweetBtnVrPadding: {
+ descSpace: {
type: "number",
default: 10
},
- tweetIconSpacing: {
- type: "number",
- default: 10
+ block_id: {
+ type: "string",
+ default: "not_set"
},
- borderColor: {
+ buttonAlign: {
type: "string",
- default: "#abb8c3"
+ default: "middle"
},
- borderStyle: {
+ ctaTarget: {
+ type: "boolean",
+ default: false
+ },
+ ctaIcon: {
type: "string",
- default: "solid"
+ default: ""
},
- borderWidth: {
- type: "number",
- default: 4
+ ctaIconPosition: {
+ type: "string",
+ default: "after"
},
- borderGap: {
+ ctaIconSpace: {
type: "number",
- default: 15
- },
- verticalPadding: {
- type: "number"
+ default: 5
},
- quoteStyle: {
+ ctaType: {
type: "string",
- default: "style_2"
+ default: "button"
},
- quoteColor: {
+ ctaText: {
+ type: "html",
+ default: "Read More"
+ },
+ ctaLink: {
type: "string",
- default: "#abb8c3"
+ default: "#"
},
- quoteSize: {
- type: "number",
- default: 25
+ ctaFontSize: {
+ type: "number"
},
- quoteSizeType: {
+ ctaFontSizeType: {
type: "string",
default: "px"
},
- quoteSizeTablet: {
+ ctaFontSizeMobile: {
type: "number"
},
- quoteSizeMobile: {
+ ctaFontSizeTablet: {
type: "number"
},
- quotePadding: {
+ ctaFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ ctaFontWeight: {
+ type: "string"
+ },
+ ctaFontSubset: {
+ type: "string"
+ },
+ ctaLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ contentWidth: {
type: "number",
- default: 10
+ default: "70"
},
- quotePaddingType: {
+ ctaBtnLinkColor: {
type: "string",
- default: "px"
+ default: "#333"
},
- quotePaddingTablet: {
- type: "number"
+ ctaLinkHoverColor: {
+ type: "string",
+ default: ""
},
- quotePaddingMobile: {
- type: "number"
+ ctaBgColor: {
+ type: "string",
+ default: "transparent"
},
- quoteBorderRadius: {
- type: "number",
- default: 100
+ ctaBgHoverColor: {
+ type: "string",
+ default: "transparent"
},
- quoteBgColor: {
+ ctaBorderColor: {
type: "string",
default: "#333"
},
- quoteTopMargin: {
- type: "number"
+ ctaBorderhoverColor: {
+ type: "string",
+ default: ""
},
- quoteBottomMargin: {
- type: "number"
+ ctaBorderStyle: {
+ type: "string",
+ default: "solid"
},
- quoteLeftMargin: {
- type: "number"
+ ctaBtnVertPadding: {
+ type: "number",
+ default: 10
},
- quoteRightMargin: {
+ ctaBtnHrPadding: {
type: "number",
- default: 20
+ default: 14
},
- quoteHoverColor: {
- type: "string"
+ ctaBorderWidth: {
+ type: "number",
+ default: 1
},
- quoteBgHoverColor: {
- type: "string"
+ ctaBorderRadius: {
+ type: "number",
+ default: 0
},
- borderHoverColor: {
- type: "string"
+ stack: {
+ type: "string",
+ default: "tablet"
+ },
+ ctaLeftSpace: {
+ type: "number",
+ default: 5
+ },
+ ctaRightSpace: {
+ type: "number",
+ default: 5
}
};
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 179 */
-/*!***************************************************!*\
- !*** ./src/blocks/marketing-button/attributes.js ***!
- \***************************************************/
+/* 223 */
+/*!*****************************************!*\
+ !*** ./src/blocks/column/attributes.js ***!
+ \*****************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-var __ = wp.i18n.__;
-
-
var attributes = {
block_id: {
type: "string"
@@ -20752,77 +21739,146 @@ var attributes = {
type: "string",
default: "center"
},
- textAlign: {
+ alignTablet: {
type: "string",
- default: "center"
+ default: ""
},
- link: {
+ alignMobile: {
type: "string",
- default: "#"
+ default: ""
},
- linkTarget: {
- type: "boolean",
- default: false
+ topPadding: {
+ type: "number",
+ default: ""
},
- titleSpace: {
+ bottomPadding: {
type: "number",
- default: 0
+ default: ""
},
-
- // Border
- borderStyle: {
- type: "string",
- default: "solid"
+ leftPadding: {
+ type: "number",
+ default: ""
},
- borderWidth: {
+ rightPadding: {
type: "number",
- default: 1
+ default: ""
},
- borderRadius: {
- type: "number"
+ topMargin: {
+ type: "number",
+ default: ""
},
- borderColor: {
- type: "string",
- default: "#333"
+ bottomMargin: {
+ type: "number",
+ default: ""
},
- borderHoverColor: {
- type: "string"
+ leftMargin: {
+ type: "number",
+ default: ""
+ },
+ rightMargin: {
+ type: "number",
+ default: ""
+ },
+ topPaddingTablet: {
+ type: "number",
+ default: ""
+ },
+ bottomPaddingTablet: {
+ type: "number",
+ default: ""
+ },
+ leftPaddingTablet: {
+ type: "number",
+ default: ""
+ },
+ rightPaddingTablet: {
+ type: "number",
+ default: ""
+ },
+ topMarginTablet: {
+ type: "number",
+ default: ""
+ },
+ bottomMarginTablet: {
+ type: "number",
+ default: ""
+ },
+ leftMarginTablet: {
+ type: "number",
+ default: ""
+ },
+ rightMarginTablet: {
+ type: "number",
+ default: ""
},
- // Background
- vPadding: {
+ topPaddingMobile: {
type: "number",
- default: 8
+ default: ""
},
- hPadding: {
+ bottomPaddingMobile: {
type: "number",
- default: 20
+ default: ""
},
- vPaddingTablet: {
- type: "number"
+ leftPaddingMobile: {
+ type: "number",
+ default: ""
},
- hPaddingTablet: {
- type: "number"
+ rightPaddingMobile: {
+ type: "number",
+ default: ""
},
- vPaddingMobile: {
- type: "number"
+ topMarginMobile: {
+ type: "number",
+ default: ""
},
- hPaddingMobile: {
- type: "number"
+ bottomMarginMobile: {
+ type: "number",
+ default: ""
},
- paddingType: {
- type: "string",
- default: "px"
+ leftMarginMobile: {
+ type: "number",
+ default: ""
+ },
+ rightMarginMobile: {
+ type: "number",
+ default: ""
+ },
+ colWidth: {
+ type: "number",
+ default: ""
+ },
+ colWidthTablet: {
+ type: "number",
+ default: ""
+ },
+ colWidthMobile: {
+ type: "number",
+ default: ""
},
backgroundType: {
+ type: "string"
+ },
+ backgroundImage: {
+ type: "object"
+ },
+ backgroundPosition: {
type: "string",
- default: "color"
+ default: "center-center"
},
- backgroundColor: {
+ backgroundSize: {
type: "string",
- default: "#eeeeee"
+ default: "cover"
},
- backgroundHoverColor: {
+ backgroundRepeat: {
+ type: "string",
+ default: "no-repeat"
+ },
+ backgroundAttachment: {
+ type: "string",
+ default: "scroll"
+ },
+ backgroundColor: {
type: "string"
},
gradientColor1: {
@@ -20850,413 +21906,267 @@ var attributes = {
backgroundOpacity: {
type: "number"
},
- backgroundHoverOpacity: {
- type: "number"
+ backgroundImageColor: {
+ type: "string"
},
-
- //Colors
- titleColor: {
+ borderStyle: {
type: "string",
- default: "#333"
+ default: "none"
},
- titleHoverColor: {
- type: "string"
+ borderWidth: {
+ type: "number",
+ default: 1
},
- iconColor: {
- type: "string",
- default: "#333"
+ borderRadius: {
+ type: "number"
},
- iconHoverColor: {
+ borderColor: {
type: "string"
},
- prefixColor: {
+ overlayType: {
type: "string",
- default: "#333"
+ default: "color"
},
- prefixHoverColor: {
+ gradientOverlayColor1: {
type: "string"
},
-
- // Label and Sub Label
- heading: {
- source: "html",
- selector: "h1,h2,h3,h4,h5,h6,p,span",
- default: "Subscribe Now"
- },
- prefix: {
- source: "html",
- selector: "p",
- default: "Get access to Premium Features for FREE for a year!"
- },
-
- // Icon attributes
- icon: {
- type: "string",
- default: "external-link-alt"
- },
- iconPosition: {
- type: "string",
- default: "before"
- },
- iconSpace: {
- type: "number",
- default: 10
- },
-
- // Typography
- // Title Font Family
- titleLoadGoogleFonts: {
- type: "boolean",
- default: false
- },
- titleFontFamily: {
- type: "string",
- default: "Default"
- },
- titleFontWeight: {
+ gradientOverlayColor2: {
type: "string"
},
- titleFontSubset: {
- type: "string"
+ gradientOverlayType: {
+ type: "string",
+ default: "linear"
},
- // Title Font Size
- titleFontSize: {
+ gradientOverlayLocation1: {
type: "number",
- default: 20
- },
- titleFontSizeType: {
- type: "string",
- default: "px"
+ default: 0
},
- titleFontSizeTablet: {
+ gradientOverlayLocation2: {
type: "number",
- default: 20
+ default: 100
},
- titleFontSizeMobile: {
+ gradientOverlayAngle: {
type: "number",
- default: 20
+ default: 0
},
- // Title Line Height
- titleLineHeightType: {
+ mobileMarginType: {
type: "string",
- default: "em"
- },
- titleLineHeight: {
- type: "number"
- },
- titleLineHeightTablet: {
- type: "number"
- },
- titleLineHeightMobile: {
- type: "number"
+ default: 'px'
},
- titleTag: {
+ tabletMarginType: {
type: "string",
- default: "h6"
- },
- // Prefix Font Family
- prefixLoadGoogleFonts: {
- type: "boolean",
- default: false
+ default: 'px'
},
- prefixFontFamily: {
+ desktopMarginType: {
type: "string",
- default: "Default"
- },
- prefixFontWeight: {
- type: "string"
- },
- prefixFontSubset: {
- type: "string"
- },
- // Prefix Font Size
- prefixFontSize: {
- type: "number",
- default: 14
+ default: 'px'
},
- prefixFontSizeType: {
+ mobilePaddingType: {
type: "string",
- default: "px"
- },
- prefixFontSizeTablet: {
- type: "number",
- default: 14
- },
- prefixFontSizeMobile: {
- type: "number",
- default: 14
+ default: 'px'
},
- // Prefix Line Height
- prefixLineHeightType: {
+ tabletPaddingType: {
type: "string",
- default: "em"
- },
- prefixLineHeight: {
- type: "number"
- },
- prefixLineHeightTablet: {
- type: "number"
- },
- prefixLineHeightMobile: {
- type: "number"
- },
- // Icon Font Size
- iconFontSize: {
- type: "number",
- default: 20
+ default: 'px'
},
- iconFontSizeType: {
+ desktopPaddingType: {
type: "string",
- default: "px"
- },
- iconFontSizeTablet: {
- type: "number",
- default: 20
+ default: 'px'
},
- iconFontSizeMobile: {
- type: "number",
- default: 20
+ gradientValue: {
+ type: "string",
+ default: ""
}
};
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 180 */
-/*!****************************************************!*\
- !*** ./src/blocks/table-of-contents/attributes.js ***!
- \****************************************************/
+/* 224 */
+/*!******************************************!*\
+ !*** ./src/blocks/columns/attributes.js ***!
+ \******************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-var __ = wp.i18n.__;
-
+/**
+ * BLOCK: Columns - Attributes
+ */
var attributes = {
block_id: {
- type: "string",
- default: "not_set"
+ type: "string"
},
classMigrate: {
type: "boolean",
default: false
},
- disableBullets: {
- type: "boolean",
- default: false
- },
- makeCollapsible: {
- type: "boolean",
- default: false
- },
- initialCollapse: {
- type: "boolean",
- default: false
- },
- icon: {
- type: "string",
- default: "fa-angle-down"
- },
- iconSize: {
- type: "number"
- },
- iconColor: {
- type: "string"
- },
- bulletColor: {
- type: "string"
- },
- smoothScroll: {
- type: "boolean",
- default: true
- },
- smoothScrollDelay: {
- type: "number",
- default: 800
- },
- smoothScrollOffset: {
+ columns: {
type: "number",
- default: 30
- },
- scrollToTop: {
- type: "boolean",
- default: false
+ default: 2
},
- scrollToTopColor: {
+ align: {
type: "string"
},
- scrollToTopBgColor: {
+ vAlign: {
type: "string"
},
- mappingHeaders: {
- type: 'array',
- default: Array(6).fill(true)
- },
- headerLinks: {
- type: 'html',
- default: ''
- },
- align: {
- type: "string",
- default: "left"
- },
- heading: {
- source: "html",
- selector: ".uagb-toc__title",
- default: "Table Of Contents"
- },
- customWidth: {
- type: "boolean",
- default: false
- },
- widthTypeDesktop: {
- type: "string",
- default: "%"
- },
- widthTypeTablet: {
+ stack: {
type: "string",
- default: "%"
+ default: "mobile"
},
- widthTypeMobile: {
+ columnGap: {
type: "string",
- default: "%"
+ default: "10"
},
- widthDesktop: {
+ topPadding: {
type: "number",
- default: 100
- },
- widthTablet: {
- type: "number"
- },
- widthMobile: {
- type: "number"
+ default: 20
},
- tColumnsDesktop: {
+ bottomPadding: {
type: "number",
- default: 1
+ default: 20
},
- tColumnsTablet: {
+ leftPadding: {
type: "number",
- default: 1
+ default: 20
},
- tColumnsMobile: {
+ rightPadding: {
type: "number",
- default: 1
- },
-
- // Color
- backgroundColor: {
- type: "string",
- default: "#eee"
- },
- linkColor: {
- type: "string",
- default: "#333"
- },
- linkHoverColor: {
- type: "string"
- },
- headingColor: {
- type: "string"
+ default: 20
},
-
- // Padding
- vPaddingDesktop: {
- type: "number",
- default: 30
+ topPaddingTablet: {
+ type: "number"
},
- hPaddingDesktop: {
- type: "number",
- default: 30
+ bottomPaddingTablet: {
+ type: "number"
},
- vPaddingTablet: {
+ leftPaddingTablet: {
type: "number"
},
- hPaddingTablet: {
+ rightPaddingTablet: {
type: "number"
},
- vPaddingMobile: {
+ topPaddingMobile: {
type: "number"
},
- hPaddingMobile: {
+ bottomPaddingMobile: {
type: "number"
},
- // Margin
- vMarginDesktop: {
+ leftPaddingMobile: {
type: "number"
},
- hMarginDesktop: {
+ rightPaddingMobile: {
type: "number"
},
- vMarginTablet: {
+ topMargin: {
+ type: "number",
+ default: 0
+ },
+ bottomMargin: {
+ type: "number",
+ default: 0
+ },
+ topMarginMobile: {
type: "number"
},
- hMarginTablet: {
+ bottomMarginMobile: {
type: "number"
},
- vMarginMobile: {
+ topMarginTablet: {
type: "number"
},
- hMarginMobile: {
+ bottomMarginTablet: {
type: "number"
},
- marginTypeDesktop: {
+ contentWidth: {
type: "string",
- default: "px"
+ default: "theme"
},
- marginTypeTablet: {
+ width: {
+ type: "number",
+ default: 900
+ },
+ widthType: {
type: "string",
default: "px"
},
- marginTypeMobile: {
+ tag: {
type: "string",
- default: "px"
+ default: "section"
},
- headingBottom: {
- type: "number"
+ backgroundType: {
+ type: "string"
},
- paddingTypeDesktop: {
+ backgroundImage: {
+ type: "object"
+ },
+ backgroundPosition: {
type: "string",
- default: "px"
+ default: "center-center"
},
- paddingTypeTablet: {
+ backgroundSize: {
type: "string",
- default: "px"
+ default: "cover"
},
- paddingTypeMobile: {
+ backgroundRepeat: {
type: "string",
- default: "px"
+ default: "no-repeat"
},
-
- // Content Padding
- contentPaddingDesktop: {
- type: "number"
+ backgroundAttachment: {
+ type: "string",
+ default: "scroll"
},
- contentPaddingTablet: {
- type: "number"
+ backgroundVideo: {
+ type: "object"
},
- contentPaddingMobile: {
- type: "number"
+ backgroundColor: {
+ type: "string"
},
- contentPaddingTypeDesktop: {
- type: "string",
- default: "px"
+ gradientColor1: {
+ type: "string"
},
- contentPaddingTypeTablet: {
+ gradientColor2: {
+ type: "string"
+ },
+ gradientType: {
type: "string",
- default: "px"
+ default: "linear"
},
- contentPaddingTypeMobile: {
+ gradientLocation1: {
+ type: "number",
+ default: 0
+ },
+ gradientLocation2: {
+ type: "number",
+ default: 100
+ },
+ gradientAngle: {
+ type: "number",
+ default: 0
+ },
+ gradientPosition: {
type: "string",
- default: "px"
+ default: "center center"
+ },
+ backgroundOpacity: {
+ type: "number"
+ },
+ backgroundVideoOpacity: {
+ type: "number",
+ default: 50
+ },
+ backgroundVideoColor: {
+ type: "string"
+ },
+ backgroundImageColor: {
+ type: "string"
},
-
- // Border
borderStyle: {
type: "string",
- default: "solid"
+ default: "none"
},
borderWidth: {
type: "number",
@@ -21266,823 +22176,606 @@ var attributes = {
type: "number"
},
borderColor: {
- type: "string",
- default: "#333"
- },
-
- // Typography
- // Link Font Family
- loadGoogleFonts: {
- type: "boolean",
- default: false
+ type: "string"
},
- fontFamily: {
+ bottomType: {
type: "string",
- default: "Default"
- },
- fontWeight: {
- type: "string"
+ default: "none"
},
- fontSubset: {
+ bottomColor: {
type: "string"
},
- // Link Font Size
- fontSize: {
+ bottomHeight: {
type: "number"
},
- fontSizeType: {
- type: "string",
- default: "px"
+ bottomHeightTablet: {
+ type: "number"
},
- fontSizeTablet: {
+ bottomHeightMobile: {
type: "number"
},
- fontSizeMobile: {
+ bottomWidth: {
type: "number"
},
- // Link Line Height
- lineHeightType: {
+ topType: {
type: "string",
- default: "em"
+ default: "none"
},
- lineHeight: {
+ topColor: {
+ type: "string"
+ },
+ topHeight: {
type: "number"
},
- lineHeightTablet: {
+ topHeightTablet: {
type: "number"
},
- lineHeightMobile: {
+ topHeightMobile: {
type: "number"
},
-
- // Link Font Family
- headingLoadGoogleFonts: {
+ topWidth: {
+ type: "number"
+ },
+ topFlip: {
type: "boolean",
default: false
},
- headingFontFamily: {
- type: "string",
- default: "Default"
+ bottomFlip: {
+ type: "boolean",
+ default: false
},
- headingFontWeight: {
- type: "string",
- default: "500"
+ reverseTablet: {
+ type: "boolean",
+ default: false
},
- headingFontSubset: {
- type: "string"
+ reverseMobile: {
+ type: "boolean",
+ default: false
},
- // Link Font Size
- headingFontSize: {
+ topDividerOpacity: {
type: "number",
- default: 20
+ default: 100
},
- headingFontSizeType: {
- type: "string",
- default: "px"
+ bottomDividerOpacity: {
+ type: "number",
+ default: 100
},
- headingFontSizeTablet: {
- type: "number"
+ topContentAboveShape: {
+ type: "boolean",
+ default: false
},
- headingFontSizeMobile: {
- type: "number"
+ bottomContentAboveShape: {
+ type: "boolean",
+ default: false
},
- // Link Line Height
- headingLineHeightType: {
+ mobileMarginType: {
type: "string",
- default: "em"
- },
- headingLineHeight: {
- type: "number"
- },
- headingLineHeightTablet: {
- type: "number"
+ default: 'px'
},
- headingLineHeightMobile: {
- type: "number"
+ tabletMarginType: {
+ type: "string",
+ default: 'px'
},
- headingAlignment: {
+ desktopMarginType: {
type: "string",
- default: "left"
+ default: 'px'
+ },
+ mobilePaddingType: {
+ type: "string",
+ default: 'px'
+ },
+ tabletPaddingType: {
+ type: "string",
+ default: 'px'
+ },
+ desktopPaddingType: {
+ type: "string",
+ default: 'px'
+ },
+ boxShadowColor: {
+ type: "string"
+ },
+ boxShadowHOffset: {
+ type: "number",
+ default: 0
+ },
+ boxShadowVOffset: {
+ type: "number",
+ default: 0
+ },
+ boxShadowBlur: {
+ type: "number"
+ },
+ boxShadowSpread: {
+ type: "number"
+ },
+ boxShadowPosition: {
+ type: "string",
+ default: "outset"
+ },
+ gradientValue: {
+ type: "string",
+ default: ""
}
+
};
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 181 */
-/*!*********************************************!*\
- !*** ./src/blocks/table-of-contents/toc.js ***!
- \*********************************************/
+/* 225 */
+/*!*************************************!*\
+ !*** ./src/blocks/columns/icons.js ***!
+ \*************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-
-var __ = wp.i18n.__;
-
-var TableOfContents = function (_React$Component) {
- _inherits(TableOfContents, _React$Component);
-
- function TableOfContents() {
- _classCallCheck(this, TableOfContents);
-
- return _possibleConstructorReturn(this, (TableOfContents.__proto__ || Object.getPrototypeOf(TableOfContents)).apply(this, arguments));
- }
-
- _createClass(TableOfContents, [{
- key: 'render',
- value: function render() {
- var _props = this.props,
- mappingHeaders = _props.mappingHeaders,
- headers = _props.headers;
-
-
- var makeHeaderArray = function makeHeaderArray(origHeaders) {
- var arrays = [];
-
- origHeaders.filter(function (header) {
- return mappingHeaders[header.tag - 1];
- }).forEach(function (header) {
- var last = arrays.length - 1;
- if (arrays.length === 0 || arrays[last][0].tag < header.tag) {
- arrays.push([header]);
- } else if (arrays[last][0].tag === header.tag) {
- arrays[last].push(header);
- } else {
- while (arrays[last][0].tag > header.tag) {
- if (arrays.length > 1) {
- arrays[arrays.length - 2].push(arrays.pop());
- last = arrays.length - 1;
- } else break;
- }
- if (arrays[last][0].tag === header.tag) {
- arrays[last].push(header);
- }
- }
- });
-
- while (arrays.length > 1 && arrays[arrays.length - 1][0].tag > arrays[arrays.length - 2][0].tag) {
- arrays[arrays.length - 2].push(arrays.pop());
- }
-
- return arrays[0];
- };
-
- var filterArray = function filterArray(origHeaders) {
- var arrays = [];
- headers.forEach(function (heading, key) {
- if (mappingHeaders[heading.tag - 1]) {
- arrays.push(heading);
- }
- });
- return makeHeaderArray(arrays);
- };
-
- var counter = 0;
- var ul_counter = 0;
-
- var parseList = function parseList(list) {
- var items = [];
- list.forEach(function (item) {
-
- if (Array.isArray(item)) {
- items.push(parseList(item));
- } else {
-
- items.push(wp.element.createElement(
- 'li',
- { key: counter },
- wp.element.createElement('a', {
- href: '#' + item.link,
- dangerouslySetInnerHTML: {
- __html: item.text
- }
- })
- ));
- counter++;
- }
- });
- ul_counter++;
- return wp.element.createElement(
- 'ul',
- { key: counter + '-' + ul_counter, className: 'uagb-toc__list' },
- items
- );
- };
-
- if (mappingHeaders != 'undefined' && headers && headers.length > 0 && headers.filter(function (header) {
- return mappingHeaders[header.tag - 1];
- }).length > 0) {
- return wp.element.createElement(
- 'div',
- { className: 'uagb-toc__list-wrap' },
- parseList(filterArray(headers))
- );
- } else {
- return wp.element.createElement(
- 'p',
- { className: 'uagb_table-of-contents-placeholder' },
- __('Add a header to begin generating the table of contents')
- );
- }
- }
- }]);
-
- return TableOfContents;
-}(React.Component);
-
-/* harmony default export */ __webpack_exports__["a"] = (TableOfContents);
-
-/***/ }),
-/* 182 */
-/*!*************************************************!*\
- !*** ./node_modules/striptags/src/striptags.js ***!
- \*************************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-var __WEBPACK_AMD_DEFINE_RESULT__;
-
-(function (global) {
-
- // minimal symbol polyfill for IE11 and others
- if (typeof Symbol !== 'function') {
- var Symbol = function(name) {
- return name;
- }
-
- Symbol.nonNative = true;
- }
-
- const STATE_PLAINTEXT = Symbol('plaintext');
- const STATE_HTML = Symbol('html');
- const STATE_COMMENT = Symbol('comment');
-
- const ALLOWED_TAGS_REGEX = /<(\w*)>/g;
- const NORMALIZE_TAG_REGEX = /<\/?([^\s\/>]+)/;
-
- function striptags(html, allowable_tags, tag_replacement) {
- html = html || '';
- allowable_tags = allowable_tags || [];
- tag_replacement = tag_replacement || '';
-
- let context = init_context(allowable_tags, tag_replacement);
-
- return striptags_internal(html, context);
- }
-
- function init_striptags_stream(allowable_tags, tag_replacement) {
- allowable_tags = allowable_tags || [];
- tag_replacement = tag_replacement || '';
-
- let context = init_context(allowable_tags, tag_replacement);
-
- return function striptags_stream(html) {
- return striptags_internal(html || '', context);
- };
- }
-
- striptags.init_streaming_mode = init_striptags_stream;
-
- function init_context(allowable_tags, tag_replacement) {
- allowable_tags = parse_allowable_tags(allowable_tags);
-
- return {
- allowable_tags : allowable_tags,
- tag_replacement: tag_replacement,
-
- state : STATE_PLAINTEXT,
- tag_buffer : '',
- depth : 0,
- in_quote_char : ''
- };
- }
-
- function striptags_internal(html, context) {
- let allowable_tags = context.allowable_tags;
- let tag_replacement = context.tag_replacement;
-
- let state = context.state;
- let tag_buffer = context.tag_buffer;
- let depth = context.depth;
- let in_quote_char = context.in_quote_char;
- let output = '';
-
- for (let idx = 0, length = html.length; idx < length; idx++) {
- let char = html[idx];
-
- if (state === STATE_PLAINTEXT) {
- switch (char) {
- case '<':
- state = STATE_HTML;
- tag_buffer += char;
- break;
-
- default:
- output += char;
- break;
- }
- }
-
- else if (state === STATE_HTML) {
- switch (char) {
- case '<':
- // ignore '<' if inside a quote
- if (in_quote_char) {
- break;
- }
-
- // we're seeing a nested '<'
- depth++;
- break;
-
- case '>':
- // ignore '>' if inside a quote
- if (in_quote_char) {
- break;
- }
-
- // something like this is happening: '<<>>'
- if (depth) {
- depth--;
-
- break;
- }
-
- // this is closing the tag in tag_buffer
- in_quote_char = '';
- state = STATE_PLAINTEXT;
- tag_buffer += '>';
-
- if (allowable_tags.has(normalize_tag(tag_buffer))) {
- output += tag_buffer;
- } else {
- output += tag_replacement;
- }
-
- tag_buffer = '';
- break;
-
- case '"':
- case '\'':
- // catch both single and double quotes
-
- if (char === in_quote_char) {
- in_quote_char = '';
- } else {
- in_quote_char = in_quote_char || char;
- }
-
- tag_buffer += char;
- break;
-
- case '-':
- if (tag_buffer === '':
- if (tag_buffer.slice(-2) == '--') {
- // close the comment
- state = STATE_PLAINTEXT;
- }
-
- tag_buffer = '';
- break;
-
- default:
- tag_buffer += char;
- break;
- }
- }
- }
-
- // save the context for future iterations
- context.state = state;
- context.tag_buffer = tag_buffer;
- context.depth = depth;
- context.in_quote_char = in_quote_char;
-
- return output;
- }
-
- function parse_allowable_tags(allowable_tags) {
- let tag_set = new Set();
-
- if (typeof allowable_tags === 'string') {
- let match;
+/**
+ * WordPress dependencies
+ */
- while ((match = ALLOWED_TAGS_REGEX.exec(allowable_tags))) {
- tag_set.add(match[1]);
- }
- }
+var _wp$components = wp.components,
+ Path = _wp$components.Path,
+ SVG = _wp$components.SVG,
+ G = _wp$components.G;
+/**
+ * Custom icons
+ */
- else if (!Symbol.nonNative &&
- typeof allowable_tags[Symbol.iterator] === 'function') {
+var rowIcons = {};
- tag_set = new Set(allowable_tags);
- }
+rowIcons.colOne = wp.element.createElement(
+ SVG,
+ { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
+ wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z" })
+);
- else if (typeof allowable_tags.forEach === 'function') {
- // IE11 compatible
- allowable_tags.forEach(tag_set.add, tag_set);
- }
+rowIcons.layout5050 = wp.element.createElement(
+ SVG,
+ { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
+ wp.element.createElement(
+ G,
+ { fillRule: "evenodd" },
+ wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }),
+ wp.element.createElement(Path, { d: "m24 2h2v22h-2z" })
+ )
+);
- return tag_set;
- }
+rowIcons.layout502525 = wp.element.createElement(
+ SVG,
+ { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
+ wp.element.createElement(
+ G,
+ { fillRule: "evenodd" },
+ wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }),
+ wp.element.createElement(Path, { d: "m36 2h2v22h-2z" }),
+ wp.element.createElement(Path, { d: "m24 2h2v22h-2z" })
+ )
+);
- function normalize_tag(tag_buffer) {
- let match = NORMALIZE_TAG_REGEX.exec(tag_buffer);
+rowIcons.layout25252525 = wp.element.createElement(
+ SVG,
+ { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" },
+ wp.element.createElement(
+ G,
+ { fillRule: "evenodd" },
+ wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }),
+ wp.element.createElement(Path, { d: "m12 2h2v22h-2z" }),
+ wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }),
+ wp.element.createElement(Path, { d: "m36 2h2v22h-2z" })
+ )
+);
- return match ? match[1].toLowerCase() : null;
- }
+rowIcons.layout3366 = wp.element.createElement(
+ SVG,
+ { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" },
+ wp.element.createElement(Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"
+ })
+);
- if (true) {
- // AMD
- !(__WEBPACK_AMD_DEFINE_RESULT__ = function module_factory() { return striptags; }.call(exports, __webpack_require__, exports, module),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- }
+rowIcons.layout6633 = wp.element.createElement(
+ SVG,
+ {
+ width: "48",
+ height: "48",
+ viewBox: "0 0 48 48",
+ xmlns: "http://www.w3.org/2000/svg"
+ },
+ wp.element.createElement(Path, {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"
+ })
+);
- else if (typeof module === 'object' && module.exports) {
- // Node
- module.exports = striptags;
- }
+rowIcons.layout333333 = wp.element.createElement(
+ SVG,
+ {
+ width: "48",
+ height: "48",
+ viewBox: "0 0 48 48",
+ xmlns: "http://www.w3.org/2000/svg"
+ },
+ wp.element.createElement(Path, {
+ fillRule: "evenodd",
+ d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"
+ })
+);
- else {
- // Browser
- global.striptags = striptags;
- }
-}(this));
+rowIcons.layout255025 = wp.element.createElement(
+ SVG,
+ {
+ width: "48",
+ height: "48",
+ viewBox: "0 0 48 48",
+ xmlns: "http://www.w3.org/2000/svg"
+ },
+ wp.element.createElement(Path, {
+ fillRule: "evenodd",
+ d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"
+ })
+);
+/* harmony default export */ __webpack_exports__["a"] = (rowIcons);
/***/ }),
-/* 183 */
-/*!*****************************************!*\
- !*** ./src/blocks/how-to/attributes.js ***!
- \*****************************************/
+/* 226 */
+/*!*********************************************!*\
+ !*** ./src/blocks/blockquote/attributes.js ***!
+ \*********************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/**
- * BLOCK: UAGB How-To Schema Attributes
+ * BLOCK: UAGB Quote Block Attributes
*/
-var __ = wp.i18n.__;
-
-
-var tools = [];
-
-var materials = [];
-
-tools.push({
- "add_required_tools": __("- A Computer.")
-});
-
-materials.push({
- "add_required_materials": __("- A WordPress Website.")
-});
-
var attributes = {
block_id: {
type: "string"
},
- overallAlignment: {
+ classMigrate: {
+ type: "boolean",
+ default: false
+ },
+ skinStyle: {
+ type: "string",
+ default: "border"
+ },
+ align: {
type: "string",
default: "left"
},
- toolsTitle: {
- type: "html",
- default: __("Required Tools:")
+ descriptionText: {
+ selector: "div.uagb-blockquote__content",
+ default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."
},
- materialTitle: {
- type: "html",
- default: __("Things Needed?")
+ descColor: {
+ type: "string"
},
- stepsTitle: {
- type: "html",
- default: __("Steps to configure the How-to Schema:")
+ descFontSize: {
+ type: "number"
},
- tools_count: {
- type: "number",
- default: 1
+ descFontSizeType: {
+ type: "string",
+ default: "px"
},
- material_count: {
- type: "number",
- default: 1
+ descFontSizeTablet: {
+ type: "number"
},
- tools: {
- type: "array",
- default: tools
+ descFontSizeMobile: {
+ type: "number"
},
- materials: {
- type: "array",
- default: materials
+ descFontFamily: {
+ type: "string",
+ default: "Default"
},
- showTotaltime: {
- type: "boolean",
- default: true
+ descFontWeight: {
+ type: "string"
},
- showEstcost: {
- type: "boolean",
- default: true
+ descFontSubset: {
+ type: "string"
},
- showTools: {
- type: "boolean",
- default: true
+ descLineHeightType: {
+ type: "string",
+ default: "em"
},
- showMaterials: {
+ descLineHeight: {
+ type: "number"
+ },
+ descLineHeightTablet: {
+ type: "number"
+ },
+ descLineHeightMobile: {
+ type: "number"
+ },
+ descLoadGoogleFonts: {
type: "boolean",
- default: true
+ default: false
},
- mainimage: {
- type: "object",
- default: {
- "url": ""
- }
+ descSpace: {
+ type: "number",
+ default: 20
},
- estCost: {
- type: "html",
- default: __("Total Cost:")
+ author: {
+ selector: ".uagb-blockquote__author",
+ default: "Author"
},
- timeNeeded: {
- type: "html",
- default: __("Total Time Needed :")
+ authorColor: {
+ type: "string",
+ default: "#888888"
},
- timeIn: {
- type: "html",
- default: __(" Minutes")
+ authorFontSize: {
+ type: "number"
},
- imgSize: {
+ authorFontSizeType: {
type: "string",
- default: "thumbnail"
+ default: "px"
},
- timeSpace: {
- type: "number",
- default: 5
+ authorFontSizeTablet: {
+ type: "number"
},
- costSpace: {
- type: "number",
- default: 5
+ authorFontSizeMobile: {
+ type: "number"
},
- time: {
+ authorFontFamily: {
type: "string",
- default: "30"
+ default: "Default"
},
- cost: {
+ authorFontWeight: {
+ type: "string"
+ },
+ authorFontSubset: {
+ type: "string"
+ },
+ authorLineHeightType: {
type: "string",
- default: "65"
+ default: "em"
},
- headingTitle: {
- source: "html",
- selector: "h1,h2,h3,h4,h5,h6",
- default: __("How To Configure How-To Schema In Ultimate Addons For Gutenberg?")
+ authorLineHeight: {
+ type: "number"
},
- currencyType: {
- type: "html",
- default: " USD"
+ authorLineHeightTablet: {
+ type: "number"
},
- headingDesc: {
- source: "html",
- selector: "p",
- default: __("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages that contain a How-to in their title and describe steps to achieve certain requirements.")
+ authorLineHeightMobile: {
+ type: "number"
},
- headingAlign: {
+ authorLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ authorSpace: {
+ type: "number",
+ default: 10
+ },
+ authorImage: {
+ type: "object",
+ default: {
+ "url": "",
+ "alt": "Author Image"
+ }
+ },
+ authorImageSize: {
type: "string",
- default: "left"
+ default: "thumbnail"
},
- descriptionAlign: {
+ authorImageWidth: {
+ type: "number",
+ default: 40
+ },
+ authorImgBorderRadius: {
+ type: "number",
+ default: 100
+ },
+ authorImgPosition: {
type: "string",
default: "left"
},
- headingColor: {
- type: "string"
+ stack: {
+ type: "string",
+ default: "none"
},
- showEstcostcolor: {
- type: "string"
+ enableTweet: {
+ type: "boolean",
+ default: true
},
- showTotaltimecolor: {
+ iconView: {
type: "string",
- default: ""
+ default: "icon_text"
},
- subHeadingColor: {
+ iconSkin: {
type: "string",
- default: ""
+ default: "classic"
},
- headingTag: {
+ iconLabel: {
type: "string",
- default: "h3"
+ default: "Tweet"
},
- headSpace: {
- type: "number",
- default: 15
+ iconShareVia: {
+ type: "string",
+ default: ""
},
- headFontFamily: {
+ iconTargetUrl: {
type: "string",
- default: "Default"
+ default: "current"
},
- headFontWeight: {
+ customUrl: {
type: "string"
},
- headFontSubset: {
- type: "string"
+ tweetLinkColor: {
+ type: "string",
+ default: "#1DA1F2"
},
- headFontSizeType: {
+ tweetBtnColor: {
type: "string",
- default: "px"
+ default: "#fff"
},
- headLineHeightType: {
+ tweetBtnBgColor: {
type: "string",
- default: "em"
+ default: "#1DA1F2"
},
- headFontSize: {
- type: "number"
+ tweetBtnHoverColor: {
+ type: "string"
},
- headFontSizeTablet: {
- type: "number"
+ tweetBtnBgHoverColor: {
+ type: "string",
+ default: "#1DA1F2"
},
- headFontSizeMobile: {
- type: "number"
+ tweetBtnFontSize: {
+ type: "number",
+ default: 15
},
- headLineHeight: {
- type: "number"
+ tweetBtnFontSizeType: {
+ type: "string",
+ default: "px"
},
- headLineHeightTablet: {
+ tweetBtnFontSizeTablet: {
type: "number"
},
- headLineHeightMobile: {
+ tweetBtnFontSizeMobile: {
type: "number"
},
- subHeadFontFamily: {
+ tweetBtnFontFamily: {
type: "string",
default: "Default"
},
- subHeadFontWeight: {
+ tweetBtnFontWeight: {
type: "string"
},
- subHeadFontSubset: {
+ tweetBtnFontSubset: {
type: "string"
},
- subHeadFontSize: {
- type: "number"
- },
- subHeadFontSizeType: {
+ tweetBtnLineHeightType: {
type: "string",
- default: "px"
+ default: "em"
},
- subHeadFontSizeTablet: {
+ tweetBtnLineHeight: {
type: "number"
},
- subHeadFontSizeMobile: {
+ tweetBtnLineHeightTablet: {
type: "number"
},
- subHeadLineHeight: {
+ tweetBtnLineHeightMobile: {
type: "number"
},
- subHeadLineHeightType: {
- type: "string",
- default: "em"
- },
- subHeadLineHeightTablet: {
- type: "number"
+ tweetBtnLoadGoogleFonts: {
+ type: "boolean",
+ default: false
},
- subHeadLineHeightMobile: {
- type: "number"
+ tweetBtnHrPadding: {
+ type: "number",
+ default: 10
},
- separatorSpace: {
+ tweetBtnVrPadding: {
type: "number",
- default: 15
+ default: 10
},
- headLoadGoogleFonts: {
- type: "boolean",
- default: false
+ tweetIconSpacing: {
+ type: "number",
+ default: 10
},
- subHeadLoadGoogleFonts: {
- type: "boolean",
- default: false
+ borderColor: {
+ type: "string",
+ default: "#abb8c3"
},
- priceFontSizeType: {
+ borderStyle: {
type: "string",
- default: "px"
+ default: "solid"
},
- priceFontSize: {
- type: "number"
+ borderWidth: {
+ type: "number",
+ default: 4
},
- priceFontSizeTablet: {
- type: "number"
+ borderGap: {
+ type: "number",
+ default: 15
},
- priceFontSizeMobile: {
+ verticalPadding: {
type: "number"
},
- priceFontFamily: {
+ quoteStyle: {
type: "string",
- default: "Default"
+ default: "style_2"
},
- priceFontWeight: {
- type: "string"
+ quoteColor: {
+ type: "string",
+ default: "#abb8c3"
},
- priceFontSubset: {
- type: "string"
+ quoteSize: {
+ type: "number",
+ default: 25
},
- priceLineHeightType: {
+ quoteSizeType: {
type: "string",
- default: "em"
+ default: "px"
},
- priceLineHeight: {
+ quoteSizeTablet: {
type: "number"
},
- priceLineHeightTablet: {
+ quoteSizeMobile: {
type: "number"
},
- priceLineHeightMobile: {
- type: "number"
+ quotePadding: {
+ type: "number",
+ default: 10
},
- priceLoadGoogleFonts: {
- type: "boolean",
- default: false
+ quotePaddingType: {
+ type: "string",
+ default: "px"
},
- row_gap: {
- type: "number",
- default: 20
+ quotePaddingTablet: {
+ type: "number"
},
- step_gap: {
+ quotePaddingMobile: {
type: "number"
},
- schema: {
- type: "html",
- default: ""
+ quoteBorderRadius: {
+ type: "number",
+ default: 100
},
- timeInMins: {
- type: "number"
-
+ quoteBgColor: {
+ type: "string",
+ default: "#333"
},
- timeInHours: {
+ quoteTopMargin: {
type: "number"
},
- timeInDays: {
+ quoteBottomMargin: {
type: "number"
},
- timeInMonths: {
+ quoteLeftMargin: {
type: "number"
},
- timeInYears: {
- type: "number"
+ quoteRightMargin: {
+ type: "number",
+ default: 20
+ },
+ quoteHoverColor: {
+ type: "string"
+ },
+ quoteBgHoverColor: {
+ type: "string"
+ },
+ borderHoverColor: {
+ type: "string"
}
-
};
/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 184 */
-/*!**************************************!*\
- !*** ./src/blocks/how-to/style.scss ***!
- \**************************************/
-/*! no static exports found */
-/***/ (function(module, exports) {
-
-// removed by extract-text-webpack-plugin
-
-/***/ }),
-/* 185 */
-/*!********************************************!*\
- !*** ./src/blocks/faq-child/attributes.js ***!
- \********************************************/
+/* 227 */
+/*!***************************************************!*\
+ !*** ./src/blocks/marketing-button/attributes.js ***!
+ \***************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -22095,4155 +22788,6274 @@ var attributes = {
block_id: {
type: "string"
},
- question: {
- type: "html",
- default: __("What is FAQ?")
- },
- answer: {
- type: "html",
- default: __("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.")
+ classMigrate: {
+ type: "boolean",
+ default: false
},
- icon: {
- type: "html",
- default: "fas fa-plus"
+ align: {
+ type: "string",
+ default: "center"
},
- iconActive: {
- type: "html",
- default: "fas fa-minus"
+ textAlign: {
+ type: "string",
+ default: "center"
},
- layout: {
+ link: {
type: "string",
- default: "accordion"
+ default: "#"
+ },
+ linkTarget: {
+ type: "boolean",
+ default: false
+ },
+ titleSpace: {
+ type: "number",
+ default: 0
},
- headingTag: {
- type: "html",
- selector: "span,p,h1,h2,h3,h4,h5,h6",
- default: "span"
- }
-};
-
-/* harmony default export */ __webpack_exports__["a"] = (attributes);
-
-/***/ }),
-/* 186 */
-/*!*****************************************!*\
- !*** ./src/blocks/review/components.js ***!
- \*****************************************/
-/*! exports provided: Stars, ReviewBody */
-/*! exports used: ReviewBody, Stars */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Stars; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ReviewBody; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
-function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-
-var _ref = wp.blockEditor || wp.editor,
- RichText = _ref.RichText;
-
-var __ = wp.i18n.__;
-
-
-
-var Stars = function (_Component) {
- _inherits(Stars, _Component);
-
- function Stars(props) {
- _classCallCheck(this, Stars);
- var _this = _possibleConstructorReturn(this, (Stars.__proto__ || Object.getPrototypeOf(Stars)).call(this, props));
+ // Border
+ borderStyle: {
+ type: "string",
+ default: "solid"
+ },
+ borderWidth: {
+ type: "number",
+ default: 1
+ },
+ borderRadius: {
+ type: "number"
+ },
+ borderColor: {
+ type: "string",
+ default: "#333"
+ },
+ borderHoverColor: {
+ type: "string"
+ },
- _this.state = {
- displayValue: _this.props.value,
- displayColor: _this.props.activeStarColor
- };
- _this.mouseHover = _this.mouseHover.bind(_this);
- _this.mouseLeave = _this.mouseLeave.bind(_this);
- _this.mouseClick = _this.mouseClick.bind(_this);
- return _this;
- }
-
- _createClass(Stars, [{
- key: "mouseHover",
- value: function mouseHover(i) {
- this.setState({
- displayValue: i + (this.props.value - i === 1 ? 0.5 : 1),
- displayColor: this.props.selectedStarColor
- });
- }
- }, {
- key: "mouseLeave",
- value: function mouseLeave() {
- this.setState({
- displayValue: this.props.value,
- displayColor: this.props.activeStarColor
- });
- }
- }, {
- key: "mouseClick",
- value: function mouseClick(i) {
- var _props = this.props,
- setValue = _props.setValue,
- value = _props.value;
+ // Background
+ vPadding: {
+ type: "number",
+ default: 8
+ },
+ hPadding: {
+ type: "number",
+ default: 20
+ },
+ vPaddingTablet: {
+ type: "number"
+ },
+ hPaddingTablet: {
+ type: "number"
+ },
+ vPaddingMobile: {
+ type: "number"
+ },
+ hPaddingMobile: {
+ type: "number"
+ },
+ paddingType: {
+ type: "string",
+ default: "px"
+ },
+ backgroundType: {
+ type: "string",
+ default: "color"
+ },
+ backgroundColor: {
+ type: "string",
+ default: "#eeeeee"
+ },
+ backgroundHoverColor: {
+ type: "string"
+ },
+ gradientColor1: {
+ type: "string"
+ },
+ gradientColor2: {
+ type: "string"
+ },
+ gradientType: {
+ type: "string",
+ default: "linear"
+ },
+ gradientLocation1: {
+ type: "number",
+ default: 0
+ },
+ gradientLocation2: {
+ type: "number",
+ default: 100
+ },
+ gradientAngle: {
+ type: "number",
+ default: 0
+ },
+ backgroundOpacity: {
+ type: "number"
+ },
+ backgroundHoverOpacity: {
+ type: "number"
+ },
- setValue(value === i + 1 ? i + 0.5 : i + 1);
- this.setState({
- displayValue: value === i + 1 ? i + 0.5 : i + 1
- });
- }
- }, {
- key: "componentWillReceiveProps",
- value: function componentWillReceiveProps(newProps) {
- var value = newProps.value,
- activeStarColor = newProps.activeStarColor;
+ //Colors
+ titleColor: {
+ type: "string",
+ default: "#333"
+ },
+ titleHoverColor: {
+ type: "string"
+ },
+ iconColor: {
+ type: "string",
+ default: "#333"
+ },
+ iconHoverColor: {
+ type: "string"
+ },
+ prefixColor: {
+ type: "string",
+ default: "#333"
+ },
+ prefixHoverColor: {
+ type: "string"
+ },
- if (this.props.onHover || this.state.displayValue !== value) {
- this.setState({
- displayValue: value,
- displayColor: activeStarColor
- });
- } else {
- this.setState({ displayColor: activeStarColor });
- }
- }
- }, {
- key: "render",
- value: function render() {
- var _this2 = this;
+ // Label and Sub Label
+ heading: {
+ source: "html",
+ selector: "h1,h2,h3,h4,h5,h6,p,span",
+ default: "Subscribe Now"
+ },
+ prefix: {
+ source: "html",
+ selector: "p",
+ default: "Get access to Premium Features for FREE for a year!"
+ },
- var displayValue = this.state.displayValue;
- var _props2 = this.props,
- limit = _props2.limit,
- id = _props2.id,
- className = _props2.className,
- inactiveStarColor = _props2.inactiveStarColor,
- onHover = _props2.onHover,
- _onClick = _props2.onClick,
- style = _props2.style,
- starOutlineColor = _props2.starOutlineColor;
+ // Icon attributes
+ icon: {
+ type: "string",
+ default: "external-link-alt"
+ },
+ iconPosition: {
+ type: "string",
+ default: "before"
+ },
+ iconSpace: {
+ type: "number",
+ default: 10
+ },
- return wp.element.createElement(
- "div",
- {
- className: className,
- style: Object.assign({
- display: "flex",
- flexDirection: "flex-row"
- }, style)
- },
- [].concat(_toConsumableArray(Array(limit).keys())).map(function (i) {
- return wp.element.createElement(
- "svg",
- {
- xmlns: "http://www.w3.org/2000/svg",
- key: i,
- height: "20",
- width: "20",
- viewBox: "0 0 150 150",
- onMouseOver: function onMouseOver() {
- return onHover || _this2.mouseHover(i);
- },
- onMouseOut: function onMouseOut() {
- return _this2.mouseLeave();
- },
- onClick: function onClick() {
- return _onClick || _this2.mouseClick(i);
- }
- },
- wp.element.createElement(
- "defs",
- null,
- wp.element.createElement(
- "mask",
- { id: "uagb_review_star_filter-" + id + "-" + i },
- wp.element.createElement("rect", {
- height: "150",
- width: (displayValue - i > 0 ? displayValue - i < 1 ? displayValue - i : 1 : 0) * 150,
- y: "0",
- x: "0",
- fill: "#fff"
- })
- )
- ),
- wp.element.createElement("path", {
- fill: inactiveStarColor,
- strokeWidth: "2.5",
- d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z",
- stroke: starOutlineColor
- }),
- wp.element.createElement("path", {
- className: "star",
- id: "star" + i,
- mask: "url(#uagb_review_star_filter-" + id + "-" + i + ")",
- fill: _this2.state.displayColor,
- strokeWidth: "2.5",
- d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z",
- stroke: starOutlineColor
- })
- );
- })
- );
- }
- }]);
+ // Typography
+ // Title Font Family
+ titleLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ titleFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ titleFontWeight: {
+ type: "string"
+ },
+ titleFontSubset: {
+ type: "string"
+ },
+ // Title Font Size
+ titleFontSize: {
+ type: "number",
+ default: 20
+ },
+ titleFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ titleFontSizeTablet: {
+ type: "number",
+ default: 20
+ },
+ titleFontSizeMobile: {
+ type: "number",
+ default: 20
+ },
+ // Title Line Height
+ titleLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ titleLineHeight: {
+ type: "number"
+ },
+ titleLineHeightTablet: {
+ type: "number"
+ },
+ titleLineHeightMobile: {
+ type: "number"
+ },
+ titleTag: {
+ type: "string",
+ default: "h6"
+ },
+ // Prefix Font Family
+ prefixLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ prefixFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ prefixFontWeight: {
+ type: "string"
+ },
+ prefixFontSubset: {
+ type: "string"
+ },
+ // Prefix Font Size
+ prefixFontSize: {
+ type: "number",
+ default: 14
+ },
+ prefixFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ prefixFontSizeTablet: {
+ type: "number",
+ default: 14
+ },
+ prefixFontSizeMobile: {
+ type: "number",
+ default: 14
+ },
+ // Prefix Line Height
+ prefixLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ prefixLineHeight: {
+ type: "number"
+ },
+ prefixLineHeightTablet: {
+ type: "number"
+ },
+ prefixLineHeightMobile: {
+ type: "number"
+ },
+ // Icon Font Size
+ iconFontSize: {
+ type: "number",
+ default: 20
+ },
+ iconFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ iconFontSizeTablet: {
+ type: "number",
+ default: 20
+ },
+ iconFontSizeMobile: {
+ type: "number",
+ default: 20
+ }
+};
- return Stars;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
+/* harmony default export */ __webpack_exports__["a"] = (attributes);
-var ReviewBody = function (_Component2) {
- _inherits(ReviewBody, _Component2);
+/***/ }),
+/* 228 */
+/*!****************************************************!*\
+ !*** ./src/blocks/table-of-contents/attributes.js ***!
+ \****************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- function ReviewBody(props) {
- _classCallCheck(this, ReviewBody);
+"use strict";
+var __ = wp.i18n.__;
- var _this3 = _possibleConstructorReturn(this, (ReviewBody.__proto__ || Object.getPrototypeOf(ReviewBody)).call(this, props));
- _this3.state = {
- average: _this3.props.items.map(function (i) {
- return i.value;
- }).reduce(function (total, v) {
- return total + v;
- }) / _this3.props.items.length
- };
- return _this3;
- }
+var attributes = {
+ block_id: {
+ type: "string",
+ default: "not_set"
+ },
+ classMigrate: {
+ type: "boolean",
+ default: false
+ },
+ disableBullets: {
+ type: "boolean",
+ default: false
+ },
+ makeCollapsible: {
+ type: "boolean",
+ default: false
+ },
+ initialCollapse: {
+ type: "boolean",
+ default: false
+ },
+ icon: {
+ type: "string",
+ default: "fa-angle-down"
+ },
+ iconSize: {
+ type: "number"
+ },
+ iconColor: {
+ type: "string"
+ },
+ bulletColor: {
+ type: "string"
+ },
+ smoothScroll: {
+ type: "boolean",
+ default: true
+ },
+ smoothScrollDelay: {
+ type: "number",
+ default: 800
+ },
+ smoothScrollOffset: {
+ type: "number",
+ default: 30
+ },
+ scrollToTop: {
+ type: "boolean",
+ default: false
+ },
+ scrollToTopColor: {
+ type: "string"
+ },
+ scrollToTopBgColor: {
+ type: "string"
+ },
+ mappingHeaders: {
+ type: 'array',
+ default: Array(6).fill(true)
+ },
+ headerLinks: {
+ type: 'html',
+ default: ''
+ },
+ align: {
+ type: "string",
+ default: "left"
+ },
+ heading: {
+ source: "html",
+ selector: ".uagb-toc__title",
+ default: "Table Of Contents"
+ },
+ customWidth: {
+ type: "boolean",
+ default: false
+ },
+ widthTypeDesktop: {
+ type: "string",
+ default: "%"
+ },
+ widthTypeTablet: {
+ type: "string",
+ default: "%"
+ },
+ widthTypeMobile: {
+ type: "string",
+ default: "%"
+ },
+ widthDesktop: {
+ type: "number",
+ default: 100
+ },
+ widthTablet: {
+ type: "number"
+ },
+ widthMobile: {
+ type: "number"
+ },
+ tColumnsDesktop: {
+ type: "number",
+ default: 1
+ },
+ tColumnsTablet: {
+ type: "number",
+ default: 1
+ },
+ tColumnsMobile: {
+ type: "number",
+ default: 1
+ },
- _createClass(ReviewBody, [{
- key: "render",
- value: function render() {
- var _this4 = this;
-
- var _props3 = this.props,
- ID = _props3.ID,
- items = _props3.items,
- summaryTitle = _props3.summaryTitle,
- summaryDescription = _props3.summaryDescription,
- starCount = _props3.starCount,
- setItems = _props3.setItems,
- setSummaryDescription = _props3.setSummaryDescription,
- setSummaryTitle = _props3.setSummaryTitle,
- setTitle = _props3.setTitle,
- setDescription = _props3.setDescription,
- setAuthorName = _props3.setAuthorName,
- inactiveStarColor = _props3.inactiveStarColor,
- activeStarColor = _props3.activeStarColor,
- selectedStarColor = _props3.selectedStarColor,
- starOutlineColor = _props3.starOutlineColor,
- ctaTarget = _props3.ctaTarget,
- ctaLink = _props3.ctaLink,
- setActiveStarIndex = _props3.setActiveStarIndex,
- rTitle = _props3.rTitle,
- rContent = _props3.rContent,
- rAuthor = _props3.rAuthor,
- headingTag = _props3.headingTag,
- image_icon_html = _props3.image_icon_html,
- showfeature = _props3.showfeature,
- imageEnabled = _props3.imageEnabled,
- descriptionEnabled = _props3.descriptionEnabled,
- showauthor = _props3.showauthor;
- var average = this.state.average;
+ // Color
+ backgroundColor: {
+ type: "string",
+ default: "#eee"
+ },
+ linkColor: {
+ type: "string",
+ default: "#333"
+ },
+ linkHoverColor: {
+ type: "string"
+ },
+ headingColor: {
+ type: "string"
+ },
+ // Padding
+ vPaddingDesktop: {
+ type: "number",
+ default: 30
+ },
+ hPaddingDesktop: {
+ type: "number",
+ default: 30
+ },
+ vPaddingTablet: {
+ type: "number"
+ },
+ hPaddingTablet: {
+ type: "number"
+ },
+ vPaddingMobile: {
+ type: "number"
+ },
+ hPaddingMobile: {
+ type: "number"
+ },
+ // Margin
+ vMarginDesktop: {
+ type: "number"
+ },
+ hMarginDesktop: {
+ type: "number"
+ },
+ vMarginTablet: {
+ type: "number"
+ },
+ hMarginTablet: {
+ type: "number"
+ },
+ vMarginMobile: {
+ type: "number"
+ },
+ hMarginMobile: {
+ type: "number"
+ },
+ marginTypeDesktop: {
+ type: "string",
+ default: "px"
+ },
+ marginTypeTablet: {
+ type: "string",
+ default: "px"
+ },
+ marginTypeMobile: {
+ type: "string",
+ default: "px"
+ },
+ headingBottom: {
+ type: "number"
+ },
+ paddingTypeDesktop: {
+ type: "string",
+ default: "px"
+ },
+ paddingTypeTablet: {
+ type: "string",
+ default: "px"
+ },
+ paddingTypeMobile: {
+ type: "string",
+ default: "px"
+ },
- var newAverage = items.map(function (i) {
- return i.value;
- }).reduce(function (total, v) {
- return total + v;
- }) / items.length;
+ // Content Padding
+ contentPaddingDesktop: {
+ type: "number"
+ },
+ contentPaddingTablet: {
+ type: "number"
+ },
+ contentPaddingMobile: {
+ type: "number"
+ },
+ contentPaddingTypeDesktop: {
+ type: "string",
+ default: "px"
+ },
+ contentPaddingTypeTablet: {
+ type: "string",
+ default: "px"
+ },
+ contentPaddingTypeMobile: {
+ type: "string",
+ default: "px"
+ },
- if (average !== newAverage) {
- this.setState({ average: newAverage });
- }
+ // Border
+ borderStyle: {
+ type: "string",
+ default: "solid"
+ },
+ borderWidth: {
+ type: "number",
+ default: 1
+ },
+ borderRadius: {
+ type: "number"
+ },
+ borderColor: {
+ type: "string",
+ default: "#333"
+ },
- var target = "_self";
- var rel = "noopener noreferrer";
- if (ctaTarget) {
- target = "_blank";
- }
+ // Typography
+ // Link Font Family
+ loadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ fontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ fontWeight: {
+ type: "string"
+ },
+ fontSubset: {
+ type: "string"
+ },
+ // Link Font Size
+ fontSize: {
+ type: "number"
+ },
+ fontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ fontSizeTablet: {
+ type: "number"
+ },
+ fontSizeMobile: {
+ type: "number"
+ },
+ // Link Line Height
+ lineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ lineHeight: {
+ type: "number"
+ },
+ lineHeightTablet: {
+ type: "number"
+ },
+ lineHeightMobile: {
+ type: "number"
+ },
- return wp.element.createElement(
- "div",
- { className: "uagb_review_block" },
- wp.element.createElement(
- "a",
- {
- href: ctaLink,
- className: "uagb-rating-link-wrapper",
- target: target,
- rel: rel
- },
- wp.element.createElement(RichText, {
- tagName: headingTag,
- placeholder: __('Title of the review', 'ultimate-addons-for-gutenberg'),
- keepPlaceholderOnFocus: true,
- value: rTitle,
- className: "uagb-rating-title",
- onChange: function onChange(text) {
- return setTitle(text);
- }
- })
- ),
- descriptionEnabled === true && wp.element.createElement(RichText, {
- tagName: "p",
- placeholder: __('Review Description', 'ultimate-addons-for-gutenberg'),
- keepPlaceholderOnFocus: true,
- value: rContent,
- className: "uagb-rating-desc",
- onChange: function onChange(text) {
- return setDescription(text);
- }
- }),
- showauthor === true && wp.element.createElement(RichText, {
- tagName: "p",
- placeholder: __('Review Author', 'ultimate-addons-for-gutenberg'),
- keepPlaceholderOnFocus: true,
- value: rAuthor,
- className: "uagb-rating-author",
- onChange: function onChange(text) {
- return setAuthorName(text);
- }
- }),
- imageEnabled === true && wp.element.createElement(
- "div",
- { className: "uagb-rating__source-wrap" },
- image_icon_html
- ),
- items.map(function (j, i) {
- return showfeature === true && wp.element.createElement(
- "div",
- { className: "uagb_review_entry" },
- wp.element.createElement(RichText, {
- style: { marginRight: "auto" },
- key: i,
- placeholder: __("Edit feature"),
- value: j.label,
- onChange: function onChange(text) {
- return setItems([].concat(_toConsumableArray(items.slice(0, i)), [{ label: text, value: j.value }], _toConsumableArray(items.slice(i + 1))));
- }
- }),
- wp.element.createElement(
- "div",
- {
- key: i,
- style: {
- marginLeft: "auto",
- minWidth: items.length > 1 ? 120 : 100
- }
- },
- items.length > 1 && wp.element.createElement("div", {
- className: "dashicons dashicons-trash",
- onClick: function onClick() {
- var newItems = items.slice(0, i).concat(items.slice(i + 1, items.length));
- setItems(newItems);
- _this4.setState({
- average: newItems.map(function (i) {
- return i.value;
- }).reduce(function (total, v) {
- return total + v;
- }) / newItems.length
- });
- }
- }),
- wp.element.createElement(Stars, {
- id: ID + "-" + i,
- key: i,
- value: j.value,
- limit: starCount,
- setValue: function setValue(newValue) {
- var newArray = [].concat(_toConsumableArray(items.slice(0, i)), [{ label: j.label, value: newValue }], _toConsumableArray(items.slice(i + 1)));
- setItems(newArray);
- setActiveStarIndex(i);
- _this4.setState({
- average: newArray.map(function (i) {
- return i.value;
- }).reduce(function (total, v) {
- return total + v;
- }) / newArray.length
- });
- },
- inactiveStarColor: inactiveStarColor,
- activeStarColor: activeStarColor,
- selectedStarColor: selectedStarColor,
- starOutlineColor: starOutlineColor
- })
- )
- );
- }),
- showfeature === true && wp.element.createElement("div", {
- title: __("Insert new review entry"),
- onClick: function onClick() {
- setItems([].concat(_toConsumableArray(items), [{ label: "", value: 0 }]));
- _this4.setState({
- average: average / (items.length + 1)
- });
- },
- className: "uagb_review_add_entry dashicons dashicons-plus-alt"
- }),
- wp.element.createElement(
- "div",
- { className: "uagb_review_summary" },
- wp.element.createElement(RichText, {
- className: "uagb_review_summary_title",
- placeholder: __("Title of the summary goes here"),
- tagName: "p",
- onChange: function onChange(text) {
- return setSummaryTitle(text);
- },
- value: summaryTitle
- }),
- wp.element.createElement(
- "div",
- { className: "uagb_review_overall_value" },
- wp.element.createElement(RichText, {
- placeholder: __("Summary of the review goes here"),
- onChange: function onChange(text) {
- return setSummaryDescription(text);
- },
- value: summaryDescription
- }),
- wp.element.createElement(
- "div",
- { className: "uagb_review_average" },
- wp.element.createElement(
- "span",
- { className: "uagb_review_rating" },
- Math.round(average * 10) / 10
- ),
- wp.element.createElement(Stars, {
- id: ID + "-average",
- className: "uagb_review_average_stars",
- onHover: function onHover() {
- return null;
- },
- onClick: function onClick() {
- return null;
- },
- value: average,
- limit: starCount,
- inactiveStarColor: inactiveStarColor,
- activeStarColor: activeStarColor,
- selectedStarColor: selectedStarColor,
- starOutlineColor: starOutlineColor
- })
- )
- )
- )
- );
- }
- }]);
+ // Link Font Family
+ headingLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ headingFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ headingFontWeight: {
+ type: "string",
+ default: "500"
+ },
+ headingFontSubset: {
+ type: "string"
+ },
+ // Link Font Size
+ headingFontSize: {
+ type: "number",
+ default: 20
+ },
+ headingFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ headingFontSizeTablet: {
+ type: "number"
+ },
+ headingFontSizeMobile: {
+ type: "number"
+ },
+ // Link Line Height
+ headingLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ headingLineHeight: {
+ type: "number"
+ },
+ headingLineHeightTablet: {
+ type: "number"
+ },
+ headingLineHeightMobile: {
+ type: "number"
+ },
+ headingAlignment: {
+ type: "string",
+ default: "left"
+ }
+};
- return ReviewBody;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
+/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 187 */
-/*!***********************!*\
- !*** ./src/blocks.js ***!
- \***********************/
-/*! exports provided: */
-/*! all exports used */
+/* 229 */
+/*!*********************************************!*\
+ !*** ./src/blocks/table-of-contents/toc.js ***!
+ \*********************************************/
+/*! exports provided: default */
+/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__blocks_advanced_heading_block_js__ = __webpack_require__(/*! ./blocks/advanced-heading/block.js */ 188);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__blocks_post_block_js__ = __webpack_require__(/*! ./blocks/post/block.js */ 288);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__blocks_section_block_js__ = __webpack_require__(/*! ./blocks/section/block.js */ 390);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__blocks_buttons_block_js__ = __webpack_require__(/*! ./blocks/buttons/block.js */ 397);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__blocks_buttons_child_block_js__ = __webpack_require__(/*! ./blocks/buttons-child/block.js */ 405);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__blocks_info_box_block_js__ = __webpack_require__(/*! ./blocks/info-box/block.js */ 420);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__blocks_testimonial_block_js__ = __webpack_require__(/*! ./blocks/testimonial/block.js */ 429);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__blocks_team_block_js__ = __webpack_require__(/*! ./blocks/team/block.js */ 437);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__blocks_social_share_block_js__ = __webpack_require__(/*! ./blocks/social-share/block.js */ 444);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__blocks_social_share_child_block_js__ = __webpack_require__(/*! ./blocks/social-share-child/block.js */ 452);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__blocks_google_map_block_js__ = __webpack_require__(/*! ./blocks/google-map/block.js */ 459);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__blocks_icon_list_block_js__ = __webpack_require__(/*! ./blocks/icon-list/block.js */ 461);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__blocks_icon_list_child_block_js__ = __webpack_require__(/*! ./blocks/icon-list-child/block.js */ 469);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__blocks_price_list_block_js__ = __webpack_require__(/*! ./blocks/price-list/block.js */ 476);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__blocks_price_list_child_block_js__ = __webpack_require__(/*! ./blocks/price-list-child/block.js */ 483);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__blocks_timeline_block_js__ = __webpack_require__(/*! ./blocks/timeline/block.js */ 488);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__blocks_call_to_action_block_js__ = __webpack_require__(/*! ./blocks/call-to-action/block.js */ 507);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__blocks_column_block_js__ = __webpack_require__(/*! ./blocks/column/block.js */ 515);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__blocks_columns_block_js__ = __webpack_require__(/*! ./blocks/columns/block.js */ 523);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__blocks_cf7_styler_block_js__ = __webpack_require__(/*! ./blocks/cf7-styler/block.js */ 542);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__blocks_gf_styler_block_js__ = __webpack_require__(/*! ./blocks/gf-styler/block.js */ 547);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__blocks_blockquote_block_js__ = __webpack_require__(/*! ./blocks/blockquote/block.js */ 552);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__blocks_marketing_button_block_js__ = __webpack_require__(/*! ./blocks/marketing-button/block.js */ 560);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__blocks_table_of_contents_block_js__ = __webpack_require__(/*! ./blocks/table-of-contents/block.js */ 567);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__blocks_how_to_block_js__ = __webpack_require__(/*! ./blocks/how-to/block.js */ 576);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__blocks_faq_block_js__ = __webpack_require__(/*! ./blocks/faq/block.js */ 583);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__blocks_faq_child_block_js__ = __webpack_require__(/*! ./blocks/faq-child/block.js */ 590);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__blocks_inline_notice_block_js__ = __webpack_require__(/*! ./blocks/inline-notice/block.js */ 596);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__blocks_wp_search_block_js__ = __webpack_require__(/*! ./blocks/wp-search/block.js */ 603);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__blocks_review_block_js__ = __webpack_require__(/*! ./blocks/review/block.js */ 610);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__blocks_taxonomy_list_block_js__ = __webpack_require__(/*! ./blocks/taxonomy-list/block.js */ 618);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../dist/blocks/uagb-controls/block-icons */ 1);
-/**
- * Gutenberg Blocks
- *
- * All blocks related JavaScript files should be imported here.
- * You can create a new block folder in this dir and include code
- * for that block here as well.
- *
- * All blocks should be included here since this is the file that
- * Webpack is compiling as the input file.
- */
-
-
-
-
-
-
-
-
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+var __ = wp.i18n.__;
+var TableOfContents = function (_React$Component) {
+ _inherits(TableOfContents, _React$Component);
+ function TableOfContents() {
+ _classCallCheck(this, TableOfContents);
+ return _possibleConstructorReturn(this, (TableOfContents.__proto__ || Object.getPrototypeOf(TableOfContents)).apply(this, arguments));
+ }
+ _createClass(TableOfContents, [{
+ key: 'render',
+ value: function render() {
+ var _props = this.props,
+ mappingHeaders = _props.mappingHeaders,
+ headers = _props.headers;
+ var makeHeaderArray = function makeHeaderArray(origHeaders) {
+ var arrays = [];
+ origHeaders.filter(function (header) {
+ return mappingHeaders[header.tag - 1];
+ }).forEach(function (header) {
+ var last = arrays.length - 1;
+ if (arrays.length === 0 || arrays[last][0].tag < header.tag) {
+ arrays.push([header]);
+ } else if (arrays[last][0].tag === header.tag) {
+ arrays[last].push(header);
+ } else {
+ while (arrays[last][0].tag > header.tag) {
+ if (arrays.length > 1) {
+ arrays[arrays.length - 2].push(arrays.pop());
+ last = arrays.length - 1;
+ } else break;
+ }
+ if (arrays[last][0].tag === header.tag) {
+ arrays[last].push(header);
+ }
+ }
+ });
+ while (arrays.length > 1 && arrays[arrays.length - 1][0].tag > arrays[arrays.length - 2][0].tag) {
+ arrays[arrays.length - 2].push(arrays.pop());
+ }
+ return arrays[0];
+ };
+ var filterArray = function filterArray(origHeaders) {
+ var arrays = [];
+ headers.forEach(function (heading, key) {
+ if (mappingHeaders[heading.tag - 1]) {
+ arrays.push(heading);
+ }
+ });
+ return makeHeaderArray(arrays);
+ };
+ var counter = 0;
+ var ul_counter = 0;
+ var parseList = function parseList(list) {
+ var items = [];
+ list.forEach(function (item) {
+ if (Array.isArray(item)) {
+ items.push(parseList(item));
+ } else {
+ items.push(wp.element.createElement(
+ 'li',
+ { key: counter },
+ wp.element.createElement('a', {
+ href: '#' + item.link,
+ dangerouslySetInnerHTML: {
+ __html: item.text
+ }
+ })
+ ));
+ counter++;
+ }
+ });
+ ul_counter++;
+ return wp.element.createElement(
+ 'ul',
+ { key: counter + '-' + ul_counter, className: 'uagb-toc__list' },
+ items
+ );
+ };
+ if (mappingHeaders != 'undefined' && headers && headers.length > 0 && headers.filter(function (header) {
+ return mappingHeaders[header.tag - 1];
+ }).length > 0) {
+ return wp.element.createElement(
+ 'div',
+ { className: 'uagb-toc__list-wrap' },
+ parseList(filterArray(headers))
+ );
+ } else {
+ return wp.element.createElement(
+ 'p',
+ { className: 'uagb_table-of-contents-placeholder' },
+ __('Add a header to begin generating the table of contents')
+ );
+ }
+ }
+ }]);
+ return TableOfContents;
+}(React.Component);
+/* harmony default export */ __webpack_exports__["a"] = (TableOfContents);
+/***/ }),
+/* 230 */
+/*!*************************************************!*\
+ !*** ./node_modules/striptags/src/striptags.js ***!
+ \*************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+"use strict";
+var __WEBPACK_AMD_DEFINE_RESULT__;
+(function (global) {
-var updateCategory = wp.blocks.updateCategory;
+ // minimal symbol polyfill for IE11 and others
+ if (typeof Symbol !== 'function') {
+ var Symbol = function(name) {
+ return name;
+ }
+ Symbol.nonNative = true;
+ }
-updateCategory("uagb", {
- icon: __WEBPACK_IMPORTED_MODULE_31__dist_blocks_uagb_controls_block_icons__["a" /* default */].logo
-});
+ const STATE_PLAINTEXT = Symbol('plaintext');
+ const STATE_HTML = Symbol('html');
+ const STATE_COMMENT = Symbol('comment');
-/***/ }),
-/* 188 */
-/*!**********************************************!*\
- !*** ./src/blocks/advanced-heading/block.js ***!
- \**********************************************/
-/*! exports provided: */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ const ALLOWED_TAGS_REGEX = /<(\w*)>/g;
+ const NORMALIZE_TAG_REGEX = /<\/?([^\s\/>]+)/;
-"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/block-icons */ 1);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__attributes__ = __webpack_require__(/*! ./attributes */ 110);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 189);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__save__ = __webpack_require__(/*! ./save */ 285);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecated__ = __webpack_require__(/*! ./deprecated */ 286);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__transform__ = __webpack_require__(/*! ./transform */ 287);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__style_scss__ = __webpack_require__(/*! ./style.scss */ 140);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__style_scss__);
-/**
- * BLOCK: Advanced Heading
- */
+ function striptags(html, allowable_tags, tag_replacement) {
+ html = html || '';
+ allowable_tags = allowable_tags || [];
+ tag_replacement = tag_replacement || '';
+ let context = init_context(allowable_tags, tag_replacement);
+ return striptags_internal(html, context);
+ }
+ function init_striptags_stream(allowable_tags, tag_replacement) {
+ allowable_tags = allowable_tags || [];
+ tag_replacement = tag_replacement || '';
+ let context = init_context(allowable_tags, tag_replacement);
+ return function striptags_stream(html) {
+ return striptags_internal(html || '', context);
+ };
+ }
+ striptags.init_streaming_mode = init_striptags_stream;
+ function init_context(allowable_tags, tag_replacement) {
+ allowable_tags = parse_allowable_tags(allowable_tags);
+ return {
+ allowable_tags : allowable_tags,
+ tag_replacement: tag_replacement,
-var __ = wp.i18n.__;
-var registerBlockType = wp.blocks.registerBlockType;
+ state : STATE_PLAINTEXT,
+ tag_buffer : '',
+ depth : 0,
+ in_quote_char : ''
+ };
+ }
+ function striptags_internal(html, context) {
+ let allowable_tags = context.allowable_tags;
+ let tag_replacement = context.tag_replacement;
-registerBlockType("uagb/advanced-heading", {
+ let state = context.state;
+ let tag_buffer = context.tag_buffer;
+ let depth = context.depth;
+ let in_quote_char = context.in_quote_char;
+ let output = '';
- title: uagb_blocks_info.blocks["uagb/advanced-heading"]["title"],
- description: uagb_blocks_info.blocks["uagb/advanced-heading"]["description"],
- icon: __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].advanced_heading,
- keywords: [__("advanced heading"), __("uag"), __("heading")],
- supports: {
- anchor: true
- },
- example: {
- attributes: {
- headingTitle: __('Write a Heading'),
- headingDesc: __('Write a Description')
- }
- },
- category: uagb_blocks_info.category,
- attributes: __WEBPACK_IMPORTED_MODULE_1__attributes__["a" /* default */],
- transform: __WEBPACK_IMPORTED_MODULE_5__transform__["a" /* default */],
- edit: __WEBPACK_IMPORTED_MODULE_2__edit__["a" /* default */],
- save: __WEBPACK_IMPORTED_MODULE_3__save__["a" /* default */],
- deprecated: __WEBPACK_IMPORTED_MODULE_4__deprecated__["a" /* default */]
-});
+ for (let idx = 0, length = html.length; idx < length; idx++) {
+ let char = html[idx];
-/***/ }),
-/* 189 */
-/*!*********************************************!*\
- !*** ./src/blocks/advanced-heading/edit.js ***!
- \*********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+ if (state === STATE_PLAINTEXT) {
+ switch (char) {
+ case '<':
+ state = STATE_HTML;
+ tag_buffer += char;
+ break;
-"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__styling__ = __webpack_require__(/*! ./styling */ 190);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_typography__ = __webpack_require__(/*! ../../components/typography */ 7);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__ = __webpack_require__(/*! ../../components/typography/fontloader */ 8);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss__ = __webpack_require__(/*! ./style.scss */ 140);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__style_scss__);
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+ default:
+ output += char;
+ break;
+ }
+ }
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+ else if (state === STATE_HTML) {
+ switch (char) {
+ case '<':
+ // ignore '<' if inside a quote
+ if (in_quote_char) {
+ break;
+ }
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+ // we're seeing a nested '<'
+ depth++;
+ break;
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+ case '>':
+ // ignore '>' if inside a quote
+ if (in_quote_char) {
+ break;
+ }
-/**
- * BLOCK: Advanced Heading
- */
+ // something like this is happening: '<<>>'
+ if (depth) {
+ depth--;
-// Import block dependencies and components.
+ break;
+ }
+ // this is closing the tag in tag_buffer
+ in_quote_char = '';
+ state = STATE_PLAINTEXT;
+ tag_buffer += '>';
+ if (allowable_tags.has(normalize_tag(tag_buffer))) {
+ output += tag_buffer;
+ } else {
+ output += tag_replacement;
+ }
-// Import all of our Text Options requirements.
+ tag_buffer = '';
+ break;
+ case '"':
+ case '\'':
+ // catch both single and double quotes
-// Import Web font loader for google fonts.
+ if (char === in_quote_char) {
+ in_quote_char = '';
+ } else {
+ in_quote_char = in_quote_char || char;
+ }
+ tag_buffer += char;
+ break;
-// Import CSS.
+ case '-':
+ if (tag_buffer === '':
+ if (tag_buffer.slice(-2) == '--') {
+ // close the comment
+ state = STATE_PLAINTEXT;
+ }
- _createClass(UAGBAdvancedHeading, [{
- key: "componentDidMount",
- value: function componentDidMount() {
+ tag_buffer = '';
+ break;
- // Assigning block_id in the attribute.
- this.props.setAttributes({ block_id: this.props.clientId.substr(0, 8) });
+ default:
+ tag_buffer += char;
+ break;
+ }
+ }
+ }
- // Assigning block_id in the attribute.
- this.props.setAttributes({ classMigrate: true });
+ // save the context for future iterations
+ context.state = state;
+ context.tag_buffer = tag_buffer;
+ context.depth = depth;
+ context.in_quote_char = in_quote_char;
- var level_val = parseInt(this.props.attributes.headingTag.replace('h', ''));
- this.props.setAttributes({ level: level_val });
+ return output;
+ }
- // Pushing Style tag for this block css.
- var $style = document.createElement("style");
- $style.setAttribute("id", "uagb-adv-heading-style-" + this.props.clientId.substr(0, 8));
- document.head.appendChild($style);
- }
- }, {
- key: "componentDidUpdate",
- value: function componentDidUpdate(prevProps, prevState) {
- var element = document.getElementById("uagb-adv-heading-style-" + this.props.clientId.substr(0, 8));
+ function parse_allowable_tags(allowable_tags) {
+ let tag_set = new Set();
- if (null !== element && undefined !== element) {
- element.innerHTML = __WEBPACK_IMPORTED_MODULE_1__styling__["a" /* default */](this.props);
- }
- }
+ if (typeof allowable_tags === 'string') {
+ let match;
- /*
- * Heading Tag Change
- */
+ while ((match = ALLOWED_TAGS_REGEX.exec(allowable_tags))) {
+ tag_set.add(match[1]);
+ }
+ }
- }, {
- key: "onTagChange",
- value: function onTagChange(value) {
- var setAttributes = this.props.setAttributes;
+ else if (!Symbol.nonNative &&
+ typeof allowable_tags[Symbol.iterator] === 'function') {
+ tag_set = new Set(allowable_tags);
+ }
- var level_val = parseInt(value.replace('h', ''));
+ else if (typeof allowable_tags.forEach === 'function') {
+ // IE11 compatible
+ allowable_tags.forEach(tag_set.add, tag_set);
+ }
- setAttributes({ level: level_val });
- setAttributes({ headingTag: value });
- }
- }, {
- key: "splitBlock",
- value: function splitBlock(before, after) {
- var _props = this.props,
- attributes = _props.attributes,
- insertBlocksAfter = _props.insertBlocksAfter,
- setAttributes = _props.setAttributes,
- onReplace = _props.onReplace;
+ return tag_set;
+ }
- for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- blocks[_key - 2] = arguments[_key];
- }
+ function normalize_tag(tag_buffer) {
+ let match = NORMALIZE_TAG_REGEX.exec(tag_buffer);
- if (after) {
- // Append "After" content as a new paragraph block to the end of
- // any other blocks being inserted after the current paragraph.
- blocks.push(createBlock("core/paragraph", { content: after }));
- }
+ return match ? match[1].toLowerCase() : null;
+ }
- if (blocks.length && insertBlocksAfter) {
- insertBlocksAfter(blocks);
- }
+ if (true) {
+ // AMD
+ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function module_factory() { return striptags; }).call(exports, __webpack_require__, exports, module),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ }
- var content = attributes.content;
+ else if (typeof module === 'object' && module.exports) {
+ // Node
+ module.exports = striptags;
+ }
- if (!before) {
- // If before content is omitted, treat as intent to delete block.
- onReplace([]);
- } else if (content !== before) {
- // Only update content if it has in-fact changed. In case that user
- // has created a new paragraph at end of an existing one, the value
- // of before will be strictly equal to the current content.
- setAttributes({ content: before });
- }
- }
- }, {
- key: "render",
- value: function render() {
- var _this2 = this;
+ else {
+ // Browser
+ global.striptags = striptags;
+ }
+}(this));
- // Setup the attributes
- var _props2 = this.props,
- className = _props2.className,
- attributes = _props2.attributes,
- setAttributes = _props2.setAttributes,
- insertBlocksAfter = _props2.insertBlocksAfter,
- mergeBlocks = _props2.mergeBlocks,
- onReplace = _props2.onReplace,
- _props2$attributes = _props2.attributes,
- headingTitle = _props2$attributes.headingTitle,
- headingDesc = _props2$attributes.headingDesc,
- headingAlign = _props2$attributes.headingAlign,
- headingColor = _props2$attributes.headingColor,
- subHeadingColor = _props2$attributes.subHeadingColor,
- separatorColor = _props2$attributes.separatorColor,
- headingTag = _props2$attributes.headingTag,
- headFontFamily = _props2$attributes.headFontFamily,
- headFontWeight = _props2$attributes.headFontWeight,
- headFontSubset = _props2$attributes.headFontSubset,
- headFontSizeType = _props2$attributes.headFontSizeType,
- headFontSize = _props2$attributes.headFontSize,
- headFontSizeMobile = _props2$attributes.headFontSizeMobile,
- headFontSizeTablet = _props2$attributes.headFontSizeTablet,
- headLineHeightType = _props2$attributes.headLineHeightType,
- headLineHeight = _props2$attributes.headLineHeight,
- headLineHeightMobile = _props2$attributes.headLineHeightMobile,
- headLineHeightTablet = _props2$attributes.headLineHeightTablet,
- subHeadFontFamily = _props2$attributes.subHeadFontFamily,
- subHeadFontWeight = _props2$attributes.subHeadFontWeight,
- subHeadFontSubset = _props2$attributes.subHeadFontSubset,
- subHeadFontSize = _props2$attributes.subHeadFontSize,
- subHeadFontSizeType = _props2$attributes.subHeadFontSizeType,
- subHeadFontSizeMobile = _props2$attributes.subHeadFontSizeMobile,
- subHeadFontSizeTablet = _props2$attributes.subHeadFontSizeTablet,
- subHeadLineHeight = _props2$attributes.subHeadLineHeight,
- subHeadLineHeightType = _props2$attributes.subHeadLineHeightType,
- subHeadLineHeightMobile = _props2$attributes.subHeadLineHeightMobile,
- subHeadLineHeightTablet = _props2$attributes.subHeadLineHeightTablet,
- separatorWidth = _props2$attributes.separatorWidth,
- separatorWidthType = _props2$attributes.separatorWidthType,
- seperatorStyle = _props2$attributes.seperatorStyle,
- separatorHeight = _props2$attributes.separatorHeight,
- headSpace = _props2$attributes.headSpace,
- separatorSpace = _props2$attributes.separatorSpace,
- headLoadGoogleFonts = _props2$attributes.headLoadGoogleFonts,
- subHeadLoadGoogleFonts = _props2$attributes.subHeadLoadGoogleFonts;
+/***/ }),
+/* 231 */
+/*!*****************************************!*\
+ !*** ./src/blocks/how-to/attributes.js ***!
+ \*****************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
- var loadHeadingGoogleFonts = void 0;
- var loadSubHeadingGoogleFonts = void 0;
+"use strict";
+/**
+ * BLOCK: UAGB How-To Schema Attributes
+ */
- if (headLoadGoogleFonts == true) {
+var __ = wp.i18n.__;
- var hconfig = {
- google: {
- families: [headFontFamily + (headFontWeight ? ':' + headFontWeight : '')]
- }
- };
- loadHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: hconfig });
- }
+var tools = [];
- if (subHeadLoadGoogleFonts == true) {
+var materials = [];
- var sconfig = {
- google: {
- families: [subHeadFontFamily + (subHeadFontWeight ? ':' + subHeadFontWeight : '')]
- }
- };
+tools.push({
+ "add_required_tools": __("- A Computer.", 'ultimate-addons-for-gutenberg')
+});
- loadSubHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: sconfig });
- }
+materials.push({
+ "add_required_materials": __("- A WordPress Website.", 'ultimate-addons-for-gutenberg')
+});
- return wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(
- BlockControls,
- { key: "controls" },
- wp.element.createElement(AlignmentToolbar, {
- value: headingAlign,
- onChange: function onChange(value) {
- return setAttributes({ headingAlign: value });
- }
- })
- ),
- wp.element.createElement(
- InspectorControls,
- null,
- wp.element.createElement(
- PanelBody,
- { title: __("Advanced Heading") },
- wp.element.createElement(
- "h2",
- null,
- __("Heading")
- ),
- wp.element.createElement(SelectControl, {
- label: __("Heading Tag"),
- value: headingTag,
- onChange: function onChange(value) {
- _this2.onTagChange(value);
- },
- options: [{ value: "h1", label: __("H1") }, { value: "h2", label: __("H2") }, { value: "h3", label: __("H3") }, { value: "h4", label: __("H4") }, { value: "h5", label: __("H5") }, { value: "h6", label: __("H6") }]
- }),
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], {
- label: __("Typography"),
- attributes: attributes,
- setAttributes: setAttributes,
- loadGoogleFonts: { value: headLoadGoogleFonts, label: 'headLoadGoogleFonts' },
- fontFamily: { value: headFontFamily, label: 'headFontFamily' },
- fontWeight: { value: headFontWeight, label: 'headFontWeight' },
- fontSubset: { value: headFontSubset, label: 'headFontSubset' },
- fontSizeType: { value: headFontSizeType, label: 'headFontSizeType' },
- fontSize: { value: headFontSize, label: 'headFontSize' },
- fontSizeMobile: { value: headFontSizeMobile, label: 'headFontSizeMobile' },
- fontSizeTablet: { value: headFontSizeTablet, label: 'headFontSizeTablet' },
- lineHeightType: { value: headLineHeightType, label: 'headLineHeightType' },
- lineHeight: { value: headLineHeight, label: 'headLineHeight' },
- lineHeightMobile: { value: headLineHeightMobile, label: 'headLineHeightMobile' },
- lineHeightTablet: { value: headLineHeightTablet, label: 'headLineHeightTablet' }
- }),
- wp.element.createElement(
- "p",
- { className: "uagb-setting-label" },
- __("Heading Color"),
- wp.element.createElement(
- "span",
- { className: "components-base-control__label" },
- wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: headingColor } })
- )
- ),
- wp.element.createElement(ColorPalette, {
- value: headingColor,
- onChange: function onChange(value) {
- return setAttributes({ headingColor: value });
- },
- allowReset: true
- }),
- wp.element.createElement("hr", { className: "uagb-editor__separator" }),
- wp.element.createElement(
- "h2",
- null,
- __("Sub-Heading")
- ),
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], {
- label: __("Typography"),
- attributes: attributes,
- setAttributes: setAttributes,
- loadGoogleFonts: { value: subHeadLoadGoogleFonts, label: 'subHeadLoadGoogleFonts' },
- fontFamily: { value: subHeadFontFamily, label: 'subHeadFontFamily' },
- fontWeight: { value: subHeadFontWeight, label: 'subHeadFontWeight' },
- fontSubset: { value: subHeadFontSubset, label: 'subHeadFontSubset' },
- fontSizeType: { value: subHeadFontSizeType, label: 'subHeadFontSizeType' },
- fontSize: { value: subHeadFontSize, label: 'subHeadFontSize' },
- fontSizeMobile: { value: subHeadFontSizeMobile, label: 'subHeadFontSizeMobile' },
- fontSizeTablet: { value: subHeadFontSizeTablet, label: 'subHeadFontSizeTablet' },
- lineHeightType: { value: subHeadLineHeightType, label: 'subHeadLineHeightType' },
- lineHeight: { value: subHeadLineHeight, label: 'subHeadLineHeight' },
- lineHeightMobile: { value: subHeadLineHeightMobile, label: 'subHeadLineHeightMobile' },
- lineHeightTablet: { value: subHeadLineHeightTablet, label: 'subHeadLineHeightTablet' }
- }),
- wp.element.createElement(
- "p",
- { className: "uagb-setting-label" },
- __("Sub Heading Color"),
- wp.element.createElement(
- "span",
- { className: "components-base-control__label" },
- wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: subHeadingColor } })
- )
- ),
- wp.element.createElement(ColorPalette, {
- value: subHeadingColor,
- onChange: function onChange(value) {
- return setAttributes({ subHeadingColor: value });
- },
- allowReset: true
- })
- ),
- wp.element.createElement(
- PanelBody,
- { title: __("Separator"), initialOpen: false },
- wp.element.createElement(SelectControl, {
- label: __("Style"),
- value: seperatorStyle,
- onChange: function onChange(value) {
- return setAttributes({ seperatorStyle: value });
- },
- options: [{ value: "none", label: __("None") }, { value: "solid", label: __("Solid") }, { value: "double", label: __("Double") }, { value: "dashed", label: __("Dashed") }, { value: "dotted", label: __("Dotted") }]
- }),
- seperatorStyle !== "none" && wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(RangeControl, {
- label: __("Thickness (px)"),
- value: separatorHeight,
- onChange: function onChange(value) {
- return setAttributes({ separatorHeight: value });
- },
- min: 0,
- max: 20,
- beforeIcon: "",
- allowReset: true,
- initialPosition: 3
- }),
- wp.element.createElement(
- ButtonGroup,
- { className: "uagb-size-type-field", "aria-label": __("Size Type") },
- wp.element.createElement(
- Button,
- { key: "px", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "px", "aria-pressed": separatorWidthType === "px", onClick: function onClick() {
- return setAttributes({ separatorWidthType: "px" });
- } },
- "px"
- ),
- wp.element.createElement(
- Button,
- { key: "%", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "%", "aria-pressed": separatorWidthType === "%", onClick: function onClick() {
- return setAttributes({ separatorWidthType: "%" });
- } },
- "%"
- )
- ),
- wp.element.createElement(RangeControl, {
- label: __("Width"),
- value: separatorWidth,
- onChange: function onChange(value) {
- return setAttributes({ separatorWidth: value });
- },
- min: 0,
- max: "%" == separatorWidthType ? 100 : 500,
- beforeIcon: "",
- allowReset: true,
- initialPosition: 20
- }),
- seperatorStyle !== "none" && wp.element.createElement(
- Fragment,
- null,
- wp.element.createElement(
- "p",
- { className: "uagb-setting-label" },
- __("Separator Color"),
- wp.element.createElement(
- "span",
- { className: "components-base-control__label" },
- wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: separatorColor } })
- )
- ),
- wp.element.createElement(ColorPalette, {
- value: separatorColor,
- onChange: function onChange(colorValue) {
- return setAttributes({ separatorColor: colorValue });
- },
- allowReset: true
- })
- )
- )
- ),
- wp.element.createElement(
- PanelBody,
- { title: __("Spacing"), initialOpen: false },
- wp.element.createElement(RangeControl, {
- label: __("Heading Bottom Spacing (px)"),
- value: headSpace,
- onChange: function onChange(value) {
- return setAttributes({ headSpace: value });
- },
- min: 0,
- max: 500,
- beforeIcon: "",
- allowReset: true,
- initialPosition: 0
- }),
- seperatorStyle !== "none" && wp.element.createElement(RangeControl, {
- label: __("Separator Bottom Spacing (px)"),
- value: separatorSpace,
- onChange: function onChange(value) {
- return setAttributes({ separatorSpace: value });
- },
- min: 0,
- max: 500,
- beforeIcon: "",
- allowReset: true,
- initialPosition: 0
- })
- )
- ),
- wp.element.createElement(
- "div",
- {
- className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a(className, "uagb-block-" + this.props.clientId.substr(0, 8))
- },
- wp.element.createElement(RichText, {
- tagName: headingTag,
- placeholder: __("Write a Heading"),
- value: headingTitle,
- className: "uagb-heading-text",
- multiline: false,
- onChange: function onChange(value) {
- setAttributes({ headingTitle: value });
- },
- onMerge: mergeBlocks,
- unstableOnSplit: insertBlocksAfter ? function (before, after) {
- for (var _len2 = arguments.length, blocks = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- blocks[_key2 - 2] = arguments[_key2];
- }
-
- setAttributes({ content: before });
- insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })]));
- } : undefined,
- onRemove: function onRemove() {
- return onReplace([]);
- }
- }),
- seperatorStyle !== "none" && wp.element.createElement(
- "div",
- { className: "uagb-separator-wrap" },
- wp.element.createElement("div", { className: "uagb-separator" })
- ),
- wp.element.createElement(RichText, {
- tagName: "p",
- placeholder: __("Write a Description"),
- value: headingDesc,
- className: "uagb-desc-text",
- onChange: function onChange(value) {
- return setAttributes({ headingDesc: value });
- },
- onMerge: mergeBlocks,
- unstableOnSplit: this.splitBlock,
- onRemove: function onRemove() {
- return onReplace([]);
- }
- })
- ),
- loadHeadingGoogleFonts,
- loadSubHeadingGoogleFonts
- );
+var attributes = {
+ block_id: {
+ type: "string"
+ },
+ overallAlignment: {
+ type: "string",
+ default: "left"
+ },
+ toolsTitle: {
+ type: "html",
+ default: __("Required Tools:", 'ultimate-addons-for-gutenberg')
+ },
+ materialTitle: {
+ type: "html",
+ default: __("Things Needed?", 'ultimate-addons-for-gutenberg')
+ },
+ stepsTitle: {
+ type: "html",
+ default: __("Steps to configure the How-to Schema:", 'ultimate-addons-for-gutenberg')
+ },
+ tools_count: {
+ type: "number",
+ default: 1
+ },
+ material_count: {
+ type: "number",
+ default: 1
+ },
+ tools: {
+ type: "array",
+ default: tools
+ },
+ materials: {
+ type: "array",
+ default: materials
+ },
+ showTotaltime: {
+ type: "boolean",
+ default: true
+ },
+ showEstcost: {
+ type: "boolean",
+ default: true
+ },
+ showTools: {
+ type: "boolean",
+ default: true
+ },
+ showMaterials: {
+ type: "boolean",
+ default: true
+ },
+ mainimage: {
+ type: "object",
+ default: {
+ "url": ""
}
- }]);
+ },
+ estCost: {
+ type: "html",
+ default: __("Total Cost:", 'ultimate-addons-for-gutenberg')
+ },
+ timeNeeded: {
+ type: "html",
+ default: __("Total Time Needed :", 'ultimate-addons-for-gutenberg')
+ },
+ timeIn: {
+ type: "html",
+ default: __(" Minutes", 'ultimate-addons-for-gutenberg')
+ },
+ imgSize: {
+ type: "string",
+ default: "thumbnail"
+ },
+ timeSpace: {
+ type: "number",
+ default: 5
+ },
+ costSpace: {
+ type: "number",
+ default: 5
+ },
+ time: {
+ type: "string",
+ default: "30"
+ },
+ cost: {
+ type: "string",
+ default: "65"
+ },
+ headingTitle: {
+ source: "html",
+ selector: "h1,h2,h3,h4,h5,h6",
+ default: __("How To Configure How-To Schema In Ultimate Addons For Gutenberg?", 'ultimate-addons-for-gutenberg')
+ },
+ currencyType: {
+ type: "html",
+ default: " USD"
+ },
+ headingDesc: {
+ source: "html",
+ selector: "p",
+ default: __("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages that contain a How-to in their title and describe steps to achieve certain requirements.", 'ultimate-addons-for-gutenberg')
+ },
+ headingAlign: {
+ type: "string",
+ default: "left"
+ },
+ descriptionAlign: {
+ type: "string",
+ default: "left"
+ },
+ headingColor: {
+ type: "string"
+ },
+ showEstcostcolor: {
+ type: "string"
+ },
+ showTotaltimecolor: {
+ type: "string",
+ default: ""
+ },
+ subHeadingColor: {
+ type: "string",
+ default: ""
+ },
+ headingTag: {
+ type: "string",
+ default: "h3"
+ },
+ headSpace: {
+ type: "number",
+ default: 15
+ },
+ headFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ headFontWeight: {
+ type: "string"
+ },
+ headFontSubset: {
+ type: "string"
+ },
+ headFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ headLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ headFontSize: {
+ type: "number"
+ },
+ headFontSizeTablet: {
+ type: "number"
+ },
+ headFontSizeMobile: {
+ type: "number"
+ },
+ headLineHeight: {
+ type: "number"
+ },
+ headLineHeightTablet: {
+ type: "number"
+ },
+ headLineHeightMobile: {
+ type: "number"
+ },
+ subHeadFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ subHeadFontWeight: {
+ type: "string"
+ },
+ subHeadFontSubset: {
+ type: "string"
+ },
+ subHeadFontSize: {
+ type: "number"
+ },
+ subHeadFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ subHeadFontSizeTablet: {
+ type: "number"
+ },
+ subHeadFontSizeMobile: {
+ type: "number"
+ },
+ subHeadLineHeight: {
+ type: "number"
+ },
+ subHeadLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ subHeadLineHeightTablet: {
+ type: "number"
+ },
+ subHeadLineHeightMobile: {
+ type: "number"
+ },
+ separatorSpace: {
+ type: "number",
+ default: 15
+ },
+ headLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ subHeadLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ priceFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ priceFontSize: {
+ type: "number"
+ },
+ priceFontSizeTablet: {
+ type: "number"
+ },
+ priceFontSizeMobile: {
+ type: "number"
+ },
+ priceFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ priceFontWeight: {
+ type: "string"
+ },
+ priceFontSubset: {
+ type: "string"
+ },
+ priceLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ priceLineHeight: {
+ type: "number"
+ },
+ priceLineHeightTablet: {
+ type: "number"
+ },
+ priceLineHeightMobile: {
+ type: "number"
+ },
+ priceLoadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ row_gap: {
+ type: "number",
+ default: 20
+ },
+ step_gap: {
+ type: "number"
+ },
+ schema: {
+ type: "html",
+ default: ""
+ },
+ timeInMins: {
+ type: "number"
- return UAGBAdvancedHeading;
-}(Component);
+ },
+ timeInHours: {
+ type: "number"
+ },
+ timeInDays: {
+ type: "number"
+ },
+ timeInMonths: {
+ type: "number"
+ },
+ timeInYears: {
+ type: "number"
+ }
-/* harmony default export */ __webpack_exports__["a"] = (withSelect(function (select, props) {
- var attributes = props.attributes;
+};
- return {
- anchor: attributes.headingId
- };
-})(UAGBAdvancedHeading));
+/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 190 */
-/*!************************************************!*\
- !*** ./src/blocks/advanced-heading/styling.js ***!
- \************************************************/
+/* 232 */
+/*!**************************************!*\
+ !*** ./src/blocks/how-to/style.scss ***!
+ \**************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
+
+// removed by extract-text-webpack-plugin
+
+/***/ }),
+/* 233 */
+/*!**************************************!*\
+ !*** ./src/blocks/faq/attributes.js ***!
+ \**************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4);
-/**
- * Returns Dynamic Generated CSS
- */
-
-
-
-
-function styling(props) {
- var _props$attributes = props.attributes,
- classMigrate = _props$attributes.classMigrate,
- headingAlign = _props$attributes.headingAlign,
- headingTag = _props$attributes.headingTag,
- headingColor = _props$attributes.headingColor,
- headSpace = _props$attributes.headSpace,
- seperatorStyle = _props$attributes.seperatorStyle,
- separatorHeight = _props$attributes.separatorHeight,
- separatorWidth = _props$attributes.separatorWidth,
- separatorWidthType = _props$attributes.separatorWidthType,
- separatorColor = _props$attributes.separatorColor,
- separatorSpace = _props$attributes.separatorSpace,
- subHeadingColor = _props$attributes.subHeadingColor,
- headFontFamily = _props$attributes.headFontFamily,
- headFontWeight = _props$attributes.headFontWeight,
- headFontSize = _props$attributes.headFontSize,
- headFontSizeType = _props$attributes.headFontSizeType,
- headFontSizeMobile = _props$attributes.headFontSizeMobile,
- headFontSizeTablet = _props$attributes.headFontSizeTablet,
- headLineHeight = _props$attributes.headLineHeight,
- headLineHeightType = _props$attributes.headLineHeightType,
- headLineHeightMobile = _props$attributes.headLineHeightMobile,
- headLineHeightTablet = _props$attributes.headLineHeightTablet,
- subHeadFontFamily = _props$attributes.subHeadFontFamily,
- subHeadFontWeight = _props$attributes.subHeadFontWeight,
- subHeadFontSize = _props$attributes.subHeadFontSize,
- subHeadFontSizeType = _props$attributes.subHeadFontSizeType,
- subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile,
- subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet,
- subHeadLineHeight = _props$attributes.subHeadLineHeight,
- subHeadLineHeightType = _props$attributes.subHeadLineHeightType,
- subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile,
- subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet;
-
-
- var tablet_selectors = {};
- var mobile_selectors = {};
-
- var selectors = {
- " .uagb-separator-wrap": {
- "text-align": headingAlign
- },
- " .block-editor-rich-text__editable.uagb-desc-text": {
- "text-align": headingAlign,
- "font-family": subHeadFontFamily,
- "font-weight": subHeadFontWeight,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSize, subHeadFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeight, subHeadLineHeightType),
- "color": subHeadingColor
- }
- };
-
- selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = {
- "text-align": headingAlign,
- "font-family": headFontFamily,
- "font-weight": headFontWeight,
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType),
- "color": headingColor,
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headSpace, "px")
- };
-
- if (seperatorStyle !== "none") {
- selectors[" .uagb-separator"] = {
- "border-top-style": seperatorStyle,
- "border-top-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorHeight, "px"),
- "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorWidth, separatorWidthType),
- "border-color": separatorColor,
- "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorSpace, "px")
- };
+var attributes = {
+ block_id: {
+ type: "string"
+ },
+ layout: {
+ type: "string",
+ default: "accordion"
+ },
+ inactiveOtherItems: {
+ type: "boolean",
+ default: true
+ },
+ expandFirstItem: {
+ type: "boolean",
+ default: false
+ },
+ enableSchemaSupport: {
+ type: "boolean",
+ default: false
+ },
+ align: {
+ type: "string",
+ default: "left"
+ },
+ enableSeparator: {
+ type: "boolean",
+ default: false
+ },
+ rowsGap: {
+ type: "number",
+ default: 10
+ },
+ columnsGap: {
+ type: "number",
+ default: 10
+ },
+ boxBgColor: {
+ type: "string",
+ default: "#FFFFFF"
+ },
+ boxPaddingTypeMobile: {
+ type: "string",
+ default: "px"
+ },
+ boxPaddingTypeTablet: {
+ type: "string",
+ default: "px"
+ },
+ boxPaddingTypeDesktop: {
+ type: "string",
+ default: "px"
+ },
+ vBoxPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ hBoxPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ vBoxPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ hBoxPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ vBoxPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ hBoxPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ borderStyle: {
+ type: "string",
+ default: "solid"
+ },
+ borderWidth: {
+ type: "number",
+ default: 1
+ },
+ borderRadius: {
+ type: "number",
+ default: 2
+ },
+ borderColor: {
+ type: "string",
+ default: "#D2D2D2"
+ },
+ questionTextColor: {
+ type: "string",
+ default: "#313131"
+ },
+ questionTextActiveColor: {
+ type: "string",
+ default: "#656565"
+ },
+ questionPaddingTypeDesktop: {
+ type: "string",
+ default: "px"
+ },
+ vquestionPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ vquestionPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ vquestionPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ hquestionPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ hquestionPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ hquestionPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ answerTextColor: {
+ type: "string",
+ default: "#313131"
+ },
+ answerPaddingTypeDesktop: {
+ type: "string",
+ default: "px"
+ },
+ vanswerPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ vanswerPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ vanswerPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ hanswerPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ hanswerPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ hanswerPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ iconColor: {
+ type: "string"
+ },
+ iconActiveColor: {
+ type: "string"
+ },
+ gapBtwIconQUestion: {
+ type: "number",
+ default: 10
+ },
+ questionloadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ answerloadGoogleFonts: {
+ type: "boolean",
+ default: false
+ },
+ questionFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ questionFontWeight: {
+ type: "string"
+ },
+ questionFontSubset: {
+ type: "string"
+ },
+ questionFontSize: {
+ type: "number"
+ },
+ questionFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ questionFontSizeTablet: {
+ type: "number"
+ },
+ questionFontSizeMobile: {
+ type: "number"
+ },
+ questionLineHeight: {
+ type: "number"
+ },
+ questionLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ questionLineHeightTablet: {
+ type: "number"
+ },
+ questionLineHeightMobile: {
+ type: "number"
+ },
+ answerFontFamily: {
+ type: "string",
+ default: "Default"
+ },
+ answerFontWeight: {
+ type: "string"
+ },
+ answerFontSubset: {
+ type: "string"
+ },
+ answerFontSize: {
+ type: "number"
+ },
+ answerFontSizeType: {
+ type: "string",
+ default: "px"
+ },
+ answerFontSizeTablet: {
+ type: "number"
+ },
+ answerFontSizeMobile: {
+ type: "number"
+ },
+ answerLineHeight: {
+ type: "number"
+ },
+ answerLineHeightType: {
+ type: "string",
+ default: "em"
+ },
+ answerLineHeightTablet: {
+ type: "number"
+ },
+ answerLineHeightMobile: {
+ type: "number"
+ },
+ icon: {
+ type: "string",
+ default: "fas fa-plus"
+ },
+ iconActive: {
+ type: "string",
+ default: "fas fa-minus"
+ },
+ iconAlign: {
+ type: "string",
+ default: "row"
+ },
+ iconSize: {
+ type: "number",
+ default: 12
+ },
+ iconSizeTablet: {
+ type: "number",
+ default: 12
+ },
+ iconSizeMobile: {
+ type: "number",
+ default: 12
+ },
+ iconSizeType: {
+ type: "string",
+ default: "px"
+ },
+ columns: {
+ type: "number",
+ default: 2
+ },
+ tcolumns: {
+ type: "number",
+ default: 2
+ },
+ mcolumns: {
+ type: "number",
+ default: 1
+ },
+ schema: {
+ type: "string",
+ default: ""
+ },
+ enableToggle: {
+ type: "boolean",
+ default: true
+ },
+ equalHeight: {
+ type: "boolean",
+ default: true
+ },
+ questionLeftPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ questionBottomPaddingTablet: {
+ type: "number",
+ default: 10
+ },
+ questionLeftPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ questionBottomPaddingDesktop: {
+ type: "number",
+ default: 10
+ },
+ questionLeftPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ questionBottomPaddingMobile: {
+ type: "number",
+ default: 10
+ },
+ headingTag: {
+ type: "html",
+ selector: "span,p,h1,h2,h3,h4,h5,h6",
+ default: "span"
}
-
- tablet_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType)
- };
- tablet_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeTablet, subHeadFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightTablet, subHeadLineHeightType)
- };
-
- mobile_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType)
- };
- mobile_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = {
- "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeMobile, subHeadFontSizeType),
- "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightMobile, subHeadLineHeightType)
- };
-
- var base_selector = ".block-editor-page #wpwrap .uagb-block-" + props.clientId.substr(0, 8);
-
- var styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, base_selector);
-
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, base_selector, true, "tablet");
-
- styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, base_selector, true, "mobile");
-
- return styling_css;
-}
-
-/* harmony default export */ __webpack_exports__["a"] = (styling);
+};
+/* harmony default export */ __webpack_exports__["a"] = (attributes);
/***/ }),
-/* 191 */
-/*!******************************************************!*\
- !*** ./src/components/typography/font-typography.js ***!
- \******************************************************/
+/* 234 */
+/*!********************************************!*\
+ !*** ./src/blocks/faq-child/attributes.js ***!
+ \********************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map__ = __webpack_require__(/*! lodash/map */ 16);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_map__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fonts__ = __webpack_require__(/*! ./fonts */ 258);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_select__ = __webpack_require__(/*! react-select */ 259);
-var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
-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; }
-
-/**
- * WordPress dependencies
- */
var __ = wp.i18n.__;
-var SelectControl = wp.components.SelectControl;
-// Extend component
-var _wp$element = wp.element,
- Component = _wp$element.Component,
- Fragment = _wp$element.Fragment;
+var attributes = {
+ block_id: {
+ type: "string"
+ },
+ question: {
+ type: "html",
+ default: __("What is FAQ?", 'ultimate-addons-for-gutenberg')
+ },
+ answer: {
+ type: "html",
+ default: __("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", 'ultimate-addons-for-gutenberg')
+ },
+ icon: {
+ type: "html",
+ default: "fas fa-plus"
+ },
+ iconActive: {
+ type: "html",
+ default: "fas fa-minus"
+ },
+ layout: {
+ type: "string",
+ default: "accordion"
+ },
+ headingTag: {
+ type: "html",
+ selector: "span,p,h1,h2,h3,h4,h5,h6",
+ default: "span"
+ }
+};
-/**
- * Internal dependencies
- */
+/* harmony default export */ __webpack_exports__["a"] = (attributes);
+/***/ }),
+/* 235 */
+/*!*****************************************!*\
+ !*** ./src/blocks/review/components.js ***!
+ \*****************************************/
+/*! exports provided: Stars, ReviewBody */
+/*! exports used: ReviewBody, Stars */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Stars; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ReviewBody; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-function FontFamilyControl(props) {
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
- var fonts = [{ value: "", label: __("Default"), weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Arial", label: "Arial", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Helvetica", label: "Helvetica", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Times New Roman", label: "Times New Roman", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Georgia", label: "Georgia", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }];
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
- var fontWeight = "";
- var fontSubset = "";
+var _ref = wp.blockEditor || wp.editor,
+ RichText = _ref.RichText;
- //Push Google Fonts into stytem fonts object
- Object.keys(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */]).map(function (k, v) {
- fonts.push({ value: k, label: k, weight: __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight });
+var __ = wp.i18n.__;
- if (k === props.fontFamily.value) {
- fontWeight = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight;
- fontSubset = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].subset;
- }
- });
- // check if the font is a system font and then apply the font weight accordingly.
- if (fontWeight === "") {
- fontWeight = fonts[0].weight;
- }
- var fontWeightObj = [];
+var Stars = function (_Component) {
+ _inherits(Stars, _Component);
- fontWeight.forEach(function (item) {
- fontWeightObj.push({ value: item, label: item });
- });
+ function Stars(props) {
+ _classCallCheck(this, Stars);
- var fontSubsetObj = [];
+ var _this = _possibleConstructorReturn(this, (Stars.__proto__ || Object.getPrototypeOf(Stars)).call(this, props));
- if ((typeof fontSubset === "undefined" ? "undefined" : _typeof(fontSubset)) == "object") {
- fontSubset.forEach(function (item) {
- fontSubsetObj.push({ value: item, label: item });
- });
+ _this.state = {
+ displayValue: _this.props.value,
+ displayColor: _this.props.activeStarColor
+ };
+ _this.mouseHover = _this.mouseHover.bind(_this);
+ _this.mouseLeave = _this.mouseLeave.bind(_this);
+ _this.mouseClick = _this.mouseClick.bind(_this);
+ return _this;
}
- var onFontfamilyChange = function onFontfamilyChange(value) {
- var loadGoogleFonts = props.loadGoogleFonts,
- fontFamily = props.fontFamily,
- fontWeight = props.fontWeight,
- fontSubset = props.fontSubset;
-
- props.setAttributes(_defineProperty({}, fontFamily.label, value.label));
- onLoadGoogleFonts(loadGoogleFonts, value.label);
- onFontChange(fontWeight, fontSubset, value.label);
- };
-
- var onFontChange = function onFontChange(fontWeight, fontSubset, fontFamily) {
+ _createClass(Stars, [{
+ key: "mouseHover",
+ value: function mouseHover(i) {
+ this.setState({
+ displayValue: i + (this.props.value - i === 1 ? 0.5 : 1),
+ displayColor: this.props.selectedStarColor
+ });
+ }
+ }, {
+ key: "mouseLeave",
+ value: function mouseLeave() {
+ this.setState({
+ displayValue: this.props.value,
+ displayColor: this.props.activeStarColor
+ });
+ }
+ }, {
+ key: "mouseClick",
+ value: function mouseClick(i) {
+ var _props = this.props,
+ setValue = _props.setValue,
+ value = _props.value;
- var font_flag = void 0;
- var new_value = void 0;
+ setValue(value === i + 1 ? i + 0.5 : i + 1);
+ this.setState({
+ displayValue: value === i + 1 ? i + 0.5 : i + 1
+ });
+ }
+ }, {
+ key: "componentWillReceiveProps",
+ value: function componentWillReceiveProps(newProps) {
+ var value = newProps.value,
+ activeStarColor = newProps.activeStarColor;
- if (_typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) == "object") {
+ if (this.props.onHover || this.state.displayValue !== value) {
+ this.setState({
+ displayValue: value,
+ displayColor: activeStarColor
+ });
+ } else {
+ this.setState({ displayColor: activeStarColor });
+ }
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ var _this2 = this;
- var gfontsObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].weight;
- var gfontSubsetObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].subset;
+ var displayValue = this.state.displayValue;
+ var _props2 = this.props,
+ limit = _props2.limit,
+ id = _props2.id,
+ className = _props2.className,
+ inactiveStarColor = _props2.inactiveStarColor,
+ onHover = _props2.onHover,
+ _onClick = _props2.onClick,
+ style = _props2.style,
+ starOutlineColor = _props2.starOutlineColor;
- if ((typeof gfontsObj === "undefined" ? "undefined" : _typeof(gfontsObj)) == "object") {
+ return wp.element.createElement(
+ "div",
+ {
+ className: className,
+ style: Object.assign({
+ display: "flex",
+ flexDirection: "flex-row"
+ }, style)
+ },
+ [].concat(_toConsumableArray(Array(limit).keys())).map(function (i) {
+ return wp.element.createElement(
+ "svg",
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ key: i,
+ height: "20",
+ width: "20",
+ viewBox: "0 0 150 150",
+ onMouseOver: function onMouseOver() {
+ return onHover || _this2.mouseHover(i);
+ },
+ onMouseOut: function onMouseOut() {
+ return _this2.mouseLeave();
+ },
+ onClick: function onClick() {
+ return _onClick || _this2.mouseClick(i);
+ }
+ },
+ wp.element.createElement(
+ "defs",
+ null,
+ wp.element.createElement(
+ "mask",
+ { id: "uagb_review_star_filter-" + id + "-" + i },
+ wp.element.createElement("rect", {
+ height: "150",
+ width: (displayValue - i > 0 ? displayValue - i < 1 ? displayValue - i : 1 : 0) * 150,
+ y: "0",
+ x: "0",
+ fill: "#fff"
+ })
+ )
+ ),
+ wp.element.createElement("path", {
+ fill: inactiveStarColor,
+ strokeWidth: "2.5",
+ d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z",
+ stroke: starOutlineColor
+ }),
+ wp.element.createElement("path", {
+ className: "star",
+ id: "star" + i,
+ mask: "url(#uagb_review_star_filter-" + id + "-" + i + ")",
+ fill: _this2.state.displayColor,
+ strokeWidth: "2.5",
+ d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z",
+ stroke: starOutlineColor
+ })
+ );
+ })
+ );
+ }
+ }]);
- gfontsObj.forEach(function (item) {
+ return Stars;
+}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
- if (fontWeight.value == item) {
- font_flag = false;
- } else {
- new_value = item;
- font_flag = true;
- props.setAttributes(_defineProperty({}, props.fontWeight.label, new_value));
- return;
- }
- });
+var ReviewBody = function (_Component2) {
+ _inherits(ReviewBody, _Component2);
- gfontSubsetObj.forEach(function (item) {
+ function ReviewBody(props) {
+ _classCallCheck(this, ReviewBody);
- if (fontSubset.value == item) {
- font_flag = false;
- } else {
- new_value = item;
- font_flag = true;
- props.setAttributes(_defineProperty({}, props.fontSubset.label, new_value));
- return;
- }
- });
- }
- }
- };
+ var _this3 = _possibleConstructorReturn(this, (ReviewBody.__proto__ || Object.getPrototypeOf(ReviewBody)).call(this, props));
- var onLoadGoogleFonts = function onLoadGoogleFonts(loadGoogleFonts, fontFamily) {
+ _this3.state = {
+ average: _this3.props.items.map(function (i) {
+ return i.value;
+ }).reduce(function (total, v) {
+ return total + v;
+ }) / _this3.props.items.length
+ };
+ return _this3;
+ }
- var value = void 0;
+ _createClass(ReviewBody, [{
+ key: "render",
+ value: function render() {
+ var _this4 = this;
- if (fontFamily != "" && _typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) != "object") {
- value = false;
- } else {
- value = true;
- }
+ var _props3 = this.props,
+ ID = _props3.ID,
+ items = _props3.items,
+ summaryTitle = _props3.summaryTitle,
+ summaryDescription = _props3.summaryDescription,
+ starCount = _props3.starCount,
+ setItems = _props3.setItems,
+ setSummaryDescription = _props3.setSummaryDescription,
+ setSummaryTitle = _props3.setSummaryTitle,
+ setTitle = _props3.setTitle,
+ setDescription = _props3.setDescription,
+ setAuthorName = _props3.setAuthorName,
+ inactiveStarColor = _props3.inactiveStarColor,
+ activeStarColor = _props3.activeStarColor,
+ selectedStarColor = _props3.selectedStarColor,
+ starOutlineColor = _props3.starOutlineColor,
+ ctaTarget = _props3.ctaTarget,
+ ctaLink = _props3.ctaLink,
+ setActiveStarIndex = _props3.setActiveStarIndex,
+ rTitle = _props3.rTitle,
+ rContent = _props3.rContent,
+ rAuthor = _props3.rAuthor,
+ headingTag = _props3.headingTag,
+ image_icon_html = _props3.image_icon_html,
+ showfeature = _props3.showfeature,
+ imageEnabled = _props3.imageEnabled,
+ descriptionEnabled = _props3.descriptionEnabled,
+ showauthor = _props3.showauthor;
+ var average = this.state.average;
- props.setAttributes(_defineProperty({}, loadGoogleFonts.label, value));
- };
- return wp.element.createElement(
- "div",
- { className: "uag-typography-font-family-options" },
- wp.element.createElement(
- "label",
- { className: "uag-typography-font-family-label" },
- __("Font Family")
- ),
- wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2_react_select__["a" /* default */], {
- options: fonts,
- value: { value: props.fontFamily.value, label: props.fontFamily.value, weight: fontWeightObj },
- isMulti: false,
- maxMenuHeight: 300,
- onChange: onFontfamilyChange,
- className: "react-select-container",
- classNamePrefix: "react-select"
- }),
- wp.element.createElement(SelectControl, {
- label: __("Font Weight"),
- value: props.fontWeight.value,
- onChange: function onChange(value) {
- return props.setAttributes(_defineProperty({}, props.fontWeight.label, value));
- },
- options: fontWeightObj
- }),
- wp.element.createElement(SelectControl, {
- label: __("Font Subset"),
- value: props.fontSubset.value,
- onChange: function onChange(value) {
- return props.setAttributes(_defineProperty({}, props.fontSubset.label, value));
- },
- options: fontSubsetObj
- })
- );
-}
+ var newAverage = items.map(function (i) {
+ return i.value;
+ }).reduce(function (total, v) {
+ return total + v;
+ }) / items.length;
-/* harmony default export */ __webpack_exports__["a"] = (FontFamilyControl);
+ if (average !== newAverage) {
+ this.setState({ average: newAverage });
+ }
+
+ var target = "_self";
+ var rel = "noopener noreferrer";
+ if (ctaTarget) {
+ target = "_blank";
+ }
+
+ return wp.element.createElement(
+ "div",
+ { className: "uagb_review_block" },
+ wp.element.createElement(
+ "a",
+ {
+ href: ctaLink,
+ className: "uagb-rating-link-wrapper",
+ target: target,
+ rel: rel
+ },
+ wp.element.createElement(RichText, {
+ tagName: headingTag,
+ placeholder: __('Title of the review', 'ultimate-addons-for-gutenberg'),
+ keepPlaceholderOnFocus: true,
+ value: rTitle,
+ className: "uagb-rating-title",
+ onChange: function onChange(text) {
+ return setTitle(text);
+ }
+ })
+ ),
+ descriptionEnabled === true && wp.element.createElement(RichText, {
+ tagName: "p",
+ placeholder: __('Review Description', 'ultimate-addons-for-gutenberg'),
+ keepPlaceholderOnFocus: true,
+ value: rContent,
+ className: "uagb-rating-desc",
+ onChange: function onChange(text) {
+ return setDescription(text);
+ }
+ }),
+ showauthor === true && wp.element.createElement(RichText, {
+ tagName: "p",
+ placeholder: __('Review Author', 'ultimate-addons-for-gutenberg'),
+ keepPlaceholderOnFocus: true,
+ value: rAuthor,
+ className: "uagb-rating-author",
+ onChange: function onChange(text) {
+ return setAuthorName(text);
+ }
+ }),
+ imageEnabled === true && wp.element.createElement(
+ "div",
+ { className: "uagb-rating__source-wrap" },
+ image_icon_html
+ ),
+ items.map(function (j, i) {
+ return showfeature === true && wp.element.createElement(
+ "div",
+ { className: "uagb_review_entry" },
+ wp.element.createElement(RichText, {
+ style: { marginRight: "auto" },
+ key: i,
+ placeholder: __("Edit feature"),
+ value: j.label,
+ onChange: function onChange(text) {
+ return setItems([].concat(_toConsumableArray(items.slice(0, i)), [{ label: text, value: j.value }], _toConsumableArray(items.slice(i + 1))));
+ }
+ }),
+ wp.element.createElement(
+ "div",
+ {
+ key: i,
+ style: {
+ marginLeft: "auto",
+ minWidth: items.length > 1 ? 120 : 100
+ }
+ },
+ items.length > 1 && wp.element.createElement("div", {
+ className: "dashicons dashicons-trash",
+ onClick: function onClick() {
+ var newItems = items.slice(0, i).concat(items.slice(i + 1, items.length));
+ setItems(newItems);
+ _this4.setState({
+ average: newItems.map(function (i) {
+ return i.value;
+ }).reduce(function (total, v) {
+ return total + v;
+ }) / newItems.length
+ });
+ }
+ }),
+ wp.element.createElement(Stars, {
+ id: ID + "-" + i,
+ key: i,
+ value: j.value,
+ limit: starCount,
+ setValue: function setValue(newValue) {
+ var newArray = [].concat(_toConsumableArray(items.slice(0, i)), [{ label: j.label, value: newValue }], _toConsumableArray(items.slice(i + 1)));
+ setItems(newArray);
+ setActiveStarIndex(i);
+ _this4.setState({
+ average: newArray.map(function (i) {
+ return i.value;
+ }).reduce(function (total, v) {
+ return total + v;
+ }) / newArray.length
+ });
+ },
+ inactiveStarColor: inactiveStarColor,
+ activeStarColor: activeStarColor,
+ selectedStarColor: selectedStarColor,
+ starOutlineColor: starOutlineColor
+ })
+ )
+ );
+ }),
+ showfeature === true && wp.element.createElement("div", {
+ title: __("Insert new review entry"),
+ onClick: function onClick() {
+ setItems([].concat(_toConsumableArray(items), [{ label: "", value: 0 }]));
+ _this4.setState({
+ average: average / (items.length + 1)
+ });
+ },
+ className: "uagb_review_add_entry dashicons dashicons-plus-alt"
+ }),
+ wp.element.createElement(
+ "div",
+ { className: "uagb_review_summary" },
+ wp.element.createElement(RichText, {
+ className: "uagb_review_summary_title",
+ placeholder: __("Title of the summary goes here", 'ultimate-addons-for-gutenberg'),
+ tagName: "p",
+ onChange: function onChange(text) {
+ return setSummaryTitle(text);
+ },
+ value: summaryTitle
+ }),
+ wp.element.createElement(
+ "div",
+ { className: "uagb_review_overall_value" },
+ wp.element.createElement(RichText, {
+ placeholder: __("Summary of the review goes here", 'ultimate-addons-for-gutenberg'),
+ onChange: function onChange(text) {
+ return setSummaryDescription(text);
+ },
+ value: summaryDescription
+ }),
+ wp.element.createElement(
+ "div",
+ { className: "uagb_review_average" },
+ wp.element.createElement(
+ "span",
+ { className: "uagb_review_rating" },
+ Math.round(average * 10) / 10
+ ),
+ wp.element.createElement(Stars, {
+ id: ID + "-average",
+ className: "uagb_review_average_stars",
+ onHover: function onHover() {
+ return null;
+ },
+ onClick: function onClick() {
+ return null;
+ },
+ value: average,
+ limit: starCount,
+ inactiveStarColor: inactiveStarColor,
+ activeStarColor: activeStarColor,
+ selectedStarColor: selectedStarColor,
+ starOutlineColor: starOutlineColor
+ })
+ )
+ )
+ )
+ );
+ }
+ }]);
+
+ return ReviewBody;
+}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
/***/ }),
-/* 192 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_baseMatches.js ***!
- \*********************************************/
-/*! no static exports found */
+/* 236 */
+/*!******************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_ctx.js ***!
+ \******************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ 193),
- getMatchData = __webpack_require__(/*! ./_getMatchData */ 242),
- matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 126);
-
-/**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
-function baseMatches(source) {
- var matchData = getMatchData(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
+// optional / simple context binding
+var aFunction = __webpack_require__(/*! ./_a-function */ 752);
+module.exports = function (fn, that, length) {
+ aFunction(fn);
+ if (that === undefined) return fn;
+ switch (length) {
+ case 1: return function (a) {
+ return fn.call(that, a);
+ };
+ case 2: return function (a, b) {
+ return fn.call(that, a, b);
+ };
+ case 3: return function (a, b, c) {
+ return fn.call(that, a, b, c);
+ };
}
- return function(object) {
- return object === source || baseIsMatch(object, source, matchData);
+ return function (/* ...args */) {
+ return fn.apply(that, arguments);
};
-}
+};
-module.exports = baseMatches;
+
+/***/ }),
+/* 237 */
+/*!*****************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_ie8-dom-define.js ***!
+ \*****************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = !__webpack_require__(/*! ./_descriptors */ 25) && !__webpack_require__(/*! ./_fails */ 38)(function () {
+ return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 238)('div'), 'a', { get: function () { return 7; } }).a != 7;
+});
/***/ }),
-/* 193 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_baseIsMatch.js ***!
- \*********************************************/
-/*! no static exports found */
+/* 238 */
+/*!*************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_dom-create.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var Stack = __webpack_require__(/*! ./_Stack */ 52),
- baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 115);
+var isObject = __webpack_require__(/*! ./_is-object */ 37);
+var document = __webpack_require__(/*! ./_global */ 20).document;
+// typeof document.createElement is 'object' in old IE
+var is = isObject(document) && isObject(document.createElement);
+module.exports = function (it) {
+ return is ? document.createElement(it) : {};
+};
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
-/**
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Array} matchData The property names, values, and compare flags to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- */
-function baseIsMatch(object, source, matchData, customizer) {
- var index = matchData.length,
- length = index,
- noCustomizer = !customizer;
+/***/ }),
+/* 239 */
+/*!***********************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-keys-internal.js ***!
+ \***********************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (index--) {
- var data = matchData[index];
- if ((noCustomizer && data[2])
- ? data[1] !== object[data[0]]
- : !(data[0] in object)
- ) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0],
- objValue = object[key],
- srcValue = data[1];
+var has = __webpack_require__(/*! ./_has */ 26);
+var toIObject = __webpack_require__(/*! ./_to-iobject */ 39);
+var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ 754)(false);
+var IE_PROTO = __webpack_require__(/*! ./_shared-key */ 132)('IE_PROTO');
- if (noCustomizer && data[2]) {
- if (objValue === undefined && !(key in object)) {
- return false;
- }
- } else {
- var stack = new Stack;
- if (customizer) {
- var result = customizer(objValue, srcValue, key, object, source, stack);
- }
- if (!(result === undefined
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
- : result
- )) {
- return false;
- }
- }
+module.exports = function (object, names) {
+ var O = toIObject(object);
+ var i = 0;
+ var result = [];
+ var key;
+ for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
+ // Don't enum bug & hidden keys
+ while (names.length > i) if (has(O, key = names[i++])) {
+ ~arrayIndexOf(result, key) || result.push(key);
}
- return true;
-}
+ return result;
+};
-module.exports = baseIsMatch;
+
+/***/ }),
+/* 240 */
+/*!**********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_iobject.js ***!
+ \**********************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+// fallback for non-array-like ES3 and non-enumerable old V8 strings
+var cof = __webpack_require__(/*! ./_cof */ 241);
+// eslint-disable-next-line no-prototype-builtins
+module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
+ return cof(it) == 'String' ? it.split('') : Object(it);
+};
/***/ }),
-/* 194 */
-/*!************************************************!*\
- !*** ./node_modules/lodash/_listCacheClear.js ***!
- \************************************************/
-/*! no static exports found */
+/* 241 */
+/*!******************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_cof.js ***!
+ \******************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
-/**
- * Removes all key-value entries from the list cache.
- *
- * @private
- * @name clear
- * @memberOf ListCache
- */
-function listCacheClear() {
- this.__data__ = [];
- this.size = 0;
-}
+var toString = {}.toString;
-module.exports = listCacheClear;
+module.exports = function (it) {
+ return toString.call(it).slice(8, -1);
+};
/***/ }),
-/* 195 */
-/*!*************************************************!*\
- !*** ./node_modules/lodash/_listCacheDelete.js ***!
- \*************************************************/
-/*! no static exports found */
+/* 242 */
+/*!*************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-gpo.js ***!
+ \*************************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36);
+// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
+var has = __webpack_require__(/*! ./_has */ 26);
+var toObject = __webpack_require__(/*! ./_to-object */ 136);
+var IE_PROTO = __webpack_require__(/*! ./_shared-key */ 132)('IE_PROTO');
+var ObjectProto = Object.prototype;
+
+module.exports = Object.getPrototypeOf || function (O) {
+ O = toObject(O);
+ if (has(O, IE_PROTO)) return O[IE_PROTO];
+ if (typeof O.constructor == 'function' && O instanceof O.constructor) {
+ return O.constructor.prototype;
+ } return O instanceof Object ? ObjectProto : null;
+};
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-/** Built-in value references. */
-var splice = arrayProto.splice;
+/***/ }),
+/* 243 */
+/*!******************************************************!*\
+ !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
+ \******************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
-/**
- * Removes `key` and its value from the list cache.
- *
- * @private
- * @name delete
- * @memberOf ListCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function listCacheDelete(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
+"use strict";
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- --this.size;
- return true;
-}
-module.exports = listCacheDelete;
+exports.__esModule = true;
+var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ 767);
-/***/ }),
-/* 196 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_listCacheGet.js ***!
- \**********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+var _iterator2 = _interopRequireDefault(_iterator);
-var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36);
+var _symbol = __webpack_require__(/*! ../core-js/symbol */ 778);
-/**
- * Gets the list cache value for `key`.
- *
- * @private
- * @name get
- * @memberOf ListCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function listCacheGet(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
+var _symbol2 = _interopRequireDefault(_symbol);
- return index < 0 ? undefined : data[index][1];
-}
+var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
-module.exports = listCacheGet;
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
+ return typeof obj === "undefined" ? "undefined" : _typeof(obj);
+} : function (obj) {
+ return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
+};
/***/ }),
-/* 197 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_listCacheHas.js ***!
- \**********************************************/
-/*! no static exports found */
+/* 244 */
+/*!**************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_iter-define.js ***!
+ \**************************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36);
-
-/**
- * Checks if a list cache value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf ListCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function listCacheHas(key) {
- return assocIndexOf(this.__data__, key) > -1;
-}
+"use strict";
-module.exports = listCacheHas;
+var LIBRARY = __webpack_require__(/*! ./_library */ 69);
+var $export = __webpack_require__(/*! ./_export */ 23);
+var redefine = __webpack_require__(/*! ./_redefine */ 245);
+var hide = __webpack_require__(/*! ./_hide */ 36);
+var Iterators = __webpack_require__(/*! ./_iterators */ 137);
+var $iterCreate = __webpack_require__(/*! ./_iter-create */ 771);
+var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ 139);
+var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ 242);
+var ITERATOR = __webpack_require__(/*! ./_wks */ 40)('iterator');
+var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
+var FF_ITERATOR = '@@iterator';
+var KEYS = 'keys';
+var VALUES = 'values';
+
+var returnThis = function () { return this; };
+
+module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
+ $iterCreate(Constructor, NAME, next);
+ var getMethod = function (kind) {
+ if (!BUGGY && kind in proto) return proto[kind];
+ switch (kind) {
+ case KEYS: return function keys() { return new Constructor(this, kind); };
+ case VALUES: return function values() { return new Constructor(this, kind); };
+ } return function entries() { return new Constructor(this, kind); };
+ };
+ var TAG = NAME + ' Iterator';
+ var DEF_VALUES = DEFAULT == VALUES;
+ var VALUES_BUG = false;
+ var proto = Base.prototype;
+ var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
+ var $default = $native || getMethod(DEFAULT);
+ var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
+ var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
+ var methods, key, IteratorPrototype;
+ // Fix native
+ if ($anyNative) {
+ IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
+ if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
+ // Set @@toStringTag to native iterators
+ setToStringTag(IteratorPrototype, TAG, true);
+ // fix for some old engines
+ if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
+ }
+ }
+ // fix Array#{values, @@iterator}.name in V8 / FF
+ if (DEF_VALUES && $native && $native.name !== VALUES) {
+ VALUES_BUG = true;
+ $default = function values() { return $native.call(this); };
+ }
+ // Define iterator
+ if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
+ hide(proto, ITERATOR, $default);
+ }
+ // Plug for library
+ Iterators[NAME] = $default;
+ Iterators[TAG] = returnThis;
+ if (DEFAULT) {
+ methods = {
+ values: DEF_VALUES ? $default : getMethod(VALUES),
+ keys: IS_SET ? $default : getMethod(KEYS),
+ entries: $entries
+ };
+ if (FORCED) for (key in methods) {
+ if (!(key in proto)) redefine(proto, key, methods[key]);
+ } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
+ }
+ return methods;
+};
/***/ }),
-/* 198 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_listCacheSet.js ***!
- \**********************************************/
-/*! no static exports found */
+/* 245 */
+/*!***********************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_redefine.js ***!
+ \***********************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36);
+module.exports = __webpack_require__(/*! ./_hide */ 36);
-/**
- * Sets the list cache `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf ListCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the list cache instance.
- */
-function listCacheSet(key, value) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
- if (index < 0) {
- ++this.size;
- data.push([key, value]);
- } else {
- data[index][1] = value;
- }
- return this;
-}
+/***/ }),
+/* 246 */
+/*!**************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-gopn.js ***!
+ \**************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
-module.exports = listCacheSet;
+// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
+var $keys = __webpack_require__(/*! ./_object-keys-internal */ 239);
+var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ 134).concat('length', 'prototype');
+
+exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
+ return $keys(O, hiddenKeys);
+};
/***/ }),
-/* 199 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_stackClear.js ***!
- \********************************************/
-/*! no static exports found */
+/* 247 */
+/*!**************************************************************!*\
+ !*** ./node_modules/core-js/library/modules/_object-gopd.js ***!
+ \**************************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var ListCache = __webpack_require__(/*! ./_ListCache */ 35);
-
-/**
- * Removes all key-value entries from the stack.
- *
- * @private
- * @name clear
- * @memberOf Stack
- */
-function stackClear() {
- this.__data__ = new ListCache;
- this.size = 0;
-}
-
-module.exports = stackClear;
+var pIE = __webpack_require__(/*! ./_object-pie */ 71);
+var createDesc = __webpack_require__(/*! ./_property-desc */ 67);
+var toIObject = __webpack_require__(/*! ./_to-iobject */ 39);
+var toPrimitive = __webpack_require__(/*! ./_to-primitive */ 129);
+var has = __webpack_require__(/*! ./_has */ 26);
+var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 237);
+var gOPD = Object.getOwnPropertyDescriptor;
+
+exports.f = __webpack_require__(/*! ./_descriptors */ 25) ? gOPD : function getOwnPropertyDescriptor(O, P) {
+ O = toIObject(O);
+ P = toPrimitive(P, true);
+ if (IE8_DOM_DEFINE) try {
+ return gOPD(O, P);
+ } catch (e) { /* empty */ }
+ if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
+};
/***/ }),
-/* 200 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_stackDelete.js ***!
- \*********************************************/
-/*! no static exports found */
+/* 248 */
+/*!***********************!*\
+ !*** ./src/blocks.js ***!
+ \***********************/
+/*! no exports provided */
/*! all exports used */
-/***/ (function(module, exports) {
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-/**
- * Removes `key` and its value from the stack.
- *
- * @private
- * @name delete
- * @memberOf Stack
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+"use strict";
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__blocks_extensions_attributes_js__ = __webpack_require__(/*! ./blocks/extensions/attributes.js */ 249);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__blocks_extensions_attributes_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__blocks_extensions_attributes_js__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__blocks_advanced_heading_block_js__ = __webpack_require__(/*! ./blocks/advanced-heading/block.js */ 250);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__blocks_post_block_js__ = __webpack_require__(/*! ./blocks/post/block.js */ 375);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__blocks_section_block_js__ = __webpack_require__(/*! ./blocks/section/block.js */ 490);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__blocks_buttons_block_js__ = __webpack_require__(/*! ./blocks/buttons/block.js */ 497);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__blocks_buttons_child_block_js__ = __webpack_require__(/*! ./blocks/buttons-child/block.js */ 505);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__blocks_info_box_block_js__ = __webpack_require__(/*! ./blocks/info-box/block.js */ 520);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__blocks_testimonial_block_js__ = __webpack_require__(/*! ./blocks/testimonial/block.js */ 529);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__blocks_team_block_js__ = __webpack_require__(/*! ./blocks/team/block.js */ 537);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__blocks_social_share_block_js__ = __webpack_require__(/*! ./blocks/social-share/block.js */ 544);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__blocks_social_share_child_block_js__ = __webpack_require__(/*! ./blocks/social-share-child/block.js */ 552);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__blocks_google_map_block_js__ = __webpack_require__(/*! ./blocks/google-map/block.js */ 559);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__blocks_icon_list_block_js__ = __webpack_require__(/*! ./blocks/icon-list/block.js */ 561);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__blocks_icon_list_child_block_js__ = __webpack_require__(/*! ./blocks/icon-list-child/block.js */ 568);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__blocks_price_list_block_js__ = __webpack_require__(/*! ./blocks/price-list/block.js */ 575);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__blocks_price_list_child_block_js__ = __webpack_require__(/*! ./blocks/price-list-child/block.js */ 582);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__blocks_timeline_block_js__ = __webpack_require__(/*! ./blocks/timeline/block.js */ 587);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__blocks_call_to_action_block_js__ = __webpack_require__(/*! ./blocks/call-to-action/block.js */ 612);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__blocks_column_block_js__ = __webpack_require__(/*! ./blocks/column/block.js */ 620);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__blocks_columns_block_js__ = __webpack_require__(/*! ./blocks/columns/block.js */ 628);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__blocks_cf7_styler_block_js__ = __webpack_require__(/*! ./blocks/cf7-styler/block.js */ 647);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__blocks_gf_styler_block_js__ = __webpack_require__(/*! ./blocks/gf-styler/block.js */ 652);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__blocks_blockquote_block_js__ = __webpack_require__(/*! ./blocks/blockquote/block.js */ 657);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__blocks_marketing_button_block_js__ = __webpack_require__(/*! ./blocks/marketing-button/block.js */ 665);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__blocks_table_of_contents_block_js__ = __webpack_require__(/*! ./blocks/table-of-contents/block.js */ 672);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__blocks_how_to_block_js__ = __webpack_require__(/*! ./blocks/how-to/block.js */ 681);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__blocks_faq_block_js__ = __webpack_require__(/*! ./blocks/faq/block.js */ 688);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__blocks_faq_child_block_js__ = __webpack_require__(/*! ./blocks/faq-child/block.js */ 695);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__blocks_inline_notice_block_js__ = __webpack_require__(/*! ./blocks/inline-notice/block.js */ 701);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__blocks_wp_search_block_js__ = __webpack_require__(/*! ./blocks/wp-search/block.js */ 708);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__blocks_review_block_js__ = __webpack_require__(/*! ./blocks/review/block.js */ 715);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__blocks_taxonomy_list_block_js__ = __webpack_require__(/*! ./blocks/taxonomy-list/block.js */ 723);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__blocks_extensions_block_js__ = __webpack_require__(/*! ./blocks/extensions/block.js */ 728);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__blocks_tabs_block_js__ = __webpack_require__(/*! ./blocks/tabs/block.js */ 730);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__blocks_tabs_child_block_js__ = __webpack_require__(/*! ./blocks/tabs-child/block.js */ 737);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__blocks_lottie_block_js__ = __webpack_require__(/*! ./blocks/lottie/block.js */ 742);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../dist/blocks/uagb-controls/block-icons */ 1);
+/**
+ * Gutenberg Blocks
+ *
+ * All blocks related JavaScript files should be imported here.
+ * You can create a new block folder in this dir and include code
+ * for that block here as well.
+ *
+ * All blocks should be included here since this is the file that
+ * Webpack is compiling as the input file.
*/
-function stackDelete(key) {
- var data = this.__data__,
- result = data['delete'](key);
- this.size = data.size;
- return result;
-}
-module.exports = stackDelete;
-/***/ }),
-/* 201 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_stackGet.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
-/**
- * Gets the stack value for `key`.
- *
- * @private
- * @name get
- * @memberOf Stack
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function stackGet(key) {
- return this.__data__.get(key);
-}
-module.exports = stackGet;
-/***/ }),
-/* 202 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_stackHas.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
-/**
- * Checks if a stack value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Stack
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function stackHas(key) {
- return this.__data__.has(key);
-}
-module.exports = stackHas;
-/***/ }),
-/* 203 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_stackSet.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-var ListCache = __webpack_require__(/*! ./_ListCache */ 35),
- Map = __webpack_require__(/*! ./_Map */ 53),
- MapCache = __webpack_require__(/*! ./_MapCache */ 55);
-/** Used as the size to enable large array optimizations. */
-var LARGE_ARRAY_SIZE = 200;
-/**
- * Sets the stack `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Stack
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the stack cache instance.
- */
-function stackSet(key, value) {
- var data = this.__data__;
- if (data instanceof ListCache) {
- var pairs = data.__data__;
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
- pairs.push([key, value]);
- this.size = ++data.size;
- return this;
- }
- data = this.__data__ = new MapCache(pairs);
- }
- data.set(key, value);
- this.size = data.size;
- return this;
-}
-module.exports = stackSet;
-/***/ }),
-/* 204 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_baseIsNative.js ***!
- \**********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-var isFunction = __webpack_require__(/*! ./isFunction */ 112),
- isMasked = __webpack_require__(/*! ./_isMasked */ 207),
- isObject = __webpack_require__(/*! ./isObject */ 13),
- toSource = __webpack_require__(/*! ./_toSource */ 114);
-/**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
- */
-var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
-/** Used to detect host constructors (Safari). */
-var reIsHostCtor = /^\[object .+?Constructor\]$/;
-/** Used for built-in method references. */
-var funcProto = Function.prototype,
- objectProto = Object.prototype;
-/** Used to resolve the decompiled source of functions. */
-var funcToString = funcProto.toString;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-/** Used to detect if a method is native. */
-var reIsNative = RegExp('^' +
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
-);
-/**
- * The base implementation of `_.isNative` without bad shim checks.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- */
-function baseIsNative(value) {
- if (!isObject(value) || isMasked(value)) {
- return false;
- }
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
- return pattern.test(toSource(value));
-}
-module.exports = baseIsNative;
-/***/ }),
-/* 205 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_getRawTag.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-var Symbol = __webpack_require__(/*! ./_Symbol */ 22);
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var nativeObjectToString = objectProto.toString;
-/** Built-in value references. */
-var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
-/**
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the raw `toStringTag`.
- */
-function getRawTag(value) {
- var isOwn = hasOwnProperty.call(value, symToStringTag),
- tag = value[symToStringTag];
- try {
- value[symToStringTag] = undefined;
- var unmasked = true;
- } catch (e) {}
- var result = nativeObjectToString.call(value);
- if (unmasked) {
- if (isOwn) {
- value[symToStringTag] = tag;
- } else {
- delete value[symToStringTag];
- }
- }
- return result;
-}
-module.exports = getRawTag;
+
+var updateCategory = wp.blocks.updateCategory;
+updateCategory("uagb", {
+ icon: __WEBPACK_IMPORTED_MODULE_36__dist_blocks_uagb_controls_block_icons__["a" /* default */].logo
+});
+
/***/ }),
-/* 206 */
-/*!************************************************!*\
- !*** ./node_modules/lodash/_objectToString.js ***!
- \************************************************/
-/*! no static exports found */
-/*! all exports used */
+/* 249 */
+/*!*********************************************!*\
+ !*** ./src/blocks/extensions/attributes.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
/***/ (function(module, exports) {
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var nativeObjectToString = objectProto.toString;
+function addAttributes(settings) {
-/**
- * Converts `value` to a string using `Object.prototype.toString`.
- *
- * @private
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- */
-function objectToString(value) {
- return nativeObjectToString.call(value);
+ if (settings.attributes) {
+ settings.attributes = Object.assign(settings.attributes, {
+ UAGUserRole: {
+ type: "string"
+ },
+ UAGBrowser: {
+ type: "string"
+ },
+ UAGSystem: {
+ type: "string"
+ },
+ UAGDisplayConditions: {
+ type: "string"
+ },
+ UAGHideDesktop: {
+ type: "boolean",
+ default: false
+ },
+ UAGHideMob: {
+ type: "boolean",
+ default: false
+ },
+ UAGHideTab: {
+ type: "boolean",
+ default: false
+ },
+ UAGLoggedIn: {
+ type: "boolean",
+ default: false
+ },
+ UAGLoggedOut: {
+ type: "boolean",
+ default: false
+ }
+ });
+ }
+ return settings;
}
-module.exports = objectToString;
-
+wp.hooks.addFilter('blocks.registerBlockType', 'uagb/advanced-control-block', addAttributes);
/***/ }),
-/* 207 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_isMasked.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/* 250 */
+/*!**********************************************!*\
+ !*** ./src/blocks/advanced-heading/block.js ***!
+ \**********************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-var coreJsData = __webpack_require__(/*! ./_coreJsData */ 208);
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/block-icons */ 1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__attributes__ = __webpack_require__(/*! ./attributes */ 142);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 251);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__save__ = __webpack_require__(/*! ./save */ 373);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecated__ = __webpack_require__(/*! ./deprecated */ 374);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__style_scss__ = __webpack_require__(/*! ./style.scss */ 179);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__style_scss__);
+/**
+ * BLOCK: Advanced Heading
+ */
-/** Used to detect methods masquerading as native. */
-var maskSrcKey = (function() {
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
- return uid ? ('Symbol(src)_1.' + uid) : '';
-}());
-/**
- * Checks if `func` has its source masked.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
- */
-function isMasked(func) {
- return !!maskSrcKey && (maskSrcKey in func);
-}
-module.exports = isMasked;
-/***/ }),
-/* 208 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_coreJsData.js ***!
- \********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-var root = __webpack_require__(/*! ./_root */ 12);
-/** Used to detect overreaching core-js shims. */
-var coreJsData = root['__core-js_shared__'];
-module.exports = coreJsData;
+var __ = wp.i18n.__;
+var _wp$blocks = wp.blocks,
+ registerBlockType = _wp$blocks.registerBlockType,
+ createBlock = _wp$blocks.createBlock;
-/***/ }),
-/* 209 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_getValue.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
-
-/**
- * Gets the value at `key` of `object`.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
-function getValue(object, key) {
- return object == null ? undefined : object[key];
-}
-
-module.exports = getValue;
-
-
-/***/ }),
-/* 210 */
-/*!***********************************************!*\
- !*** ./node_modules/lodash/_mapCacheClear.js ***!
- \***********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var Hash = __webpack_require__(/*! ./_Hash */ 211),
- ListCache = __webpack_require__(/*! ./_ListCache */ 35),
- Map = __webpack_require__(/*! ./_Map */ 53);
-
-/**
- * Removes all key-value entries from the map.
- *
- * @private
- * @name clear
- * @memberOf MapCache
- */
-function mapCacheClear() {
- this.size = 0;
- this.__data__ = {
- 'hash': new Hash,
- 'map': new (Map || ListCache),
- 'string': new Hash
- };
-}
-
-module.exports = mapCacheClear;
-
-
-/***/ }),
-/* 211 */
-/*!**************************************!*\
- !*** ./node_modules/lodash/_Hash.js ***!
- \**************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var hashClear = __webpack_require__(/*! ./_hashClear */ 212),
- hashDelete = __webpack_require__(/*! ./_hashDelete */ 213),
- hashGet = __webpack_require__(/*! ./_hashGet */ 214),
- hashHas = __webpack_require__(/*! ./_hashHas */ 215),
- hashSet = __webpack_require__(/*! ./_hashSet */ 216);
-
-/**
- * Creates a hash object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function Hash(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
-
-// Add methods to `Hash`.
-Hash.prototype.clear = hashClear;
-Hash.prototype['delete'] = hashDelete;
-Hash.prototype.get = hashGet;
-Hash.prototype.has = hashHas;
-Hash.prototype.set = hashSet;
-
-module.exports = Hash;
+registerBlockType("uagb/advanced-heading", {
+ title: uagb_blocks_info.blocks["uagb/advanced-heading"]["title"],
+ description: uagb_blocks_info.blocks["uagb/advanced-heading"]["description"],
+ icon: __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].advanced_heading,
+ keywords: [__("advanced heading", 'ultimate-addons-for-gutenberg'), __("uag", 'ultimate-addons-for-gutenberg'), __("heading", 'ultimate-addons-for-gutenberg')],
+ supports: {
+ anchor: true
+ },
+ example: {
+ attributes: {
+ headingTitle: __('Write a Heading', 'ultimate-addons-for-gutenberg'),
+ headingDesc: __('Write a Description', 'ultimate-addons-for-gutenberg')
+ }
+ },
+ category: uagb_blocks_info.category,
+ attributes: __WEBPACK_IMPORTED_MODULE_1__attributes__["a" /* default */],
+ edit: __WEBPACK_IMPORTED_MODULE_2__edit__["a" /* default */],
+ save: __WEBPACK_IMPORTED_MODULE_3__save__["a" /* default */],
+ deprecated: __WEBPACK_IMPORTED_MODULE_4__deprecated__["a" /* default */],
+ transforms: {
+ from: [{
+ type: 'block',
+ blocks: ['core/heading'],
+ transform: function transform(attributes) {
+ return createBlock('uagb/advanced-heading', {
+ headingTitle: attributes.content,
+ headingAlign: attributes.align,
+ className: 'uagb-heading-text'
+ });
+ }
+ }, {
+ type: 'block',
+ blocks: ['core/quote'],
+ transform: function transform(attributes) {
+ return createBlock('uagb/advanced-heading', {
+ headingTitle: attributes.value,
+ headingDesc: attributes.citation,
+ className: 'uagb-heading-text'
+ });
+ }
+ }],
+ to: [{
+ type: 'block',
+ blocks: ['core/heading'],
+ transform: function transform(attributes) {
+ return createBlock('core/heading', {
+ content: attributes.headingTitle,
+ align: attributes.headingAlign,
+ className: 'uagb-heading-text'
+ });
+ }
+ }, {
+ type: 'block',
+ blocks: ['core/quote'],
+ transform: function transform(attributes) {
+ return createBlock('core/quote', {
+ value: "" + attributes.headingTitle + "
",
+ citation: attributes.headingDesc,
+ className: 'uagb-heading-text'
+ });
+ }
+ }]
+ }
+});
/***/ }),
-/* 212 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_hashClear.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38);
+/* 251 */
+/*!*********************************************!*\
+ !*** ./src/blocks/advanced-heading/edit.js ***!
+ \*********************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-/**
- * Removes all key-value entries from the hash.
- *
- * @private
- * @name clear
- * @memberOf Hash
- */
-function hashClear() {
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
- this.size = 0;
-}
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__styling__ = __webpack_require__(/*! ./styling */ 252);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_typography__ = __webpack_require__(/*! ../../components/typography */ 7);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__ = __webpack_require__(/*! ../../components/typography/fontloader */ 8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss__ = __webpack_require__(/*! ./style.scss */ 179);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__style_scss__);
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-module.exports = hashClear;
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-/***/ }),
-/* 213 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_hashDelete.js ***!
- \********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-/**
- * Removes `key` and its value from the hash.
- *
- * @private
- * @name delete
- * @memberOf Hash
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+/**
+ * BLOCK: Advanced Heading
*/
-function hashDelete(key) {
- var result = this.has(key) && delete this.__data__[key];
- this.size -= result ? 1 : 0;
- return result;
-}
-
-module.exports = hashDelete;
-
-
-/***/ }),
-/* 214 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_hashGet.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38);
-
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
+// Import block dependencies and components.
-/**
- * Gets the hash value for `key`.
- *
- * @private
- * @name get
- * @memberOf Hash
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function hashGet(key) {
- var data = this.__data__;
- if (nativeCreate) {
- var result = data[key];
- return result === HASH_UNDEFINED ? undefined : result;
- }
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
-}
-module.exports = hashGet;
+// Import all of our Text Options requirements.
-/***/ }),
-/* 215 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_hashHas.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38);
+// Import Web font loader for google fonts.
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
+// Import CSS.
-/**
- * Checks if a hash value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Hash
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function hashHas(key) {
- var data = this.__data__;
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
-}
-module.exports = hashHas;
+var __ = wp.i18n.__;
+var createBlock = wp.blocks.createBlock;
+var _wp$blockEditor = wp.blockEditor,
+ AlignmentToolbar = _wp$blockEditor.AlignmentToolbar,
+ BlockControls = _wp$blockEditor.BlockControls,
+ InspectorControls = _wp$blockEditor.InspectorControls,
+ RichText = _wp$blockEditor.RichText,
+ ColorPalette = _wp$blockEditor.ColorPalette;
+var _wp$components = wp.components,
+ PanelBody = _wp$components.PanelBody,
+ SelectControl = _wp$components.SelectControl,
+ RangeControl = _wp$components.RangeControl,
+ ButtonGroup = _wp$components.ButtonGroup,
+ Button = _wp$components.Button;
+var withSelect = wp.data.withSelect;
+var _wp$element = wp.element,
+ Component = _wp$element.Component,
+ Fragment = _wp$element.Fragment;
+var UAGBAdvancedHeading = function (_Component) {
+ _inherits(UAGBAdvancedHeading, _Component);
-/***/ }),
-/* 216 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_hashSet.js ***!
- \*****************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ function UAGBAdvancedHeading() {
+ _classCallCheck(this, UAGBAdvancedHeading);
-var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38);
+ var _this = _possibleConstructorReturn(this, (UAGBAdvancedHeading.__proto__ || Object.getPrototypeOf(UAGBAdvancedHeading)).apply(this, arguments));
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
+ _this.splitBlock = _this.splitBlock.bind(_this);
+ return _this;
+ }
-/**
- * Sets the hash `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Hash
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the hash instance.
- */
-function hashSet(key, value) {
- var data = this.__data__;
- this.size += this.has(key) ? 0 : 1;
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
- return this;
-}
+ _createClass(UAGBAdvancedHeading, [{
+ key: "componentDidMount",
+ value: function componentDidMount() {
-module.exports = hashSet;
+ // Assigning block_id in the attribute.
+ this.props.setAttributes({ block_id: this.props.clientId.substr(0, 8) });
+ // Assigning block_id in the attribute.
+ this.props.setAttributes({ classMigrate: true });
-/***/ }),
-/* 217 */
-/*!************************************************!*\
- !*** ./node_modules/lodash/_mapCacheDelete.js ***!
- \************************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ var level_val = parseInt(this.props.attributes.headingTag.replace('h', ''));
+ this.props.setAttributes({ level: level_val });
-var getMapData = __webpack_require__(/*! ./_getMapData */ 39);
+ // Pushing Style tag for this block css.
+ var $style = document.createElement("style");
+ $style.setAttribute("id", "uagb-adv-heading-style-" + this.props.clientId.substr(0, 8));
+ document.head.appendChild($style);
+ }
+ }, {
+ key: "componentDidUpdate",
+ value: function componentDidUpdate(prevProps, prevState) {
+ var element = document.getElementById("uagb-adv-heading-style-" + this.props.clientId.substr(0, 8));
-/**
- * Removes `key` and its value from the map.
- *
- * @private
- * @name delete
- * @memberOf MapCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function mapCacheDelete(key) {
- var result = getMapData(this, key)['delete'](key);
- this.size -= result ? 1 : 0;
- return result;
-}
+ if (null !== element && undefined !== element) {
+ element.innerHTML = Object(__WEBPACK_IMPORTED_MODULE_1__styling__["a" /* default */])(this.props);
+ }
+ }
-module.exports = mapCacheDelete;
+ /*
+ * Heading Tag Change
+ */
+ }, {
+ key: "onTagChange",
+ value: function onTagChange(value) {
+ var setAttributes = this.props.setAttributes;
-/***/ }),
-/* 218 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_isKeyable.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
-/**
- * Checks if `value` is suitable for use as unique object key.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
- */
-function isKeyable(value) {
- var type = typeof value;
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
- ? (value !== '__proto__')
- : (value === null);
-}
+ var level_val = parseInt(value.replace('h', ''));
-module.exports = isKeyable;
+ setAttributes({ level: level_val });
+ setAttributes({ headingTag: value });
+ }
+ }, {
+ key: "splitBlock",
+ value: function splitBlock(before, after) {
+ var _props = this.props,
+ attributes = _props.attributes,
+ insertBlocksAfter = _props.insertBlocksAfter,
+ setAttributes = _props.setAttributes,
+ onReplace = _props.onReplace;
+ for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
+ blocks[_key - 2] = arguments[_key];
+ }
-/***/ }),
-/* 219 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_mapCacheGet.js ***!
- \*********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ if (after) {
+ // Append "After" content as a new paragraph block to the end of
+ // any other blocks being inserted after the current paragraph.
+ blocks.push(createBlock("core/paragraph", { content: after }));
+ }
-var getMapData = __webpack_require__(/*! ./_getMapData */ 39);
+ if (blocks.length && insertBlocksAfter) {
+ insertBlocksAfter(blocks);
+ }
-/**
- * Gets the map value for `key`.
- *
- * @private
- * @name get
- * @memberOf MapCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function mapCacheGet(key) {
- return getMapData(this, key).get(key);
-}
+ var content = attributes.content;
-module.exports = mapCacheGet;
+ if (!before) {
+ // If before content is omitted, treat as intent to delete block.
+ onReplace([]);
+ } else if (content !== before) {
+ // Only update content if it has in-fact changed. In case that user
+ // has created a new paragraph at end of an existing one, the value
+ // of before will be strictly equal to the current content.
+ setAttributes({ content: before });
+ }
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ var _this2 = this;
+ // Setup the attributes
+ var _props2 = this.props,
+ className = _props2.className,
+ attributes = _props2.attributes,
+ setAttributes = _props2.setAttributes,
+ insertBlocksAfter = _props2.insertBlocksAfter,
+ mergeBlocks = _props2.mergeBlocks,
+ onReplace = _props2.onReplace,
+ _props2$attributes = _props2.attributes,
+ headingTitle = _props2$attributes.headingTitle,
+ headingDesc = _props2$attributes.headingDesc,
+ headingAlign = _props2$attributes.headingAlign,
+ headingColor = _props2$attributes.headingColor,
+ subHeadingColor = _props2$attributes.subHeadingColor,
+ separatorColor = _props2$attributes.separatorColor,
+ headingTag = _props2$attributes.headingTag,
+ headFontFamily = _props2$attributes.headFontFamily,
+ headFontWeight = _props2$attributes.headFontWeight,
+ headFontSubset = _props2$attributes.headFontSubset,
+ headFontSizeType = _props2$attributes.headFontSizeType,
+ headFontSize = _props2$attributes.headFontSize,
+ headFontSizeMobile = _props2$attributes.headFontSizeMobile,
+ headFontSizeTablet = _props2$attributes.headFontSizeTablet,
+ headLineHeightType = _props2$attributes.headLineHeightType,
+ headLineHeight = _props2$attributes.headLineHeight,
+ headLineHeightMobile = _props2$attributes.headLineHeightMobile,
+ headLineHeightTablet = _props2$attributes.headLineHeightTablet,
+ subHeadFontFamily = _props2$attributes.subHeadFontFamily,
+ subHeadFontWeight = _props2$attributes.subHeadFontWeight,
+ subHeadFontSubset = _props2$attributes.subHeadFontSubset,
+ subHeadFontSize = _props2$attributes.subHeadFontSize,
+ subHeadFontSizeType = _props2$attributes.subHeadFontSizeType,
+ subHeadFontSizeMobile = _props2$attributes.subHeadFontSizeMobile,
+ subHeadFontSizeTablet = _props2$attributes.subHeadFontSizeTablet,
+ subHeadLineHeight = _props2$attributes.subHeadLineHeight,
+ subHeadLineHeightType = _props2$attributes.subHeadLineHeightType,
+ subHeadLineHeightMobile = _props2$attributes.subHeadLineHeightMobile,
+ subHeadLineHeightTablet = _props2$attributes.subHeadLineHeightTablet,
+ separatorWidth = _props2$attributes.separatorWidth,
+ separatorWidthType = _props2$attributes.separatorWidthType,
+ seperatorStyle = _props2$attributes.seperatorStyle,
+ separatorHeight = _props2$attributes.separatorHeight,
+ headSpace = _props2$attributes.headSpace,
+ separatorSpace = _props2$attributes.separatorSpace,
+ headLoadGoogleFonts = _props2$attributes.headLoadGoogleFonts,
+ subHeadLoadGoogleFonts = _props2$attributes.subHeadLoadGoogleFonts;
-/***/ }),
-/* 220 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_mapCacheHas.js ***!
- \*********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-var getMapData = __webpack_require__(/*! ./_getMapData */ 39);
+ var loadHeadingGoogleFonts = void 0;
+ var loadSubHeadingGoogleFonts = void 0;
-/**
- * Checks if a map value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf MapCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function mapCacheHas(key) {
- return getMapData(this, key).has(key);
-}
+ if (headLoadGoogleFonts == true) {
-module.exports = mapCacheHas;
+ var hconfig = {
+ google: {
+ families: [headFontFamily + (headFontWeight ? ':' + headFontWeight : '')]
+ }
+ };
+ loadHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: hconfig });
+ }
-/***/ }),
-/* 221 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_mapCacheSet.js ***!
- \*********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ if (subHeadLoadGoogleFonts == true) {
-var getMapData = __webpack_require__(/*! ./_getMapData */ 39);
+ var sconfig = {
+ google: {
+ families: [subHeadFontFamily + (subHeadFontWeight ? ':' + subHeadFontWeight : '')]
+ }
+ };
-/**
- * Sets the map `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf MapCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the map cache instance.
- */
-function mapCacheSet(key, value) {
- var data = getMapData(this, key),
- size = data.size;
+ loadSubHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: sconfig });
+ }
- data.set(key, value);
- this.size += data.size == size ? 0 : 1;
- return this;
-}
+ return wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(
+ BlockControls,
+ { key: "controls" },
+ wp.element.createElement(AlignmentToolbar, {
+ value: headingAlign,
+ onChange: function onChange(value) {
+ return setAttributes({ headingAlign: value });
+ }
+ })
+ ),
+ wp.element.createElement(
+ InspectorControls,
+ null,
+ wp.element.createElement(
+ PanelBody,
+ { title: __("Advanced Heading", 'ultimate-addons-for-gutenberg') },
+ wp.element.createElement(
+ "h2",
+ null,
+ __("Heading", 'ultimate-addons-for-gutenberg')
+ ),
+ wp.element.createElement(SelectControl, {
+ label: __("Heading Tag", 'ultimate-addons-for-gutenberg'),
+ value: headingTag,
+ onChange: function onChange(value) {
+ _this2.onTagChange(value);
+ },
+ options: [{ value: "h1", label: __("H1", 'ultimate-addons-for-gutenberg') }, { value: "h2", label: __("H2", 'ultimate-addons-for-gutenberg') }, { value: "h3", label: __("H3", 'ultimate-addons-for-gutenberg') }, { value: "h4", label: __("H4", 'ultimate-addons-for-gutenberg') }, { value: "h5", label: __("H5", 'ultimate-addons-for-gutenberg') }, { value: "h6", label: __("H6", 'ultimate-addons-for-gutenberg') }]
+ }),
+ wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], {
+ label: __("Typography", 'ultimate-addons-for-gutenberg'),
+ attributes: attributes,
+ setAttributes: setAttributes,
+ loadGoogleFonts: { value: headLoadGoogleFonts, label: 'headLoadGoogleFonts' },
+ fontFamily: { value: headFontFamily, label: 'headFontFamily' },
+ fontWeight: { value: headFontWeight, label: 'headFontWeight' },
+ fontSubset: { value: headFontSubset, label: 'headFontSubset' },
+ fontSizeType: { value: headFontSizeType, label: 'headFontSizeType' },
+ fontSize: { value: headFontSize, label: 'headFontSize' },
+ fontSizeMobile: { value: headFontSizeMobile, label: 'headFontSizeMobile' },
+ fontSizeTablet: { value: headFontSizeTablet, label: 'headFontSizeTablet' },
+ lineHeightType: { value: headLineHeightType, label: 'headLineHeightType' },
+ lineHeight: { value: headLineHeight, label: 'headLineHeight' },
+ lineHeightMobile: { value: headLineHeightMobile, label: 'headLineHeightMobile' },
+ lineHeightTablet: { value: headLineHeightTablet, label: 'headLineHeightTablet' }
+ }),
+ wp.element.createElement(
+ "p",
+ { className: "uagb-setting-label" },
+ __("Heading Color", 'ultimate-addons-for-gutenberg'),
+ wp.element.createElement(
+ "span",
+ { className: "components-base-control__label" },
+ wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: headingColor } })
+ )
+ ),
+ wp.element.createElement(ColorPalette, {
+ value: headingColor,
+ onChange: function onChange(value) {
+ return setAttributes({ headingColor: value });
+ },
+ allowReset: true
+ }),
+ wp.element.createElement("hr", { className: "uagb-editor__separator" }),
+ wp.element.createElement(
+ "h2",
+ null,
+ __("Sub-Heading", 'ultimate-addons-for-gutenberg')
+ ),
+ wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], {
+ label: __("Typography", 'ultimate-addons-for-gutenberg'),
+ attributes: attributes,
+ setAttributes: setAttributes,
+ loadGoogleFonts: { value: subHeadLoadGoogleFonts, label: 'subHeadLoadGoogleFonts' },
+ fontFamily: { value: subHeadFontFamily, label: 'subHeadFontFamily' },
+ fontWeight: { value: subHeadFontWeight, label: 'subHeadFontWeight' },
+ fontSubset: { value: subHeadFontSubset, label: 'subHeadFontSubset' },
+ fontSizeType: { value: subHeadFontSizeType, label: 'subHeadFontSizeType' },
+ fontSize: { value: subHeadFontSize, label: 'subHeadFontSize' },
+ fontSizeMobile: { value: subHeadFontSizeMobile, label: 'subHeadFontSizeMobile' },
+ fontSizeTablet: { value: subHeadFontSizeTablet, label: 'subHeadFontSizeTablet' },
+ lineHeightType: { value: subHeadLineHeightType, label: 'subHeadLineHeightType' },
+ lineHeight: { value: subHeadLineHeight, label: 'subHeadLineHeight' },
+ lineHeightMobile: { value: subHeadLineHeightMobile, label: 'subHeadLineHeightMobile' },
+ lineHeightTablet: { value: subHeadLineHeightTablet, label: 'subHeadLineHeightTablet' }
+ }),
+ wp.element.createElement(
+ "p",
+ { className: "uagb-setting-label" },
+ __("Sub Heading Color", 'ultimate-addons-for-gutenberg'),
+ wp.element.createElement(
+ "span",
+ { className: "components-base-control__label" },
+ wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: subHeadingColor } })
+ )
+ ),
+ wp.element.createElement(ColorPalette, {
+ value: subHeadingColor,
+ onChange: function onChange(value) {
+ return setAttributes({ subHeadingColor: value });
+ },
+ allowReset: true
+ })
+ ),
+ wp.element.createElement(
+ PanelBody,
+ { title: __("Separator", 'ultimate-addons-for-gutenberg'), initialOpen: false },
+ wp.element.createElement(SelectControl, {
+ label: __("Style", 'ultimate-addons-for-gutenberg'),
+ value: seperatorStyle,
+ onChange: function onChange(value) {
+ return setAttributes({ seperatorStyle: value });
+ },
+ options: [{ value: "none", label: __("None", 'ultimate-addons-for-gutenberg') }, { value: "solid", label: __("Solid", 'ultimate-addons-for-gutenberg') }, { value: "double", label: __("Double", 'ultimate-addons-for-gutenberg') }, { value: "dashed", label: __("Dashed", 'ultimate-addons-for-gutenberg') }, { value: "dotted", label: __("Dotted", 'ultimate-addons-for-gutenberg') }]
+ }),
+ seperatorStyle !== "none" && wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(RangeControl, {
+ label: __("Thickness (px)", 'ultimate-addons-for-gutenberg'),
+ value: separatorHeight,
+ onChange: function onChange(value) {
+ return setAttributes({ separatorHeight: value });
+ },
+ min: 0,
+ max: 20,
+ beforeIcon: "",
+ allowReset: true,
+ initialPosition: 3
+ }),
+ wp.element.createElement(
+ ButtonGroup,
+ { className: "uagb-size-type-field", "aria-label": __("Size Type", 'ultimate-addons-for-gutenberg') },
+ wp.element.createElement(
+ Button,
+ { key: "px", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "px", "aria-pressed": separatorWidthType === "px", onClick: function onClick() {
+ return setAttributes({ separatorWidthType: "px" });
+ } },
+ "px"
+ ),
+ wp.element.createElement(
+ Button,
+ { key: "%", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "%", "aria-pressed": separatorWidthType === "%", onClick: function onClick() {
+ return setAttributes({ separatorWidthType: "%" });
+ } },
+ "%"
+ )
+ ),
+ wp.element.createElement(RangeControl, {
+ label: __("Width", 'ultimate-addons-for-gutenberg'),
+ value: separatorWidth,
+ onChange: function onChange(value) {
+ return setAttributes({ separatorWidth: value });
+ },
+ min: 0,
+ max: "%" == separatorWidthType ? 100 : 500,
+ beforeIcon: "",
+ allowReset: true,
+ initialPosition: 20
+ }),
+ seperatorStyle !== "none" && wp.element.createElement(
+ Fragment,
+ null,
+ wp.element.createElement(
+ "p",
+ { className: "uagb-setting-label" },
+ __("Separator Color", 'ultimate-addons-for-gutenberg'),
+ wp.element.createElement(
+ "span",
+ { className: "components-base-control__label" },
+ wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: separatorColor } })
+ )
+ ),
+ wp.element.createElement(ColorPalette, {
+ value: separatorColor,
+ onChange: function onChange(colorValue) {
+ return setAttributes({ separatorColor: colorValue });
+ },
+ allowReset: true
+ })
+ )
+ )
+ ),
+ wp.element.createElement(
+ PanelBody,
+ { title: __("Spacing", 'ultimate-addons-for-gutenberg'), initialOpen: false },
+ wp.element.createElement(RangeControl, {
+ label: __("Heading Bottom Spacing (px)", 'ultimate-addons-for-gutenberg'),
+ value: headSpace,
+ onChange: function onChange(value) {
+ return setAttributes({ headSpace: value });
+ },
+ min: 0,
+ max: 500,
+ beforeIcon: "",
+ allowReset: true,
+ initialPosition: 0
+ }),
+ seperatorStyle !== "none" && wp.element.createElement(RangeControl, {
+ label: __("Separator Bottom Spacing (px)", 'ultimate-addons-for-gutenberg'),
+ value: separatorSpace,
+ onChange: function onChange(value) {
+ return setAttributes({ separatorSpace: value });
+ },
+ min: 0,
+ max: 500,
+ beforeIcon: "",
+ allowReset: true,
+ initialPosition: 0
+ })
+ )
+ ),
+ wp.element.createElement(
+ "div",
+ {
+ className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()(className, "uagb-block-" + this.props.clientId.substr(0, 8))
+ },
+ wp.element.createElement(RichText, {
+ tagName: headingTag,
+ placeholder: __("Write a Heading", 'ultimate-addons-for-gutenberg'),
+ value: headingTitle,
+ className: "uagb-heading-text",
+ multiline: false,
+ onChange: function onChange(value) {
+ setAttributes({ headingTitle: value });
+ },
+ onMerge: mergeBlocks,
+ unstableOnSplit: insertBlocksAfter ? function (before, after) {
+ for (var _len2 = arguments.length, blocks = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
+ blocks[_key2 - 2] = arguments[_key2];
+ }
-module.exports = mapCacheSet;
+ setAttributes({ content: before });
+ insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })]));
+ } : undefined,
+ onRemove: function onRemove() {
+ return onReplace([]);
+ }
+ }),
+ seperatorStyle !== "none" && wp.element.createElement(
+ "div",
+ { className: "uagb-separator-wrap" },
+ wp.element.createElement("div", { className: "uagb-separator" })
+ ),
+ wp.element.createElement(RichText, {
+ tagName: "p",
+ placeholder: __("Write a Description", 'ultimate-addons-for-gutenberg'),
+ value: headingDesc,
+ className: "uagb-desc-text",
+ onChange: function onChange(value) {
+ return setAttributes({ headingDesc: value });
+ },
+ onMerge: mergeBlocks,
+ unstableOnSplit: this.splitBlock,
+ onRemove: function onRemove() {
+ return onReplace([]);
+ }
+ })
+ ),
+ loadHeadingGoogleFonts,
+ loadSubHeadingGoogleFonts
+ );
+ }
+ }]);
+ return UAGBAdvancedHeading;
+}(Component);
-/***/ }),
-/* 222 */
-/*!*************************************************!*\
- !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
- \*************************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/* harmony default export */ __webpack_exports__["a"] = (withSelect(function (select, props) {
+ var attributes = props.attributes;
-var Stack = __webpack_require__(/*! ./_Stack */ 52),
- equalArrays = __webpack_require__(/*! ./_equalArrays */ 116),
- equalByTag = __webpack_require__(/*! ./_equalByTag */ 228),
- equalObjects = __webpack_require__(/*! ./_equalObjects */ 231),
- getTag = __webpack_require__(/*! ./_getTag */ 44),
- isArray = __webpack_require__(/*! ./isArray */ 14),
- isBuffer = __webpack_require__(/*! ./isBuffer */ 59),
- isTypedArray = __webpack_require__(/*! ./isTypedArray */ 123);
+ return {
+ anchor: attributes.headingId
+ };
+})(UAGBAdvancedHeading));
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1;
+/***/ }),
+/* 252 */
+/*!************************************************!*\
+ !*** ./src/blocks/advanced-heading/styling.js ***!
+ \************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- objectTag = '[object Object]';
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3);
+/**
+ * Returns Dynamic Generated CSS
+ */
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-/**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = objIsArr ? arrayTag : getTag(object),
- othTag = othIsArr ? arrayTag : getTag(other);
- objTag = objTag == argsTag ? objectTag : objTag;
- othTag = othTag == argsTag ? objectTag : othTag;
+function styling(props) {
+ var _props$attributes = props.attributes,
+ classMigrate = _props$attributes.classMigrate,
+ headingAlign = _props$attributes.headingAlign,
+ headingTag = _props$attributes.headingTag,
+ headingColor = _props$attributes.headingColor,
+ headSpace = _props$attributes.headSpace,
+ seperatorStyle = _props$attributes.seperatorStyle,
+ separatorHeight = _props$attributes.separatorHeight,
+ separatorWidth = _props$attributes.separatorWidth,
+ separatorWidthType = _props$attributes.separatorWidthType,
+ separatorColor = _props$attributes.separatorColor,
+ separatorSpace = _props$attributes.separatorSpace,
+ subHeadingColor = _props$attributes.subHeadingColor,
+ headFontFamily = _props$attributes.headFontFamily,
+ headFontWeight = _props$attributes.headFontWeight,
+ headFontSize = _props$attributes.headFontSize,
+ headFontSizeType = _props$attributes.headFontSizeType,
+ headFontSizeMobile = _props$attributes.headFontSizeMobile,
+ headFontSizeTablet = _props$attributes.headFontSizeTablet,
+ headLineHeight = _props$attributes.headLineHeight,
+ headLineHeightType = _props$attributes.headLineHeightType,
+ headLineHeightMobile = _props$attributes.headLineHeightMobile,
+ headLineHeightTablet = _props$attributes.headLineHeightTablet,
+ subHeadFontFamily = _props$attributes.subHeadFontFamily,
+ subHeadFontWeight = _props$attributes.subHeadFontWeight,
+ subHeadFontSize = _props$attributes.subHeadFontSize,
+ subHeadFontSizeType = _props$attributes.subHeadFontSizeType,
+ subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile,
+ subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet,
+ subHeadLineHeight = _props$attributes.subHeadLineHeight,
+ subHeadLineHeightType = _props$attributes.subHeadLineHeightType,
+ subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile,
+ subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet;
- var objIsObj = objTag == objectTag,
- othIsObj = othTag == objectTag,
- isSameTag = objTag == othTag;
- if (isSameTag && isBuffer(object)) {
- if (!isBuffer(other)) {
- return false;
- }
- objIsArr = true;
- objIsObj = false;
- }
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack);
- return (objIsArr || isTypedArray(object))
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
+ var tablet_selectors = {};
+ var mobile_selectors = {};
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
+ var selectors = {
+ " .uagb-separator-wrap": {
+ "text-align": headingAlign
+ },
+ " .block-editor-rich-text__editable.uagb-desc-text": {
+ "text-align": headingAlign,
+ "font-family": subHeadFontFamily,
+ "font-weight": subHeadFontWeight,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType),
+ "color": subHeadingColor
+ }
+ };
- stack || (stack = new Stack);
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack);
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
-}
+ selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = {
+ "text-align": headingAlign,
+ "font-family": headFontFamily,
+ "font-weight": headFontWeight,
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType),
+ "color": headingColor,
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px")
+ };
-module.exports = baseIsEqualDeep;
+ if (seperatorStyle !== "none") {
+ selectors[" .uagb-separator"] = {
+ "border-top-style": seperatorStyle,
+ "border-top-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorHeight, "px"),
+ "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorWidth, separatorWidthType),
+ "border-color": separatorColor,
+ "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorSpace, "px")
+ };
+ }
+ tablet_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType)
+ };
+ tablet_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType)
+ };
-/***/ }),
-/* 223 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_SetCache.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ mobile_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType)
+ };
+ mobile_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = {
+ "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType),
+ "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType)
+ };
-var MapCache = __webpack_require__(/*! ./_MapCache */ 55),
- setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ 224),
- setCacheHas = __webpack_require__(/*! ./_setCacheHas */ 225);
+ var base_selector = ".block-editor-page #wpwrap .uagb-block-" + props.clientId.substr(0, 8);
-/**
- *
- * Creates an array cache object to store unique values.
- *
- * @private
- * @constructor
- * @param {Array} [values] The values to cache.
- */
-function SetCache(values) {
- var index = -1,
- length = values == null ? 0 : values.length;
+ var styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, base_selector);
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
-}
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, base_selector, true, "tablet");
-// Add methods to `SetCache`.
-SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
-SetCache.prototype.has = setCacheHas;
+ styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, base_selector, true, "mobile");
-module.exports = SetCache;
+ return styling_css;
+}
+/* harmony default export */ __webpack_exports__["a"] = (styling);
/***/ }),
-/* 224 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_setCacheAdd.js ***!
- \*********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+/* 253 */
+/*!******************************************************!*\
+ !*** ./src/components/typography/font-typography.js ***!
+ \******************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
+"use strict";
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map__ = __webpack_require__(/*! lodash/map */ 17);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_map__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fonts__ = __webpack_require__(/*! ./fonts */ 320);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_select__ = __webpack_require__(/*! react-select */ 321);
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-/**
- * Adds `value` to the array cache.
- *
- * @private
- * @name add
- * @memberOf SetCache
- * @alias push
- * @param {*} value The value to cache.
- * @returns {Object} Returns the cache instance.
- */
-function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED);
- return this;
-}
+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; }
-module.exports = setCacheAdd;
+/**
+ * WordPress dependencies
+ */
+var __ = wp.i18n.__;
+var SelectControl = wp.components.SelectControl;
+// Extend component
-/***/ }),
-/* 225 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_setCacheHas.js ***!
- \*********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+var _wp$element = wp.element,
+ Component = _wp$element.Component,
+ Fragment = _wp$element.Fragment;
-/**
- * Checks if `value` is in the array cache.
- *
- * @private
- * @name has
- * @memberOf SetCache
- * @param {*} value The value to search for.
- * @returns {number} Returns `true` if `value` is found, else `false`.
+/**
+ * Internal dependencies
*/
-function setCacheHas(value) {
- return this.__data__.has(value);
-}
-module.exports = setCacheHas;
-/***/ }),
-/* 226 */
-/*!*******************************************!*\
- !*** ./node_modules/lodash/_arraySome.js ***!
- \*******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
-/**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
-function arraySome(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (predicate(array[index], index, array)) {
- return true;
- }
- }
- return false;
-}
-
-module.exports = arraySome;
+function FontFamilyControl(props) {
-/***/ }),
-/* 227 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_cacheHas.js ***!
- \******************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ var fonts = [{ value: "", label: __("Default", 'ultimate-addons-for-gutenberg'), weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Arial", label: "Arial", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Helvetica", label: "Helvetica", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Times New Roman", label: "Times New Roman", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Georgia", label: "Georgia", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }];
-/**
- * Checks if a `cache` value for `key` exists.
- *
- * @private
- * @param {Object} cache The cache to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function cacheHas(cache, key) {
- return cache.has(key);
-}
+ var fontWeight = "";
+ var fontSubset = "";
-module.exports = cacheHas;
+ //Push Google Fonts into stytem fonts object
+ Object.keys(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */]).map(function (k, v) {
+ fonts.push({ value: k, label: k, weight: __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight });
+ if (k === props.fontFamily.value) {
+ fontWeight = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight;
+ fontSubset = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].subset;
+ }
+ });
-/***/ }),
-/* 228 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_equalByTag.js ***!
- \********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+ // check if the font is a system font and then apply the font weight accordingly.
+ if (fontWeight === "") {
+ fontWeight = fonts[0].weight;
+ }
-var Symbol = __webpack_require__(/*! ./_Symbol */ 22),
- Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 117),
- eq = __webpack_require__(/*! ./eq */ 37),
- equalArrays = __webpack_require__(/*! ./_equalArrays */ 116),
- mapToArray = __webpack_require__(/*! ./_mapToArray */ 229),
- setToArray = __webpack_require__(/*! ./_setToArray */ 230);
+ var fontWeightObj = [];
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
+ fontWeight.forEach(function (item) {
+ fontWeightObj.push({ value: item, label: item });
+ });
-/** `Object#toString` result references. */
-var boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]';
+ var fontSubsetObj = [];
-var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]';
+ if ((typeof fontSubset === "undefined" ? "undefined" : _typeof(fontSubset)) == "object") {
+ fontSubset.forEach(function (item) {
+ fontSubsetObj.push({ value: item, label: item });
+ });
+ }
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
+ var onFontfamilyChange = function onFontfamilyChange(value) {
+ var loadGoogleFonts = props.loadGoogleFonts,
+ fontFamily = props.fontFamily,
+ fontWeight = props.fontWeight,
+ fontSubset = props.fontSubset;
-/**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
- case dataViewTag:
- if ((object.byteLength != other.byteLength) ||
- (object.byteOffset != other.byteOffset)) {
- return false;
- }
- object = object.buffer;
- other = other.buffer;
+ props.setAttributes(_defineProperty({}, fontFamily.label, value.label));
+ onLoadGoogleFonts(loadGoogleFonts, value.label);
+ onFontChange(fontWeight, fontSubset, value.label);
+ };
- case arrayBufferTag:
- if ((object.byteLength != other.byteLength) ||
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
- return false;
- }
- return true;
+ var onFontChange = function onFontChange(fontWeight, fontSubset, fontFamily) {
- case boolTag:
- case dateTag:
- case numberTag:
- // Coerce booleans to `1` or `0` and dates to milliseconds.
- // Invalid dates are coerced to `NaN`.
- return eq(+object, +other);
+ var font_flag = void 0;
+ var new_value = void 0;
- case errorTag:
- return object.name == other.name && object.message == other.message;
+ if (_typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) == "object") {
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
+ var gfontsObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].weight;
+ var gfontSubsetObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].subset;
- case mapTag:
- var convert = mapToArray;
+ if ((typeof gfontsObj === "undefined" ? "undefined" : _typeof(gfontsObj)) == "object") {
- case setTag:
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
- convert || (convert = setToArray);
+ gfontsObj.forEach(function (item) {
- if (object.size != other.size && !isPartial) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= COMPARE_UNORDERED_FLAG;
+ if (fontWeight.value == item) {
+ font_flag = false;
+ } else {
+ new_value = item;
+ font_flag = true;
+ props.setAttributes(_defineProperty({}, props.fontWeight.label, new_value));
+ return;
+ }
+ });
- // Recursively compare objects (susceptible to call stack limits).
- stack.set(object, other);
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
- stack['delete'](object);
- return result;
+ gfontSubsetObj.forEach(function (item) {
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object) == symbolValueOf.call(other);
- }
- }
- return false;
-}
+ if (fontSubset.value == item) {
+ font_flag = false;
+ } else {
+ new_value = item;
+ font_flag = true;
+ props.setAttributes(_defineProperty({}, props.fontSubset.label, new_value));
+ return;
+ }
+ });
+ }
+ }
+ };
-module.exports = equalByTag;
+ var onLoadGoogleFonts = function onLoadGoogleFonts(loadGoogleFonts, fontFamily) {
+ var value = void 0;
-/***/ }),
-/* 229 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_mapToArray.js ***!
- \********************************************/
-/*! no static exports found */
-/*! all exports used */
-/***/ (function(module, exports) {
+ if (fontFamily != "" && _typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) != "object") {
+ value = false;
+ } else {
+ value = true;
+ }
-/**
- * Converts `map` to its key-value pairs.
- *
- * @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the key-value pairs.
- */
-function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
+ props.setAttributes(_defineProperty({}, loadGoogleFonts.label, value));
+ };
- map.forEach(function(value, key) {
- result[++index] = [key, value];
- });
- return result;
+ return wp.element.createElement(
+ "div",
+ { className: "uag-typography-font-family-options" },
+ wp.element.createElement(
+ "label",
+ { className: "uag-typography-font-family-label" },
+ __("Font Family", 'ultimate-addons-for-gutenberg')
+ ),
+ wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2_react_select__["a" /* default */], {
+ options: fonts,
+ value: { value: props.fontFamily.value, label: props.fontFamily.value, weight: fontWeightObj },
+ isMulti: false,
+ maxMenuHeight: 300,
+ onChange: onFontfamilyChange,
+ className: "react-select-container",
+ classNamePrefix: "react-select"
+ }),
+ wp.element.createElement(SelectControl, {
+ label: __("Font Weight", 'ultimate-addons-for-gutenberg'),
+ value: props.fontWeight.value,
+ onChange: function onChange(value) {
+ return props.setAttributes(_defineProperty({}, props.fontWeight.label, value));
+ },
+ options: fontWeightObj
+ }),
+ wp.element.createElement(SelectControl, {
+ label: __("Font Subset", 'ultimate-addons-for-gutenberg'),
+ value: props.fontSubset.value,
+ onChange: function onChange(value) {
+ return props.setAttributes(_defineProperty({}, props.fontSubset.label, value));
+ },
+ options: fontSubsetObj
+ })
+ );
}
-module.exports = mapToArray;
-
+/* harmony default export */ __webpack_exports__["a"] = (FontFamilyControl);
/***/ }),
-/* 230 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_setToArray.js ***!
- \********************************************/
-/*! no static exports found */
+/* 254 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_baseMatches.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports) {
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ 255),
+ getMatchData = __webpack_require__(/*! ./_getMatchData */ 304),
+ matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 158);
/**
- * Converts `set` to an array of its values.
+ * The base implementation of `_.matches` which doesn't clone `source`.
*
* @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the values.
+ * @param {Object} source The object of property values to match.
+ * @returns {Function} Returns the new spec function.
*/
-function setToArray(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
+function baseMatches(source) {
+ var matchData = getMatchData(source);
+ if (matchData.length == 1 && matchData[0][2]) {
+ return matchesStrictComparable(matchData[0][0], matchData[0][1]);
+ }
+ return function(object) {
+ return object === source || baseIsMatch(object, source, matchData);
+ };
}
-module.exports = setToArray;
+module.exports = baseMatches;
/***/ }),
-/* 231 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_equalObjects.js ***!
- \**********************************************/
-/*! no static exports found */
+/* 255 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_baseIsMatch.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ 118);
+var Stack = __webpack_require__(/*! ./_Stack */ 72),
+ baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 147);
/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1;
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
+var COMPARE_PARTIAL_FLAG = 1,
+ COMPARE_UNORDERED_FLAG = 2;
/**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ * @param {Object} object The object to inspect.
+ * @param {Object} source The object of property values to match.
+ * @param {Array} matchData The property names, values, and compare flags to match.
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
*/
-function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- objProps = getAllKeys(object),
- objLength = objProps.length,
- othProps = getAllKeys(other),
- othLength = othProps.length;
+function baseIsMatch(object, source, matchData, customizer) {
+ var index = matchData.length,
+ length = index,
+ noCustomizer = !customizer;
- if (objLength != othLength && !isPartial) {
- return false;
+ if (object == null) {
+ return !length;
}
- var index = objLength;
+ object = Object(object);
while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
+ var data = matchData[index];
+ if ((noCustomizer && data[2])
+ ? data[1] !== object[data[0]]
+ : !(data[0] in object)
+ ) {
return false;
}
}
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked && stack.get(other)) {
- return stacked == other;
- }
- var result = true;
- stack.set(object, other);
- stack.set(other, object);
-
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, objValue, key, other, object, stack)
- : customizer(objValue, othValue, key, object, other, stack);
- }
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
+ while (++index < length) {
+ data = matchData[index];
+ var key = data[0],
+ objValue = object[key],
+ srcValue = data[1];
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
+ if (noCustomizer && data[2]) {
+ if (objValue === undefined && !(key in object)) {
+ return false;
+ }
+ } else {
+ var stack = new Stack;
+ if (customizer) {
+ var result = customizer(objValue, srcValue, key, object, source, stack);
+ }
+ if (!(result === undefined
+ ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
+ : result
+ )) {
+ return false;
+ }
}
}
- stack['delete'](object);
- stack['delete'](other);
- return result;
+ return true;
}
-module.exports = equalObjects;
+module.exports = baseIsMatch;
/***/ }),
-/* 232 */
-/*!*********************************************!*\
- !*** ./node_modules/lodash/_arrayFilter.js ***!
- \*********************************************/
-/*! no static exports found */
+/* 256 */
+/*!************************************************!*\
+ !*** ./node_modules/lodash/_listCacheClear.js ***!
+ \************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
/**
- * A specialized version of `_.filter` for arrays without support for
- * iteratee shorthands.
+ * Removes all key-value entries from the list cache.
*
* @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
+ * @name clear
+ * @memberOf ListCache
*/
-function arrayFilter(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result[resIndex++] = value;
- }
- }
- return result;
+function listCacheClear() {
+ this.__data__ = [];
+ this.size = 0;
}
-module.exports = arrayFilter;
+module.exports = listCacheClear;
/***/ }),
-/* 233 */
+/* 257 */
/*!*************************************************!*\
- !*** ./node_modules/lodash/_baseIsArguments.js ***!
+ !*** ./node_modules/lodash/_listCacheDelete.js ***!
\*************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17);
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 46);
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]';
+/** Used for built-in method references. */
+var arrayProto = Array.prototype;
+
+/** Built-in value references. */
+var splice = arrayProto.splice;
/**
- * The base implementation of `_.isArguments`.
+ * Removes `key` and its value from the list cache.
*
* @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+ * @name delete
+ * @memberOf ListCache
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
-function baseIsArguments(value) {
- return isObjectLike(value) && baseGetTag(value) == argsTag;
+function listCacheDelete(key) {
+ var data = this.__data__,
+ index = assocIndexOf(data, key);
+
+ if (index < 0) {
+ return false;
+ }
+ var lastIndex = data.length - 1;
+ if (index == lastIndex) {
+ data.pop();
+ } else {
+ splice.call(data, index, 1);
+ }
+ --this.size;
+ return true;
}
-module.exports = baseIsArguments;
+module.exports = listCacheDelete;
/***/ }),
-/* 234 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/stubFalse.js ***!
- \******************************************/
-/*! no static exports found */
+/* 258 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_listCacheGet.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports) {
+/***/ (function(module, exports, __webpack_require__) {
+
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 46);
/**
- * This method returns `false`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `false`.
- * @example
+ * Gets the list cache value for `key`.
*
- * _.times(2, _.stubFalse);
- * // => [false, false]
+ * @private
+ * @name get
+ * @memberOf ListCache
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
*/
-function stubFalse() {
- return false;
+function listCacheGet(key) {
+ var data = this.__data__,
+ index = assocIndexOf(data, key);
+
+ return index < 0 ? undefined : data[index][1];
}
-module.exports = stubFalse;
+module.exports = listCacheGet;
/***/ }),
-/* 235 */
-/*!**************************************************!*\
- !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
- \**************************************************/
-/*! no static exports found */
+/* 259 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_listCacheHas.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20),
- isLength = __webpack_require__(/*! ./isLength */ 61),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17);
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- weakMapTag = '[object WeakMap]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
-
-/** Used to identify `toStringTag` values of typed arrays. */
-var typedArrayTags = {};
-typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
-typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
-typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
-typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
-typedArrayTags[uint32Tag] = true;
-typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
-typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
-typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
-typedArrayTags[errorTag] = typedArrayTags[funcTag] =
-typedArrayTags[mapTag] = typedArrayTags[numberTag] =
-typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
-typedArrayTags[setTag] = typedArrayTags[stringTag] =
-typedArrayTags[weakMapTag] = false;
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 46);
/**
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
+ * Checks if a list cache value for `key` exists.
*
* @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+ * @name has
+ * @memberOf ListCache
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
-function baseIsTypedArray(value) {
- return isObjectLike(value) &&
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
+function listCacheHas(key) {
+ return assocIndexOf(this.__data__, key) > -1;
}
-module.exports = baseIsTypedArray;
+module.exports = listCacheHas;
/***/ }),
-/* 236 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_baseKeys.js ***!
- \******************************************/
-/*! no static exports found */
+/* 260 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_listCacheSet.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var isPrototype = __webpack_require__(/*! ./_isPrototype */ 43),
- nativeKeys = __webpack_require__(/*! ./_nativeKeys */ 237);
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 46);
/**
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
+ * Sets the list cache `key` to `value`.
*
* @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
+ * @name set
+ * @memberOf ListCache
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the list cache instance.
*/
-function baseKeys(object) {
- if (!isPrototype(object)) {
- return nativeKeys(object);
- }
- var result = [];
- for (var key in Object(object)) {
- if (hasOwnProperty.call(object, key) && key != 'constructor') {
- result.push(key);
- }
+function listCacheSet(key, value) {
+ var data = this.__data__,
+ index = assocIndexOf(data, key);
+
+ if (index < 0) {
+ ++this.size;
+ data.push([key, value]);
+ } else {
+ data[index][1] = value;
}
- return result;
+ return this;
}
-module.exports = baseKeys;
+module.exports = listCacheSet;
/***/ }),
-/* 237 */
+/* 261 */
/*!********************************************!*\
- !*** ./node_modules/lodash/_nativeKeys.js ***!
+ !*** ./node_modules/lodash/_stackClear.js ***!
\********************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var overArg = __webpack_require__(/*! ./_overArg */ 124);
+var ListCache = __webpack_require__(/*! ./_ListCache */ 45);
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeKeys = overArg(Object.keys, Object);
+/**
+ * Removes all key-value entries from the stack.
+ *
+ * @private
+ * @name clear
+ * @memberOf Stack
+ */
+function stackClear() {
+ this.__data__ = new ListCache;
+ this.size = 0;
+}
-module.exports = nativeKeys;
+module.exports = stackClear;
/***/ }),
-/* 238 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_DataView.js ***!
- \******************************************/
-/*! no static exports found */
+/* 262 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_stackDelete.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/***/ (function(module, exports) {
-var getNative = __webpack_require__(/*! ./_getNative */ 19),
- root = __webpack_require__(/*! ./_root */ 12);
+/**
+ * Removes `key` and its value from the stack.
+ *
+ * @private
+ * @name delete
+ * @memberOf Stack
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+function stackDelete(key) {
+ var data = this.__data__,
+ result = data['delete'](key);
-/* Built-in method references that are verified to be native. */
-var DataView = getNative(root, 'DataView');
+ this.size = data.size;
+ return result;
+}
-module.exports = DataView;
+module.exports = stackDelete;
/***/ }),
-/* 239 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_Promise.js ***!
- \*****************************************/
-/*! no static exports found */
+/* 263 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_stackGet.js ***!
+ \******************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/***/ (function(module, exports) {
-var getNative = __webpack_require__(/*! ./_getNative */ 19),
- root = __webpack_require__(/*! ./_root */ 12);
+/**
+ * Gets the stack value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf Stack
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+function stackGet(key) {
+ return this.__data__.get(key);
+}
-/* Built-in method references that are verified to be native. */
-var Promise = getNative(root, 'Promise');
+module.exports = stackGet;
-module.exports = Promise;
+
+/***/ }),
+/* 264 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_stackHas.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * Checks if a stack value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf Stack
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function stackHas(key) {
+ return this.__data__.has(key);
+}
+
+module.exports = stackHas;
/***/ }),
-/* 240 */
-/*!*************************************!*\
- !*** ./node_modules/lodash/_Set.js ***!
- \*************************************/
-/*! no static exports found */
+/* 265 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_stackSet.js ***!
+ \******************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var getNative = __webpack_require__(/*! ./_getNative */ 19),
- root = __webpack_require__(/*! ./_root */ 12);
+var ListCache = __webpack_require__(/*! ./_ListCache */ 45),
+ Map = __webpack_require__(/*! ./_Map */ 73),
+ MapCache = __webpack_require__(/*! ./_MapCache */ 75);
-/* Built-in method references that are verified to be native. */
-var Set = getNative(root, 'Set');
+/** Used as the size to enable large array optimizations. */
+var LARGE_ARRAY_SIZE = 200;
-module.exports = Set;
+/**
+ * Sets the stack `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf Stack
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the stack cache instance.
+ */
+function stackSet(key, value) {
+ var data = this.__data__;
+ if (data instanceof ListCache) {
+ var pairs = data.__data__;
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
+ pairs.push([key, value]);
+ this.size = ++data.size;
+ return this;
+ }
+ data = this.__data__ = new MapCache(pairs);
+ }
+ data.set(key, value);
+ this.size = data.size;
+ return this;
+}
+
+module.exports = stackSet;
/***/ }),
-/* 241 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_WeakMap.js ***!
- \*****************************************/
-/*! no static exports found */
+/* 266 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_baseIsNative.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var getNative = __webpack_require__(/*! ./_getNative */ 19),
- root = __webpack_require__(/*! ./_root */ 12);
+var isFunction = __webpack_require__(/*! ./isFunction */ 144),
+ isMasked = __webpack_require__(/*! ./_isMasked */ 269),
+ isObject = __webpack_require__(/*! ./isObject */ 13),
+ toSource = __webpack_require__(/*! ./_toSource */ 146);
-/* Built-in method references that are verified to be native. */
-var WeakMap = getNative(root, 'WeakMap');
+/**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
+ */
+var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
-module.exports = WeakMap;
+/** Used to detect host constructors (Safari). */
+var reIsHostCtor = /^\[object .+?Constructor\]$/;
+
+/** Used for built-in method references. */
+var funcProto = Function.prototype,
+ objectProto = Object.prototype;
+
+/** Used to resolve the decompiled source of functions. */
+var funcToString = funcProto.toString;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
+
+/** Used to detect if a method is native. */
+var reIsNative = RegExp('^' +
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
+);
+
+/**
+ * The base implementation of `_.isNative` without bad shim checks.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a native function,
+ * else `false`.
+ */
+function baseIsNative(value) {
+ if (!isObject(value) || isMasked(value)) {
+ return false;
+ }
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
+ return pattern.test(toSource(value));
+}
+
+module.exports = baseIsNative;
/***/ }),
-/* 242 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_getMatchData.js ***!
- \**********************************************/
-/*! no static exports found */
+/* 267 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_getRawTag.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 125),
- keys = __webpack_require__(/*! ./keys */ 23);
+var Symbol = __webpack_require__(/*! ./_Symbol */ 27);
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * Gets the property names, values, and compare flags of `object`.
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
+ * of values.
+ */
+var nativeObjectToString = objectProto.toString;
+
+/** Built-in value references. */
+var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
+
+/**
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
*
* @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the match data of `object`.
+ * @param {*} value The value to query.
+ * @returns {string} Returns the raw `toStringTag`.
*/
-function getMatchData(object) {
- var result = keys(object),
- length = result.length;
+function getRawTag(value) {
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
+ tag = value[symToStringTag];
- while (length--) {
- var key = result[length],
- value = object[key];
+ try {
+ value[symToStringTag] = undefined;
+ var unmasked = true;
+ } catch (e) {}
- result[length] = [key, value, isStrictComparable(value)];
+ var result = nativeObjectToString.call(value);
+ if (unmasked) {
+ if (isOwn) {
+ value[symToStringTag] = tag;
+ } else {
+ delete value[symToStringTag];
+ }
}
return result;
}
-module.exports = getMatchData;
+module.exports = getRawTag;
/***/ }),
-/* 243 */
-/*!*****************************************************!*\
- !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
- \*****************************************************/
-/*! no static exports found */
+/* 268 */
+/*!************************************************!*\
+ !*** ./node_modules/lodash/_objectToString.js ***!
+ \************************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
+/***/ (function(module, exports) {
-var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 115),
- get = __webpack_require__(/*! ./get */ 127),
- hasIn = __webpack_require__(/*! ./hasIn */ 247),
- isKey = __webpack_require__(/*! ./_isKey */ 62),
- isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 125),
- matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 126),
- toKey = __webpack_require__(/*! ./_toKey */ 26);
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
+/**
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
+ * of values.
+ */
+var nativeObjectToString = objectProto.toString;
/**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
+ * Converts `value` to a string using `Object.prototype.toString`.
*
* @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
+ * @param {*} value The value to convert.
+ * @returns {string} Returns the converted string.
*/
-function baseMatchesProperty(path, srcValue) {
- if (isKey(path) && isStrictComparable(srcValue)) {
- return matchesStrictComparable(toKey(path), srcValue);
- }
- return function(object) {
- var objValue = get(object, path);
- return (objValue === undefined && objValue === srcValue)
- ? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
- };
+function objectToString(value) {
+ return nativeObjectToString.call(value);
}
-module.exports = baseMatchesProperty;
+module.exports = objectToString;
/***/ }),
-/* 244 */
-/*!**********************************************!*\
- !*** ./node_modules/lodash/_stringToPath.js ***!
- \**********************************************/
-/*! no static exports found */
+/* 269 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_isMasked.js ***!
+ \******************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ 245);
+var coreJsData = __webpack_require__(/*! ./_coreJsData */ 270);
-/** Used to match property names within property paths. */
-var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
-
-/** Used to match backslashes in property paths. */
-var reEscapeChar = /\\(\\)?/g;
+/** Used to detect methods masquerading as native. */
+var maskSrcKey = (function() {
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
+ return uid ? ('Symbol(src)_1.' + uid) : '';
+}());
/**
- * Converts `string` to a property path array.
+ * Checks if `func` has its source masked.
*
* @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
+ * @param {Function} func The function to check.
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
-var stringToPath = memoizeCapped(function(string) {
- var result = [];
- if (string.charCodeAt(0) === 46 /* . */) {
- result.push('');
- }
- string.replace(rePropName, function(match, number, quote, subString) {
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
-});
+function isMasked(func) {
+ return !!maskSrcKey && (maskSrcKey in func);
+}
-module.exports = stringToPath;
+module.exports = isMasked;
/***/ }),
-/* 245 */
-/*!***********************************************!*\
- !*** ./node_modules/lodash/_memoizeCapped.js ***!
- \***********************************************/
-/*! no static exports found */
+/* 270 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_coreJsData.js ***!
+ \********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var memoize = __webpack_require__(/*! ./memoize */ 246);
+var root = __webpack_require__(/*! ./_root */ 12);
+
+/** Used to detect overreaching core-js shims. */
+var coreJsData = root['__core-js_shared__'];
-/** Used as the maximum memoize cache size. */
-var MAX_MEMOIZE_SIZE = 500;
+module.exports = coreJsData;
+
+
+/***/ }),
+/* 271 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_getValue.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
/**
- * A specialized version of `_.memoize` which clears the memoized function's
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
+ * Gets the value at `key` of `object`.
*
* @private
- * @param {Function} func The function to have its output memoized.
- * @returns {Function} Returns the new memoized function.
+ * @param {Object} [object] The object to query.
+ * @param {string} key The key of the property to get.
+ * @returns {*} Returns the property value.
*/
-function memoizeCapped(func) {
- var result = memoize(func, function(key) {
- if (cache.size === MAX_MEMOIZE_SIZE) {
- cache.clear();
- }
- return key;
- });
-
- var cache = result.cache;
- return result;
+function getValue(object, key) {
+ return object == null ? undefined : object[key];
}
-module.exports = memoizeCapped;
+module.exports = getValue;
/***/ }),
-/* 246 */
-/*!****************************************!*\
- !*** ./node_modules/lodash/memoize.js ***!
- \****************************************/
-/*! no static exports found */
+/* 272 */
+/*!***********************************************!*\
+ !*** ./node_modules/lodash/_mapCacheClear.js ***!
+ \***********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var MapCache = __webpack_require__(/*! ./_MapCache */ 55);
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
+var Hash = __webpack_require__(/*! ./_Hash */ 273),
+ ListCache = __webpack_require__(/*! ./_ListCache */ 45),
+ Map = __webpack_require__(/*! ./_Map */ 73);
/**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
- *
- * values(other);
- * // => [3, 4]
- *
- * object.a = 2;
- * values(object);
- * // => [1, 2]
- *
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
+ * Removes all key-value entries from the map.
*
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
+ * @private
+ * @name clear
+ * @memberOf MapCache
*/
-function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
-
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result) || cache;
- return result;
+function mapCacheClear() {
+ this.size = 0;
+ this.__data__ = {
+ 'hash': new Hash,
+ 'map': new (Map || ListCache),
+ 'string': new Hash
};
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
}
-// Expose `MapCache`.
-memoize.Cache = MapCache;
-
-module.exports = memoize;
+module.exports = mapCacheClear;
/***/ }),
-/* 247 */
+/* 273 */
/*!**************************************!*\
- !*** ./node_modules/lodash/hasIn.js ***!
+ !*** ./node_modules/lodash/_Hash.js ***!
\**************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ 248),
- hasPath = __webpack_require__(/*! ./_hasPath */ 249);
+var hashClear = __webpack_require__(/*! ./_hashClear */ 274),
+ hashDelete = __webpack_require__(/*! ./_hashDelete */ 275),
+ hashGet = __webpack_require__(/*! ./_hashGet */ 276),
+ hashHas = __webpack_require__(/*! ./_hashHas */ 277),
+ hashSet = __webpack_require__(/*! ./_hashSet */ 278);
/**
- * Checks if `path` is a direct or inherited property of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.hasIn(object, 'a');
- * // => true
- *
- * _.hasIn(object, 'a.b');
- * // => true
- *
- * _.hasIn(object, ['a', 'b']);
- * // => true
+ * Creates a hash object.
*
- * _.hasIn(object, 'b');
- * // => false
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
*/
-function hasIn(object, path) {
- return object != null && hasPath(object, path, baseHasIn);
+function Hash(entries) {
+ var index = -1,
+ length = entries == null ? 0 : entries.length;
+
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
}
-module.exports = hasIn;
+// Add methods to `Hash`.
+Hash.prototype.clear = hashClear;
+Hash.prototype['delete'] = hashDelete;
+Hash.prototype.get = hashGet;
+Hash.prototype.has = hashHas;
+Hash.prototype.set = hashSet;
+
+module.exports = Hash;
/***/ }),
-/* 248 */
+/* 274 */
/*!*******************************************!*\
- !*** ./node_modules/lodash/_baseHasIn.js ***!
+ !*** ./node_modules/lodash/_hashClear.js ***!
\*******************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 48);
+
+/**
+ * Removes all key-value entries from the hash.
+ *
+ * @private
+ * @name clear
+ * @memberOf Hash
+ */
+function hashClear() {
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
+ this.size = 0;
+}
+
+module.exports = hashClear;
+
+
+/***/ }),
+/* 275 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_hashDelete.js ***!
+ \********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {
/**
- * The base implementation of `_.hasIn` without support for deep paths.
+ * Removes `key` and its value from the hash.
*
* @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
+ * @name delete
+ * @memberOf Hash
+ * @param {Object} hash The hash to modify.
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
-function baseHasIn(object, key) {
- return object != null && key in Object(object);
+function hashDelete(key) {
+ var result = this.has(key) && delete this.__data__[key];
+ this.size -= result ? 1 : 0;
+ return result;
}
-module.exports = baseHasIn;
+module.exports = hashDelete;
/***/ }),
-/* 249 */
+/* 276 */
/*!*****************************************!*\
- !*** ./node_modules/lodash/_hasPath.js ***!
+ !*** ./node_modules/lodash/_hashGet.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var castPath = __webpack_require__(/*! ./_castPath */ 25),
- isArguments = __webpack_require__(/*! ./isArguments */ 58),
- isArray = __webpack_require__(/*! ./isArray */ 14),
- isIndex = __webpack_require__(/*! ./_isIndex */ 40),
- isLength = __webpack_require__(/*! ./isLength */ 61),
- toKey = __webpack_require__(/*! ./_toKey */ 26);
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 48);
+
+/** Used to stand-in for `undefined` hash values. */
+var HASH_UNDEFINED = '__lodash_hash_undefined__';
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * Checks if `path` exists on `object`.
+ * Gets the hash value for `key`.
*
* @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @param {Function} hasFunc The function to check properties.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ * @name get
+ * @memberOf Hash
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
*/
-function hasPath(object, path, hasFunc) {
- path = castPath(path, object);
-
- var index = -1,
- length = path.length,
- result = false;
-
- while (++index < length) {
- var key = toKey(path[index]);
- if (!(result = object != null && hasFunc(object, key))) {
- break;
- }
- object = object[key];
- }
- if (result || ++index != length) {
- return result;
+function hashGet(key) {
+ var data = this.__data__;
+ if (nativeCreate) {
+ var result = data[key];
+ return result === HASH_UNDEFINED ? undefined : result;
}
- length = object == null ? 0 : object.length;
- return !!length && isLength(length) && isIndex(key, length) &&
- (isArray(object) || isArguments(object));
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
}
-module.exports = hasPath;
+module.exports = hashGet;
/***/ }),
-/* 250 */
+/* 277 */
/*!*****************************************!*\
- !*** ./node_modules/lodash/property.js ***!
+ !*** ./node_modules/lodash/_hashHas.js ***!
\*****************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseProperty = __webpack_require__(/*! ./_baseProperty */ 130),
- basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ 251),
- isKey = __webpack_require__(/*! ./_isKey */ 62),
- toKey = __webpack_require__(/*! ./_toKey */ 26);
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 48);
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * Creates a function that returns the value at `path` of a given object.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': 2 } },
- * { 'a': { 'b': 1 } }
- * ];
- *
- * _.map(objects, _.property('a.b'));
- * // => [2, 1]
+ * Checks if a hash value for `key` exists.
*
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
- * // => [1, 2]
+ * @private
+ * @name has
+ * @memberOf Hash
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
-function property(path) {
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
+function hashHas(key) {
+ var data = this.__data__;
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}
-module.exports = property;
+module.exports = hashHas;
/***/ }),
-/* 251 */
-/*!**************************************************!*\
- !*** ./node_modules/lodash/_basePropertyDeep.js ***!
- \**************************************************/
-/*! no static exports found */
+/* 278 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/_hashSet.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseGet = __webpack_require__(/*! ./_baseGet */ 45);
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 48);
+
+/** Used to stand-in for `undefined` hash values. */
+var HASH_UNDEFINED = '__lodash_hash_undefined__';
/**
- * A specialized version of `baseProperty` which supports deep paths.
+ * Sets the hash `key` to `value`.
*
* @private
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
+ * @name set
+ * @memberOf Hash
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the hash instance.
*/
-function basePropertyDeep(path) {
- return function(object) {
- return baseGet(object, path);
- };
+function hashSet(key, value) {
+ var data = this.__data__;
+ this.size += this.has(key) ? 0 : 1;
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
+ return this;
}
-module.exports = basePropertyDeep;
+module.exports = hashSet;
/***/ }),
-/* 252 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_baseMap.js ***!
- \*****************************************/
-/*! no static exports found */
+/* 279 */
+/*!************************************************!*\
+ !*** ./node_modules/lodash/_mapCacheDelete.js ***!
+ \************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseEach = __webpack_require__(/*! ./_baseEach */ 253),
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24);
+var getMapData = __webpack_require__(/*! ./_getMapData */ 49);
/**
- * The base implementation of `_.map` without support for iteratee shorthands.
+ * Removes `key` and its value from the map.
*
* @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
+ * @name delete
+ * @memberOf MapCache
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
-function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
+function mapCacheDelete(key) {
+ var result = getMapData(this, key)['delete'](key);
+ this.size -= result ? 1 : 0;
return result;
}
-module.exports = baseMap;
+module.exports = mapCacheDelete;
/***/ }),
-/* 253 */
-/*!******************************************!*\
- !*** ./node_modules/lodash/_baseEach.js ***!
- \******************************************/
-/*! no static exports found */
+/* 280 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_isKeyable.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports, __webpack_require__) {
-
-var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ 254),
- createBaseEach = __webpack_require__(/*! ./_createBaseEach */ 257);
+/***/ (function(module, exports) {
/**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
+ * Checks if `value` is suitable for use as unique object key.
*
* @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
-var baseEach = createBaseEach(baseForOwn);
+function isKeyable(value) {
+ var type = typeof value;
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
+ ? (value !== '__proto__')
+ : (value === null);
+}
-module.exports = baseEach;
+module.exports = isKeyable;
/***/ }),
-/* 254 */
-/*!********************************************!*\
- !*** ./node_modules/lodash/_baseForOwn.js ***!
- \********************************************/
-/*! no static exports found */
+/* 281 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_mapCacheGet.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var baseFor = __webpack_require__(/*! ./_baseFor */ 255),
- keys = __webpack_require__(/*! ./keys */ 23);
+var getMapData = __webpack_require__(/*! ./_getMapData */ 49);
/**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
+ * Gets the map value for `key`.
*
* @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
+ * @name get
+ * @memberOf MapCache
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
*/
-function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
+function mapCacheGet(key) {
+ return getMapData(this, key).get(key);
}
-module.exports = baseForOwn;
+module.exports = mapCacheGet;
/***/ }),
-/* 255 */
-/*!*****************************************!*\
- !*** ./node_modules/lodash/_baseFor.js ***!
- \*****************************************/
-/*! no static exports found */
+/* 282 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_mapCacheHas.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ 256);
+var getMapData = __webpack_require__(/*! ./_getMapData */ 49);
/**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
+ * Checks if a map value for `key` exists.
*
* @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
+ * @name has
+ * @memberOf MapCache
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
-var baseFor = createBaseFor();
+function mapCacheHas(key) {
+ return getMapData(this, key).has(key);
+}
-module.exports = baseFor;
+module.exports = mapCacheHas;
/***/ }),
-/* 256 */
-/*!***********************************************!*\
- !*** ./node_modules/lodash/_createBaseFor.js ***!
- \***********************************************/
-/*! no static exports found */
+/* 283 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_mapCacheSet.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
/*! all exports used */
-/***/ (function(module, exports) {
+/***/ (function(module, exports, __webpack_require__) {
+
+var getMapData = __webpack_require__(/*! ./_getMapData */ 49);
/**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
+ * Sets the map `key` to `value`.
*
* @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
+ * @name set
+ * @memberOf MapCache
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the map cache instance.
*/
-function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
+function mapCacheSet(key, value) {
+ var data = getMapData(this, key),
+ size = data.size;
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
+ data.set(key, value);
+ this.size += data.size == size ? 0 : 1;
+ return this;
}
-module.exports = createBaseFor;
+module.exports = mapCacheSet;
/***/ }),
-/* 257 */
-/*!************************************************!*\
- !*** ./node_modules/lodash/_createBaseEach.js ***!
- \************************************************/
-/*! no static exports found */
+/* 284 */
+/*!*************************************************!*\
+ !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
+ \*************************************************/
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24);
+var Stack = __webpack_require__(/*! ./_Stack */ 72),
+ equalArrays = __webpack_require__(/*! ./_equalArrays */ 148),
+ equalByTag = __webpack_require__(/*! ./_equalByTag */ 290),
+ equalObjects = __webpack_require__(/*! ./_equalObjects */ 293),
+ getTag = __webpack_require__(/*! ./_getTag */ 54),
+ isArray = __webpack_require__(/*! ./isArray */ 14),
+ isBuffer = __webpack_require__(/*! ./isBuffer */ 79),
+ isTypedArray = __webpack_require__(/*! ./isTypedArray */ 155);
+
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1;
+
+/** `Object#toString` result references. */
+var argsTag = '[object Arguments]',
+ arrayTag = '[object Array]',
+ objectTag = '[object Object]';
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * Creates a `baseEach` or `baseEachRight` function.
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
+ * deep comparisons and tracks traversed objects enabling objects with circular
+ * references to be compared.
*
* @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
-function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
-}
+function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
+ var objIsArr = isArray(object),
+ othIsArr = isArray(other),
+ objTag = objIsArr ? arrayTag : getTag(object),
+ othTag = othIsArr ? arrayTag : getTag(other);
-module.exports = createBaseEach;
+ objTag = objTag == argsTag ? objectTag : objTag;
+ othTag = othTag == argsTag ? objectTag : othTag;
+ var objIsObj = objTag == objectTag,
+ othIsObj = othTag == objectTag,
+ isSameTag = objTag == othTag;
-/***/ }),
-/* 258 */
-/*!********************************************!*\
- !*** ./src/components/typography/fonts.js ***!
+ if (isSameTag && isBuffer(object)) {
+ if (!isBuffer(other)) {
+ return false;
+ }
+ objIsArr = true;
+ objIsObj = false;
+ }
+ if (isSameTag && !objIsObj) {
+ stack || (stack = new Stack);
+ return (objIsArr || isTypedArray(object))
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
+ }
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
+
+ if (objIsWrapped || othIsWrapped) {
+ var objUnwrapped = objIsWrapped ? object.value() : object,
+ othUnwrapped = othIsWrapped ? other.value() : other;
+
+ stack || (stack = new Stack);
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
+ }
+ }
+ if (!isSameTag) {
+ return false;
+ }
+ stack || (stack = new Stack);
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
+}
+
+module.exports = baseIsEqualDeep;
+
+
+/***/ }),
+/* 285 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_SetCache.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var MapCache = __webpack_require__(/*! ./_MapCache */ 75),
+ setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ 286),
+ setCacheHas = __webpack_require__(/*! ./_setCacheHas */ 287);
+
+/**
+ *
+ * Creates an array cache object to store unique values.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [values] The values to cache.
+ */
+function SetCache(values) {
+ var index = -1,
+ length = values == null ? 0 : values.length;
+
+ this.__data__ = new MapCache;
+ while (++index < length) {
+ this.add(values[index]);
+ }
+}
+
+// Add methods to `SetCache`.
+SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
+SetCache.prototype.has = setCacheHas;
+
+module.exports = SetCache;
+
+
+/***/ }),
+/* 286 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_setCacheAdd.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/** Used to stand-in for `undefined` hash values. */
+var HASH_UNDEFINED = '__lodash_hash_undefined__';
+
+/**
+ * Adds `value` to the array cache.
+ *
+ * @private
+ * @name add
+ * @memberOf SetCache
+ * @alias push
+ * @param {*} value The value to cache.
+ * @returns {Object} Returns the cache instance.
+ */
+function setCacheAdd(value) {
+ this.__data__.set(value, HASH_UNDEFINED);
+ return this;
+}
+
+module.exports = setCacheAdd;
+
+
+/***/ }),
+/* 287 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_setCacheHas.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * Checks if `value` is in the array cache.
+ *
+ * @private
+ * @name has
+ * @memberOf SetCache
+ * @param {*} value The value to search for.
+ * @returns {number} Returns `true` if `value` is found, else `false`.
+ */
+function setCacheHas(value) {
+ return this.__data__.has(value);
+}
+
+module.exports = setCacheHas;
+
+
+/***/ }),
+/* 288 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_arraySome.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * A specialized version of `_.some` for arrays without support for iteratee
+ * shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
+ */
+function arraySome(array, predicate) {
+ var index = -1,
+ length = array == null ? 0 : array.length;
+
+ while (++index < length) {
+ if (predicate(array[index], index, array)) {
+ return true;
+ }
+ }
+ return false;
+}
+
+module.exports = arraySome;
+
+
+/***/ }),
+/* 289 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_cacheHas.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * Checks if a `cache` value for `key` exists.
+ *
+ * @private
+ * @param {Object} cache The cache to query.
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function cacheHas(cache, key) {
+ return cache.has(key);
+}
+
+module.exports = cacheHas;
+
+
+/***/ }),
+/* 290 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_equalByTag.js ***!
\********************************************/
-/*! exports provided: default */
-/*! exports used: default */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
-"use strict";
-/**
- * Google Fonts for the FontFamily component.
+var Symbol = __webpack_require__(/*! ./_Symbol */ 27),
+ Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 149),
+ eq = __webpack_require__(/*! ./eq */ 47),
+ equalArrays = __webpack_require__(/*! ./_equalArrays */ 148),
+ mapToArray = __webpack_require__(/*! ./_mapToArray */ 291),
+ setToArray = __webpack_require__(/*! ./_setToArray */ 292);
+
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1,
+ COMPARE_UNORDERED_FLAG = 2;
+
+/** `Object#toString` result references. */
+var boolTag = '[object Boolean]',
+ dateTag = '[object Date]',
+ errorTag = '[object Error]',
+ mapTag = '[object Map]',
+ numberTag = '[object Number]',
+ regexpTag = '[object RegExp]',
+ setTag = '[object Set]',
+ stringTag = '[object String]',
+ symbolTag = '[object Symbol]';
+
+var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]';
+
+/** Used to convert symbols to primitives and strings. */
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
+
+/**
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
+ * the same `toStringTag`.
+ *
+ * **Note:** This function only supports comparing values with tags of
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {string} tag The `toStringTag` of the objects to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
+function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
+ switch (tag) {
+ case dataViewTag:
+ if ((object.byteLength != other.byteLength) ||
+ (object.byteOffset != other.byteOffset)) {
+ return false;
+ }
+ object = object.buffer;
+ other = other.buffer;
-var fonts = {};
-fonts["ABeeZee"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
-fonts["Abel"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Abhaya Libre"] = { "v": ["regular", "500", "600", "700", "800"], "subset": ["latin-ext", "sinhala", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal"] };
-fonts["Abril Fatface"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Aclonica"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Acme"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Actor"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Adamina"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Advent Pro"] = { "v": ["100", "200", "300", "regular", "500", "600", "700"], "subset": ["latin-ext", "greek", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700"], "i": ["normal"] };
-fonts["Aguafina Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Akronim"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Aladin"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Aldrich"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Alef"] = { "v": ["regular", "700"], "subset": ["hebrew", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Alegreya"] = { "v": ["regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Alegreya SC"] = { "v": ["regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Alegreya Sans"] = { "v": ["100", "100italic", "300", "300italic", "regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["100", "300", "400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Alegreya Sans SC"] = { "v": ["100", "100italic", "300", "300italic", "regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["100", "300", "400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Alex Brush"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Alfa Slab One"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Alice"] = { "v": ["regular"], "subset": ["cyrillic", "cyrillic-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Alike"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Alike Angular"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Allan"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Allerta"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Allerta Stencil"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Allura"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Almendra"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Almendra Display"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Almendra SC"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Amarante"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Amaranth"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Amatic SC"] = { "v": ["regular", "700"], "subset": ["cyrillic", "latin-ext", "hebrew", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Amethysta"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Amiko"] = { "v": ["regular", "600", "700"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "600", "700"], "i": ["normal"] };
-fonts["Amiri"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "arabic", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Amita"] = { "v": ["regular", "700"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Anaheim"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Andada"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Andika"] = { "v": ["regular"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Angkor"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
-fonts["Annie Use Your Telescope"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Anonymous Pro"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "latin-ext", "greek", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Antic"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Antic Didone"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Antic Slab"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Anton"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Arapey"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
-fonts["Arbutus"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Arbutus Slab"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Architects Daughter"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Archivo"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Archivo Black"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Archivo Narrow"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Aref Ruqaa"] = { "v": ["regular", "700"], "subset": ["arabic", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Arima Madurai"] = { "v": ["100", "200", "300", "regular", "500", "700", "800", "900"], "subset": ["latin-ext", "tamil", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "700", "800", "900"], "i": ["normal"] };
-fonts["Arimo"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "hebrew", "greek", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Arizonia"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Armata"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Arsenal"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Artifika"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Arvo"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Arya"] = { "v": ["regular", "700"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Asap"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Asap Condensed"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Asar"] = { "v": ["regular"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Asset"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Assistant"] = { "v": ["200", "300", "regular", "600", "700", "800"], "subset": ["hebrew", "latin"], "weight": ["200", "300", "400", "600", "700", "800"], "i": ["normal"] };
-fonts["Astloch"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Asul"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Athiti"] = { "v": ["200", "300", "regular", "500", "600", "700"], "subset": ["latin-ext", "thai", "vietnamese", "latin"], "weight": ["200", "300", "400", "500", "600", "700"], "i": ["normal"] };
-fonts["Atma"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["latin-ext", "bengali", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
-fonts["Atomic Age"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Aubrey"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Audiowide"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Autour One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Average"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Average Sans"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Averia Gruesa Libre"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Averia Libre"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["300", "400", "700"], "i": ["normal", "italic"] };
-fonts["Averia Sans Libre"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["300", "400", "700"], "i": ["normal", "italic"] };
-fonts["Averia Serif Libre"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["300", "400", "700"], "i": ["normal", "italic"] };
-fonts["Bad Script"] = { "v": ["regular"], "subset": ["cyrillic", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bahiana"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo"] = { "v": ["regular"], "subset": ["latin-ext", "devanagari", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Bhai"] = { "v": ["regular"], "subset": ["latin-ext", "gujarati", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Bhaijaan"] = { "v": ["regular"], "subset": ["latin-ext", "arabic", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Bhaina"] = { "v": ["regular"], "subset": ["latin-ext", "oriya", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Chettan"] = { "v": ["regular"], "subset": ["malayalam", "latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Da"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "bengali", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Paaji"] = { "v": ["regular"], "subset": ["latin-ext", "gurmukhi", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Tamma"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin", "kannada"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Tammudu"] = { "v": ["regular"], "subset": ["latin-ext", "telugu", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Baloo Thambi"] = { "v": ["regular"], "subset": ["latin-ext", "tamil", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Balthazar"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bangers"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Barlow"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Barlow Condensed"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Barlow Semi Condensed"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Barrio"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Basic"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Battambang"] = { "v": ["regular", "700"], "subset": ["khmer"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Baumans"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bayon"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
-fonts["Belgrano"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bellefair"] = { "v": ["regular"], "subset": ["latin-ext", "hebrew", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Belleza"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["BenchNine"] = { "v": ["300", "regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["300", "400", "700"], "i": ["normal"] };
-fonts["Bentham"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Berkshire Swash"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bevan"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bigelow Rules"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bigshot One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bilbo"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bilbo Swash Caps"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["BioRhyme"] = { "v": ["200", "300", "regular", "700", "800"], "subset": ["latin-ext", "latin"], "weight": ["200", "300", "400", "700", "800"], "i": ["normal"] };
-fonts["BioRhyme Expanded"] = { "v": ["200", "300", "regular", "700", "800"], "subset": ["latin-ext", "latin"], "weight": ["200", "300", "400", "700", "800"], "i": ["normal"] };
-fonts["Biryani"] = { "v": ["200", "300", "regular", "600", "700", "800", "900"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["200", "300", "400", "600", "700", "800", "900"], "i": ["normal"] };
-fonts["Bitter"] = { "v": ["regular", "italic", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Black And White Picture"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Black Han Sans"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Black Ops One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bokor"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
-fonts["Bonbon"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Boogaloo"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bowlby One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bowlby One SC"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Brawler"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bree Serif"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bubblegum Sans"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bubbler One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Buda"] = { "v": ["300"], "subset": ["latin"], "weight": ["300"], "i": [] };
-fonts["Buenard"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Bungee"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bungee Hairline"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bungee Inline"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bungee Outline"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Bungee Shade"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Butcherman"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Butterfly Kids"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cabin"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Cabin Condensed"] = { "v": ["regular", "500", "600", "700"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal"] };
-fonts["Cabin Sketch"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Caesar Dressing"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cagliostro"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cairo"] = { "v": ["200", "300", "regular", "600", "700", "900"], "subset": ["latin-ext", "arabic", "latin"], "weight": ["200", "300", "400", "600", "700", "900"], "i": ["normal"] };
-fonts["Calligraffitti"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cambay"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Cambo"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Candal"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cantarell"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Cantata One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cantora One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Capriola"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cardo"] = { "v": ["regular", "italic", "700"], "subset": ["greek-ext", "latin-ext", "greek", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Carme"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Carrois Gothic"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Carrois Gothic SC"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Carter One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Catamaran"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "tamil", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
-fonts["Caudex"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["greek-ext", "latin-ext", "greek", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Caveat"] = { "v": ["regular", "700"], "subset": ["cyrillic", "latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Caveat Brush"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cedarville Cursive"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Ceviche One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Changa"] = { "v": ["200", "300", "regular", "500", "600", "700", "800"], "subset": ["latin-ext", "arabic", "latin"], "weight": ["200", "300", "400", "500", "600", "700", "800"], "i": ["normal"] };
-fonts["Changa One"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
-fonts["Chango"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Chathura"] = { "v": ["100", "300", "regular", "700", "800"], "subset": ["telugu", "latin"], "weight": ["100", "300", "400", "700", "800"], "i": ["normal"] };
-fonts["Chau Philomene One"] = { "v": ["regular", "italic"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal", "italic"] };
-fonts["Chela One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Chelsea Market"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Chenla"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
-fonts["Cherry Cream Soda"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cherry Swash"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Chewy"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Chicle"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Chivo"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["300", "400", "700", "900"], "i": ["normal", "italic"] };
-fonts["Chonburi"] = { "v": ["regular"], "subset": ["latin-ext", "thai", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cinzel"] = { "v": ["regular", "700", "900"], "subset": ["latin-ext", "latin"], "weight": ["400", "700", "900"], "i": ["normal"] };
-fonts["Cinzel Decorative"] = { "v": ["regular", "700", "900"], "subset": ["latin"], "weight": ["400", "700", "900"], "i": ["normal"] };
-fonts["Clicker Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Coda"] = { "v": ["regular", "800"], "subset": ["latin-ext", "latin"], "weight": ["400", "800"], "i": ["normal"] };
-fonts["Coda Caption"] = { "v": ["800"], "subset": ["latin-ext", "latin"], "weight": ["800"], "i": [] };
-fonts["Codystar"] = { "v": ["300", "regular"], "subset": ["latin-ext", "latin"], "weight": ["300", "400"], "i": ["normal"] };
-fonts["Coiny"] = { "v": ["regular"], "subset": ["latin-ext", "tamil", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Combo"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Comfortaa"] = { "v": ["300", "regular", "700"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["300", "400", "700"], "i": ["normal"] };
-fonts["Coming Soon"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Concert One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Condiment"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Content"] = { "v": ["regular", "700"], "subset": ["khmer"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Contrail One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Convergence"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cookie"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Copse"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Corben"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Cormorant"] = { "v": ["300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Cormorant Garamond"] = { "v": ["300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Cormorant Infant"] = { "v": ["300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Cormorant SC"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
-fonts["Cormorant Unicase"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
-fonts["Cormorant Upright"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
-fonts["Courgette"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cousine"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "hebrew", "greek", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Coustard"] = { "v": ["regular", "900"], "subset": ["latin"], "weight": ["400", "900"], "i": ["normal"] };
-fonts["Covered By Your Grace"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Crafty Girls"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Creepster"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Crete Round"] = { "v": ["regular", "italic"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal", "italic"] };
-fonts["Crimson Text"] = { "v": ["regular", "italic", "600", "600italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "600", "700"], "i": ["normal", "italic"] };
-fonts["Croissant One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Crushed"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cuprum"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Cute Font"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cutive"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Cutive Mono"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Damion"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Dancing Script"] = { "v": ["regular", "700"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Dangrek"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
-fonts["David Libre"] = { "v": ["regular", "500", "700"], "subset": ["latin-ext", "hebrew", "vietnamese", "latin"], "weight": ["400", "500", "700"], "i": ["normal"] };
-fonts["Dawning of a New Day"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Days One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Dekko"] = { "v": ["regular"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Delius"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Delius Swash Caps"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Delius Unicase"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Della Respira"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Denk One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Devonshire"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Dhurjati"] = { "v": ["regular"], "subset": ["telugu", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Didact Gothic"] = { "v": ["regular"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Diplomata"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Diplomata SC"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Do Hyeon"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Dokdo"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Domine"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Donegal One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Doppio One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Dorsa"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Dosis"] = { "v": ["200", "300", "regular", "500", "600", "700", "800"], "subset": ["latin-ext", "latin"], "weight": ["200", "300", "400", "500", "600", "700", "800"], "i": ["normal"] };
-fonts["Dr Sugiyama"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Duru Sans"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Dynalight"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["EB Garamond"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal", "italic"] };
-fonts["Eagle Lake"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["East Sea Dokdo"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Eater"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Economica"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
-fonts["Eczar"] = { "v": ["regular", "500", "600", "700", "800"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal"] };
-fonts["El Messiri"] = { "v": ["regular", "500", "600", "700"], "subset": ["cyrillic", "arabic", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal"] };
-fonts["Electrolize"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Elsie"] = { "v": ["regular", "900"], "subset": ["latin-ext", "latin"], "weight": ["400", "900"], "i": ["normal"] };
-fonts["Elsie Swash Caps"] = { "v": ["regular", "900"], "subset": ["latin-ext", "latin"], "weight": ["400", "900"], "i": ["normal"] };
-fonts["Emblema One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Emilys Candy"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Encode Sans"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
-fonts["Encode Sans Condensed"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
-fonts["Encode Sans Expanded"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
-fonts["Encode Sans Semi Condensed"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
-fonts["Encode Sans Semi Expanded"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
-fonts["Engagement"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Englebert"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Enriqueta"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
-fonts["Erica One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Esteban"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Euphoria Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Ewert"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
-fonts["Exo"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Exo 2"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
-fonts["Expletus Sans"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
-fonts["Fanwood Text"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
+ case arrayBufferTag:
+ if ((object.byteLength != other.byteLength) ||
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
+ return false;
+ }
+ return true;
+
+ case boolTag:
+ case dateTag:
+ case numberTag:
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
+ // Invalid dates are coerced to `NaN`.
+ return eq(+object, +other);
+
+ case errorTag:
+ return object.name == other.name && object.message == other.message;
+
+ case regexpTag:
+ case stringTag:
+ // Coerce regexes to strings and treat strings, primitives and objects,
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
+ // for more details.
+ return object == (other + '');
+
+ case mapTag:
+ var convert = mapToArray;
+
+ case setTag:
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
+ convert || (convert = setToArray);
+
+ if (object.size != other.size && !isPartial) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked) {
+ return stacked == other;
+ }
+ bitmask |= COMPARE_UNORDERED_FLAG;
+
+ // Recursively compare objects (susceptible to call stack limits).
+ stack.set(object, other);
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
+ stack['delete'](object);
+ return result;
+
+ case symbolTag:
+ if (symbolValueOf) {
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
+ }
+ }
+ return false;
+}
+
+module.exports = equalByTag;
+
+
+/***/ }),
+/* 291 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_mapToArray.js ***!
+ \********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * Converts `map` to its key-value pairs.
+ *
+ * @private
+ * @param {Object} map The map to convert.
+ * @returns {Array} Returns the key-value pairs.
+ */
+function mapToArray(map) {
+ var index = -1,
+ result = Array(map.size);
+
+ map.forEach(function(value, key) {
+ result[++index] = [key, value];
+ });
+ return result;
+}
+
+module.exports = mapToArray;
+
+
+/***/ }),
+/* 292 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_setToArray.js ***!
+ \********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * Converts `set` to an array of its values.
+ *
+ * @private
+ * @param {Object} set The set to convert.
+ * @returns {Array} Returns the values.
+ */
+function setToArray(set) {
+ var index = -1,
+ result = Array(set.size);
+
+ set.forEach(function(value) {
+ result[++index] = value;
+ });
+ return result;
+}
+
+module.exports = setToArray;
+
+
+/***/ }),
+/* 293 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_equalObjects.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ 150);
+
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1;
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
+
+/**
+ * A specialized version of `baseIsEqualDeep` for objects with support for
+ * partial deep comparisons.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
+ objProps = getAllKeys(object),
+ objLength = objProps.length,
+ othProps = getAllKeys(other),
+ othLength = othProps.length;
+
+ if (objLength != othLength && !isPartial) {
+ return false;
+ }
+ var index = objLength;
+ while (index--) {
+ var key = objProps[index];
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
+ return false;
+ }
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked && stack.get(other)) {
+ return stacked == other;
+ }
+ var result = true;
+ stack.set(object, other);
+ stack.set(other, object);
+
+ var skipCtor = isPartial;
+ while (++index < objLength) {
+ key = objProps[index];
+ var objValue = object[key],
+ othValue = other[key];
+
+ if (customizer) {
+ var compared = isPartial
+ ? customizer(othValue, objValue, key, other, object, stack)
+ : customizer(objValue, othValue, key, object, other, stack);
+ }
+ // Recursively compare objects (susceptible to call stack limits).
+ if (!(compared === undefined
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
+ : compared
+ )) {
+ result = false;
+ break;
+ }
+ skipCtor || (skipCtor = key == 'constructor');
+ }
+ if (result && !skipCtor) {
+ var objCtor = object.constructor,
+ othCtor = other.constructor;
+
+ // Non `Object` object instances with different constructors are not equal.
+ if (objCtor != othCtor &&
+ ('constructor' in object && 'constructor' in other) &&
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
+ result = false;
+ }
+ }
+ stack['delete'](object);
+ stack['delete'](other);
+ return result;
+}
+
+module.exports = equalObjects;
+
+
+/***/ }),
+/* 294 */
+/*!*********************************************!*\
+ !*** ./node_modules/lodash/_arrayFilter.js ***!
+ \*********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * A specialized version of `_.filter` for arrays without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {Array} Returns the new filtered array.
+ */
+function arrayFilter(array, predicate) {
+ var index = -1,
+ length = array == null ? 0 : array.length,
+ resIndex = 0,
+ result = [];
+
+ while (++index < length) {
+ var value = array[index];
+ if (predicate(value, index, array)) {
+ result[resIndex++] = value;
+ }
+ }
+ return result;
+}
+
+module.exports = arrayFilter;
+
+
+/***/ }),
+/* 295 */
+/*!*************************************************!*\
+ !*** ./node_modules/lodash/_baseIsArguments.js ***!
+ \*************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22),
+ isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18);
+
+/** `Object#toString` result references. */
+var argsTag = '[object Arguments]';
+
+/**
+ * The base implementation of `_.isArguments`.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+ */
+function baseIsArguments(value) {
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
+}
+
+module.exports = baseIsArguments;
+
+
+/***/ }),
+/* 296 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/stubFalse.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * This method returns `false`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.13.0
+ * @category Util
+ * @returns {boolean} Returns `false`.
+ * @example
+ *
+ * _.times(2, _.stubFalse);
+ * // => [false, false]
+ */
+function stubFalse() {
+ return false;
+}
+
+module.exports = stubFalse;
+
+
+/***/ }),
+/* 297 */
+/*!**************************************************!*\
+ !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
+ \**************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22),
+ isLength = __webpack_require__(/*! ./isLength */ 81),
+ isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18);
+
+/** `Object#toString` result references. */
+var argsTag = '[object Arguments]',
+ arrayTag = '[object Array]',
+ boolTag = '[object Boolean]',
+ dateTag = '[object Date]',
+ errorTag = '[object Error]',
+ funcTag = '[object Function]',
+ mapTag = '[object Map]',
+ numberTag = '[object Number]',
+ objectTag = '[object Object]',
+ regexpTag = '[object RegExp]',
+ setTag = '[object Set]',
+ stringTag = '[object String]',
+ weakMapTag = '[object WeakMap]';
+
+var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]',
+ float32Tag = '[object Float32Array]',
+ float64Tag = '[object Float64Array]',
+ int8Tag = '[object Int8Array]',
+ int16Tag = '[object Int16Array]',
+ int32Tag = '[object Int32Array]',
+ uint8Tag = '[object Uint8Array]',
+ uint8ClampedTag = '[object Uint8ClampedArray]',
+ uint16Tag = '[object Uint16Array]',
+ uint32Tag = '[object Uint32Array]';
+
+/** Used to identify `toStringTag` values of typed arrays. */
+var typedArrayTags = {};
+typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
+typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
+typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
+typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
+typedArrayTags[uint32Tag] = true;
+typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
+typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
+typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
+typedArrayTags[errorTag] = typedArrayTags[funcTag] =
+typedArrayTags[mapTag] = typedArrayTags[numberTag] =
+typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
+typedArrayTags[setTag] = typedArrayTags[stringTag] =
+typedArrayTags[weakMapTag] = false;
+
+/**
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+ */
+function baseIsTypedArray(value) {
+ return isObjectLike(value) &&
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
+}
+
+module.exports = baseIsTypedArray;
+
+
+/***/ }),
+/* 298 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_baseKeys.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var isPrototype = __webpack_require__(/*! ./_isPrototype */ 53),
+ nativeKeys = __webpack_require__(/*! ./_nativeKeys */ 299);
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
+
+/**
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ */
+function baseKeys(object) {
+ if (!isPrototype(object)) {
+ return nativeKeys(object);
+ }
+ var result = [];
+ for (var key in Object(object)) {
+ if (hasOwnProperty.call(object, key) && key != 'constructor') {
+ result.push(key);
+ }
+ }
+ return result;
+}
+
+module.exports = baseKeys;
+
+
+/***/ }),
+/* 299 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_nativeKeys.js ***!
+ \********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var overArg = __webpack_require__(/*! ./_overArg */ 156);
+
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeKeys = overArg(Object.keys, Object);
+
+module.exports = nativeKeys;
+
+
+/***/ }),
+/* 300 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_DataView.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var getNative = __webpack_require__(/*! ./_getNative */ 21),
+ root = __webpack_require__(/*! ./_root */ 12);
+
+/* Built-in method references that are verified to be native. */
+var DataView = getNative(root, 'DataView');
+
+module.exports = DataView;
+
+
+/***/ }),
+/* 301 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/_Promise.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var getNative = __webpack_require__(/*! ./_getNative */ 21),
+ root = __webpack_require__(/*! ./_root */ 12);
+
+/* Built-in method references that are verified to be native. */
+var Promise = getNative(root, 'Promise');
+
+module.exports = Promise;
+
+
+/***/ }),
+/* 302 */
+/*!*************************************!*\
+ !*** ./node_modules/lodash/_Set.js ***!
+ \*************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var getNative = __webpack_require__(/*! ./_getNative */ 21),
+ root = __webpack_require__(/*! ./_root */ 12);
+
+/* Built-in method references that are verified to be native. */
+var Set = getNative(root, 'Set');
+
+module.exports = Set;
+
+
+/***/ }),
+/* 303 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/_WeakMap.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var getNative = __webpack_require__(/*! ./_getNative */ 21),
+ root = __webpack_require__(/*! ./_root */ 12);
+
+/* Built-in method references that are verified to be native. */
+var WeakMap = getNative(root, 'WeakMap');
+
+module.exports = WeakMap;
+
+
+/***/ }),
+/* 304 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_getMatchData.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 157),
+ keys = __webpack_require__(/*! ./keys */ 28);
+
+/**
+ * Gets the property names, values, and compare flags of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the match data of `object`.
+ */
+function getMatchData(object) {
+ var result = keys(object),
+ length = result.length;
+
+ while (length--) {
+ var key = result[length],
+ value = object[key];
+
+ result[length] = [key, value, isStrictComparable(value)];
+ }
+ return result;
+}
+
+module.exports = getMatchData;
+
+
+/***/ }),
+/* 305 */
+/*!*****************************************************!*\
+ !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
+ \*****************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 147),
+ get = __webpack_require__(/*! ./get */ 159),
+ hasIn = __webpack_require__(/*! ./hasIn */ 309),
+ isKey = __webpack_require__(/*! ./_isKey */ 82),
+ isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 157),
+ matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 158),
+ toKey = __webpack_require__(/*! ./_toKey */ 31);
+
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1,
+ COMPARE_UNORDERED_FLAG = 2;
+
+/**
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
+ *
+ * @private
+ * @param {string} path The path of the property to get.
+ * @param {*} srcValue The value to match.
+ * @returns {Function} Returns the new spec function.
+ */
+function baseMatchesProperty(path, srcValue) {
+ if (isKey(path) && isStrictComparable(srcValue)) {
+ return matchesStrictComparable(toKey(path), srcValue);
+ }
+ return function(object) {
+ var objValue = get(object, path);
+ return (objValue === undefined && objValue === srcValue)
+ ? hasIn(object, path)
+ : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
+ };
+}
+
+module.exports = baseMatchesProperty;
+
+
+/***/ }),
+/* 306 */
+/*!**********************************************!*\
+ !*** ./node_modules/lodash/_stringToPath.js ***!
+ \**********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ 307);
+
+/** Used to match property names within property paths. */
+var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
+
+/** Used to match backslashes in property paths. */
+var reEscapeChar = /\\(\\)?/g;
+
+/**
+ * Converts `string` to a property path array.
+ *
+ * @private
+ * @param {string} string The string to convert.
+ * @returns {Array} Returns the property path array.
+ */
+var stringToPath = memoizeCapped(function(string) {
+ var result = [];
+ if (string.charCodeAt(0) === 46 /* . */) {
+ result.push('');
+ }
+ string.replace(rePropName, function(match, number, quote, subString) {
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
+ });
+ return result;
+});
+
+module.exports = stringToPath;
+
+
+/***/ }),
+/* 307 */
+/*!***********************************************!*\
+ !*** ./node_modules/lodash/_memoizeCapped.js ***!
+ \***********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var memoize = __webpack_require__(/*! ./memoize */ 308);
+
+/** Used as the maximum memoize cache size. */
+var MAX_MEMOIZE_SIZE = 500;
+
+/**
+ * A specialized version of `_.memoize` which clears the memoized function's
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
+ *
+ * @private
+ * @param {Function} func The function to have its output memoized.
+ * @returns {Function} Returns the new memoized function.
+ */
+function memoizeCapped(func) {
+ var result = memoize(func, function(key) {
+ if (cache.size === MAX_MEMOIZE_SIZE) {
+ cache.clear();
+ }
+ return key;
+ });
+
+ var cache = result.cache;
+ return result;
+}
+
+module.exports = memoizeCapped;
+
+
+/***/ }),
+/* 308 */
+/*!****************************************!*\
+ !*** ./node_modules/lodash/memoize.js ***!
+ \****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var MapCache = __webpack_require__(/*! ./_MapCache */ 75);
+
+/** Error message constants. */
+var FUNC_ERROR_TEXT = 'Expected a function';
+
+/**
+ * Creates a function that memoizes the result of `func`. If `resolver` is
+ * provided, it determines the cache key for storing the result based on the
+ * arguments provided to the memoized function. By default, the first argument
+ * provided to the memoized function is used as the map cache key. The `func`
+ * is invoked with the `this` binding of the memoized function.
+ *
+ * **Note:** The cache is exposed as the `cache` property on the memoized
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
+ * constructor with one whose instances implement the
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Function
+ * @param {Function} func The function to have its output memoized.
+ * @param {Function} [resolver] The function to resolve the cache key.
+ * @returns {Function} Returns the new memoized function.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': 2 };
+ * var other = { 'c': 3, 'd': 4 };
+ *
+ * var values = _.memoize(_.values);
+ * values(object);
+ * // => [1, 2]
+ *
+ * values(other);
+ * // => [3, 4]
+ *
+ * object.a = 2;
+ * values(object);
+ * // => [1, 2]
+ *
+ * // Modify the result cache.
+ * values.cache.set(object, ['a', 'b']);
+ * values(object);
+ * // => ['a', 'b']
+ *
+ * // Replace `_.memoize.Cache`.
+ * _.memoize.Cache = WeakMap;
+ */
+function memoize(func, resolver) {
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
+ throw new TypeError(FUNC_ERROR_TEXT);
+ }
+ var memoized = function() {
+ var args = arguments,
+ key = resolver ? resolver.apply(this, args) : args[0],
+ cache = memoized.cache;
+
+ if (cache.has(key)) {
+ return cache.get(key);
+ }
+ var result = func.apply(this, args);
+ memoized.cache = cache.set(key, result) || cache;
+ return result;
+ };
+ memoized.cache = new (memoize.Cache || MapCache);
+ return memoized;
+}
+
+// Expose `MapCache`.
+memoize.Cache = MapCache;
+
+module.exports = memoize;
+
+
+/***/ }),
+/* 309 */
+/*!**************************************!*\
+ !*** ./node_modules/lodash/hasIn.js ***!
+ \**************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ 310),
+ hasPath = __webpack_require__(/*! ./_hasPath */ 311);
+
+/**
+ * Checks if `path` is a direct or inherited property of `object`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ * @example
+ *
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
+ *
+ * _.hasIn(object, 'a');
+ * // => true
+ *
+ * _.hasIn(object, 'a.b');
+ * // => true
+ *
+ * _.hasIn(object, ['a', 'b']);
+ * // => true
+ *
+ * _.hasIn(object, 'b');
+ * // => false
+ */
+function hasIn(object, path) {
+ return object != null && hasPath(object, path, baseHasIn);
+}
+
+module.exports = hasIn;
+
+
+/***/ }),
+/* 310 */
+/*!*******************************************!*\
+ !*** ./node_modules/lodash/_baseHasIn.js ***!
+ \*******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * The base implementation of `_.hasIn` without support for deep paths.
+ *
+ * @private
+ * @param {Object} [object] The object to query.
+ * @param {Array|string} key The key to check.
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
+ */
+function baseHasIn(object, key) {
+ return object != null && key in Object(object);
+}
+
+module.exports = baseHasIn;
+
+
+/***/ }),
+/* 311 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/_hasPath.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var castPath = __webpack_require__(/*! ./_castPath */ 30),
+ isArguments = __webpack_require__(/*! ./isArguments */ 78),
+ isArray = __webpack_require__(/*! ./isArray */ 14),
+ isIndex = __webpack_require__(/*! ./_isIndex */ 50),
+ isLength = __webpack_require__(/*! ./isLength */ 81),
+ toKey = __webpack_require__(/*! ./_toKey */ 31);
+
+/**
+ * Checks if `path` exists on `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @param {Function} hasFunc The function to check properties.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ */
+function hasPath(object, path, hasFunc) {
+ path = castPath(path, object);
+
+ var index = -1,
+ length = path.length,
+ result = false;
+
+ while (++index < length) {
+ var key = toKey(path[index]);
+ if (!(result = object != null && hasFunc(object, key))) {
+ break;
+ }
+ object = object[key];
+ }
+ if (result || ++index != length) {
+ return result;
+ }
+ length = object == null ? 0 : object.length;
+ return !!length && isLength(length) && isIndex(key, length) &&
+ (isArray(object) || isArguments(object));
+}
+
+module.exports = hasPath;
+
+
+/***/ }),
+/* 312 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/property.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseProperty = __webpack_require__(/*! ./_baseProperty */ 162),
+ basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ 313),
+ isKey = __webpack_require__(/*! ./_isKey */ 82),
+ toKey = __webpack_require__(/*! ./_toKey */ 31);
+
+/**
+ * Creates a function that returns the value at `path` of a given object.
+ *
+ * @static
+ * @memberOf _
+ * @since 2.4.0
+ * @category Util
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new accessor function.
+ * @example
+ *
+ * var objects = [
+ * { 'a': { 'b': 2 } },
+ * { 'a': { 'b': 1 } }
+ * ];
+ *
+ * _.map(objects, _.property('a.b'));
+ * // => [2, 1]
+ *
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
+ * // => [1, 2]
+ */
+function property(path) {
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
+}
+
+module.exports = property;
+
+
+/***/ }),
+/* 313 */
+/*!**************************************************!*\
+ !*** ./node_modules/lodash/_basePropertyDeep.js ***!
+ \**************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseGet = __webpack_require__(/*! ./_baseGet */ 55);
+
+/**
+ * A specialized version of `baseProperty` which supports deep paths.
+ *
+ * @private
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new accessor function.
+ */
+function basePropertyDeep(path) {
+ return function(object) {
+ return baseGet(object, path);
+ };
+}
+
+module.exports = basePropertyDeep;
+
+
+/***/ }),
+/* 314 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/_baseMap.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseEach = __webpack_require__(/*! ./_baseEach */ 315),
+ isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29);
+
+/**
+ * The base implementation of `_.map` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the new mapped array.
+ */
+function baseMap(collection, iteratee) {
+ var index = -1,
+ result = isArrayLike(collection) ? Array(collection.length) : [];
+
+ baseEach(collection, function(value, key, collection) {
+ result[++index] = iteratee(value, key, collection);
+ });
+ return result;
+}
+
+module.exports = baseMap;
+
+
+/***/ }),
+/* 315 */
+/*!******************************************!*\
+ !*** ./node_modules/lodash/_baseEach.js ***!
+ \******************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ 316),
+ createBaseEach = __webpack_require__(/*! ./_createBaseEach */ 319);
+
+/**
+ * The base implementation of `_.forEach` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array|Object} Returns `collection`.
+ */
+var baseEach = createBaseEach(baseForOwn);
+
+module.exports = baseEach;
+
+
+/***/ }),
+/* 316 */
+/*!********************************************!*\
+ !*** ./node_modules/lodash/_baseForOwn.js ***!
+ \********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseFor = __webpack_require__(/*! ./_baseFor */ 317),
+ keys = __webpack_require__(/*! ./keys */ 28);
+
+/**
+ * The base implementation of `_.forOwn` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Object} object The object to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Object} Returns `object`.
+ */
+function baseForOwn(object, iteratee) {
+ return object && baseFor(object, iteratee, keys);
+}
+
+module.exports = baseForOwn;
+
+
+/***/ }),
+/* 317 */
+/*!*****************************************!*\
+ !*** ./node_modules/lodash/_baseFor.js ***!
+ \*****************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ 318);
+
+/**
+ * The base implementation of `baseForOwn` which iterates over `object`
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
+ *
+ * @private
+ * @param {Object} object The object to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {Function} keysFunc The function to get the keys of `object`.
+ * @returns {Object} Returns `object`.
+ */
+var baseFor = createBaseFor();
+
+module.exports = baseFor;
+
+
+/***/ }),
+/* 318 */
+/*!***********************************************!*\
+ !*** ./node_modules/lodash/_createBaseFor.js ***!
+ \***********************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+/**
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
+ *
+ * @private
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new base function.
+ */
+function createBaseFor(fromRight) {
+ return function(object, iteratee, keysFunc) {
+ var index = -1,
+ iterable = Object(object),
+ props = keysFunc(object),
+ length = props.length;
+
+ while (length--) {
+ var key = props[fromRight ? length : ++index];
+ if (iteratee(iterable[key], key, iterable) === false) {
+ break;
+ }
+ }
+ return object;
+ };
+}
+
+module.exports = createBaseFor;
+
+
+/***/ }),
+/* 319 */
+/*!************************************************!*\
+ !*** ./node_modules/lodash/_createBaseEach.js ***!
+ \************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29);
+
+/**
+ * Creates a `baseEach` or `baseEachRight` function.
+ *
+ * @private
+ * @param {Function} eachFunc The function to iterate over a collection.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new base function.
+ */
+function createBaseEach(eachFunc, fromRight) {
+ return function(collection, iteratee) {
+ if (collection == null) {
+ return collection;
+ }
+ if (!isArrayLike(collection)) {
+ return eachFunc(collection, iteratee);
+ }
+ var length = collection.length,
+ index = fromRight ? length : -1,
+ iterable = Object(collection);
+
+ while ((fromRight ? index-- : ++index < length)) {
+ if (iteratee(iterable[index], index, iterable) === false) {
+ break;
+ }
+ }
+ return collection;
+ };
+}
+
+module.exports = createBaseEach;
+
+
+/***/ }),
+/* 320 */
+/*!********************************************!*\
+ !*** ./src/components/typography/fonts.js ***!
+ \********************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/**
+ * Google Fonts for the FontFamily component.
+ */
+
+var fonts = {};
+fonts["ABeeZee"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
+fonts["Abel"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Abhaya Libre"] = { "v": ["regular", "500", "600", "700", "800"], "subset": ["latin-ext", "sinhala", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal"] };
+fonts["Abril Fatface"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Aclonica"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Acme"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Actor"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Adamina"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Advent Pro"] = { "v": ["100", "200", "300", "regular", "500", "600", "700"], "subset": ["latin-ext", "greek", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700"], "i": ["normal"] };
+fonts["Aguafina Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Akronim"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Aladin"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Aldrich"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Alef"] = { "v": ["regular", "700"], "subset": ["hebrew", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Alegreya"] = { "v": ["regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Alegreya SC"] = { "v": ["regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Alegreya Sans"] = { "v": ["100", "100italic", "300", "300italic", "regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["100", "300", "400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Alegreya Sans SC"] = { "v": ["100", "100italic", "300", "300italic", "regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["100", "300", "400", "500", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Alex Brush"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Alfa Slab One"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Alice"] = { "v": ["regular"], "subset": ["cyrillic", "cyrillic-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Alike"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Alike Angular"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Allan"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Allerta"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Allerta Stencil"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Allura"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Almendra"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Almendra Display"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Almendra SC"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Amarante"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Amaranth"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Amatic SC"] = { "v": ["regular", "700"], "subset": ["cyrillic", "latin-ext", "hebrew", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Amethysta"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Amiko"] = { "v": ["regular", "600", "700"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "600", "700"], "i": ["normal"] };
+fonts["Amiri"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "arabic", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Amita"] = { "v": ["regular", "700"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Anaheim"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Andada"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Andika"] = { "v": ["regular"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Angkor"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
+fonts["Annie Use Your Telescope"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Anonymous Pro"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "latin-ext", "greek", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Antic"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Antic Didone"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Antic Slab"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Anton"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Arapey"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
+fonts["Arbutus"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Arbutus Slab"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Architects Daughter"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Archivo"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Archivo Black"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Archivo Narrow"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Aref Ruqaa"] = { "v": ["regular", "700"], "subset": ["arabic", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Arima Madurai"] = { "v": ["100", "200", "300", "regular", "500", "700", "800", "900"], "subset": ["latin-ext", "tamil", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "700", "800", "900"], "i": ["normal"] };
+fonts["Arimo"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "hebrew", "greek", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Arizonia"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Armata"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Arsenal"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Artifika"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Arvo"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Arya"] = { "v": ["regular", "700"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Asap"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Asap Condensed"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Asar"] = { "v": ["regular"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Asset"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Assistant"] = { "v": ["200", "300", "regular", "600", "700", "800"], "subset": ["hebrew", "latin"], "weight": ["200", "300", "400", "600", "700", "800"], "i": ["normal"] };
+fonts["Astloch"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Asul"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Athiti"] = { "v": ["200", "300", "regular", "500", "600", "700"], "subset": ["latin-ext", "thai", "vietnamese", "latin"], "weight": ["200", "300", "400", "500", "600", "700"], "i": ["normal"] };
+fonts["Atma"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["latin-ext", "bengali", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
+fonts["Atomic Age"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Aubrey"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Audiowide"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Autour One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Average"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Average Sans"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Averia Gruesa Libre"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Averia Libre"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["300", "400", "700"], "i": ["normal", "italic"] };
+fonts["Averia Sans Libre"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["300", "400", "700"], "i": ["normal", "italic"] };
+fonts["Averia Serif Libre"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["300", "400", "700"], "i": ["normal", "italic"] };
+fonts["Bad Script"] = { "v": ["regular"], "subset": ["cyrillic", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bahiana"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo"] = { "v": ["regular"], "subset": ["latin-ext", "devanagari", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Bhai"] = { "v": ["regular"], "subset": ["latin-ext", "gujarati", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Bhaijaan"] = { "v": ["regular"], "subset": ["latin-ext", "arabic", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Bhaina"] = { "v": ["regular"], "subset": ["latin-ext", "oriya", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Chettan"] = { "v": ["regular"], "subset": ["malayalam", "latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Da"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "bengali", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Paaji"] = { "v": ["regular"], "subset": ["latin-ext", "gurmukhi", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Tamma"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin", "kannada"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Tammudu"] = { "v": ["regular"], "subset": ["latin-ext", "telugu", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Baloo Thambi"] = { "v": ["regular"], "subset": ["latin-ext", "tamil", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Balthazar"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bangers"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Barlow"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Barlow Condensed"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Barlow Semi Condensed"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Barrio"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Basic"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Battambang"] = { "v": ["regular", "700"], "subset": ["khmer"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Baumans"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bayon"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
+fonts["Belgrano"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bellefair"] = { "v": ["regular"], "subset": ["latin-ext", "hebrew", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Belleza"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["BenchNine"] = { "v": ["300", "regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["300", "400", "700"], "i": ["normal"] };
+fonts["Bentham"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Berkshire Swash"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bevan"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bigelow Rules"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bigshot One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bilbo"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bilbo Swash Caps"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["BioRhyme"] = { "v": ["200", "300", "regular", "700", "800"], "subset": ["latin-ext", "latin"], "weight": ["200", "300", "400", "700", "800"], "i": ["normal"] };
+fonts["BioRhyme Expanded"] = { "v": ["200", "300", "regular", "700", "800"], "subset": ["latin-ext", "latin"], "weight": ["200", "300", "400", "700", "800"], "i": ["normal"] };
+fonts["Biryani"] = { "v": ["200", "300", "regular", "600", "700", "800", "900"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["200", "300", "400", "600", "700", "800", "900"], "i": ["normal"] };
+fonts["Bitter"] = { "v": ["regular", "italic", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Black And White Picture"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Black Han Sans"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Black Ops One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bokor"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
+fonts["Bonbon"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Boogaloo"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bowlby One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bowlby One SC"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Brawler"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bree Serif"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bubblegum Sans"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bubbler One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Buda"] = { "v": ["300"], "subset": ["latin"], "weight": ["300"], "i": [] };
+fonts["Buenard"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Bungee"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bungee Hairline"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bungee Inline"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bungee Outline"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Bungee Shade"] = { "v": ["regular"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Butcherman"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Butterfly Kids"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cabin"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Cabin Condensed"] = { "v": ["regular", "500", "600", "700"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal"] };
+fonts["Cabin Sketch"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Caesar Dressing"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cagliostro"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cairo"] = { "v": ["200", "300", "regular", "600", "700", "900"], "subset": ["latin-ext", "arabic", "latin"], "weight": ["200", "300", "400", "600", "700", "900"], "i": ["normal"] };
+fonts["Calligraffitti"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cambay"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Cambo"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Candal"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cantarell"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Cantata One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cantora One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Capriola"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cardo"] = { "v": ["regular", "italic", "700"], "subset": ["greek-ext", "latin-ext", "greek", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Carme"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Carrois Gothic"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Carrois Gothic SC"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Carter One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Catamaran"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "tamil", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
+fonts["Caudex"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["greek-ext", "latin-ext", "greek", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Caveat"] = { "v": ["regular", "700"], "subset": ["cyrillic", "latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Caveat Brush"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cedarville Cursive"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Ceviche One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Changa"] = { "v": ["200", "300", "regular", "500", "600", "700", "800"], "subset": ["latin-ext", "arabic", "latin"], "weight": ["200", "300", "400", "500", "600", "700", "800"], "i": ["normal"] };
+fonts["Changa One"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
+fonts["Chango"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Chathura"] = { "v": ["100", "300", "regular", "700", "800"], "subset": ["telugu", "latin"], "weight": ["100", "300", "400", "700", "800"], "i": ["normal"] };
+fonts["Chau Philomene One"] = { "v": ["regular", "italic"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal", "italic"] };
+fonts["Chela One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Chelsea Market"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Chenla"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
+fonts["Cherry Cream Soda"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cherry Swash"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Chewy"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Chicle"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Chivo"] = { "v": ["300", "300italic", "regular", "italic", "700", "700italic", "900", "900italic"], "subset": ["latin-ext", "latin"], "weight": ["300", "400", "700", "900"], "i": ["normal", "italic"] };
+fonts["Chonburi"] = { "v": ["regular"], "subset": ["latin-ext", "thai", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cinzel"] = { "v": ["regular", "700", "900"], "subset": ["latin-ext", "latin"], "weight": ["400", "700", "900"], "i": ["normal"] };
+fonts["Cinzel Decorative"] = { "v": ["regular", "700", "900"], "subset": ["latin"], "weight": ["400", "700", "900"], "i": ["normal"] };
+fonts["Clicker Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Coda"] = { "v": ["regular", "800"], "subset": ["latin-ext", "latin"], "weight": ["400", "800"], "i": ["normal"] };
+fonts["Coda Caption"] = { "v": ["800"], "subset": ["latin-ext", "latin"], "weight": ["800"], "i": [] };
+fonts["Codystar"] = { "v": ["300", "regular"], "subset": ["latin-ext", "latin"], "weight": ["300", "400"], "i": ["normal"] };
+fonts["Coiny"] = { "v": ["regular"], "subset": ["latin-ext", "tamil", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Combo"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Comfortaa"] = { "v": ["300", "regular", "700"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["300", "400", "700"], "i": ["normal"] };
+fonts["Coming Soon"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Concert One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Condiment"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Content"] = { "v": ["regular", "700"], "subset": ["khmer"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Contrail One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Convergence"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cookie"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Copse"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Corben"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Cormorant"] = { "v": ["300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Cormorant Garamond"] = { "v": ["300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Cormorant Infant"] = { "v": ["300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Cormorant SC"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
+fonts["Cormorant Unicase"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
+fonts["Cormorant Upright"] = { "v": ["300", "regular", "500", "600", "700"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["300", "400", "500", "600", "700"], "i": ["normal"] };
+fonts["Courgette"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cousine"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "hebrew", "greek", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Coustard"] = { "v": ["regular", "900"], "subset": ["latin"], "weight": ["400", "900"], "i": ["normal"] };
+fonts["Covered By Your Grace"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Crafty Girls"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Creepster"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Crete Round"] = { "v": ["regular", "italic"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal", "italic"] };
+fonts["Crimson Text"] = { "v": ["regular", "italic", "600", "600italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "600", "700"], "i": ["normal", "italic"] };
+fonts["Croissant One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Crushed"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cuprum"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["cyrillic", "cyrillic-ext", "latin-ext", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Cute Font"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cutive"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Cutive Mono"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Damion"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Dancing Script"] = { "v": ["regular", "700"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Dangrek"] = { "v": ["regular"], "subset": ["khmer"], "weight": ["400"], "i": ["normal"] };
+fonts["David Libre"] = { "v": ["regular", "500", "700"], "subset": ["latin-ext", "hebrew", "vietnamese", "latin"], "weight": ["400", "500", "700"], "i": ["normal"] };
+fonts["Dawning of a New Day"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Days One"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Dekko"] = { "v": ["regular"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Delius"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Delius Swash Caps"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Delius Unicase"] = { "v": ["regular", "700"], "subset": ["latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Della Respira"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Denk One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Devonshire"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Dhurjati"] = { "v": ["regular"], "subset": ["telugu", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Didact Gothic"] = { "v": ["regular"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Diplomata"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Diplomata SC"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Do Hyeon"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Dokdo"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Domine"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Donegal One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Doppio One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Dorsa"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Dosis"] = { "v": ["200", "300", "regular", "500", "600", "700", "800"], "subset": ["latin-ext", "latin"], "weight": ["200", "300", "400", "500", "600", "700", "800"], "i": ["normal"] };
+fonts["Dr Sugiyama"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Duru Sans"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Dynalight"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["EB Garamond"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal", "italic"] };
+fonts["Eagle Lake"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["East Sea Dokdo"] = { "v": ["regular"], "subset": ["korean", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Eater"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Economica"] = { "v": ["regular", "italic", "700", "700italic"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal", "italic"] };
+fonts["Eczar"] = { "v": ["regular", "500", "600", "700", "800"], "subset": ["latin-ext", "devanagari", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal"] };
+fonts["El Messiri"] = { "v": ["regular", "500", "600", "700"], "subset": ["cyrillic", "arabic", "latin"], "weight": ["400", "500", "600", "700"], "i": ["normal"] };
+fonts["Electrolize"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Elsie"] = { "v": ["regular", "900"], "subset": ["latin-ext", "latin"], "weight": ["400", "900"], "i": ["normal"] };
+fonts["Elsie Swash Caps"] = { "v": ["regular", "900"], "subset": ["latin-ext", "latin"], "weight": ["400", "900"], "i": ["normal"] };
+fonts["Emblema One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Emilys Candy"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Encode Sans"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
+fonts["Encode Sans Condensed"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
+fonts["Encode Sans Expanded"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
+fonts["Encode Sans Semi Condensed"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
+fonts["Encode Sans Semi Expanded"] = { "v": ["100", "200", "300", "regular", "500", "600", "700", "800", "900"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal"] };
+fonts["Engagement"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Englebert"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Enriqueta"] = { "v": ["regular", "700"], "subset": ["latin-ext", "latin"], "weight": ["400", "700"], "i": ["normal"] };
+fonts["Erica One"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Esteban"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Euphoria Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Ewert"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] };
+fonts["Exo"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["latin-ext", "vietnamese", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Exo 2"] = { "v": ["100", "100italic", "200", "200italic", "300", "300italic", "regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "latin-ext", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700", "800", "900"], "i": ["normal", "italic"] };
+fonts["Expletus Sans"] = { "v": ["regular", "italic", "500", "500italic", "600", "600italic", "700", "700italic"], "subset": ["latin"], "weight": ["400", "500", "600", "700"], "i": ["normal", "italic"] };
+fonts["Fanwood Text"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] };
fonts["Farsan"] = { "v": ["regular"], "subset": ["latin-ext", "gujarati", "vietnamese", "latin"], "weight": ["400"], "i": ["normal"] };
fonts["Fascinate"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
fonts["Fascinate Inline"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] };
@@ -26863,7 +29675,7 @@ fonts["Zilla Slab Highlight"] = { "v": ["regular", "700"], "subset": ["latin-ext
/* harmony default export */ __webpack_exports__["a"] = (fonts);
/***/ }),
-/* 259 */
+/* 321 */
/*!********************************************************************!*\
!*** ./node_modules/react-select/dist/react-select.browser.esm.js ***!
\********************************************************************/
@@ -26873,26 +29685,48 @@ fonts["Zilla Slab Highlight"] = { "v": ["regular", "700"], "subset": ["latin-ext
"use strict";
/* unused harmony export NonceProvider */
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(/*! memoize-one */ 131);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_core__ = __webpack_require__(/*! @emotion/core */ 65);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(/*! react-dom */ 18);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(/*! prop-types */ 15);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(/*! ./utils-06b0d5a4.browser.esm.js */ 66);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__index_4322c0ed_browser_esm_js__ = __webpack_require__(/*! ./index-4322c0ed.browser.esm.js */ 137);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ 322);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ 324);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 325);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 329);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 333);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ 58);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ 59);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 334);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ 60);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ 61);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ 62);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(/*! react */ 5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(/*! memoize-one */ 167);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(/*! @emotion/core */ 85);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(/*! react-dom */ 33);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 352);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__ = __webpack_require__(/*! ./index-4b37608a.browser.esm.js */ 172);
/* unused harmony reexport components */
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__ = __webpack_require__(/*! ./Select-9fdb8cd0.browser.esm.js */ 139);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__ = __webpack_require__(/*! ./Select-5d18b8d9.browser.esm.js */ 176);
/* unused harmony reexport createFilter */
/* unused harmony reexport defaultTheme */
/* unused harmony reexport mergeStyles */
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 138);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_input_autosize__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__ = __webpack_require__(/*! ./stateManager-04f734a2.browser.esm.js */ 280);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 132);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__ = __webpack_require__(/*! @babel/runtime/helpers/taggedTemplateLiteral */ 367);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 174);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_react_input_autosize__);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__ = __webpack_require__(/*! ./stateManager-2f2b6f5b.browser.esm.js */ 368);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 86);
+
+
+
+
@@ -26907,57 +29741,376 @@ fonts["Zilla Slab Highlight"] = { "v": ["regular", "700"], "subset": ["latin-ext
-function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
-var NonceProvider =
-/*#__PURE__*/
-function (_Component) {
- _inheritsLoose(NonceProvider, _Component);
+
+
+
+
+
+
+function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
+
+function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
+
+var NonceProvider = /*#__PURE__*/function (_Component) {
+ Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NonceProvider, _Component);
+
+ var _super = _createSuper(NonceProvider);
function NonceProvider(props) {
var _this;
- _this = _Component.call(this, props) || this;
+ Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NonceProvider);
+
+ _this = _super.call(this, props);
_this.createEmotionCache = function (nonce) {
- return __WEBPACK_IMPORTED_MODULE_11__emotion_cache__["a" /* default */]({
+ return Object(__WEBPACK_IMPORTED_MODULE_22__emotion_cache__["a" /* default */])({
nonce: nonce
});
};
- _this.createEmotionCache = __WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */](_this.createEmotionCache);
- return _this;
- }
+ _this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.createEmotionCache);
+ return _this;
+ }
+
+ Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NonceProvider, [{
+ key: "render",
+ value: function render() {
+ var emotionCache = this.createEmotionCache(this.props.nonce);
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["a" /* CacheProvider */], {
+ value: emotionCache
+ }, this.props.children);
+ }
+ }]);
+
+ return NonceProvider;
+}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
+
+var index = Object(__WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["a" /* S */]);
+
+/* harmony default export */ __webpack_exports__["a"] = (index);
+
+
+
+/***/ }),
+/* 322 */
+/*!**************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
+ \**************************************************************************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports, __webpack_require__) {
+
+var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose */ 323);
+
+function _objectWithoutProperties(source, excluded) {
+ if (source == null) return {};
+ var target = objectWithoutPropertiesLoose(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;
+}
+
+module.exports = _objectWithoutProperties;
+
+/***/ }),
+/* 323 */
+/*!*******************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
+ \*******************************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+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;
+}
+
+module.exports = _objectWithoutPropertiesLoose;
+
+/***/ }),
+/* 324 */
+/*!**********************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/extends.js ***!
+ \**********************************************************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
+
+function _extends() {
+ module.exports = _extends = Object.assign || function (target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = arguments[i];
+
+ for (var key in source) {
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
+ target[key] = source[key];
+ }
+ }
+ }
+
+ return target;
+ };
+
+ return _extends.apply(this, arguments);
+}
+
+module.exports = _extends;
+
+/***/ }),
+/* 325 */
+/*!****************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/slicedToArray.js ***!
+ \****************************************************************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles */ 326);
+
+var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit */ 327);
+
+var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ 163);
+
+var nonIterableRest = __webpack_require__(/*! ./nonIterableRest */ 328);
+
+function _slicedToArray(arr, i) {
+ return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
+}
+
+module.exports = _slicedToArray;
+
+/***/ }),
+/* 326 */
+/*!*****************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
+ \*****************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+function _arrayWithHoles(arr) {
+ if (Array.isArray(arr)) return arr;
+}
+
+module.exports = _arrayWithHoles;
+
+/***/ }),
+/* 327 */
+/*!***********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
+ \***********************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+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;
+}
+
+module.exports = _iterableToArrayLimit;
+
+/***/ }),
+/* 328 */
+/*!******************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
+ \******************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+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.");
+}
+
+module.exports = _nonIterableRest;
+
+/***/ }),
+/* 329 */
+/*!********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
+ \********************************************************************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ 330);
+
+var iterableToArray = __webpack_require__(/*! ./iterableToArray */ 331);
+
+var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ 163);
+
+var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread */ 332);
+
+function _toConsumableArray(arr) {
+ return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
+}
+
+module.exports = _toConsumableArray;
+
+/***/ }),
+/* 330 */
+/*!********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
+ \********************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ 164);
+
+function _arrayWithoutHoles(arr) {
+ if (Array.isArray(arr)) return arrayLikeToArray(arr);
+}
+
+module.exports = _arrayWithoutHoles;
+
+/***/ }),
+/* 331 */
+/*!******************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
+ \******************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+function _iterableToArray(iter) {
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
+}
+
+module.exports = _iterableToArray;
+
+/***/ }),
+/* 332 */
+/*!********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
+ \********************************************************************************************/
+/*! dynamic exports provided */
+/*! all exports used */
+/***/ (function(module, exports) {
+
+function _nonIterableSpread() {
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
+}
+
+module.exports = _nonIterableSpread;
+
+/***/ }),
+/* 333 */
+/*!*****************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/defineProperty.js ***!
+ \*****************************************************************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
+
+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;
+}
+
+module.exports = _defineProperty;
- var _proto = NonceProvider.prototype;
+/***/ }),
+/* 334 */
+/*!************************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
+ \************************************************************************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
- _proto.render = function render() {
- var emotionCache = this.createEmotionCache(this.props.nonce);
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["a" /* CacheProvider */], {
- value: emotionCache
- }, this.props.children);
- };
+function _assertThisInitialized(self) {
+ if (self === void 0) {
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ }
- return NonceProvider;
-}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
+ return self;
+}
-var index = __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__["a" /* m */](__WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["a" /* S */]);
+module.exports = _assertThisInitialized;
-/* harmony default export */ __webpack_exports__["a"] = (index);
+/***/ }),
+/* 335 */
+/*!*********************************************************************************************!*\
+ !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
+ \*********************************************************************************************/
+/*! exports provided: default */
+/*! exports used: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _setPrototypeOf;
+function _setPrototypeOf(o, p) {
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
+ o.__proto__ = p;
+ return o;
+ };
+ return _setPrototypeOf(o, p);
+}
/***/ }),
-/* 260 */
+/* 336 */
/*!********************************************************!*\
!*** ./node_modules/react/cjs/react.production.min.js ***!
\********************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-/** @license React v16.12.0
+/** @license React v16.14.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
@@ -26966,35 +30119,35 @@ var index = __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__
* LICENSE file in the root directory of this source tree.
*/
-var h=__webpack_require__(/*! object-assign */ 27),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113;n&&Symbol.for("react.suspense_list");
-var z=n?Symbol.for("react.memo"):60115,aa=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.fundamental");n&&Symbol.for("react.responder");n&&Symbol.for("react.scope");var A="function"===typeof Symbol&&Symbol.iterator;
-function B(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cP.length&&P.push(a)}
-function S(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var l=0;lQ.length&&Q.push(a)}
+function T(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
+var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
+function describeComponentFrame (name, source, ownerName) {
+ var sourceInfo = '';
+
+ if (source) {
+ var path = source.fileName;
+ var fileName = path.replace(BEFORE_SLASH_RE, '');
+
+ {
+ // In DEV, include code for a common special case:
+ // prefer "folder/index.js" instead of just "index.js".
+ if (/^index\./.test(fileName)) {
+ var match = path.match(BEFORE_SLASH_RE);
+
+ if (match) {
+ var pathBeforeSlash = match[1];
+
+ if (pathBeforeSlash) {
+ var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
+ fileName = folderName + '/' + fileName;
+ }
+ }
+ }
}
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
+ sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
+ } else if (ownerName) {
+ sourceInfo = ' (created by ' + ownerName + ')';
+ }
- if (typeof console !== 'undefined') {
- console.warn(message);
+ return '\n in ' + (name || 'Unknown') + sourceInfo;
+}
+
+var Resolved = 1;
+function refineResolvedLazyComponent(lazyComponent) {
+ return lazyComponent._status === Resolved ? lazyComponent._result : null;
+}
+
+function getWrappedName(outerType, innerType, wrapperName) {
+ var functionName = innerType.displayName || innerType.name || '';
+ return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
+}
+
+function getComponentName(type) {
+ if (type == null) {
+ // Host root, text node or just invalid type.
+ return null;
+ }
+
+ {
+ if (typeof type.tag === 'number') {
+ error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
}
+ }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message);
- } catch (x) {}
- };
+ if (typeof type === 'function') {
+ return type.displayName || type.name || null;
+ }
- lowPriorityWarningWithoutStack = function (condition, format) {
- if (format === undefined) {
- throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
+ if (typeof type === 'string') {
+ return type;
+ }
+
+ switch (type) {
+ case REACT_FRAGMENT_TYPE:
+ return 'Fragment';
+
+ case REACT_PORTAL_TYPE:
+ return 'Portal';
+
+ case REACT_PROFILER_TYPE:
+ return "Profiler";
+
+ case REACT_STRICT_MODE_TYPE:
+ return 'StrictMode';
+
+ case REACT_SUSPENSE_TYPE:
+ return 'Suspense';
+
+ case REACT_SUSPENSE_LIST_TYPE:
+ return 'SuspenseList';
+ }
+
+ if (typeof type === 'object') {
+ switch (type.$$typeof) {
+ case REACT_CONTEXT_TYPE:
+ return 'Context.Consumer';
+
+ case REACT_PROVIDER_TYPE:
+ return 'Context.Provider';
+
+ case REACT_FORWARD_REF_TYPE:
+ return getWrappedName(type, type.render, 'ForwardRef');
+
+ case REACT_MEMO_TYPE:
+ return getComponentName(type.type);
+
+ case REACT_BLOCK_TYPE:
+ return getComponentName(type.render);
+
+ case REACT_LAZY_TYPE:
+ {
+ var thenable = type;
+ var resolvedThenable = refineResolvedLazyComponent(thenable);
+
+ if (resolvedThenable) {
+ return getComponentName(resolvedThenable);
+ }
+
+ break;
+ }
}
+ }
+
+ return null;
+}
+
+var ReactDebugCurrentFrame = {};
+var currentlyValidatingElement = null;
+function setCurrentlyValidatingElement(element) {
+ {
+ currentlyValidatingElement = element;
+ }
+}
+
+{
+ // Stack implementation injected by the current renderer.
+ ReactDebugCurrentFrame.getCurrentStack = null;
+
+ ReactDebugCurrentFrame.getStackAddendum = function () {
+ var stack = ''; // Add an extra top frame while an element is being validated
+
+ if (currentlyValidatingElement) {
+ var name = getComponentName(currentlyValidatingElement.type);
+ var owner = currentlyValidatingElement._owner;
+ stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
+ } // Delegate to the injected renderer-specific implementation
- if (!condition) {
- for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
- printWarning.apply(void 0, [format].concat(args));
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
+
+ if (impl) {
+ stack += impl() || '';
}
+
+ return stack;
};
}
-var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
-
/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
+ * Used by act() to track whether you're inside an act() scope.
*/
-var warningWithoutStack = function () {};
+var IsSomeRendererActing = {
+ current: false
+};
+
+var ReactSharedInternals = {
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
+ ReactCurrentOwner: ReactCurrentOwner,
+ IsSomeRendererActing: IsSomeRendererActing,
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
+ assign: _assign
+};
{
- warningWithoutStack = function (condition, format) {
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- args[_key - 2] = arguments[_key];
- }
+ _assign(ReactSharedInternals, {
+ // These should not be included in production.
+ ReactDebugCurrentFrame: ReactDebugCurrentFrame,
+ // Shim for React DOM 16.0.0 which still destructured (but not used) this.
+ // TODO: remove in React 17.0.
+ ReactComponentTreeHook: {}
+ });
+}
- if (format === undefined) {
- throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
- }
+// by calls to these methods by a Babel plugin.
+//
+// In PROD (or in packages without access to React internals),
+// they are left as they are instead.
- if (args.length > 8) {
- // Check before the condition to catch violations early.
- throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
+function warn(format) {
+ {
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
}
- if (condition) {
- return;
+ printWarning('warn', format, args);
+ }
+}
+function error(format) {
+ {
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
+ args[_key2 - 1] = arguments[_key2];
}
- if (typeof console !== 'undefined') {
- var argsWithFormat = args.map(function (item) {
- return '' + item;
- });
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
- // breaks IE9: https://github.com/facebook/react/issues/13610
+ printWarning('error', format, args);
+ }
+}
+
+function printWarning(level, format, args) {
+ // When changing this logic, you might want to also
+ // update consoleWithStackDev.www.js as well.
+ {
+ var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
+
+ if (!hasExistingStack) {
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
- Function.prototype.apply.call(console.error, console, argsWithFormat);
+ if (stack !== '') {
+ format += '%s';
+ args = args.concat([stack]);
+ }
}
+ var argsWithFormat = args.map(function (item) {
+ return '' + item;
+ }); // Careful: RN currently depends on this prefix
+
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
+ // breaks IE9: https://github.com/facebook/react/issues/13610
+ // eslint-disable-next-line react-internal/no-production-logging
+
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
+
try {
// --- Welcome to debugging React ---
// This error was thrown as a convenience so that you can use this stack
@@ -27173,11 +30473,9 @@ var warningWithoutStack = function () {};
});
throw new Error(message);
} catch (x) {}
- };
+ }
}
-var warningWithoutStack$1 = warningWithoutStack;
-
var didWarnStateUpdateForUnmountedComponent = {};
function warnNoop(publicInstance, callerName) {
@@ -27190,7 +30488,8 @@ function warnNoop(publicInstance, callerName) {
return;
}
- warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
+ error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
+
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
}
}
@@ -27314,7 +30613,7 @@ Component.prototype.isReactComponent = {};
Component.prototype.setState = function (partialState, callback) {
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
{
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
+ throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
}
}
@@ -27355,7 +30654,8 @@ Component.prototype.forceUpdate = function (callback) {
var defineDeprecationWarning = function (methodName, info) {
Object.defineProperty(Component.prototype, methodName, {
get: function () {
- lowPriorityWarningWithoutStack$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
+ warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
+
return undefined;
}
});
@@ -27403,240 +30703,6 @@ function createRef() {
return refObject;
}
-/**
- * Keeps track of the current dispatcher.
- */
-var ReactCurrentDispatcher = {
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null
-};
-
-/**
- * Keeps track of the current batch's configuration such as how long an update
- * should suspend for if it needs to.
- */
-var ReactCurrentBatchConfig = {
- suspense: null
-};
-
-/**
- * Keeps track of the current owner.
- *
- * The current owner is the component who should own any components that are
- * currently being constructed.
- */
-var ReactCurrentOwner = {
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null
-};
-
-var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
-var describeComponentFrame = function (name, source, ownerName) {
- var sourceInfo = '';
-
- if (source) {
- var path = source.fileName;
- var fileName = path.replace(BEFORE_SLASH_RE, '');
-
- {
- // In DEV, include code for a common special case:
- // prefer "folder/index.js" instead of just "index.js".
- if (/^index\./.test(fileName)) {
- var match = path.match(BEFORE_SLASH_RE);
-
- if (match) {
- var pathBeforeSlash = match[1];
-
- if (pathBeforeSlash) {
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
- fileName = folderName + '/' + fileName;
- }
- }
- }
- }
-
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
- } else if (ownerName) {
- sourceInfo = ' (created by ' + ownerName + ')';
- }
-
- return '\n in ' + (name || 'Unknown') + sourceInfo;
-};
-
-var Resolved = 1;
-
-function refineResolvedLazyComponent(lazyComponent) {
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
-}
-
-function getWrappedName(outerType, innerType, wrapperName) {
- var functionName = innerType.displayName || innerType.name || '';
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
-}
-
-function getComponentName(type) {
- if (type == null) {
- // Host root, text node or just invalid type.
- return null;
- }
-
- {
- if (typeof type.tag === 'number') {
- warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
- }
- }
-
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
-
- if (typeof type === 'string') {
- return type;
- }
-
- switch (type) {
- case REACT_FRAGMENT_TYPE:
- return 'Fragment';
-
- case REACT_PORTAL_TYPE:
- return 'Portal';
-
- case REACT_PROFILER_TYPE:
- return "Profiler";
-
- case REACT_STRICT_MODE_TYPE:
- return 'StrictMode';
-
- case REACT_SUSPENSE_TYPE:
- return 'Suspense';
-
- case REACT_SUSPENSE_LIST_TYPE:
- return 'SuspenseList';
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_CONTEXT_TYPE:
- return 'Context.Consumer';
-
- case REACT_PROVIDER_TYPE:
- return 'Context.Provider';
-
- case REACT_FORWARD_REF_TYPE:
- return getWrappedName(type, type.render, 'ForwardRef');
-
- case REACT_MEMO_TYPE:
- return getComponentName(type.type);
-
- case REACT_LAZY_TYPE:
- {
- var thenable = type;
- var resolvedThenable = refineResolvedLazyComponent(thenable);
-
- if (resolvedThenable) {
- return getComponentName(resolvedThenable);
- }
-
- break;
- }
- }
- }
-
- return null;
-}
-
-var ReactDebugCurrentFrame = {};
-var currentlyValidatingElement = null;
-function setCurrentlyValidatingElement(element) {
- {
- currentlyValidatingElement = element;
- }
-}
-
-{
- // Stack implementation injected by the current renderer.
- ReactDebugCurrentFrame.getCurrentStack = null;
-
- ReactDebugCurrentFrame.getStackAddendum = function () {
- var stack = ''; // Add an extra top frame while an element is being validated
-
- if (currentlyValidatingElement) {
- var name = getComponentName(currentlyValidatingElement.type);
- var owner = currentlyValidatingElement._owner;
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
- } // Delegate to the injected renderer-specific implementation
-
-
- var impl = ReactDebugCurrentFrame.getCurrentStack;
-
- if (impl) {
- stack += impl() || '';
- }
-
- return stack;
- };
-}
-
-/**
- * Used by act() to track whether you're inside an act() scope.
- */
-var IsSomeRendererActing = {
- current: false
-};
-
-var ReactSharedInternals = {
- ReactCurrentDispatcher: ReactCurrentDispatcher,
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
- ReactCurrentOwner: ReactCurrentOwner,
- IsSomeRendererActing: IsSomeRendererActing,
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
- assign: _assign
-};
-
-{
- _assign(ReactSharedInternals, {
- // These should not be included in production.
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
- // Shim for React DOM 16.0.0 which still destructured (but not used) this.
- // TODO: remove in React 17.0.
- ReactComponentTreeHook: {}
- });
-}
-
-/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
-
-var warning = warningWithoutStack$1;
-
-{
- warning = function (condition, format) {
- if (condition) {
- return;
- }
-
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args
-
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- args[_key - 2] = arguments[_key];
- }
-
- warningWithoutStack$1.apply(void 0, [false, format + '%s'].concat(args, [stack]));
- };
-}
-
-var warning$1 = warning;
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
var RESERVED_PROPS = {
key: true,
@@ -27644,8 +30710,11 @@ var RESERVED_PROPS = {
__self: true,
__source: true
};
-var specialPropKeyWarningShown;
-var specialPropRefWarningShown;
+var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
+
+{
+ didWarnAboutStringRefs = {};
+}
function hasValidRef(config) {
{
@@ -27677,9 +30746,12 @@ function hasValidKey(config) {
function defineKeyPropWarningGetter(props, displayName) {
var warnAboutAccessingKey = function () {
- if (!specialPropKeyWarningShown) {
- specialPropKeyWarningShown = true;
- warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
+ {
+ if (!specialPropKeyWarningShown) {
+ specialPropKeyWarningShown = true;
+
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
+ }
}
};
@@ -27692,9 +30764,12 @@ function defineKeyPropWarningGetter(props, displayName) {
function defineRefPropWarningGetter(props, displayName) {
var warnAboutAccessingRef = function () {
- if (!specialPropRefWarningShown) {
- specialPropRefWarningShown = true;
- warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
+ {
+ if (!specialPropRefWarningShown) {
+ specialPropRefWarningShown = true;
+
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
+ }
}
};
@@ -27704,6 +30779,20 @@ function defineRefPropWarningGetter(props, displayName) {
configurable: true
});
}
+
+function warnIfStringRefCannotBeAutoConverted(config) {
+ {
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
+ var componentName = getComponentName(ReactCurrentOwner.current.type);
+
+ if (!didWarnAboutStringRefs[componentName]) {
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
+
+ didWarnAboutStringRefs[componentName] = true;
+ }
+ }
+ }
+}
/**
* Factory method to create a new React element. This no longer adheres to
* the class pattern, so do not use new to call it. Also, instanceof check
@@ -27779,78 +30868,6 @@ var ReactElement = function (type, key, ref, self, source, owner, props) {
return element;
};
-/**
- * https://github.com/reactjs/rfcs/pull/107
- * @param {*} type
- * @param {object} props
- * @param {string} key
- */
-
-
-
-/**
- * https://github.com/reactjs/rfcs/pull/107
- * @param {*} type
- * @param {object} props
- * @param {string} key
- */
-
-function jsxDEV(type, config, maybeKey, source, self) {
- var propName; // Reserved names are extracted
-
- var props = {};
- var key = null;
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
- // issue if key is also explicitly declared (ie.
- // or ). We want to deprecate key spread,
- // but as an intermediary step, we will use jsxDEV for everything except
- // , because we aren't currently able to tell if
- // key is explicitly declared to be undefined or not.
-
- if (maybeKey !== undefined) {
- key = '' + maybeKey;
- }
-
- if (hasValidKey(config)) {
- key = '' + config.key;
- }
-
- if (hasValidRef(config)) {
- ref = config.ref;
- } // Remaining properties are added to a new props object
-
-
- for (propName in config) {
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
- props[propName] = config[propName];
- }
- } // Resolve default props
-
-
- if (type && type.defaultProps) {
- var defaultProps = type.defaultProps;
-
- for (propName in defaultProps) {
- if (props[propName] === undefined) {
- props[propName] = defaultProps[propName];
- }
- }
- }
-
- if (key || ref) {
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
-
- if (key) {
- defineKeyPropWarningGetter(props, displayName);
- }
-
- if (ref) {
- defineRefPropWarningGetter(props, displayName);
- }
- }
-
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
-}
/**
* Create and return a new ReactElement of the given type.
* See https://reactjs.org/docs/react-api.html#createelement
@@ -27868,6 +30885,10 @@ function createElement(type, config, children) {
if (config != null) {
if (hasValidRef(config)) {
ref = config.ref;
+
+ {
+ warnIfStringRefCannotBeAutoConverted(config);
+ }
}
if (hasValidKey(config)) {
@@ -27933,12 +30954,6 @@ function createElement(type, config, children) {
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
}
-/**
- * Return a function that produces ReactElements of a given type.
- * See https://reactjs.org/docs/react-api.html#createfactory
- */
-
-
function cloneAndReplaceKey(oldElement, newKey) {
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
return newElement;
@@ -27951,7 +30966,7 @@ function cloneAndReplaceKey(oldElement, newKey) {
function cloneElement(element, config, children) {
if (!!(element === null || element === undefined)) {
{
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
+ throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
}
}
@@ -28160,10 +31175,14 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
var iteratorFn = getIteratorFn(children);
if (typeof iteratorFn === 'function') {
+
{
// Warn about using Maps as children
if (iteratorFn === children.entries) {
- !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
+ if (!didWarnAboutMaps) {
+ warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
+ }
+
didWarnAboutMaps = true;
}
}
@@ -28188,7 +31207,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
{
{
- throw Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum);
+ throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
}
}
}
@@ -28378,7 +31397,7 @@ function toArray(children) {
function onlyChild(children) {
if (!isValidElement(children)) {
{
- throw Error("React.Children.only expected to receive a single React element child.");
+ throw Error( "React.Children.only expected to receive a single React element child." );
}
}
@@ -28390,7 +31409,9 @@ function createContext(defaultValue, calculateChangedBits) {
calculateChangedBits = null;
} else {
{
- !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
+ if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
+ error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
+ }
}
}
@@ -28433,7 +31454,8 @@ function createContext(defaultValue, calculateChangedBits) {
get: function () {
if (!hasWarnedAboutUsingConsumerProvider) {
hasWarnedAboutUsingConsumerProvider = true;
- warning$1(false, 'Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');
+
+ error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');
}
return context.Provider;
@@ -28470,7 +31492,8 @@ function createContext(defaultValue, calculateChangedBits) {
get: function () {
if (!hasWarnedAboutUsingNestedContextConsumers) {
hasWarnedAboutUsingNestedContextConsumers = true;
- warning$1(false, 'Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');
+
+ error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');
}
return context.Consumer;
@@ -28509,7 +31532,8 @@ function lazy(ctor) {
return defaultProps;
},
set: function (newDefaultProps) {
- warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
+ error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
+
defaultProps = newDefaultProps; // Match production behavior more closely:
Object.defineProperty(lazyType, 'defaultProps', {
@@ -28523,7 +31547,8 @@ function lazy(ctor) {
return propTypes;
},
set: function (newPropTypes) {
- warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
+ error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
+
propTypes = newPropTypes; // Match production behavior more closely:
Object.defineProperty(lazyType, 'propTypes', {
@@ -28540,16 +31565,19 @@ function lazy(ctor) {
function forwardRef(render) {
{
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
- warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
+ error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
} else if (typeof render !== 'function') {
- warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
+ error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
} else {
- !( // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
- render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
+ if (render.length !== 0 && render.length !== 2) {
+ error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
+ }
}
if (render != null) {
- !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
+ if (render.defaultProps != null || render.propTypes != null) {
+ error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
+ }
}
}
@@ -28561,13 +31589,13 @@ function forwardRef(render) {
function isValidElementType(type) {
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
}
function memo(type, compare) {
{
if (!isValidElementType(type)) {
- warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
+ error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
}
}
@@ -28583,7 +31611,7 @@ function resolveDispatcher() {
if (!(dispatcher !== null)) {
{
- throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");
+ throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
}
}
@@ -28594,16 +31622,19 @@ function useContext(Context, unstable_observedBits) {
var dispatcher = resolveDispatcher();
{
- !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0; // TODO: add a more generic warning for invalid values.
+ if (unstable_observedBits !== undefined) {
+ error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
+ } // TODO: add a more generic warning for invalid values.
+
if (Context._context !== undefined) {
var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
// and nobody should be using this in existing code.
if (realContext.Consumer === Context) {
- warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
+ error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
} else if (realContext.Provider === Context) {
- warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
+ error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
}
}
}
@@ -28622,25 +31653,25 @@ function useRef(initialValue) {
var dispatcher = resolveDispatcher();
return dispatcher.useRef(initialValue);
}
-function useEffect(create, inputs) {
+function useEffect(create, deps) {
var dispatcher = resolveDispatcher();
- return dispatcher.useEffect(create, inputs);
+ return dispatcher.useEffect(create, deps);
}
-function useLayoutEffect(create, inputs) {
+function useLayoutEffect(create, deps) {
var dispatcher = resolveDispatcher();
- return dispatcher.useLayoutEffect(create, inputs);
+ return dispatcher.useLayoutEffect(create, deps);
}
-function useCallback(callback, inputs) {
+function useCallback(callback, deps) {
var dispatcher = resolveDispatcher();
- return dispatcher.useCallback(callback, inputs);
+ return dispatcher.useCallback(callback, deps);
}
-function useMemo(create, inputs) {
+function useMemo(create, deps) {
var dispatcher = resolveDispatcher();
- return dispatcher.useMemo(create, inputs);
+ return dispatcher.useMemo(create, deps);
}
-function useImperativeHandle(ref, create, inputs) {
+function useImperativeHandle(ref, create, deps) {
var dispatcher = resolveDispatcher();
- return dispatcher.useImperativeHandle(ref, create, inputs);
+ return dispatcher.useImperativeHandle(ref, create, deps);
}
function useDebugValue(value, formatterFn) {
{
@@ -28648,53 +31679,13 @@ function useDebugValue(value, formatterFn) {
return dispatcher.useDebugValue(value, formatterFn);
}
}
-var emptyObject$1 = {};
-function useResponder(responder, listenerProps) {
- var dispatcher = resolveDispatcher();
- {
- if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) {
- warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder);
- return;
- }
- }
-
- return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
-}
-function useTransition(config) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useTransition(config);
-}
-function useDeferredValue(value, config) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useDeferredValue(value, config);
-}
-
-function withSuspenseConfig(scope, config) {
- var previousConfig = ReactCurrentBatchConfig.suspense;
- ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
-
- try {
- scope();
- } finally {
- ReactCurrentBatchConfig.suspense = previousConfig;
- }
-}
-
-/**
- * ReactElementValidator provides a wrapper around a element factory
- * which validates the props passed to the element. This is intended to be
- * used only in DEV and could be replaced by a static type checker for languages
- * that support it.
- */
var propTypesMisspellWarningShown;
{
propTypesMisspellWarningShown = false;
}
-var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
-
function getDeclarationErrorAddendum() {
if (ReactCurrentOwner.current) {
var name = getComponentName(ReactCurrentOwner.current.type);
@@ -28785,7 +31776,7 @@ function validateExplicitKey(element, parentType) {
setCurrentlyValidatingElement(element);
{
- warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
}
setCurrentlyValidatingElement(null);
@@ -28847,36 +31838,39 @@ function validateChildKeys(node, parentType) {
function validatePropTypes(element) {
- var type = element.type;
+ {
+ var type = element.type;
- if (type === null || type === undefined || typeof type === 'string') {
- return;
- }
+ if (type === null || type === undefined || typeof type === 'string') {
+ return;
+ }
- var name = getComponentName(type);
- var propTypes;
+ var name = getComponentName(type);
+ var propTypes;
- if (typeof type === 'function') {
- propTypes = type.propTypes;
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
- // Inner props are checked in the reconciler.
- type.$$typeof === REACT_MEMO_TYPE)) {
- propTypes = type.propTypes;
- } else {
- return;
- }
+ if (typeof type === 'function') {
+ propTypes = type.propTypes;
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
+ // Inner props are checked in the reconciler.
+ type.$$typeof === REACT_MEMO_TYPE)) {
+ propTypes = type.propTypes;
+ } else {
+ return;
+ }
- if (propTypes) {
- setCurrentlyValidatingElement(element);
- checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
- setCurrentlyValidatingElement(null);
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
- propTypesMisspellWarningShown = true;
- warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
- }
+ if (propTypes) {
+ setCurrentlyValidatingElement(element);
+ checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
+ setCurrentlyValidatingElement(null);
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
+ propTypesMisspellWarningShown = true;
- if (typeof type.getDefaultProps === 'function') {
- !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
+ }
+
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
+ }
}
}
/**
@@ -28886,115 +31880,26 @@ function validatePropTypes(element) {
function validateFragmentProps(fragment) {
- setCurrentlyValidatingElement(fragment);
- var keys = Object.keys(fragment.props);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
-
- if (key !== 'children' && key !== 'key') {
- warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
- break;
- }
- }
-
- if (fragment.ref !== null) {
- warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
- }
-
- setCurrentlyValidatingElement(null);
-}
-
-function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
- // succeed and there will likely be errors in render.
-
- if (!validType) {
- var info = '';
-
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
- }
-
- var sourceInfo = getSourceInfoErrorAddendum(source);
-
- if (sourceInfo) {
- info += sourceInfo;
- } else {
- info += getDeclarationErrorAddendum();
- }
-
- var typeString;
-
- if (type === null) {
- typeString = 'null';
- } else if (Array.isArray(type)) {
- typeString = 'array';
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
- info = ' Did you accidentally export a JSX literal instead of a component?';
- } else {
- typeString = typeof type;
- }
-
- warning$1(false, 'React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
- }
-
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
- // TODO: Drop this when these are no longer allowed as the type argument.
-
- if (element == null) {
- return element;
- } // Skip key warning if the type isn't valid since our key validation logic
- // doesn't expect a non-string/function type and can throw confusing errors.
- // We don't want exception behavior to differ between dev and prod.
- // (Rendering will throw with a helpful message and as soon as the type is
- // fixed, the key warnings will appear.)
-
+ {
+ setCurrentlyValidatingElement(fragment);
+ var keys = Object.keys(fragment.props);
- if (validType) {
- var children = props.children;
+ for (var i = 0; i < keys.length; i++) {
+ var key = keys[i];
- if (children !== undefined) {
- if (isStaticChildren) {
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- validateChildKeys(children[i], type);
- }
+ if (key !== 'children' && key !== 'key') {
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
- if (Object.freeze) {
- Object.freeze(children);
- }
- } else {
- warning$1(false, 'React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
- }
- } else {
- validateChildKeys(children, type);
+ break;
}
}
- }
- if (hasOwnProperty$1.call(props, 'key')) {
- warning$1(false, 'React.jsx: Spreading a key to JSX is a deprecated pattern. ' + 'Explicitly pass a key after spreading props in your JSX call. ' + 'E.g. ');
- }
+ if (fragment.ref !== null) {
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
+ }
- if (type === REACT_FRAGMENT_TYPE) {
- validateFragmentProps(element);
- } else {
- validatePropTypes(element);
+ setCurrentlyValidatingElement(null);
}
-
- return element;
-} // These two functions exist to still get child warnings in dev
-// even with the prod transform. This means that jsxDEV is purely
-// opt-in behavior for better messages but that we won't stop
-// giving you warnings if you use production apis.
-
-function jsxWithValidationStatic(type, props, key) {
- return jsxWithValidation(type, props, key, true);
-}
-function jsxWithValidationDynamic(type, props, key) {
- return jsxWithValidation(type, props, key, false);
}
function createElementWithValidation(type, props, children) {
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
@@ -29028,7 +31933,9 @@ function createElementWithValidation(type, props, children) {
typeString = typeof type;
}
- warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
+ {
+ error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
+ }
}
var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
@@ -29057,15 +31964,24 @@ function createElementWithValidation(type, props, children) {
return element;
}
+var didWarnAboutDeprecatedCreateFactory = false;
function createFactoryWithValidation(type) {
var validatedFactory = createElementWithValidation.bind(null, type);
- validatedFactory.type = type; // Legacy hook: remove it
+ validatedFactory.type = type;
{
+ if (!didWarnAboutDeprecatedCreateFactory) {
+ didWarnAboutDeprecatedCreateFactory = true;
+
+ warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
+ } // Legacy hook: remove it
+
+
Object.defineProperty(validatedFactory, 'type', {
enumerable: false,
get: function () {
- lowPriorityWarningWithoutStack$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
+ warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
+
Object.defineProperty(this, 'type', {
value: type
});
@@ -29087,10 +32003,7 @@ function cloneElementWithValidation(element, props, children) {
return newElement;
}
-var hasBadMapPolyfill;
-
{
- hasBadMapPolyfill = false;
try {
var frozenObject = Object.freeze({});
@@ -29102,240 +32015,72 @@ var hasBadMapPolyfill;
testMap.set(0, 0);
testSet.add(0);
} catch (e) {
- // TODO: Consider warning about bad polyfills
- hasBadMapPolyfill = true;
}
}
-function createFundamentalComponent(impl) {
- // We use responder as a Map key later on. When we have a bad
- // polyfill, then we can't use it as a key as the polyfill tries
- // to add a property to the object.
- if (true && !hasBadMapPolyfill) {
- Object.freeze(impl);
- }
-
- var fundamantalComponent = {
- $$typeof: REACT_FUNDAMENTAL_TYPE,
- impl: impl
- };
-
- {
- Object.freeze(fundamantalComponent);
- }
-
- return fundamantalComponent;
-}
-
-function createEventResponder(displayName, responderConfig) {
- var getInitialState = responderConfig.getInitialState,
- onEvent = responderConfig.onEvent,
- onMount = responderConfig.onMount,
- onUnmount = responderConfig.onUnmount,
- onRootEvent = responderConfig.onRootEvent,
- rootEventTypes = responderConfig.rootEventTypes,
- targetEventTypes = responderConfig.targetEventTypes,
- targetPortalPropagation = responderConfig.targetPortalPropagation;
- var eventResponder = {
- $$typeof: REACT_RESPONDER_TYPE,
- displayName: displayName,
- getInitialState: getInitialState || null,
- onEvent: onEvent || null,
- onMount: onMount || null,
- onRootEvent: onRootEvent || null,
- onUnmount: onUnmount || null,
- rootEventTypes: rootEventTypes || null,
- targetEventTypes: targetEventTypes || null,
- targetPortalPropagation: targetPortalPropagation || false
- }; // We use responder as a Map key later on. When we have a bad
- // polyfill, then we can't use it as a key as the polyfill tries
- // to add a property to the object.
-
- if (true && !hasBadMapPolyfill) {
- Object.freeze(eventResponder);
- }
-
- return eventResponder;
-}
-
-function createScope() {
- var scopeComponent = {
- $$typeof: REACT_SCOPE_TYPE
- };
-
- {
- Object.freeze(scopeComponent);
- }
-
- return scopeComponent;
-}
-
-// Helps identify side effects in render-phase lifecycle hooks and setState
-// reducers by double invoking them in Strict Mode.
-
- // To preserve the "Pause on caught exceptions" behavior of the debugger, we
-// replay the begin phase of a failed component inside invokeGuardedCallback.
-
- // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
-
- // Gather advanced timing metrics for Profiler subtrees.
-
- // Trace which interactions trigger each commit.
-
- // SSR experiments
-
-
- // Only used in www builds.
-
- // Only used in www builds.
-
- // Disable javascript: URL strings in href for XSS protection.
-
- // React Fire: prevent the value and checked attributes from syncing
-// with their related DOM properties
-
- // These APIs will no longer be "unstable" in the upcoming 16.7 release,
-// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
-
-var exposeConcurrentModeAPIs = false;
- // Experimental React Flare event system and event components support.
-
-var enableFlareAPI = false; // Experimental Host Component support.
-
-var enableFundamentalAPI = false; // Experimental Scope support.
-
-var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
-
-var enableJSXTransformAPI = false; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
-// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version
-
- // For tests, we flush suspense fallbacks in an act scope;
-// *except* in some of our own tests, where we test incremental loading states.
-
- // Add a callback property to suspense to notify which promises are currently
-// in the update queue. This allows reporting and tracing of what is causing
-// the user to see a loading state.
-// Also allows hydration callbacks to fire when a dehydrated boundary gets
-// hydrated or deleted.
-
- // Part of the simplification of React.createElement so we can eventually move
-// from React.createElement to React.jsx
-// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
-
-
-
-
-
- // Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
-
-var React = {
- Children: {
- map: mapChildren,
- forEach: forEachChildren,
- count: countChildren,
- toArray: toArray,
- only: onlyChild
- },
- createRef: createRef,
- Component: Component,
- PureComponent: PureComponent,
- createContext: createContext,
- forwardRef: forwardRef,
- lazy: lazy,
- memo: memo,
- useCallback: useCallback,
- useContext: useContext,
- useEffect: useEffect,
- useImperativeHandle: useImperativeHandle,
- useDebugValue: useDebugValue,
- useLayoutEffect: useLayoutEffect,
- useMemo: useMemo,
- useReducer: useReducer,
- useRef: useRef,
- useState: useState,
- Fragment: REACT_FRAGMENT_TYPE,
- Profiler: REACT_PROFILER_TYPE,
- StrictMode: REACT_STRICT_MODE_TYPE,
- Suspense: REACT_SUSPENSE_TYPE,
- createElement: createElementWithValidation,
- cloneElement: cloneElementWithValidation,
- createFactory: createFactoryWithValidation,
- isValidElement: isValidElement,
- version: ReactVersion,
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
+var createElement$1 = createElementWithValidation ;
+var cloneElement$1 = cloneElementWithValidation ;
+var createFactory = createFactoryWithValidation ;
+var Children = {
+ map: mapChildren,
+ forEach: forEachChildren,
+ count: countChildren,
+ toArray: toArray,
+ only: onlyChild
};
-if (exposeConcurrentModeAPIs) {
- React.useTransition = useTransition;
- React.useDeferredValue = useDeferredValue;
- React.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
- React.unstable_withSuspenseConfig = withSuspenseConfig;
-}
-
-if (enableFlareAPI) {
- React.unstable_useResponder = useResponder;
- React.unstable_createResponder = createEventResponder;
-}
-
-if (enableFundamentalAPI) {
- React.unstable_createFundamental = createFundamentalComponent;
-}
-
-if (enableScopeAPI) {
- React.unstable_createScope = createScope;
-} // Note: some APIs are added with feature flags.
-// Make sure that stable builds for open source
-// don't modify the React object to avoid deopts.
-// Also let's not expose their names in stable builds.
-
-
-if (enableJSXTransformAPI) {
- {
- React.jsxDEV = jsxWithValidation;
- React.jsx = jsxWithValidationDynamic;
- React.jsxs = jsxWithValidationStatic;
- }
-}
-
-
-
-var React$2 = Object.freeze({
- default: React
-});
-
-var React$3 = ( React$2 && React ) || React$2;
-
-// TODO: decide on the top-level export form.
-// This is hacky but makes it work with both Rollup and Jest.
-
-
-var react = React$3.default || React$3;
-
-module.exports = react;
+exports.Children = Children;
+exports.Component = Component;
+exports.Fragment = REACT_FRAGMENT_TYPE;
+exports.Profiler = REACT_PROFILER_TYPE;
+exports.PureComponent = PureComponent;
+exports.StrictMode = REACT_STRICT_MODE_TYPE;
+exports.Suspense = REACT_SUSPENSE_TYPE;
+exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
+exports.cloneElement = cloneElement$1;
+exports.createContext = createContext;
+exports.createElement = createElement$1;
+exports.createFactory = createFactory;
+exports.createRef = createRef;
+exports.forwardRef = forwardRef;
+exports.isValidElement = isValidElement;
+exports.lazy = lazy;
+exports.memo = memo;
+exports.useCallback = useCallback;
+exports.useContext = useContext;
+exports.useDebugValue = useDebugValue;
+exports.useEffect = useEffect;
+exports.useImperativeHandle = useImperativeHandle;
+exports.useLayoutEffect = useLayoutEffect;
+exports.useMemo = useMemo;
+exports.useReducer = useReducer;
+exports.useRef = useRef;
+exports.useState = useState;
+exports.version = ReactVersion;
})();
}
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 6)))
/***/ }),
-/* 262 */
-/*!*****************************************************************************************!*\
- !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/inheritsLoose.js ***!
- \*****************************************************************************************/
-/*! no static exports found */
+/* 338 */
+/*!*********************************************************************************************!*\
+ !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
+ \*********************************************************************************************/
+/*! exports provided: default */
/*! exports used: default */
-/***/ (function(module, exports) {
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
-module.exports = _inheritsLoose;
-
/***/ }),
-/* 263 */
+/* 339 */
/*!*****************************************************************!*\
!*** ./node_modules/@emotion/stylis/dist/stylis.browser.esm.js ***!
\*****************************************************************/
@@ -29962,7 +32707,7 @@ function stylis_min (W) {
/***/ }),
-/* 264 */
+/* 340 */
/*!*****************************************************************************!*\
!*** ./node_modules/@emotion/weak-memoize/dist/weak-memoize.browser.esm.js ***!
\*****************************************************************************/
@@ -29989,61 +32734,23 @@ var weakMemoize = function weakMemoize(func) {
/***/ }),
-/* 265 */
-/*!***************************************************************!*\
- !*** ./node_modules/@emotion/utils/dist/utils.browser.esm.js ***!
- \***************************************************************/
-/*! exports provided: getRegisteredStyles, insertStyles */
-/*! exports used: getRegisteredStyles, insertStyles */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+/* 341 */
+/*!*****************************************************************************************!*\
+ !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/inheritsLoose.js ***!
+ \*****************************************************************************************/
+/*! dynamic exports provided */
+/***/ (function(module, exports) {
-"use strict";
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; });
-var isBrowser = "object" !== 'undefined';
-function getRegisteredStyles(registered, registeredStyles, classNames) {
- var rawClassName = '';
- classNames.split(' ').forEach(function (className) {
- if (registered[className] !== undefined) {
- registeredStyles.push(registered[className]);
- } else {
- rawClassName += className + " ";
- }
- });
- return rawClassName;
+function _inheritsLoose(subClass, superClass) {
+ subClass.prototype = Object.create(superClass.prototype);
+ subClass.prototype.constructor = subClass;
+ subClass.__proto__ = superClass;
}
-var insertStyles = function insertStyles(cache, serialized, isStringTag) {
- var className = cache.key + "-" + serialized.name;
-
- if ( // we only need to add the styles to the registered cache if the
- // class name could be used further down
- // the tree but if it's a string tag, we know it won't
- // so we don't have to add it to registered cache.
- // this improves memory usage since we can avoid storing the whole style string
- (isStringTag === false || // we need to always store it if we're in compat mode and
- // in node since emotion-server relies on whether a style is in
- // the registered cache to know whether a style is global or not
- // also, note that this check will be dead code eliminated in the browser
- isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
- cache.registered[className] = serialized.styles;
- }
-
- if (cache.inserted[serialized.name] === undefined) {
- var current = serialized;
-
- do {
- var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
-
- current = current.next;
- } while (current !== undefined);
- }
-};
-
-
+module.exports = _inheritsLoose;
/***/ }),
-/* 266 */
+/* 342 */
/*!*************************************************************!*\
!*** ./node_modules/@emotion/hash/dist/hash.browser.esm.js ***!
\*************************************************************/
@@ -30110,7 +32817,7 @@ function murmur2(str) {
/***/ }),
-/* 267 */
+/* 343 */
/*!*********************************************************************!*\
!*** ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js ***!
\*********************************************************************/
@@ -30172,7 +32879,7 @@ var unitlessKeys = {
/***/ }),
-/* 268 */
+/* 344 */
/*!*******************************************************************!*\
!*** ./node_modules/@emotion/memoize/dist/memoize.browser.esm.js ***!
\*******************************************************************/
@@ -30193,16 +32900,16 @@ function memoize(fn) {
/***/ }),
-/* 269 */
+/* 345 */
/*!****************************************************************!*\
!*** ./node_modules/react-dom/cjs/react-dom.production.min.js ***!
\****************************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-/** @license React v16.12.0
+/** @license React v16.14.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
@@ -30214,297 +32921,299 @@ function memoize(fn) {
/*
Modernizr 3.0.0pre (Custom Build) | MIT
*/
-var aa=__webpack_require__(/*! react */ 6),n=__webpack_require__(/*! object-assign */ 27),q=__webpack_require__(/*! scheduler */ 135);function u(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cb}return!1}function B(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var D={};
-"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){D[a]=new B(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];D[b]=new B(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){D[a]=new B(a,2,!1,a.toLowerCase(),null,!1)});
-["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){D[a]=new B(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){D[a]=new B(a,3,!1,a.toLowerCase(),null,!1)});
-["checked","multiple","muted","selected"].forEach(function(a){D[a]=new B(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){D[a]=new B(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){D[a]=new B(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){D[a]=new B(a,5,!1,a.toLowerCase(),null,!1)});var sb=/[\-:]([a-z])/g;function tb(a){return a[1].toUpperCase()}
-"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(sb,
-tb);D[b]=new B(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!1)});
-D.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!0)});function ub(a){switch(typeof a){case "boolean":case "number":case "object":case "string":case "undefined":return a;default:return""}}
-function vb(a,b,c,d){var e=D.hasOwnProperty(b)?D[b]:null;var f=null!==e?0===e.type:d?!1:!(2=b.length))throw Error(u(93));b=b[0]}c=b}null==c&&(c="")}a._wrapperState={initialValue:ub(c)}}
-function Mb(a,b){var c=ub(b.value),d=ub(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Nb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Ob={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
-function Pb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Pb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
-var Rb,Sb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Ob.svg||"innerHTML"in a)a.innerHTML=b;else{Rb=Rb||document.createElement("div");Rb.innerHTML="";for(b=Rb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});
-function Tb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Ub(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Vb={animationend:Ub("Animation","AnimationEnd"),animationiteration:Ub("Animation","AnimationIteration"),animationstart:Ub("Animation","AnimationStart"),transitionend:Ub("Transition","TransitionEnd")},Wb={},Xb={};
-Ya&&(Xb=document.createElement("div").style,"AnimationEvent"in window||(delete Vb.animationend.animation,delete Vb.animationiteration.animation,delete Vb.animationstart.animation),"TransitionEvent"in window||delete Vb.transitionend.transition);function Yb(a){if(Wb[a])return Wb[a];if(!Vb[a])return a;var b=Vb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Xb)return Wb[a]=b[c];return a}var Zb=Yb("animationend"),$b=Yb("animationiteration"),ac=Yb("animationstart"),bc=Yb("transitionend"),cc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");
-function ec(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function fc(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function gc(a){if(ec(a)!==a)throw Error(u(188));}
-function hc(a){var b=a.alternate;if(!b){b=ec(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return gc(e),a;if(f===d)return gc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===
-c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function ic(a){a=hc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}
-var jc,kc,lc,mc=!1,nc=[],oc=null,pc=null,qc=null,rc=new Map,sc=new Map,tc=[],uc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),vc="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");
-function wc(a){var b=xc(a);uc.forEach(function(c){yc(c,a,b)});vc.forEach(function(c){yc(c,a,b)})}function zc(a,b,c,d){return{blockedOn:a,topLevelType:b,eventSystemFlags:c|32,nativeEvent:d}}function Ac(a,b){switch(a){case "focus":case "blur":oc=null;break;case "dragenter":case "dragleave":pc=null;break;case "mouseover":case "mouseout":qc=null;break;case "pointerover":case "pointerout":rc.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":sc.delete(b.pointerId)}}
-function Bc(a,b,c,d,e){if(null===a||a.nativeEvent!==e)return a=zc(b,c,d,e),null!==b&&(b=Cc(b),null!==b&&kc(b)),a;a.eventSystemFlags|=d;return a}function Dc(a,b,c,d){switch(b){case "focus":return oc=Bc(oc,a,b,c,d),!0;case "dragenter":return pc=Bc(pc,a,b,c,d),!0;case "mouseover":return qc=Bc(qc,a,b,c,d),!0;case "pointerover":var e=d.pointerId;rc.set(e,Bc(rc.get(e)||null,a,b,c,d));return!0;case "gotpointercapture":return e=d.pointerId,sc.set(e,Bc(sc.get(e)||null,a,b,c,d)),!0}return!1}
-function Ec(a){var b=Fc(a.target);if(null!==b){var c=ec(b);if(null!==c)if(b=c.tag,13===b){if(b=fc(c),null!==b){a.blockedOn=b;q.unstable_runWithPriority(a.priority,function(){lc(c)});return}}else if(3===b&&c.stateNode.hydrate){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}function Gc(a){if(null!==a.blockedOn)return!1;var b=Hc(a.topLevelType,a.eventSystemFlags,a.nativeEvent);if(null!==b){var c=Cc(b);null!==c&&kc(c);a.blockedOn=b;return!1}return!0}
-function Ic(a,b,c){Gc(a)&&c.delete(b)}function Jc(){for(mc=!1;0this.eventPool.length&&this.eventPool.push(a)}function Vc(a){a.eventPool=[];a.getPooled=Wc;a.release=Xc}var Yc=E.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zc=E.extend({clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),$c=E.extend({view:null,detail:null}),ad=$c.extend({relatedTarget:null});
-function bd(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}
-var cd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",
-116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ed={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=ed[a])?!!b[a]:!1}function hd(){return gd}
-var id=$c.extend({key:function(a){if(a.key){var b=cd[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?(a=bd(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?dd[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:hd,charCode:function(a){return"keypress"===a.type?bd(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===
-a.type?bd(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),jd=0,kd=0,ld=!1,md=!1,nd=$c.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:hd,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)},movementX:function(a){if("movementX"in a)return a.movementX;var b=jd;jd=a.screenX;return ld?"mousemove"===a.type?a.screenX-
-b:0:(ld=!0,0)},movementY:function(a){if("movementY"in a)return a.movementY;var b=kd;kd=a.screenY;return md?"mousemove"===a.type?a.screenY-b:0:(md=!0,0)}}),od=nd.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),pd=nd.extend({dataTransfer:null}),qd=$c.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:hd}),rd=E.extend({propertyName:null,
-elapsedTime:null,pseudoElement:null}),sd=nd.extend({deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null}),td=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",
-0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",
-0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",
-2],[Zb,"animationEnd",2],[$b,"animationIteration",2],[ac,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress",
-"progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[bc,"transitionEnd",2],["waiting","waiting",2]],ud={},vd={},wd=0;for(;wd=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ce(c)}}
-function ee(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?ee(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function fe(){for(var a=window,b=be();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=be(a.document)}return b}
-function ge(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var he="$",ie="/$",je="$?",ke="$!",le=null,me=null;function ne(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1}
-function oe(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var pe="function"===typeof setTimeout?setTimeout:void 0,qe="function"===typeof clearTimeout?clearTimeout:void 0;function re(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}
-function se(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===he||c===ke||c===je){if(0===b)return a;b--}else c===ie&&b++}a=a.previousSibling}return null}var te=Math.random().toString(36).slice(2),ue="__reactInternalInstance$"+te,ve="__reactEventHandlers$"+te,we="__reactContainere$"+te;
-function Fc(a){var b=a[ue];if(b)return b;for(var c=a.parentNode;c;){if(b=c[we]||c[ue]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=se(a);null!==a;){if(c=a[ue])return c;a=se(a)}return b}a=c;c=a.parentNode}return null}function Cc(a){a=a[ue]||a[we];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function xe(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function ye(a){return a[ve]||null}var ze=null,Ae=null,Be=null;
-function Ce(){if(Be)return Be;var a,b=Ae,c=b.length,d,e="value"in ze?ze.value:ze.textContent,f=e.length;for(a=0;a=He),Ke=String.fromCharCode(32),Le={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",
-captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Me=!1;
-function Ne(a,b){switch(a){case "keyup":return-1!==Fe.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function Oe(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var Pe=!1;function Qe(a,b){switch(a){case "compositionend":return Oe(b);case "keypress":if(32!==b.which)return null;Me=!0;return Ke;case "textInput":return a=b.data,a===Ke&&Me?null:a;default:return null}}
-function Re(a,b){if(Pe)return"compositionend"===a||!Ge&&Ne(a,b)?(a=Ce(),Be=Ae=ze=null,Pe=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,sf={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},tf=null,uf=null,vf=null,wf=!1;
-function xf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(wf||null==tf||tf!==be(c))return null;c=tf;"selectionStart"in c&&ge(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return vf&&qf(vf,c)?null:(vf=c,a=E.getPooled(sf.select,uf,a,b),a.type="select",a.target=tf,Sc(a),a)}
-var yf={eventTypes:sf,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=xc(e);f=ja.onSelect;for(var g=0;gBf||(a.current=Af[Bf],Af[Bf]=null,Bf--)}
-function I(a,b){Bf++;Af[Bf]=a.current;a.current=b}var Cf={},J={current:Cf},K={current:!1},Df=Cf;function Ef(a,b){var c=a.type.contextTypes;if(!c)return Cf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a}
-function Ff(a){G(K,a);G(J,a)}function Gf(a){G(K,a);G(J,a)}function Hf(a,b,c){if(J.current!==Cf)throw Error(u(168));I(J,b,a);I(K,c,a)}function If(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,Wa(b)||"Unknown",e));return n({},c,{},d)}function Jf(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||Cf;Df=J.current;I(J,b,a);I(K,K.current,a);return!0}
-function Kf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(b=If(a,b,Df),d.__reactInternalMemoizedMergedChildContext=b,G(K,a),G(J,a),I(J,b,a)):G(K,a);I(K,c,a)}
-var Lf=q.unstable_runWithPriority,Mf=q.unstable_scheduleCallback,Nf=q.unstable_cancelCallback,Of=q.unstable_shouldYield,Pf=q.unstable_requestPaint,Qf=q.unstable_now,Rf=q.unstable_getCurrentPriorityLevel,Sf=q.unstable_ImmediatePriority,Tf=q.unstable_UserBlockingPriority,Uf=q.unstable_NormalPriority,Vf=q.unstable_LowPriority,Wf=q.unstable_IdlePriority,Xf={},Yf=void 0!==Pf?Pf:function(){},Zf=null,$f=null,ag=!1,bg=Qf(),cg=1E4>bg?Qf:function(){return Qf()-bg};
-function dg(){switch(Rf()){case Sf:return 99;case Tf:return 98;case Uf:return 97;case Vf:return 96;case Wf:return 95;default:throw Error(u(332));}}function eg(a){switch(a){case 99:return Sf;case 98:return Tf;case 97:return Uf;case 96:return Vf;case 95:return Wf;default:throw Error(u(332));}}function fg(a,b){a=eg(a);return Lf(a,b)}function gg(a,b,c){a=eg(a);return Mf(a,b,c)}function hg(a){null===Zf?(Zf=[a],$f=Mf(Sf,ig)):Zf.push(a);return Xf}function jg(){if(null!==$f){var a=$f;$f=null;Nf(a)}ig()}
-function ig(){if(!ag&&null!==Zf){ag=!0;var a=0;try{var b=Zf;fg(99,function(){for(;a=b&&(wg=!0),a.firstContext=null)}function xg(a,b){if(qg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)qg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===pg){if(null===og)throw Error(u(308));pg=b;og.dependencies={expirationTime:0,firstContext:b,responders:null}}else pg=pg.next=b}return a._currentValue}var yg=!1;
-function zg(a){return{baseState:a,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ag(a){return{baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}
-function Bg(a,b){return{expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Cg(a,b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b)}
-function Dg(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var e=null;null===d&&(d=a.updateQueue=zg(a.memoizedState))}else d=a.updateQueue,e=c.updateQueue,null===d?null===e?(d=a.updateQueue=zg(a.memoizedState),e=c.updateQueue=zg(c.memoizedState)):d=a.updateQueue=Ag(e):null===e&&(e=c.updateQueue=Ag(d));null===e||d===e?Cg(d,b):null===d.lastUpdate||null===e.lastUpdate?(Cg(d,b),Cg(e,b)):(Cg(d,b),e.lastUpdate=b)}
-function Eg(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=zg(a.memoizedState):Fg(a,c);null===c.lastCapturedUpdate?c.firstCapturedUpdate=c.lastCapturedUpdate=b:(c.lastCapturedUpdate.next=b,c.lastCapturedUpdate=b)}function Fg(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=Ag(b));return b}
-function Gg(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,"function"===typeof a?a.call(f,d,e):a;case 3:a.effectTag=a.effectTag&-4097|64;case 0:a=c.payload;e="function"===typeof a?a.call(f,d,e):a;if(null===e||void 0===e)break;return n({},d,e);case 2:yg=!0}return d}
-function Hg(a,b,c,d,e){yg=!1;b=Fg(a,b);for(var f=b.baseState,g=null,h=0,k=b.firstUpdate,l=f;null!==k;){var m=k.expirationTime;mx?(A=r,r=null):A=r.sibling;var p=y(e,r,h[x],k);if(null===p){null===r&&(r=A);break}a&&
-r&&null===p.alternate&&b(e,r);g=f(p,g,x);null===m?l=p:m.sibling=p;m=p;r=A}if(x===h.length)return c(e,r),l;if(null===r){for(;xx?(A=r,r=null):A=r.sibling;var z=y(e,r,p.value,k);if(null===z){null===r&&(r=A);break}a&&r&&null===z.alternate&&b(e,r);g=f(z,g,x);null===m?l=z:m.sibling=z;m=z;r=A}if(p.done)return c(e,r),l;if(null===r){for(;!p.done;x++,p=h.next())p=C(e,p.value,k),null!==p&&(g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);return l}for(r=d(e,r);!p.done;x++,p=h.next())p=H(r,e,x,p.value,k),null!==p&&(a&&null!==
-p.alternate&&r.delete(null===p.key?x:p.key),g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);a&&r.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===Ia&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Ga:a:{l=f.key;for(k=d;null!==k;){if(k.key===l)if(7===k.tag?f.type===Ia:k.elementType===f.type){c(a,k.sibling);d=e(k,f.type===Ia?f.props.children:f.props,h);d.ref=Yg(a,k,f);d.return=a;a=d;break a}else{c(a,
-k);break}else b(a,k);k=k.sibling}f.type===Ia?(d=eh(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=ch(f.type,f.key,f.props,null,a.mode,h),h.ref=Yg(a,d,f),h.return=a,a=h)}return g(a);case Ha:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=dh(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===
-typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=a,a=d):(c(a,d),d=bh(f,a.mode,h),d.return=a,a=d),g(a);if(Xg(f))return z(a,d,f,h);if(Ua(f))return ta(a,d,f,h);l&&Zg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"));}return c(a,d)}}var fh=$g(!0),gh=$g(!1),hh={},ih={current:hh},jh={current:hh},kh={current:hh};function lh(a){if(a===hh)throw Error(u(174));return a}
-function mh(a,b){I(kh,b,a);I(jh,a,a);I(ih,hh,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Qb(null,"");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Qb(b,c)}G(ih,a);I(ih,b,a)}function nh(a){G(ih,a);G(jh,a);G(kh,a)}function oh(a){lh(kh.current);var b=lh(ih.current);var c=Qb(b,a.type);b!==c&&(I(jh,a,a),I(ih,c,a))}function ph(a){jh.current===a&&(G(ih,a),G(jh,a))}var M={current:0};
-function qh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===je||c.data===ke))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function rh(a,b){return{responder:a,props:b}}
-var sh=Ea.ReactCurrentDispatcher,N=Ea.ReactCurrentBatchConfig,th=0,uh=null,O=null,vh=null,wh=null,P=null,xh=null,yh=0,zh=null,Ah=0,Bh=!1,Ch=null,Gh=0;function Q(){throw Error(u(321));}function Hh(a,b){if(null===b)return!1;for(var c=0;cyh&&(yh=m,Jg(yh))):(Ig(m,k.suspenseConfig),f=k.eagerReducer===a?k.eagerState:a(f,k.action));g=k;k=k.next}while(null!==k&&k!==d);l||(h=g,e=f);of(f,b.memoizedState)||(wg=!0);b.memoizedState=f;b.baseUpdate=h;b.baseState=e;c.lastRenderedState=f}return[b.memoizedState,c.dispatch]}
-function Rh(a){var b=Nh();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={last:null,dispatch:null,lastRenderedReducer:Ph,lastRenderedState:a};a=a.dispatch=Sh.bind(null,uh,a);return[b.memoizedState,a]}function Th(a){return Qh(Ph,a)}function Uh(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};null===zh?(zh={lastEffect:null},zh.lastEffect=a.next=a):(b=zh.lastEffect,null===b?zh.lastEffect=a.next=a:(c=b.next,b.next=a,a.next=c,zh.lastEffect=a));return a}
-function Vh(a,b,c,d){var e=Nh();Ah|=a;e.memoizedState=Uh(b,c,void 0,void 0===d?null:d)}function Wh(a,b,c,d){var e=Oh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&Hh(d,g.deps)){Uh(0,c,f,d);return}}Ah|=a;e.memoizedState=Uh(b,c,f,d)}function Xh(a,b){return Vh(516,192,a,b)}function Yh(a,b){return Wh(516,192,a,b)}
-function Zh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function $h(){}function ai(a,b){Nh().memoizedState=[a,void 0===b?null:b];return a}function bi(a,b){var c=Oh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}
-function Sh(a,b,c){if(!(25>Gh))throw Error(u(301));var d=a.alternate;if(a===uh||null!==d&&d===uh)if(Bh=!0,a={expirationTime:th,suspenseConfig:null,action:c,eagerReducer:null,eagerState:null,next:null},null===Ch&&(Ch=new Map),c=Ch.get(b),void 0===c)Ch.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}else{var e=Pg(),f=Mg.suspense;e=Qg(e,a,f);f={expirationTime:e,suspenseConfig:f,action:c,eagerReducer:null,eagerState:null,next:null};var g=b.last;if(null===g)f.next=f;else{var h=g.next;null!==h&&
-(f.next=h);g.next=f}b.last=f;if(0===a.expirationTime&&(null===d||0===d.expirationTime)&&(d=b.lastRenderedReducer,null!==d))try{var k=b.lastRenderedState,l=d(k,c);f.eagerReducer=d;f.eagerState=l;if(of(l,k))return}catch(m){}finally{}Rg(a,e)}}
-var Lh={readContext:xg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useResponder:Q,useDeferredValue:Q,useTransition:Q},Jh={readContext:xg,useCallback:ai,useContext:xg,useEffect:Xh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Vh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Vh(4,36,a,b)},useMemo:function(a,b){var c=Nh();b=void 0===b?null:b;a=a();c.memoizedState=
-[a,b];return a},useReducer:function(a,b,c){var d=Nh();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={last:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Sh.bind(null,uh,a);return[d.memoizedState,a]},useRef:function(a){var b=Nh();a={current:a};return b.memoizedState=a},useState:Rh,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Rh(a),d=c[0],e=c[1];Xh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense=
-c}})},[a,b]);return d},useTransition:function(a){var b=Rh(!1),c=b[0],d=b[1];return[ai(function(b){d(!0);q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},Kh={readContext:xg,useCallback:bi,useContext:xg,useEffect:Yh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Wh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Wh(4,36,a,b)},useMemo:function(a,b){var c=Oh();b=void 0===b?
-null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a},useReducer:Qh,useRef:function(){return Oh().memoizedState},useState:Th,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Th(a),d=c[0],e=c[1];Yh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense=c}})},[a,b]);return d},useTransition:function(a){var b=Th(!1),c=b[0],d=b[1];return[bi(function(b){d(!0);q.unstable_next(function(){var c=
-N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},ci=null,di=null,ei=!1;function fi(a,b){var c=gi(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}
-function hi(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}}
-function ii(a){if(ei){var b=di;if(b){var c=b;if(!hi(a,b)){b=re(c.nextSibling);if(!b||!hi(a,b)){a.effectTag=a.effectTag&-1025|2;ei=!1;ci=a;return}fi(ci,c)}ci=a;di=re(b.firstChild)}else a.effectTag=a.effectTag&-1025|2,ei=!1,ci=a}}function ji(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;ci=a}
-function ki(a){if(a!==ci)return!1;if(!ei)return ji(a),ei=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!oe(b,a.memoizedProps))for(b=di;b;)fi(a,b),b=re(b.nextSibling);ji(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(u(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(c===ie){if(0===b){di=re(a.nextSibling);break a}b--}else c!==he&&c!==ke&&c!==je||b++}a=a.nextSibling}di=null}}else di=ci?re(a.stateNode.nextSibling):null;return!0}
-function li(){di=ci=null;ei=!1}var mi=Ea.ReactCurrentOwner,wg=!1;function R(a,b,c,d){b.child=null===a?gh(b,null,c,d):fh(b,a.child,c,d)}function ni(a,b,c,d,e){c=c.render;var f=b.ref;vg(b,e);d=Ih(a,b,c,d,f,e);if(null!==a&&!wg)return b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),oi(a,b,e);b.effectTag|=1;R(a,b,d,e);return b.child}
-function pi(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!qi(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,ri(a,b,g,d,e,f);a=ch(c.type,null,d,null,b.mode,f);a.ref=b.ref;a.return=b;return b.child=a}g=a.child;if(eb)&&Gj.set(a,b)))}}
-function Kj(a,b){a.expirationTimea?b:a}
-function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=hg(Lj.bind(null,a));else{var b=Oj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Pg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Xf&&Nf(c)}a.callbackExpirationTime=
-b;a.callbackPriority=d;b=1073741823===b?hg(Lj.bind(null,a)):gg(d,Qj.bind(null,a),{timeout:10*(1073741821-b)-cg()});a.callbackNode=b}}}
-function Qj(a,b){Jj=0;if(b)return b=Pg(),Rj(a,b),Z(a),null;var c=Oj(a);if(0!==c){b=a.callbackNode;if((T&(oj|pj))!==S)throw Error(u(327));Sj();a===U&&c===W||Tj(a,c);if(null!==V){var d=T;T|=oj;var e=Uj(a);do try{Vj();break}catch(h){Wj(a,h)}while(1);rg();T=d;lj.current=e;if(X===rj)throw b=wj,Tj(a,c),Mj(a,c),Z(a),b;if(null===V)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=X,U=null,d){case qj:case rj:throw Error(u(345));case sj:Rj(a,2=c){a.lastPingedTime=c;Tj(a,c);break}}f=Oj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=pe(Yj.bind(null,a),e);break}Yj(a);break;case uj:Mj(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Xj(e));if(Bj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Tj(a,c);break}e=Oj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=
-d;break}1073741823!==yj?d=10*(1073741821-yj)-cg():1073741823===xj?d=0:(d=10*(1073741821-xj)-5E3,e=cg(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*kj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=cg()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+Xa(e))}X!==vj&&(X=sj);f=Ni(f,e);k=d;do{switch(k.tag){case 3:g=f;k.effectTag|=4096;k.expirationTime=b;var x=fj(k,g,b);Eg(k,x);break a;case 1:g=f;var A=k.type,p=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof A.getDerivedStateFromError||null!==p&&"function"===typeof p.componentDidCatch&&
-(null===jj||!jj.has(p)))){k.effectTag|=4096;k.expirationTime=b;var t=ij(k,g,b);Eg(k,t);break a}}k=k.return}while(null!==k)}V=ek(V)}catch(v){b=v;continue}break}while(1)}function Uj(){var a=lj.current;lj.current=Lh;return null===a?Lh:a}function Ig(a,b){aAj&&(Aj=a)}function Zj(){for(;null!==V;)V=fk(V)}function Vj(){for(;null!==V&&!Of();)V=fk(V)}
-function fk(a){var b=gk(a.alternate,a,W);a.memoizedProps=a.pendingProps;null===b&&(b=ek(a));mj.current=null;return b}
-function ek(a){V=a;do{var b=V.alternate;a=V.return;if(0===(V.effectTag&2048)){a:{var c=b;b=V;var d=W;var e=b.pendingProps;switch(b.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:L(b.type)&&Ff(b);break;case 3:nh(b);Gf(b);e=b.stateNode;e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null);(null===c||null===c.child)&&ki(b)&&Ci(b);Ii(b);break;case 5:ph(b);d=lh(kh.current);var f=b.type;if(null!==c&&null!=b.stateNode)Ji(c,b,f,e,d),c.ref!==b.ref&&(b.effectTag|=128);else if(e){var g=
-lh(ih.current);if(ki(b)){e=b;var h=e.stateNode;c=e.type;var k=e.memoizedProps,l=d;h[ue]=e;h[ve]=k;f=void 0;d=h;switch(c){case "iframe":case "object":case "embed":F("load",d);break;case "video":case "audio":for(h=0;h\x3c/script>",h=k.removeChild(k.firstChild)):"string"===typeof k.is?h=h.createElement(l,{is:k.is}):(h=h.createElement(l),"select"===l&&(l=h,k.multiple?l.multiple=!0:k.size&&(l.size=k.size))):h=h.createElementNS(g,l);k=h;k[ue]=c;k[ve]=e;Hi(k,b,!1,!1);b.stateNode=k;l=f;c=e;var m=d,C=Zd(l,c);switch(l){case "iframe":case "object":case "embed":F("load",
-k);d=c;break;case "video":case "audio":for(d=0;de.tailExpiration&&1f&&(f=c),k>f&&(f=k),d=d.sibling;e.childExpirationTime=f}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=V.firstEffect),null!==V.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=
-V.firstEffect),a.lastEffect=V.lastEffect),1a?b:a}function Yj(a){var b=dg();fg(99,ik.bind(null,a,b));return null}
-function ik(a,b){do Sj();while(null!==Ej);if((T&(oj|pj))!==S)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Xj(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=
-d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===U&&(V=U=null,W=0);1h&&(l=h,h=g,g=l),l=de(p,g),m=de(p,h),l&&m&&(1!==v.rangeCount||v.anchorNode!==l.node||v.anchorOffset!==l.offset||v.focusNode!==m.node||v.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),v.removeAllRanges(),g>h?(v.addRange(t),v.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),v.addRange(t))))));t=[];for(v=p;v=v.parentNode;)1===v.nodeType&&t.push({element:v,left:v.scrollLeft,top:v.scrollTop});
-"function"===typeof p.focus&&p.focus();for(p=0;p=c)return yi(a,b,c);I(M,M.current&
-1,b);b=oi(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1,b);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Bi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current,b);if(!d)return null}return oi(a,b,c)}wg=!1}}else wg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ef(b,J.current);vg(b,c);e=Ih(null,b,d,a,e,c);b.effectTag|=1;if("object"===
-typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;Mh();if(L(d)){var f=!0;Jf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;var g=d.getDerivedStateFromProps;"function"===typeof g&&Og(b,d,g,a);e.updater=Sg;b.stateNode=e;e._reactInternalFiber=b;Wg(b,d,a,c);b=vi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Va(e);if(1!==e._status)throw e._result;
-e=e._result;b.type=e;f=b.tag=nk(e);a=mg(e,a);switch(f){case 0:b=si(null,b,e,a,c);break;case 1:b=ui(null,b,e,a,c);break;case 11:b=ni(null,b,e,a,c);break;case 14:b=pi(null,b,e,mg(e.type,a),d,c);break;default:throw Error(u(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),si(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ui(a,b,d,e,c);case 3:wi(b);d=b.updateQueue;if(null===d)throw Error(u(282));e=b.memoizedState;e=null!==e?e.element:
-null;Hg(b,d,b.pendingProps,null,c);d=b.memoizedState.element;if(d===e)li(),b=oi(a,b,c);else{if(e=b.stateNode.hydrate)di=re(b.stateNode.containerInfo.firstChild),ci=b,e=ei=!0;if(e)for(c=gh(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),li();b=b.child}return b;case 5:return oh(b),null===a&&ii(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,oe(d,e)?g=null:null!==f&&oe(d,f)&&(b.effectTag|=16),ti(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=
-b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&ii(b),null;case 13:return yi(a,b,c);case 4:return mh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=fh(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ni(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;
-e=b.pendingProps;g=b.memoizedProps;f=e.value;sg(b,f);if(null!==g){var h=g.value;f=of(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0;if(0===f){if(g.children===e.children&&!K.current){b=oi(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=Bg(c,null),l.tag=2,Dg(h,l));h.expirationTimeb}return!1}function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var C={};
+"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)});
+["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new v(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)});
+["checked","multiple","muted","selected"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)});var Ua=/[\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}
+"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(Ua,
+Va);C[b]=new v(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)});
+C.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)});var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty("ReactCurrentDispatcher")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty("ReactCurrentBatchConfig")||(Wa.ReactCurrentBatchConfig={suspense:null});
+function Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?0===e.type:d?!1:!(2=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b="");c=b}a._wrapperState={initialValue:rb(c)}}
+function Kb(a,b){var c=rb(b.value),d=rb(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Mb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
+function Nb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ob(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Nb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
+var Pb,Qb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Mb.svg||"innerHTML"in a)a.innerHTML=b;else{Pb=Pb||document.createElement("div");Pb.innerHTML="";for(b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});
+function Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Sb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Tb={animationend:Sb("Animation","AnimationEnd"),animationiteration:Sb("Animation","AnimationIteration"),animationstart:Sb("Animation","AnimationStart"),transitionend:Sb("Transition","TransitionEnd")},Ub={},Vb={};
+ya&&(Vb=document.createElement("div").style,"AnimationEvent"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),"TransitionEvent"in window||delete Tb.transitionend.transition);function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var b=Tb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a}
+var Xb=Wb("animationend"),Yb=Wb("animationiteration"),Zb=Wb("animationstart"),$b=Wb("transitionend"),ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bc=new ("function"===typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);void 0===b&&(b=new Map,bc.set(a,b));return b}
+function dc(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function ec(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function fc(a){if(dc(a)!==a)throw Error(u(188));}
+function gc(a){var b=a.alternate;if(!b){b=dc(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return fc(e),a;if(f===d)return fc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===
+c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function hc(a){a=gc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}
+function ic(a,b){if(null==b)throw Error(u(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null;
+function lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;dpc.length&&pc.push(a)}
+function rc(a,b,c,d){if(pc.length){var e=pc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}}
+function sc(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=tc(d)}while(c);for(c=0;c=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ud(c)}}
+function wd(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wd(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xd(){for(var a=window,b=td();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=td(a.document)}return b}
+function yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var zd="$",Ad="/$",Bd="$?",Cd="$!",Dd=null,Ed=null;function Fd(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1}
+function Gd(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Hd="function"===typeof setTimeout?setTimeout:void 0,Id="function"===typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}
+function Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===zd||c===Cd||c===Bd){if(0===b)return a;b--}else c===Ad&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md="__reactInternalInstance$"+Ld,Nd="__reactEventHandlers$"+Ld,Od="__reactContainere$"+Ld;
+function tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}a=c;c=a.parentNode}return null}function Nc(a){a=a[Md]||a[Od];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function Qd(a){return a[Nd]||null}
+function Rd(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}
+function Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(c);if(!d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!==typeof c)throw Error(u(231,
+b,typeof c));return c}function Td(a,b,c){if(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a)}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[];a.getPooled=ee;a.release=fe}var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&"CompositionEvent"in window,ke=null;ya&&"documentMode"in document&&(ke=document.documentMode);
+var le=ya&&"TextEvent"in window&&!ke,me=ya&&(!je||ke&&8=ke),ne=String.fromCharCode(32),oe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",
+captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},pe=!1;
+function qe(a,b){switch(a){case "keyup":return-1!==ie.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function re(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var se=!1;function te(a,b){switch(a){case "compositionend":return re(b);case "keypress":if(32!==b.which)return null;pe=!0;return ne;case "textInput":return a=b.data,a===ne&&pe?null:a;default:return null}}
+function ue(a,b){if(se)return"compositionend"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ef=null,ff=null,gf=null,hf=!1;
+function jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(hf||null==ef||ef!==td(c))return null;c=ef;"selectionStart"in c&&yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return gf&&bf(gf,c)?null:(gf=c,a=G.getPooled(df.select,ff,a,b),a.type="select",a.target=ef,Xd(a),a)}
+var kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument);if(!(f=!e)){a:{e=cc(e);f=wa.onSelect;for(var g=0;gzf||(a.current=yf[zf],yf[zf]=null,zf--)}
+function I(a,b){zf++;yf[zf]=a.current;a.current=b}var Af={},J={current:Af},K={current:!1},Bf=Af;function Cf(a,b){var c=a.type.contextTypes;if(!c)return Af;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a}
+function Df(){H(K);H(J)}function Ef(a,b,c){if(J.current!==Af)throw Error(u(168));I(J,b);I(K,c)}function Ff(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,pb(b)||"Unknown",e));return n({},c,{},d)}function Gf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Af;Bf=J.current;I(J,a);I(K,K.current);return!0}
+function Hf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(a=Ff(a,b,Bf),d.__reactInternalMemoizedMergedChildContext=a,H(K),H(J),I(J,a)):H(K);I(K,c)}
+var If=r.unstable_runWithPriority,Jf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,Lf=r.unstable_requestPaint,Mf=r.unstable_now,Nf=r.unstable_getCurrentPriorityLevel,Of=r.unstable_ImmediatePriority,Pf=r.unstable_UserBlockingPriority,Qf=r.unstable_NormalPriority,Rf=r.unstable_LowPriority,Sf=r.unstable_IdlePriority,Tf={},Uf=r.unstable_shouldYield,Vf=void 0!==Lf?Lf:function(){},Wf=null,Xf=null,Yf=!1,Zf=Mf(),$f=1E4>Zf?Mf:function(){return Mf()-Zf};
+function ag(){switch(Nf()){case Of:return 99;case Pf:return 98;case Qf:return 97;case Rf:return 96;case Sf:return 95;default:throw Error(u(332));}}function bg(a){switch(a){case 99:return Of;case 98:return Pf;case 97:return Qf;case 96:return Rf;case 95:return Sf;default:throw Error(u(332));}}function cg(a,b){a=bg(a);return If(a,b)}function dg(a,b,c){a=bg(a);return Jf(a,b,c)}function eg(a){null===Wf?(Wf=[a],Xf=Jf(Of,fg)):Wf.push(a);return Tf}function gg(){if(null!==Xf){var a=Xf;Xf=null;Kf(a)}fg()}
+function fg(){if(!Yf&&null!==Wf){Yf=!0;var a=0;try{var b=Wf;cg(99,function(){for(;a=b&&(rg=!0),a.firstContext=null)}
+function sg(a,b){if(mg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)mg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===lg){if(null===kg)throw Error(u(308));lg=b;kg.dependencies={expirationTime:0,firstContext:b,responders:null}}else lg=lg.next=b}return a._currentValue}var tg=!1;function ug(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}
+function vg(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function wg(a,b){a={expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null};return a.next=a}function xg(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}
+function yg(a,b){var c=a.alternate;null!==c&&vg(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}
+function zg(a,b,c,d){var e=a.updateQueue;tg=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var k=e.baseState,l=0,m=null,p=null,x=null;if(null!==h){var z=h;do{g=z.expirationTime;if(gl&&(l=g)}else{null!==x&&(x=x.next={expirationTime:1073741823,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null});Ag(g,z.suspenseConfig);a:{var D=a,t=z;g=b;ca=c;switch(t.tag){case 1:D=t.payload;if("function"===typeof D){k=D.call(ca,k,g);break a}k=D;break a;case 3:D.effectTag=D.effectTag&-4097|64;case 0:D=t.payload;g="function"===typeof D?D.call(ca,k,g):D;if(null===g||void 0===g)break a;k=n({},k,g);break a;case 2:tg=!0}}null!==z.callback&&
+(a.effectTag|=32,g=e.effects,null===g?e.effects=[z]:g.push(z))}z=z.next;if(null===z||z===h)if(g=e.shared.pending,null===g)break;else z=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===x?m=k:x.next=p;e.baseState=m;e.baseQueue=x;Bg(l);a.expirationTime=l;a.memoizedState=k}}
+function Cg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;by?(A=m,m=null):A=m.sibling;var q=x(e,m,h[y],k);if(null===q){null===m&&(m=A);break}a&&
+m&&null===q.alternate&&b(e,m);g=f(q,g,y);null===t?l=q:t.sibling=q;t=q;m=A}if(y===h.length)return c(e,m),l;if(null===m){for(;yy?(A=t,t=null):A=t.sibling;var D=x(e,t,q.value,l);if(null===D){null===t&&(t=A);break}a&&t&&null===D.alternate&&b(e,t);g=f(D,g,y);null===m?k=D:m.sibling=D;m=D;t=A}if(q.done)return c(e,t),k;if(null===t){for(;!q.done;y++,q=h.next())q=p(e,q.value,l),null!==q&&(g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return k}for(t=d(e,t);!q.done;y++,q=h.next())q=z(t,e,y,q.value,l),null!==q&&(a&&null!==
+q.alternate&&t.delete(null===q.key?y:q.key),g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);a&&t.forEach(function(a){return b(e,a)});return k}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===ab&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Za:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ab){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a,
+k.sibling);d=e(k,f.props);d.ref=Pg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===ab?(d=Wg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Ug(f.type,f.key,f.props,null,a.mode,h),h.ref=Pg(a,d,f),h.return=a,a=h)}return g(a);case $a:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=
+d.sibling}d=Vg(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Tg(f,a.mode,h),d.return=a,a=d),g(a);if(Og(f))return ca(a,d,f,h);if(nb(f))return D(a,d,f,h);l&&Qg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"));}return c(a,d)}}var Xg=Rg(!0),Yg=Rg(!1),Zg={},$g={current:Zg},ah={current:Zg},bh={current:Zg};
+function ch(a){if(a===Zg)throw Error(u(174));return a}function dh(a,b){I(bh,b);I(ah,a);I($g,Zg);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ob(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Ob(b,a)}H($g);I($g,b)}function eh(){H($g);H(ah);H(bh)}function fh(a){ch(bh.current);var b=ch($g.current);var c=Ob(b,a.type);b!==c&&(I(ah,a),I($g,c))}function gh(a){ah.current===a&&(H($g),H(ah))}var M={current:0};
+function hh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===Bd||c.data===Cd))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function ih(a,b){return{responder:a,props:b}}
+var jh=Wa.ReactCurrentDispatcher,kh=Wa.ReactCurrentBatchConfig,lh=0,N=null,O=null,P=null,mh=!1;function Q(){throw Error(u(321));}function nh(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(u(301));f+=1;P=O=null;b.updateQueue=null;jh.current=rh;a=c(d,e)}while(b.expirationTime===lh)}jh.current=sh;b=null!==O&&null!==O.next;lh=0;P=O=N=null;mh=!1;if(b)throw Error(u(300));return a}
+function th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function uh(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(u(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P}
+function vh(a,b){return"function"===typeof b?b(a):b}
+function wh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.expirationTime;if(lN.expirationTime&&
+(N.expirationTime=l,Bg(l))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),Ag(l,k.suspenseConfig),d=k.eagerReducer===a?k.eagerState:a(d,k.action);k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;$e(d,b.memoizedState)||(rg=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}
+function xh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);$e(f,b.memoizedState)||(rg=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}
+function yh(a){var b=th();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a};a=a.dispatch=zh.bind(null,N,a);return[b.memoizedState,a]}function Ah(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}
+function Bh(){return uh().memoizedState}function Ch(a,b,c,d){var e=th();N.effectTag|=a;e.memoizedState=Ah(1|b,c,void 0,void 0===d?null:d)}function Dh(a,b,c,d){var e=uh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&nh(d,g.deps)){Ah(b,c,f,d);return}}N.effectTag|=a;e.memoizedState=Ah(1|b,c,f,d)}function Eh(a,b){return Ch(516,4,a,b)}function Fh(a,b){return Dh(516,4,a,b)}function Gh(a,b){return Dh(4,2,a,b)}
+function Hh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Ih(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Dh(4,2,Hh.bind(null,b,a),c)}function Jh(){}function Kh(a,b){th().memoizedState=[a,void 0===b?null:b];return a}function Lh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}
+function Mh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Nh(a,b,c){var d=ag();cg(98>d?98:d,function(){a(!0)});cg(97\x3c/script>",a=a.removeChild(a.firstChild)):"string"===typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),"select"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e);a[Md]=b;a[Nd]=d;ni(a,b,!1,!1);b.stateNode=a;g=pd(e,d);switch(e){case "iframe":case "object":case "embed":F("load",
+a);h=d;break;case "video":case "audio":for(h=0;hd.tailExpiration&&1b)&&tj.set(a,b)))}}
+function xj(a,b){a.expirationTimea?c:a;return 2>=a&&b!==a?0:a}
+function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=eg(yj.bind(null,a));else{var b=zj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Gg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Tf&&Kf(c)}a.callbackExpirationTime=
+b;a.callbackPriority=d;b=1073741823===b?eg(yj.bind(null,a)):dg(d,Bj.bind(null,a),{timeout:10*(1073741821-b)-$f()});a.callbackNode=b}}}
+function Bj(a,b){wj=0;if(b)return b=Gg(),Cj(a,b),Z(a),null;var c=zj(a);if(0!==c){b=a.callbackNode;if((W&(fj|gj))!==V)throw Error(u(327));Dj();a===T&&c===U||Ej(a,c);if(null!==X){var d=W;W|=fj;var e=Fj();do try{Gj();break}catch(h){Hj(a,h)}while(1);ng();W=d;cj.current=e;if(S===hj)throw b=kj,Ej(a,c),xi(a,c),Z(a),b;if(null===X)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=S,T=null,d){case ti:case hj:throw Error(u(345));case ij:Cj(a,2=c){a.lastPingedTime=c;Ej(a,c);break}}f=zj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Hd(Jj.bind(null,a),e);break}Jj(a);break;case vi:xi(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Ij(e));if(oj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Ej(a,c);break}e=zj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=
+d;break}1073741823!==mj?d=10*(1073741821-mj)-$f():1073741823===lj?d=0:(d=10*(1073741821-lj)-5E3,e=$f(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*bj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=$f()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+qb(g))}S!==
+jj&&(S=ij);h=Ai(h,g);p=f;do{switch(p.tag){case 3:k=h;p.effectTag|=4096;p.expirationTime=b;var B=Xi(p,k,b);yg(p,B);break a;case 1:k=h;var w=p.type,ub=p.stateNode;if(0===(p.effectTag&64)&&("function"===typeof w.getDerivedStateFromError||null!==ub&&"function"===typeof ub.componentDidCatch&&(null===aj||!aj.has(ub)))){p.effectTag|=4096;p.expirationTime=b;var vb=$i(p,k,b);yg(p,vb);break a}}p=p.return}while(null!==p)}X=Pj(X)}catch(Xc){b=Xc;continue}break}while(1)}
+function Fj(){var a=cj.current;cj.current=sh;return null===a?sh:a}function Ag(a,b){awi&&(wi=a)}function Kj(){for(;null!==X;)X=Qj(X)}function Gj(){for(;null!==X&&!Uf();)X=Qj(X)}function Qj(a){var b=Rj(a.alternate,a,U);a.memoizedProps=a.pendingProps;null===b&&(b=Pj(a));dj.current=null;return b}
+function Pj(a){X=a;do{var b=X.alternate;a=X.return;if(0===(X.effectTag&2048)){b=si(b,X,U);if(1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1a?b:a}function Jj(a){var b=ag();cg(99,Sj.bind(null,a,b));return null}
+function Sj(a,b){do Dj();while(null!==rj);if((W&(fj|gj))!==V)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Ij(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=
+d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===T&&(X=T=null,U=0);1h&&(l=h,h=g,g=l),l=vd(q,g),m=vd(q,h),l&&m&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==m.node||w.focusOffset!==m.offset)&&(B=B.createRange(),B.setStart(l.node,l.offset),w.removeAllRanges(),g>h?(w.addRange(B),w.extend(m.node,m.offset)):(B.setEnd(m.node,m.offset),w.addRange(B))))));B=[];for(w=q;w=w.parentNode;)1===w.nodeType&&B.push({element:w,left:w.scrollLeft,
+top:w.scrollTop});"function"===typeof q.focus&&q.focus();for(q=0;q=c)return ji(a,b,c);I(M,M.current&1);b=$h(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return mi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current);if(!d)return null}return $h(a,b,c)}rg=!1}}else rg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Cf(b,J.current);qg(b,c);e=oh(null,
+b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(L(d)){var f=!0;Gf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;ug(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&Fg(b,d,g,a);e.updater=Jg;b.stateNode=e;e._reactInternalFiber=b;Ng(b,d,a,c);b=gi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=
+null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;ob(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=Xj(e);a=ig(e,a);switch(f){case 0:b=di(null,b,e,a,c);break a;case 1:b=fi(null,b,e,a,c);break a;case 11:b=Zh(null,b,e,a,c);break a;case 14:b=ai(null,b,e,ig(e.type,a),d,c);break a}throw Error(u(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),di(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),fi(a,b,d,e,c);
+case 3:hi(b);d=b.updateQueue;if(null===a||null===d)throw Error(u(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;vg(a,b);zg(b,d,null,c);d=b.memoizedState.element;if(d===e)Xh(),b=$h(a,b,c);else{if(e=b.stateNode.hydrate)Ph=Jd(b.stateNode.containerInfo.firstChild),Oh=b,e=Qh=!0;if(e)for(c=Yg(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),Xh();b=b.child}return b;case 5:return fh(b),null===a&&Uh(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:
+null,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),ei(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&Uh(b),null;case 13:return ji(a,b,c);case 4:return dh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Xg(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),Zh(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,
+b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;I(jg,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=$e(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!K.current){b=$h(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==
+k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=wg(c,null),l.tag=2,xg(h,l));h.expirationTime=b&&a<=b}function Mj(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}
-function Nj(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Rj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b}
-function rk(a,b,c,d){var e=b.current,f=Pg(),g=Mg.suspense;f=Qg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(ec(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=If(c,k,h);break a}}c=h}else c=Cf;null===b.context?b.context=c:b.pendingContext=c;b=Bg(f,g);b.payload={element:a};d=void 0===
-d?null:d;null!==d&&(b.callback=d);Dg(e,b);Rg(e,f);return f}function sk(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function tk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime=b&&a<=b}function xi(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}
+function yi(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Cj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b}
+function bk(a,b,c,d){var e=b.current,f=Gg(),g=Dg.suspense;f=Hg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(dc(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=Ff(c,k,h);break a}}c=h}else c=Af;null===b.context?b.context=c:b.pendingContext=c;b=wg(f,g);b.payload={element:a};d=void 0===
+d?null:d;null!==d&&(b.callback=d);xg(e,b);Ig(e,f);return f}function ck(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function dk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime=G};l=function(){};exports.unstable_forceFrameRate=function(a){0>a||125>>1,e=a[d];if(void 0!==e&&0K(n,c))void 0!==r&&0>K(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>K(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function K(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var N=[],O=[],P=1,Q=null,R=3,S=!1,T=!1,U=!1;
function V(a){for(var b=L(O);null!==b;){if(null===b.callback)M(O);else if(b.startTime<=a)M(O),b.sortIndex=b.expirationTime,J(N,b);else break;b=L(O)}}function W(a){U=!1;V(a);if(!T)if(null!==L(N))T=!0,f(X);else{var b=L(O);null!==b&&g(W,b.startTime-a)}}
function X(a,b){T=!1;U&&(U=!1,h());S=!0;var c=R;try{V(b);for(Q=L(N);null!==Q&&(!(Q.expirationTime>b)||a&&!k());){var d=Q.callback;if(null!==d){Q.callback=null;R=Q.priorityLevel;var e=d(Q.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?Q.callback=e:Q===L(N)&&M(N);V(b)}else M(N);Q=L(N)}if(null!==Q)var m=!0;else{var n=L(O);null!==n&&g(W,n.startTime-b);m=!1}return m}finally{Q=null,R=c,S=!1}}
-function Y(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var Z=l;exports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=R;R=a;try{return b()}finally{R=c}};
-exports.unstable_next=function(a){switch(R){case 1:case 2:case 3:var b=3;break;default:b=R}var c=R;R=b;try{return a()}finally{R=c}};
-exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0d?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a};exports.unstable_cancelCallback=function(a){a.callback=null};
-exports.unstable_wrapCallback=function(a){var b=R;return function(){var c=R;R=b;try{return a.apply(this,arguments)}finally{R=c}}};exports.unstable_getCurrentPriorityLevel=function(){return R};exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTimed?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a};
+exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime= deadline) {
- // There's no time left. We may want to yield control of the main
- // thread, so the browser can perform high priority tasks. The main ones
- // are painting and user input. If there's a pending paint or a pending
- // input, then we should yield. But if there's neither, then we can
- // yield less often while remaining responsive. We'll eventually yield
- // regardless, since there could be a pending paint that wasn't
- // accompanied by a call to `requestPaint`, or other main thread tasks
- // like network events.
- if (needsPaint || scheduling.isInputPending()) {
- // There is either a pending paint or a pending input.
- return true;
- } // There's no pending input. Only yield if we've reached the max
- // yield interval.
-
-
- return currentTime >= maxYieldInterval;
- } else {
- // There's still time left in the frame.
- return false;
- }
- };
- requestPaint = function () {
- needsPaint = true;
- };
- } else {
+ {
// `isInputPending` is not available. Since we have no way of knowing if
// there's pending input, always yield at the end of the frame.
shouldYieldToHost = function () {
@@ -30718,7 +33386,8 @@ typeof MessageChannel !== 'function') {
exports.unstable_forceFrameRate = function (fps) {
if (fps < 0 || fps > 125) {
- console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
+ // Using console['error'] to evade Babel and ESLint
+ console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
return;
}
@@ -30759,10 +33428,6 @@ typeof MessageChannel !== 'function') {
} else {
isMessageLoopRunning = false;
} // Yielding to the browser will give it a chance to paint, so we can
- // reset this.
-
-
- needsPaint = false;
};
var channel = new MessageChannel();
@@ -30821,7 +33486,7 @@ function siftUp(heap, node, i) {
var index = i;
while (true) {
- var parentIndex = Math.floor((index - 1) / 2);
+ var parentIndex = index - 1 >>> 1;
var parent = heap[parentIndex];
if (parent !== undefined && compare(parent, node) > 0) {
@@ -30884,18 +33549,18 @@ var IdlePriority = 5;
var runIdCounter = 0;
var mainThreadIdCounter = 0;
var profilingStateSize = 4;
-var sharedProfilingBuffer = enableProfiling ? // $FlowFixMe Flow doesn't know about SharedArrayBuffer
+var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer
typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
-: null;
-var profilingState = enableProfiling && sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
+;
+var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
var PRIORITY = 0;
var CURRENT_TASK_ID = 1;
var CURRENT_RUN_ID = 2;
var QUEUE_SIZE = 3;
-if (enableProfiling) {
+{
profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
// array might include canceled tasks.
@@ -30929,7 +33594,8 @@ function logEvent(entries) {
eventLogSize *= 2;
if (eventLogSize > MAX_EVENT_LOG_SIZE) {
- console.error("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
+ // Using console['error'] to evade Babel and ESLint
+ console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
stopLoggingProfilingEvents();
return;
}
@@ -30959,7 +33625,7 @@ function stopLoggingProfilingEvents() {
return buffer;
}
function markTaskStart(task, ms) {
- if (enableProfiling) {
+ {
profilingState[QUEUE_SIZE]++;
if (eventLog !== null) {
@@ -30971,7 +33637,7 @@ function markTaskStart(task, ms) {
}
}
function markTaskCompleted(task, ms) {
- if (enableProfiling) {
+ {
profilingState[PRIORITY] = NoPriority;
profilingState[CURRENT_TASK_ID] = 0;
profilingState[QUEUE_SIZE]--;
@@ -30982,7 +33648,7 @@ function markTaskCompleted(task, ms) {
}
}
function markTaskCanceled(task, ms) {
- if (enableProfiling) {
+ {
profilingState[QUEUE_SIZE]--;
if (eventLog !== null) {
@@ -30991,7 +33657,7 @@ function markTaskCanceled(task, ms) {
}
}
function markTaskErrored(task, ms) {
- if (enableProfiling) {
+ {
profilingState[PRIORITY] = NoPriority;
profilingState[CURRENT_TASK_ID] = 0;
profilingState[QUEUE_SIZE]--;
@@ -31002,7 +33668,7 @@ function markTaskErrored(task, ms) {
}
}
function markTaskRun(task, ms) {
- if (enableProfiling) {
+ {
runIdCounter++;
profilingState[PRIORITY] = task.priorityLevel;
profilingState[CURRENT_TASK_ID] = task.id;
@@ -31014,7 +33680,7 @@ function markTaskRun(task, ms) {
}
}
function markTaskYield(task, ms) {
- if (enableProfiling) {
+ {
profilingState[PRIORITY] = NoPriority;
profilingState[CURRENT_TASK_ID] = 0;
profilingState[CURRENT_RUN_ID] = 0;
@@ -31025,7 +33691,7 @@ function markTaskYield(task, ms) {
}
}
function markSchedulerSuspended(ms) {
- if (enableProfiling) {
+ {
mainThreadIdCounter++;
if (eventLog !== null) {
@@ -31034,7 +33700,7 @@ function markSchedulerSuspended(ms) {
}
}
function markSchedulerUnsuspended(ms) {
- if (enableProfiling) {
+ {
if (eventLog !== null) {
logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
}
@@ -31059,8 +33725,6 @@ var taskQueue = [];
var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
-
-var isSchedulerPaused = false;
var currentTask = null;
var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
@@ -31082,7 +33746,7 @@ function advanceTimers(currentTime) {
timer.sortIndex = timer.expirationTime;
push(taskQueue, timer);
- if (enableProfiling) {
+ {
markTaskStart(timer, currentTime);
timer.isQueued = true;
}
@@ -31114,7 +33778,7 @@ function handleTimeout(currentTime) {
}
function flushWork(hasTimeRemaining, initialTime) {
- if (enableProfiling) {
+ {
markSchedulerUnsuspended(initialTime);
} // We'll need a host callback the next time work is scheduled.
@@ -31152,7 +33816,7 @@ function flushWork(hasTimeRemaining, initialTime) {
currentPriorityLevel = previousPriorityLevel;
isPerformingWork = false;
- if (enableProfiling) {
+ {
var _currentTime = exports.unstable_now();
markSchedulerSuspended(_currentTime);
@@ -31165,7 +33829,7 @@ function workLoop(hasTimeRemaining, initialTime) {
advanceTimers(currentTime);
currentTask = peek(taskQueue);
- while (currentTask !== null && !(enableSchedulerDebugging && isSchedulerPaused)) {
+ while (currentTask !== null && !(enableSchedulerDebugging )) {
if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
// This currentTask hasn't expired, and we've reached the deadline.
break;
@@ -31185,7 +33849,7 @@ function workLoop(hasTimeRemaining, initialTime) {
currentTask.callback = continuationCallback;
markTaskYield(currentTask, currentTime);
} else {
- if (enableProfiling) {
+ {
markTaskCompleted(currentTask, currentTime);
currentTask.isQueued = false;
}
@@ -31332,7 +33996,7 @@ function unstable_scheduleCallback(priorityLevel, callback, options) {
sortIndex: -1
};
- if (enableProfiling) {
+ {
newTask.isQueued = false;
}
@@ -31357,7 +34021,7 @@ function unstable_scheduleCallback(priorityLevel, callback, options) {
newTask.sortIndex = expirationTime;
push(taskQueue, newTask);
- if (enableProfiling) {
+ {
markTaskStart(newTask, currentTime);
newTask.isQueued = true;
} // Schedule a host callback, if needed. If we're already performing work,
@@ -31374,11 +34038,9 @@ function unstable_scheduleCallback(priorityLevel, callback, options) {
}
function unstable_pauseExecution() {
- isSchedulerPaused = true;
}
function unstable_continueExecution() {
- isSchedulerPaused = false;
if (!isHostCallbackScheduled && !isPerformingWork) {
isHostCallbackScheduled = true;
@@ -31391,7 +34053,7 @@ function unstable_getFirstCallbackNode() {
}
function unstable_cancelCallback(task) {
- if (enableProfiling) {
+ {
if (task.isQueued) {
var currentTime = exports.unstable_now();
markTaskCanceled(task, currentTime);
@@ -31417,45 +34079,45 @@ function unstable_shouldYield() {
}
var unstable_requestPaint = requestPaint;
-var unstable_Profiling = enableProfiling ? {
+var unstable_Profiling = {
startLoggingProfilingEvents: startLoggingProfilingEvents,
stopLoggingProfilingEvents: stopLoggingProfilingEvents,
sharedProfilingBuffer: sharedProfilingBuffer
-} : null;
+} ;
-exports.unstable_ImmediatePriority = ImmediatePriority;
-exports.unstable_UserBlockingPriority = UserBlockingPriority;
-exports.unstable_NormalPriority = NormalPriority;
exports.unstable_IdlePriority = IdlePriority;
+exports.unstable_ImmediatePriority = ImmediatePriority;
exports.unstable_LowPriority = LowPriority;
-exports.unstable_runWithPriority = unstable_runWithPriority;
-exports.unstable_next = unstable_next;
-exports.unstable_scheduleCallback = unstable_scheduleCallback;
+exports.unstable_NormalPriority = NormalPriority;
+exports.unstable_Profiling = unstable_Profiling;
+exports.unstable_UserBlockingPriority = UserBlockingPriority;
exports.unstable_cancelCallback = unstable_cancelCallback;
-exports.unstable_wrapCallback = unstable_wrapCallback;
-exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
-exports.unstable_shouldYield = unstable_shouldYield;
-exports.unstable_requestPaint = unstable_requestPaint;
exports.unstable_continueExecution = unstable_continueExecution;
-exports.unstable_pauseExecution = unstable_pauseExecution;
+exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
-exports.unstable_Profiling = unstable_Profiling;
+exports.unstable_next = unstable_next;
+exports.unstable_pauseExecution = unstable_pauseExecution;
+exports.unstable_requestPaint = unstable_requestPaint;
+exports.unstable_runWithPriority = unstable_runWithPriority;
+exports.unstable_scheduleCallback = unstable_scheduleCallback;
+exports.unstable_shouldYield = unstable_shouldYield;
+exports.unstable_wrapCallback = unstable_wrapCallback;
})();
}
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../../../process/browser.js */ 3)))
+/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 6)))
/***/ }),
-/* 272 */
+/* 348 */
/*!*************************************************************!*\
!*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
\*************************************************************/
-/*! no static exports found */
+/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.12.0
+/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.14.0
* react-dom.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
@@ -31472,242 +34134,94 @@ if (process.env.NODE_ENV !== "production") {
(function() {
'use strict';
-var React = __webpack_require__(/*! react */ 6);
-var _assign = __webpack_require__(/*! object-assign */ 27);
-var Scheduler = __webpack_require__(/*! scheduler */ 135);
-var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ 63);
-var tracing = __webpack_require__(/*! scheduler/tracing */ 273);
-
-// Do not require this module directly! Use normal `invariant` calls with
-// template literal strings. The messages will be replaced with error codes
-// during build.
-
-/**
- * Use invariant() to assert state which your program assumes to be true.
- *
- * Provide sprintf-style format (only %s is supported) and arguments
- * to provide information about what broke and what you were
- * expecting.
- *
- * The invariant message will be stripped in production, but the invariant
- * will remain to ensure logic does not differ in production.
- */
-
-if (!React) {
- {
- throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");
- }
-}
-
-/**
- * Injectable ordering of event plugins.
- */
-var eventPluginOrder = null;
-/**
- * Injectable mapping from names to event plugin modules.
- */
-
-var namesToPlugins = {};
-/**
- * Recomputes the plugin list using the injected plugins and plugin ordering.
- *
- * @private
- */
-
-function recomputePluginOrdering() {
- if (!eventPluginOrder) {
- // Wait until an `eventPluginOrder` is injected.
- return;
- }
-
- for (var pluginName in namesToPlugins) {
- var pluginModule = namesToPlugins[pluginName];
- var pluginIndex = eventPluginOrder.indexOf(pluginName);
-
- if (!(pluginIndex > -1)) {
- {
- throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`.");
- }
- }
-
- if (plugins[pluginIndex]) {
- continue;
- }
-
- if (!pluginModule.extractEvents) {
- {
- throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not.");
- }
- }
-
- plugins[pluginIndex] = pluginModule;
- var publishedEvents = pluginModule.eventTypes;
-
- for (var eventName in publishedEvents) {
- if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
- {
- throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`.");
- }
- }
- }
- }
-}
-/**
- * Publishes an event so that it can be dispatched by the supplied plugin.
- *
- * @param {object} dispatchConfig Dispatch configuration for the event.
- * @param {object} PluginModule Plugin publishing the event.
- * @return {boolean} True if the event was successfully published.
- * @private
- */
-
-
-function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
- if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
- {
- throw Error("EventPluginHub: More than one plugin attempted to publish the same event name, `" + eventName + "`.");
- }
- }
-
- eventNameDispatchConfigs[eventName] = dispatchConfig;
- var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
-
- if (phasedRegistrationNames) {
- for (var phaseName in phasedRegistrationNames) {
- if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
- var phasedRegistrationName = phasedRegistrationNames[phaseName];
- publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
- }
- }
-
- return true;
- } else if (dispatchConfig.registrationName) {
- publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
- return true;
- }
-
- return false;
-}
-/**
- * Publishes a registration name that is used to identify dispatched events.
- *
- * @param {string} registrationName Registration name to add.
- * @param {object} PluginModule Plugin publishing the event.
- * @private
- */
+var React = __webpack_require__(/*! react */ 5);
+var _assign = __webpack_require__(/*! object-assign */ 32);
+var Scheduler = __webpack_require__(/*! scheduler */ 171);
+var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ 83);
+var tracing = __webpack_require__(/*! scheduler/tracing */ 349);
+var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
+// Current owner and dispatcher used to share the same ref,
+// but PR #14548 split them out to better support the react-debug-tools package.
-function publishRegistrationName(registrationName, pluginModule, eventName) {
- if (!!registrationNameModules[registrationName]) {
- {
- throw Error("EventPluginHub: More than one plugin attempted to publish the same registration name, `" + registrationName + "`.");
- }
- }
-
- registrationNameModules[registrationName] = pluginModule;
- registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
-
- {
- var lowerCasedName = registrationName.toLowerCase();
- possibleRegistrationNames[lowerCasedName] = registrationName;
-
- if (registrationName === 'onDoubleClick') {
- possibleRegistrationNames.ondblclick = registrationName;
- }
- }
+if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
+ ReactSharedInternals.ReactCurrentDispatcher = {
+ current: null
+ };
}
-/**
- * Registers plugins so that they can extract and dispatch events.
- *
- * @see {EventPluginHub}
- */
-
-/**
- * Ordered list of injected plugins.
- */
-
-
-var plugins = [];
-/**
- * Mapping from event name to dispatch config
- */
-var eventNameDispatchConfigs = {};
-/**
- * Mapping from registration name to plugin module
- */
-
-var registrationNameModules = {};
-/**
- * Mapping from registration name to event name
- */
-
-var registrationNameDependencies = {};
-/**
- * Mapping from lowercase registration names to the properly cased version,
- * used to warn in the case of missing event handlers. Available
- * only in true.
- * @type {Object}
- */
-
-var possibleRegistrationNames = {}; // Trust the developer to only use possibleRegistrationNames in true
+if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
+ ReactSharedInternals.ReactCurrentBatchConfig = {
+ suspense: null
+ };
+}
-/**
- * Injects an ordering of plugins (by plugin name). This allows the ordering
- * to be decoupled from injection of the actual plugins so that ordering is
- * always deterministic regardless of packaging, on-the-fly injection, etc.
- *
- * @param {array} InjectedEventPluginOrder
- * @internal
- * @see {EventPluginHub.injection.injectEventPluginOrder}
- */
+// by calls to these methods by a Babel plugin.
+//
+// In PROD (or in packages without access to React internals),
+// they are left as they are instead.
-function injectEventPluginOrder(injectedEventPluginOrder) {
- if (!!eventPluginOrder) {
- {
- throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.");
+function warn(format) {
+ {
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
}
- } // Clone the ordering so it cannot be dynamically mutated.
+ printWarning('warn', format, args);
+ }
+}
+function error(format) {
+ {
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
+ args[_key2 - 1] = arguments[_key2];
+ }
- eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
- recomputePluginOrdering();
+ printWarning('error', format, args);
+ }
}
-/**
- * Injects plugins to be used by `EventPluginHub`. The plugin names must be
- * in the ordering injected by `injectEventPluginOrder`.
- *
- * Plugins can be injected as part of page initialization or on-the-fly.
- *
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
- * @internal
- * @see {EventPluginHub.injection.injectEventPluginsByName}
- */
-function injectEventPluginsByName(injectedNamesToPlugins) {
- var isOrderingDirty = false;
+function printWarning(level, format, args) {
+ // When changing this logic, you might want to also
+ // update consoleWithStackDev.www.js as well.
+ {
+ var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
- for (var pluginName in injectedNamesToPlugins) {
- if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
- continue;
+ if (!hasExistingStack) {
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
+
+ if (stack !== '') {
+ format += '%s';
+ args = args.concat([stack]);
+ }
}
- var pluginModule = injectedNamesToPlugins[pluginName];
+ var argsWithFormat = args.map(function (item) {
+ return '' + item;
+ }); // Careful: RN currently depends on this prefix
- if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
- if (!!namesToPlugins[pluginName]) {
- {
- throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`.");
- }
- }
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
+ // breaks IE9: https://github.com/facebook/react/issues/13610
+ // eslint-disable-next-line react-internal/no-production-logging
- namesToPlugins[pluginName] = pluginModule;
- isOrderingDirty = true;
- }
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
+
+ try {
+ // --- Welcome to debugging React ---
+ // This error was thrown as a convenience so that you can use this stack
+ // to find the callsite that caused this warning to fire.
+ var argIndex = 0;
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
+ return args[argIndex++];
+ });
+ throw new Error(message);
+ } catch (x) {}
}
+}
- if (isOrderingDirty) {
- recomputePluginOrdering();
+if (!React) {
+ {
+ throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
}
}
@@ -31752,7 +34266,7 @@ var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f)
// So we preemptively throw with a better message instead.
if (!(typeof document !== 'undefined')) {
{
- throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
+ throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." );
}
}
@@ -31944,64 +34458,12 @@ function clearCaughtError() {
} else {
{
{
- throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
+ throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
}
}
}
}
-/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
-var warningWithoutStack = function () {};
-
-{
- warningWithoutStack = function (condition, format) {
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- args[_key - 2] = arguments[_key];
- }
-
- if (format === undefined) {
- throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
- }
-
- if (args.length > 8) {
- // Check before the condition to catch violations early.
- throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
- }
-
- if (condition) {
- return;
- }
-
- if (typeof console !== 'undefined') {
- var argsWithFormat = args.map(function (item) {
- return '' + item;
- });
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
- // breaks IE9: https://github.com/facebook/react/issues/13610
-
- Function.prototype.apply.call(console.error, console, argsWithFormat);
- }
-
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
- throw new Error(message);
- } catch (x) {}
- };
-}
-
-var warningWithoutStack$1 = warningWithoutStack;
-
var getFiberCurrentPropsFromNode = null;
var getInstanceFromNode = null;
var getNodeFromInstance = null;
@@ -32011,7 +34473,9 @@ function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeI
getNodeFromInstance = getNodeFromInstanceImpl;
{
- !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
+ if (!getNodeFromInstance || !getInstanceFromNode) {
+ error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
+ }
}
}
var validateEventDispatches;
@@ -32024,7 +34488,10 @@ var validateEventDispatches;
var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
var instancesIsArr = Array.isArray(dispatchInstances);
var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
- !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
+
+ if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) {
+ error('EventPluginUtils: Invalid `event`.');
+ }
};
}
/**
@@ -32069,273 +34536,6 @@ function executeDispatchesInOrder(event) {
event._dispatchListeners = null;
event._dispatchInstances = null;
}
-/**
- * @see executeDispatchesInOrderStopAtTrueImpl
- */
-
-
-
-/**
- * Execution of a "direct" dispatch - there must be at most one dispatch
- * accumulated on the event or it is considered an error. It doesn't really make
- * sense for an event with multiple dispatches (bubbled) to keep track of the
- * return values at each dispatch execution, but it does tend to make sense when
- * dealing with "direct" dispatches.
- *
- * @return {*} The return value of executing the single dispatch.
- */
-
-
-/**
- * @param {SyntheticEvent} event
- * @return {boolean} True iff number of dispatches accumulated is greater than 0.
- */
-
-/**
- * Accumulates items that must not be null or undefined into the first one. This
- * is used to conserve memory by avoiding array allocations, and thus sacrifices
- * API cleanness. Since `current` can be null before being passed in and not
- * null after this function, make sure to assign it back to `current`:
- *
- * `a = accumulateInto(a, b);`
- *
- * This API should be sparingly used. Try `accumulate` for something cleaner.
- *
- * @return {*|array<*>} An accumulation of items.
- */
-
-function accumulateInto(current, next) {
- if (!(next != null)) {
- {
- throw Error("accumulateInto(...): Accumulated items must not be null or undefined.");
- }
- }
-
- if (current == null) {
- return next;
- } // Both are not empty. Warning: Never call x.concat(y) when you are not
- // certain that x is an Array (x could be a string with concat method).
-
-
- if (Array.isArray(current)) {
- if (Array.isArray(next)) {
- current.push.apply(current, next);
- return current;
- }
-
- current.push(next);
- return current;
- }
-
- if (Array.isArray(next)) {
- // A bit too dangerous to mutate `next`.
- return [current].concat(next);
- }
-
- return [current, next];
-}
-
-/**
- * @param {array} arr an "accumulation" of items which is either an Array or
- * a single item. Useful when paired with the `accumulate` module. This is a
- * simple utility that allows us to reason about a collection of items, but
- * handling the case when there is exactly one item (and we do not need to
- * allocate an array).
- * @param {function} cb Callback invoked with each element or a collection.
- * @param {?} [scope] Scope used as `this` in a callback.
- */
-function forEachAccumulated(arr, cb, scope) {
- if (Array.isArray(arr)) {
- arr.forEach(cb, scope);
- } else if (arr) {
- cb.call(scope, arr);
- }
-}
-
-/**
- * Internal queue of events that have accumulated their dispatches and are
- * waiting to have their dispatches executed.
- */
-
-var eventQueue = null;
-/**
- * Dispatches an event and releases it back into the pool, unless persistent.
- *
- * @param {?object} event Synthetic event to be dispatched.
- * @private
- */
-
-var executeDispatchesAndRelease = function (event) {
- if (event) {
- executeDispatchesInOrder(event);
-
- if (!event.isPersistent()) {
- event.constructor.release(event);
- }
- }
-};
-
-var executeDispatchesAndReleaseTopLevel = function (e) {
- return executeDispatchesAndRelease(e);
-};
-
-function runEventsInBatch(events) {
- if (events !== null) {
- eventQueue = accumulateInto(eventQueue, events);
- } // Set `eventQueue` to null before processing it so that we can tell if more
- // events get enqueued while processing.
-
-
- var processingEventQueue = eventQueue;
- eventQueue = null;
-
- if (!processingEventQueue) {
- return;
- }
-
- forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
-
- if (!!eventQueue) {
- {
- throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.");
- }
- } // This would be a good time to rethrow if any of the event handlers threw.
-
-
- rethrowCaughtError();
-}
-
-function isInteractive(tag) {
- return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
-}
-
-function shouldPreventMouseEvent(name, type, props) {
- switch (name) {
- case 'onClick':
- case 'onClickCapture':
- case 'onDoubleClick':
- case 'onDoubleClickCapture':
- case 'onMouseDown':
- case 'onMouseDownCapture':
- case 'onMouseMove':
- case 'onMouseMoveCapture':
- case 'onMouseUp':
- case 'onMouseUpCapture':
- return !!(props.disabled && isInteractive(type));
-
- default:
- return false;
- }
-}
-/**
- * This is a unified interface for event plugins to be installed and configured.
- *
- * Event plugins can implement the following properties:
- *
- * `extractEvents` {function(string, DOMEventTarget, string, object): *}
- * Required. When a top-level event is fired, this method is expected to
- * extract synthetic events that will in turn be queued and dispatched.
- *
- * `eventTypes` {object}
- * Optional, plugins that fire events must publish a mapping of registration
- * names that are used to register listeners. Values of this mapping must
- * be objects that contain `registrationName` or `phasedRegistrationNames`.
- *
- * `executeDispatch` {function(object, function, string)}
- * Optional, allows plugins to override how an event gets dispatched. By
- * default, the listener is simply invoked.
- *
- * Each plugin that is injected into `EventsPluginHub` is immediately operable.
- *
- * @public
- */
-
-/**
- * Methods for injecting dependencies.
- */
-
-
-var injection = {
- /**
- * @param {array} InjectedEventPluginOrder
- * @public
- */
- injectEventPluginOrder: injectEventPluginOrder,
-
- /**
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
- */
- injectEventPluginsByName: injectEventPluginsByName
-};
-/**
- * @param {object} inst The instance, which is the source of events.
- * @param {string} registrationName Name of listener (e.g. `onClick`).
- * @return {?function} The stored callback.
- */
-
-function getListener(inst, registrationName) {
- var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
- // live here; needs to be moved to a better place soon
-
- var stateNode = inst.stateNode;
-
- if (!stateNode) {
- // Work in progress (ex: onload events in incremental mode).
- return null;
- }
-
- var props = getFiberCurrentPropsFromNode(stateNode);
-
- if (!props) {
- // Work in progress.
- return null;
- }
-
- listener = props[registrationName];
-
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
- return null;
- }
-
- if (!(!listener || typeof listener === 'function')) {
- {
- throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type.");
- }
- }
-
- return listener;
-}
-/**
- * Allows registered plugins an opportunity to extract events from top-level
- * native browser events.
- *
- * @return {*} An accumulation of synthetic events.
- * @internal
- */
-
-function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
- var events = null;
-
- for (var i = 0; i < plugins.length; i++) {
- // Not every plugin in the ordering may be loaded at runtime.
- var possiblePlugin = plugins[i];
-
- if (possiblePlugin) {
- var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
-
- if (extractedEvents) {
- events = accumulateInto(events, extractedEvents);
- }
- }
- }
-
- return events;
-}
-
-function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
- var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
- runEventsInBatch(events);
-}
var FunctionComponent = 0;
var ClassComponent = 1;
@@ -32362,333 +34562,221 @@ var DehydratedFragment = 18;
var SuspenseListComponent = 19;
var FundamentalComponent = 20;
var ScopeComponent = 21;
-
-var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
-// Current owner and dispatcher used to share the same ref,
-// but PR #14548 split them out to better support the react-debug-tools package.
-
-if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
- ReactSharedInternals.ReactCurrentDispatcher = {
- current: null
- };
-}
-
-if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
- ReactSharedInternals.ReactCurrentBatchConfig = {
- suspense: null
- };
-}
-
-var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
-var describeComponentFrame = function (name, source, ownerName) {
- var sourceInfo = '';
-
- if (source) {
- var path = source.fileName;
- var fileName = path.replace(BEFORE_SLASH_RE, '');
-
- {
- // In DEV, include code for a common special case:
- // prefer "folder/index.js" instead of just "index.js".
- if (/^index\./.test(fileName)) {
- var match = path.match(BEFORE_SLASH_RE);
-
- if (match) {
- var pathBeforeSlash = match[1];
-
- if (pathBeforeSlash) {
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
- fileName = folderName + '/' + fileName;
- }
- }
- }
- }
-
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
- } else if (ownerName) {
- sourceInfo = ' (created by ' + ownerName + ')';
- }
-
- return '\n in ' + (name || 'Unknown') + sourceInfo;
-};
-
-// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
-// nor polyfill, then a plain number is used for performance.
-var hasSymbol = typeof Symbol === 'function' && Symbol.for;
-var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
-var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
-var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
-var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
-var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
-var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
-var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
-// (unstable) APIs that have been removed. Can we remove the symbols?
-
-
-var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
-var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
-var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
-var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
-var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
-var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
-var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
-var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
-var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
-var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
-var FAUX_ITERATOR_SYMBOL = '@@iterator';
-function getIteratorFn(maybeIterable) {
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
- return null;
- }
-
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
-
- if (typeof maybeIterator === 'function') {
- return maybeIterator;
- }
-
- return null;
-}
+var Block = 22;
/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
+ * Injectable ordering of event plugins.
+ */
+var eventPluginOrder = null;
+/**
+ * Injectable mapping from names to event plugin modules.
*/
-var warning = warningWithoutStack$1;
-
-{
- warning = function (condition, format) {
- if (condition) {
- return;
- }
-
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args
-
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- args[_key - 2] = arguments[_key];
- }
-
- warningWithoutStack$1.apply(void 0, [false, format + '%s'].concat(args, [stack]));
- };
-}
-
-var warning$1 = warning;
+var namesToPlugins = {};
+/**
+ * Recomputes the plugin list using the injected plugins and plugin ordering.
+ *
+ * @private
+ */
-var Uninitialized = -1;
-var Pending = 0;
-var Resolved = 1;
-var Rejected = 2;
-function refineResolvedLazyComponent(lazyComponent) {
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
-}
-function initializeLazyComponentType(lazyComponent) {
- if (lazyComponent._status === Uninitialized) {
- lazyComponent._status = Pending;
- var ctor = lazyComponent._ctor;
- var thenable = ctor();
- lazyComponent._result = thenable;
- thenable.then(function (moduleObject) {
- if (lazyComponent._status === Pending) {
- var defaultExport = moduleObject.default;
+function recomputePluginOrdering() {
+ if (!eventPluginOrder) {
+ // Wait until an `eventPluginOrder` is injected.
+ return;
+ }
- {
- if (defaultExport === undefined) {
- warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
- }
- }
+ for (var pluginName in namesToPlugins) {
+ var pluginModule = namesToPlugins[pluginName];
+ var pluginIndex = eventPluginOrder.indexOf(pluginName);
- lazyComponent._status = Resolved;
- lazyComponent._result = defaultExport;
- }
- }, function (error) {
- if (lazyComponent._status === Pending) {
- lazyComponent._status = Rejected;
- lazyComponent._result = error;
+ if (!(pluginIndex > -1)) {
+ {
+ throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." );
}
- });
- }
-}
-
-function getWrappedName(outerType, innerType, wrapperName) {
- var functionName = innerType.displayName || innerType.name || '';
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
-}
+ }
-function getComponentName(type) {
- if (type == null) {
- // Host root, text node or just invalid type.
- return null;
- }
+ if (plugins[pluginIndex]) {
+ continue;
+ }
- {
- if (typeof type.tag === 'number') {
- warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
+ if (!pluginModule.extractEvents) {
+ {
+ throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." );
+ }
}
- }
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
+ plugins[pluginIndex] = pluginModule;
+ var publishedEvents = pluginModule.eventTypes;
- if (typeof type === 'string') {
- return type;
+ for (var eventName in publishedEvents) {
+ if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
+ {
+ throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." );
+ }
+ }
+ }
}
+}
+/**
+ * Publishes an event so that it can be dispatched by the supplied plugin.
+ *
+ * @param {object} dispatchConfig Dispatch configuration for the event.
+ * @param {object} PluginModule Plugin publishing the event.
+ * @return {boolean} True if the event was successfully published.
+ * @private
+ */
- switch (type) {
- case REACT_FRAGMENT_TYPE:
- return 'Fragment';
-
- case REACT_PORTAL_TYPE:
- return 'Portal';
- case REACT_PROFILER_TYPE:
- return "Profiler";
+function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
+ if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
+ {
+ throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." );
+ }
+ }
- case REACT_STRICT_MODE_TYPE:
- return 'StrictMode';
+ eventNameDispatchConfigs[eventName] = dispatchConfig;
+ var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
- case REACT_SUSPENSE_TYPE:
- return 'Suspense';
+ if (phasedRegistrationNames) {
+ for (var phaseName in phasedRegistrationNames) {
+ if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
+ var phasedRegistrationName = phasedRegistrationNames[phaseName];
+ publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
+ }
+ }
- case REACT_SUSPENSE_LIST_TYPE:
- return 'SuspenseList';
+ return true;
+ } else if (dispatchConfig.registrationName) {
+ publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
+ return true;
}
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_CONTEXT_TYPE:
- return 'Context.Consumer';
-
- case REACT_PROVIDER_TYPE:
- return 'Context.Provider';
+ return false;
+}
+/**
+ * Publishes a registration name that is used to identify dispatched events.
+ *
+ * @param {string} registrationName Registration name to add.
+ * @param {object} PluginModule Plugin publishing the event.
+ * @private
+ */
- case REACT_FORWARD_REF_TYPE:
- return getWrappedName(type, type.render, 'ForwardRef');
- case REACT_MEMO_TYPE:
- return getComponentName(type.type);
+function publishRegistrationName(registrationName, pluginModule, eventName) {
+ if (!!registrationNameModules[registrationName]) {
+ {
+ throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." );
+ }
+ }
- case REACT_LAZY_TYPE:
- {
- var thenable = type;
- var resolvedThenable = refineResolvedLazyComponent(thenable);
+ registrationNameModules[registrationName] = pluginModule;
+ registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
- if (resolvedThenable) {
- return getComponentName(resolvedThenable);
- }
+ {
+ var lowerCasedName = registrationName.toLowerCase();
+ possibleRegistrationNames[lowerCasedName] = registrationName;
- break;
- }
+ if (registrationName === 'onDoubleClick') {
+ possibleRegistrationNames.ondblclick = registrationName;
}
}
-
- return null;
}
+/**
+ * Registers plugins so that they can extract and dispatch events.
+ */
-var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
+/**
+ * Ordered list of injected plugins.
+ */
-function describeFiber(fiber) {
- switch (fiber.tag) {
- case HostRoot:
- case HostPortal:
- case HostText:
- case Fragment:
- case ContextProvider:
- case ContextConsumer:
- return '';
- default:
- var owner = fiber._debugOwner;
- var source = fiber._debugSource;
- var name = getComponentName(fiber.type);
- var ownerName = null;
+var plugins = [];
+/**
+ * Mapping from event name to dispatch config
+ */
- if (owner) {
- ownerName = getComponentName(owner.type);
- }
+var eventNameDispatchConfigs = {};
+/**
+ * Mapping from registration name to plugin module
+ */
- return describeComponentFrame(name, source, ownerName);
- }
-}
+var registrationNameModules = {};
+/**
+ * Mapping from registration name to event name
+ */
-function getStackByFiberInDevAndProd(workInProgress) {
- var info = '';
- var node = workInProgress;
+var registrationNameDependencies = {};
+/**
+ * Mapping from lowercase registration names to the properly cased version,
+ * used to warn in the case of missing event handlers. Available
+ * only in true.
+ * @type {Object}
+ */
- do {
- info += describeFiber(node);
- node = node.return;
- } while (node);
+var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true
- return info;
-}
-var current = null;
-var phase = null;
-function getCurrentFiberOwnerNameInDevOrNull() {
- {
- if (current === null) {
- return null;
+/**
+ * Injects an ordering of plugins (by plugin name). This allows the ordering
+ * to be decoupled from injection of the actual plugins so that ordering is
+ * always deterministic regardless of packaging, on-the-fly injection, etc.
+ *
+ * @param {array} InjectedEventPluginOrder
+ * @internal
+ */
+
+function injectEventPluginOrder(injectedEventPluginOrder) {
+ if (!!eventPluginOrder) {
+ {
+ throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." );
}
+ } // Clone the ordering so it cannot be dynamically mutated.
- var owner = current._debugOwner;
- if (owner !== null && typeof owner !== 'undefined') {
- return getComponentName(owner.type);
+ eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
+ recomputePluginOrdering();
+}
+/**
+ * Injects plugins to be used by plugin event system. The plugin names must be
+ * in the ordering injected by `injectEventPluginOrder`.
+ *
+ * Plugins can be injected as part of page initialization or on-the-fly.
+ *
+ * @param {object} injectedNamesToPlugins Map from names to plugin modules.
+ * @internal
+ */
+
+function injectEventPluginsByName(injectedNamesToPlugins) {
+ var isOrderingDirty = false;
+
+ for (var pluginName in injectedNamesToPlugins) {
+ if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
+ continue;
}
- }
- return null;
-}
-function getCurrentFiberStackInDev() {
- {
- if (current === null) {
- return '';
- } // Safe because if current fiber exists, we are reconciling,
- // and it is guaranteed to be the work-in-progress version.
+ var pluginModule = injectedNamesToPlugins[pluginName];
+ if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
+ if (!!namesToPlugins[pluginName]) {
+ {
+ throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." );
+ }
+ }
- return getStackByFiberInDevAndProd(current);
+ namesToPlugins[pluginName] = pluginModule;
+ isOrderingDirty = true;
+ }
}
- return '';
-}
-function resetCurrentFiber() {
- {
- ReactDebugCurrentFrame.getCurrentStack = null;
- current = null;
- phase = null;
- }
-}
-function setCurrentFiber(fiber) {
- {
- ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
- current = fiber;
- phase = null;
- }
-}
-function setCurrentPhase(lifeCyclePhase) {
- {
- phase = lifeCyclePhase;
+ if (isOrderingDirty) {
+ recomputePluginOrdering();
}
}
var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
-function endsWith(subject, search) {
- var length = subject.length;
- return subject.substring(length - search.length, length) === search;
-}
-
var PLUGIN_EVENT_SYSTEM = 1;
-var RESPONDER_EVENT_SYSTEM = 1 << 1;
-var IS_PASSIVE = 1 << 2;
-var IS_ACTIVE = 1 << 3;
-var PASSIVE_NOT_SUPPORTED = 1 << 4;
var IS_REPLAYED = 1 << 5;
+var IS_FIRST_ANCESTOR = 1 << 6;
var restoreImpl = null;
var restoreTarget = null;
@@ -32706,12 +34794,17 @@ function restoreStateOfTarget(target) {
if (!(typeof restoreImpl === 'function')) {
{
- throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");
+ throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." );
}
}
- var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
- restoreImpl(internalInstance.stateNode, internalInstance.type, props);
+ var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.
+
+ if (stateNode) {
+ var _props = getFiberCurrentPropsFromNode(stateNode);
+
+ restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
+ }
}
function setRestoreImplementation(impl) {
@@ -32749,63 +34842,12 @@ function restoreStateIfNeeded() {
}
}
-var enableUserTimingAPI = true; // Helps identify side effects in render-phase lifecycle hooks and setState
-// reducers by double invoking them in Strict Mode.
-
-var debugRenderPhaseSideEffectsForStrictMode = true; // To preserve the "Pause on caught exceptions" behavior of the debugger, we
-// replay the begin phase of a failed component inside invokeGuardedCallback.
-
-var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
-
-var warnAboutDeprecatedLifecycles = true; // Gather advanced timing metrics for Profiler subtrees.
-
var enableProfilerTimer = true; // Trace which interactions trigger each commit.
-var enableSchedulerTracing = true; // SSR experiments
-
-var enableSuspenseServerRenderer = false;
-var enableSelectiveHydration = false; // Only used in www builds.
-
- // Only used in www builds.
-
- // Disable javascript: URL strings in href for XSS protection.
-
-var disableJavaScriptURLs = false; // React Fire: prevent the value and checked attributes from syncing
-// with their related DOM properties
-
-var disableInputAttributeSyncing = false; // These APIs will no longer be "unstable" in the upcoming 16.7 release,
-// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
-
-var exposeConcurrentModeAPIs = false;
-var warnAboutShorthandPropertyCollision = false; // Experimental React Flare event system and event components support.
-
-var enableFlareAPI = false; // Experimental Host Component support.
+var enableDeprecatedFlareAPI = false; // Experimental Host Component support.
var enableFundamentalAPI = false; // Experimental Scope support.
-
-var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
-
- // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
-// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version
-
-var warnAboutUnmockedScheduler = false; // For tests, we flush suspense fallbacks in an act scope;
-// *except* in some of our own tests, where we test incremental loading states.
-
-var flushSuspenseFallbacksInTests = true; // Add a callback property to suspense to notify which promises are currently
-// in the update queue. This allows reporting and tracing of what is causing
-// the user to see a loading state.
-// Also allows hydration callbacks to fire when a dehydrated boundary gets
-// hydrated or deleted.
-
-var enableSuspenseCallback = false; // Part of the simplification of React.createElement so we can eventually move
-// from React.createElement to React.jsx
-// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
-
-var warnAboutDefaultPropsOnFunctionComponents = false;
var warnAboutStringRefs = false;
-var disableLegacyContext = false;
-var disableSchedulerTimeoutBasedOnReactExpirationTime = false;
-var enableTrustedTypesIntegration = false; // Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
// the renderer. Such as when we're dispatching events or if third party
// libraries need to call batchedUpdates. Eventually, this API will go away when
@@ -32817,8 +34859,8 @@ var batchedUpdatesImpl = function (fn, bookkeeping) {
return fn(bookkeeping);
};
-var discreteUpdatesImpl = function (fn, a, b, c) {
- return fn(a, b, c);
+var discreteUpdatesImpl = function (fn, a, b, c, d) {
+ return fn(a, b, c, d);
};
var flushDiscreteUpdatesImpl = function () {};
@@ -32875,24 +34917,12 @@ function batchedEventUpdates(fn, a, b) {
finishEventHandler();
}
} // This is for the React Flare event system
-
-function executeUserEventHandler(fn, value) {
- var previouslyInEventHandler = isInsideEventHandler;
-
- try {
- isInsideEventHandler = true;
- var type = typeof value === 'object' && value !== null ? value.type : '';
- invokeGuardedCallbackAndCatchFirstError(type, fn, undefined, value);
- } finally {
- isInsideEventHandler = previouslyInEventHandler;
- }
-}
-function discreteUpdates(fn, a, b, c) {
+function discreteUpdates(fn, a, b, c, d) {
var prevIsInsideEventHandler = isInsideEventHandler;
isInsideEventHandler = true;
try {
- return discreteUpdatesImpl(fn, a, b, c);
+ return discreteUpdatesImpl(fn, a, b, c, d);
} finally {
isInsideEventHandler = prevIsInsideEventHandler;
@@ -32901,7 +34931,6 @@ function discreteUpdates(fn, a, b, c) {
}
}
}
-var lastFlushedEventTimeStamp = 0;
function flushDiscreteUpdatesIfNeeded(timeStamp) {
// event.timeStamp isn't overly reliable due to inconsistencies in
// how different browsers have historically provided the time stamp.
@@ -32915,8 +34944,7 @@ function flushDiscreteUpdatesIfNeeded(timeStamp) {
// such as if an earlier flush removes or adds event listeners that
// are fired in the subsequent flush. However, this is the same
// behaviour as we had before this change, so the risks are low.
- if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) {
- lastFlushedEventTimeStamp = timeStamp;
+ if (!isInsideEventHandler && (!enableDeprecatedFlareAPI )) {
flushDiscreteUpdatesImpl();
}
}
@@ -32931,474 +34959,6 @@ var DiscreteEvent = 0;
var UserBlockingEvent = 1;
var ContinuousEvent = 2;
-// CommonJS interop named imports.
-
-var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
-var runWithPriority = Scheduler.unstable_runWithPriority;
-var listenToResponderEventTypesImpl;
-function setListenToResponderEventTypes(_listenToResponderEventTypesImpl) {
- listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl;
-}
-var rootEventTypesToEventResponderInstances = new Map();
-var DoNotPropagateToNextResponder = 0;
-var PropagateToNextResponder = 1;
-var currentTimeStamp = 0;
-var currentInstance = null;
-var currentDocument = null;
-var currentPropagationBehavior = DoNotPropagateToNextResponder;
-var eventResponderContext = {
- dispatchEvent: function (eventValue, eventListener, eventPriority) {
- validateResponderContext();
- validateEventValue(eventValue);
-
- switch (eventPriority) {
- case DiscreteEvent:
- {
- flushDiscreteUpdatesIfNeeded(currentTimeStamp);
- discreteUpdates(function () {
- return executeUserEventHandler(eventListener, eventValue);
- });
- break;
- }
-
- case UserBlockingEvent:
- {
- runWithPriority(UserBlockingPriority, function () {
- return executeUserEventHandler(eventListener, eventValue);
- });
- break;
- }
-
- case ContinuousEvent:
- {
- executeUserEventHandler(eventListener, eventValue);
- break;
- }
- }
- },
- isTargetWithinResponder: function (target) {
- validateResponderContext();
-
- if (target != null) {
- var fiber = getClosestInstanceFromNode(target);
- var responderFiber = currentInstance.fiber;
-
- while (fiber !== null) {
- if (fiber === responderFiber || fiber.alternate === responderFiber) {
- return true;
- }
-
- fiber = fiber.return;
- }
- }
-
- return false;
- },
- isTargetWithinResponderScope: function (target) {
- validateResponderContext();
- var componentInstance = currentInstance;
- var responder = componentInstance.responder;
-
- if (target != null) {
- var fiber = getClosestInstanceFromNode(target);
- var responderFiber = currentInstance.fiber;
-
- while (fiber !== null) {
- if (fiber === responderFiber || fiber.alternate === responderFiber) {
- return true;
- }
-
- if (doesFiberHaveResponder(fiber, responder)) {
- return false;
- }
-
- fiber = fiber.return;
- }
- }
-
- return false;
- },
- isTargetWithinNode: function (childTarget, parentTarget) {
- validateResponderContext();
- var childFiber = getClosestInstanceFromNode(childTarget);
- var parentFiber = getClosestInstanceFromNode(parentTarget);
-
- if (childFiber != null && parentFiber != null) {
- var parentAlternateFiber = parentFiber.alternate;
- var node = childFiber;
-
- while (node !== null) {
- if (node === parentFiber || node === parentAlternateFiber) {
- return true;
- }
-
- node = node.return;
- }
-
- return false;
- } // Fallback to DOM APIs
-
-
- return parentTarget.contains(childTarget);
- },
- addRootEventTypes: function (rootEventTypes) {
- validateResponderContext();
- listenToResponderEventTypesImpl(rootEventTypes, currentDocument);
-
- for (var i = 0; i < rootEventTypes.length; i++) {
- var rootEventType = rootEventTypes[i];
- var eventResponderInstance = currentInstance;
- registerRootEventType(rootEventType, eventResponderInstance);
- }
- },
- removeRootEventTypes: function (rootEventTypes) {
- validateResponderContext();
-
- for (var i = 0; i < rootEventTypes.length; i++) {
- var rootEventType = rootEventTypes[i];
- var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType);
- var rootEventTypesSet = currentInstance.rootEventTypes;
-
- if (rootEventTypesSet !== null) {
- rootEventTypesSet.delete(rootEventType);
- }
-
- if (rootEventResponders !== undefined) {
- rootEventResponders.delete(currentInstance);
- }
- }
- },
- getActiveDocument: getActiveDocument,
- objectAssign: _assign,
- getTimeStamp: function () {
- validateResponderContext();
- return currentTimeStamp;
- },
- isTargetWithinHostComponent: function (target, elementType) {
- validateResponderContext();
- var fiber = getClosestInstanceFromNode(target);
-
- while (fiber !== null) {
- if (fiber.tag === HostComponent && fiber.type === elementType) {
- return true;
- }
-
- fiber = fiber.return;
- }
-
- return false;
- },
- continuePropagation: function () {
- currentPropagationBehavior = PropagateToNextResponder;
- },
- enqueueStateRestore: enqueueStateRestore,
- getResponderNode: function () {
- validateResponderContext();
- var responderFiber = currentInstance.fiber;
-
- if (responderFiber.tag === ScopeComponent) {
- return null;
- }
-
- return responderFiber.stateNode;
- }
-};
-
-function validateEventValue(eventValue) {
- if (typeof eventValue === 'object' && eventValue !== null) {
- var target = eventValue.target,
- type = eventValue.type,
- timeStamp = eventValue.timeStamp;
-
- if (target == null || type == null || timeStamp == null) {
- throw new Error('context.dispatchEvent: "target", "timeStamp", and "type" fields on event object are required.');
- }
-
- var showWarning = function (name) {
- {
- warning$1(false, '%s is not available on event objects created from event responder modules (React Flare). ' + 'Try wrapping in a conditional, i.e. `if (event.type !== "press") { event.%s }`', name, name);
- }
- };
-
- eventValue.isDefaultPrevented = function () {
- {
- showWarning('isDefaultPrevented()');
- }
- };
-
- eventValue.isPropagationStopped = function () {
- {
- showWarning('isPropagationStopped()');
- }
- }; // $FlowFixMe: we don't need value, Flow thinks we do
-
-
- Object.defineProperty(eventValue, 'nativeEvent', {
- get: function () {
- {
- showWarning('nativeEvent');
- }
- }
- });
- }
-}
-
-function doesFiberHaveResponder(fiber, responder) {
- var tag = fiber.tag;
-
- if (tag === HostComponent || tag === ScopeComponent) {
- var dependencies = fiber.dependencies;
-
- if (dependencies !== null) {
- var respondersMap = dependencies.responders;
-
- if (respondersMap !== null && respondersMap.has(responder)) {
- return true;
- }
- }
- }
-
- return false;
-}
-
-function getActiveDocument() {
- return currentDocument;
-}
-
-function createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) {
- var _ref = nativeEvent,
- buttons = _ref.buttons,
- pointerType = _ref.pointerType;
- var eventPointerType = '';
-
- if (pointerType !== undefined) {
- eventPointerType = pointerType;
- } else if (nativeEvent.key !== undefined) {
- eventPointerType = 'keyboard';
- } else if (buttons !== undefined) {
- eventPointerType = 'mouse';
- } else if (nativeEvent.changedTouches !== undefined) {
- eventPointerType = 'touch';
- }
-
- return {
- nativeEvent: nativeEvent,
- passive: passive,
- passiveSupported: passiveSupported,
- pointerType: eventPointerType,
- target: nativeEventTarget,
- type: topLevelType
- };
-}
-
-function responderEventTypesContainType(eventTypes, type) {
- for (var i = 0, len = eventTypes.length; i < len; i++) {
- if (eventTypes[i] === type) {
- return true;
- }
- }
-
- return false;
-}
-
-function validateResponderTargetEventTypes(eventType, responder) {
- var targetEventTypes = responder.targetEventTypes; // Validate the target event type exists on the responder
-
- if (targetEventTypes !== null) {
- return responderEventTypesContainType(targetEventTypes, eventType);
- }
-
- return false;
-}
-
-function traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
- var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0;
- var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0;
- var isPassive = isPassiveEvent || !isPassiveSupported;
- var eventType = isPassive ? topLevelType : topLevelType + '_active'; // Trigger event responders in this order:
- // - Bubble target responder phase
- // - Root responder phase
-
- var visitedResponders = new Set();
- var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported);
- var node = targetFiber;
- var insidePortal = false;
-
- while (node !== null) {
- var _node = node,
- dependencies = _node.dependencies,
- tag = _node.tag;
-
- if (tag === HostPortal) {
- insidePortal = true;
- } else if ((tag === HostComponent || tag === ScopeComponent) && dependencies !== null) {
- var respondersMap = dependencies.responders;
-
- if (respondersMap !== null) {
- var responderInstances = Array.from(respondersMap.values());
-
- for (var i = 0, length = responderInstances.length; i < length; i++) {
- var responderInstance = responderInstances[i];
- var props = responderInstance.props,
- responder = responderInstance.responder,
- state = responderInstance.state;
-
- if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder) && (!insidePortal || responder.targetPortalPropagation)) {
- visitedResponders.add(responder);
- var onEvent = responder.onEvent;
-
- if (onEvent !== null) {
- currentInstance = responderInstance;
- onEvent(responderEvent, eventResponderContext, props, state);
-
- if (currentPropagationBehavior === PropagateToNextResponder) {
- visitedResponders.delete(responder);
- currentPropagationBehavior = DoNotPropagateToNextResponder;
- }
- }
- }
- }
- }
- }
-
- node = node.return;
- } // Root phase
-
-
- var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType);
-
- if (rootEventResponderInstances !== undefined) {
- var _responderInstances = Array.from(rootEventResponderInstances);
-
- for (var _i = 0; _i < _responderInstances.length; _i++) {
- var _responderInstance = _responderInstances[_i];
- var props = _responderInstance.props,
- responder = _responderInstance.responder,
- state = _responderInstance.state;
- var onRootEvent = responder.onRootEvent;
-
- if (onRootEvent !== null) {
- currentInstance = _responderInstance;
- onRootEvent(responderEvent, eventResponderContext, props, state);
- }
- }
- }
-}
-
-function mountEventResponder(responder, responderInstance, props, state) {
- var onMount = responder.onMount;
-
- if (onMount !== null) {
- var previousInstance = currentInstance;
- currentInstance = responderInstance;
-
- try {
- batchedEventUpdates(function () {
- onMount(eventResponderContext, props, state);
- });
- } finally {
- currentInstance = previousInstance;
- }
- }
-}
-function unmountEventResponder(responderInstance) {
- var responder = responderInstance.responder;
- var onUnmount = responder.onUnmount;
-
- if (onUnmount !== null) {
- var props = responderInstance.props,
- state = responderInstance.state;
- var previousInstance = currentInstance;
- currentInstance = responderInstance;
-
- try {
- batchedEventUpdates(function () {
- onUnmount(eventResponderContext, props, state);
- });
- } finally {
- currentInstance = previousInstance;
- }
- }
-
- var rootEventTypesSet = responderInstance.rootEventTypes;
-
- if (rootEventTypesSet !== null) {
- var rootEventTypes = Array.from(rootEventTypesSet);
-
- for (var i = 0; i < rootEventTypes.length; i++) {
- var topLevelEventType = rootEventTypes[i];
- var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType);
-
- if (rootEventResponderInstances !== undefined) {
- rootEventResponderInstances.delete(responderInstance);
- }
- }
- }
-}
-
-function validateResponderContext() {
- if (!(currentInstance !== null)) {
- {
- throw Error("An event responder context was used outside of an event cycle.");
- }
- }
-}
-
-function dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
- if (enableFlareAPI) {
- var previousInstance = currentInstance;
- var previousTimeStamp = currentTimeStamp;
- var previousDocument = currentDocument;
- var previousPropagationBehavior = currentPropagationBehavior;
- currentPropagationBehavior = DoNotPropagateToNextResponder; // nodeType 9 is DOCUMENT_NODE
-
- currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument; // We might want to control timeStamp another way here
-
- currentTimeStamp = nativeEvent.timeStamp;
-
- try {
- batchedEventUpdates(function () {
- traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags);
- });
- } finally {
- currentInstance = previousInstance;
- currentTimeStamp = previousTimeStamp;
- currentDocument = previousDocument;
- currentPropagationBehavior = previousPropagationBehavior;
- }
- }
-}
-function addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) {
- for (var i = 0; i < rootEventTypes.length; i++) {
- var rootEventType = rootEventTypes[i];
- registerRootEventType(rootEventType, responderInstance);
- }
-}
-
-function registerRootEventType(rootEventType, eventResponderInstance) {
- var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType);
-
- if (rootEventResponderInstances === undefined) {
- rootEventResponderInstances = new Set();
- rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances);
- }
-
- var rootEventTypesSet = eventResponderInstance.rootEventTypes;
-
- if (rootEventTypesSet === null) {
- rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set();
- }
-
- if (!!rootEventTypesSet.has(rootEventType)) {
- {
- throw Error("addRootEventTypes() found a duplicate root event type of \"" + rootEventType + "\". This might be because the event type exists in the event responder \"rootEventTypes\" array or because of a previous addRootEventTypes() using this root event type.");
- }
- }
-
- rootEventTypesSet.add(rootEventType);
- rootEventResponderInstances.add(eventResponderInstance);
-}
-
// A reserved attribute.
// It is handled by React separately and shouldn't be written to the DOM.
var RESERVED = 0; // A simple string attribute.
@@ -33431,7 +34991,6 @@ var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\
/* eslint-enable max-len */
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
-
var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -33454,7 +35013,7 @@ function isAttributeNameSafe(attributeName) {
illegalAttributeNameCache[attributeName] = true;
{
- warning$1(false, 'Invalid attribute name: `%s`', attributeName);
+ error('Invalid attribute name: `%s`', attributeName);
}
return false;
@@ -33554,10 +35113,12 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.
-['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
+var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
// elements (not just inputs). Now that ReactDOMInput assigns to the
// defaultValue property -- do we need this?
-'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
+'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
+
+reservedProps.forEach(function (name) {
properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
name, // attributeName
null, // attributeNamespace
@@ -33606,7 +35167,10 @@ var properties = {}; // These props are reserved by React. They shouldn't be wri
['checked', // Note: `option.selected` is not updated if `select.multiple` is
// disabled with `removeAttribute`. We have special logic for handling this.
-'multiple', 'muted', 'selected'].forEach(function (name) {
+'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
+// you'll need to set attributeName to name.toLowerCase()
+// instead in the assignment below.
+].forEach(function (name) {
properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
name, // attributeName
null, // attributeNamespace
@@ -33614,14 +35178,20 @@ var properties = {}; // These props are reserved by React. They shouldn't be wri
}); // These are HTML attributes that are "overloaded booleans": they behave like
// booleans, but can also accept a string value.
-['capture', 'download'].forEach(function (name) {
+['capture', 'download' // NOTE: if you add a camelCased prop to this list,
+// you'll need to set attributeName to name.toLowerCase()
+// instead in the assignment below.
+].forEach(function (name) {
properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
name, // attributeName
null, // attributeNamespace
false);
}); // These are HTML attributes that must be positive numbers.
-['cols', 'rows', 'size', 'span'].forEach(function (name) {
+['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
+// you'll need to set attributeName to name.toLowerCase()
+// instead in the assignment below.
+].forEach(function (name) {
properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
name, // attributeName
null, // attributeNamespace
@@ -33642,23 +35212,32 @@ var capitalize = function (token) {
// or boolean value assignment. Regular attributes that just accept strings
// and have the same names are omitted, just like in the HTML whitelist.
// Some of these attributes can be hard to find. This list was created by
-// scrapping the MDN documentation.
+// scraping the MDN documentation.
-['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
+['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,
+// you'll need to set attributeName to name.toLowerCase()
+// instead in the assignment below.
+].forEach(function (attributeName) {
var name = attributeName.replace(CAMELIZE, capitalize);
properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
attributeName, null, // attributeNamespace
false);
}); // String SVG attributes with the xlink namespace.
-['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
+['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
+// you'll need to set attributeName to name.toLowerCase()
+// instead in the assignment below.
+].forEach(function (attributeName) {
var name = attributeName.replace(CAMELIZE, capitalize);
properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
attributeName, 'http://www.w3.org/1999/xlink', false);
}); // String SVG attributes with the xml namespace.
-['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
+['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
+// you'll need to set attributeName to name.toLowerCase()
+// instead in the assignment below.
+].forEach(function (attributeName) {
var name = attributeName.replace(CAMELIZE, capitalize);
properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
attributeName, 'http://www.w3.org/XML/1998/namespace', false);
@@ -33676,104 +35255,41 @@ var capitalize = function (token) {
var xlinkHref = 'xlinkHref';
properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
-'xlink:href', 'http://www.w3.org/1999/xlink', true);
-['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
- properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
- attributeName.toLowerCase(), // attributeName
- null, // attributeNamespace
- true);
-});
-
-var ReactDebugCurrentFrame$1 = null;
-
-{
- ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
-} // A javascript: URL can contain leading C0 control or \u0020 SPACE,
-// and any newline or tab are filtered out as if they're not part of the URL.
-// https://url.spec.whatwg.org/#url-parsing
-// Tab or newline are defined as \r\n\t:
-// https://infra.spec.whatwg.org/#ascii-tab-or-newline
-// A C0 control is a code point in the range \u0000 NULL to \u001F
-// INFORMATION SEPARATOR ONE, inclusive:
-// https://infra.spec.whatwg.org/#c0-control-or-space
-
-/* eslint-disable max-len */
-
-
-var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
-var didWarn = false;
-
-function sanitizeURL(url) {
- if (disableJavaScriptURLs) {
- if (!!isJavaScriptProtocol.test(url)) {
- {
- throw Error("React has blocked a javascript: URL as a security precaution." + (ReactDebugCurrentFrame$1.getStackAddendum()));
- }
- }
- } else if (true && !didWarn && isJavaScriptProtocol.test(url)) {
- didWarn = true;
- warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
- }
-}
-
-// Flow does not allow string concatenation of most non-string types. To work
-// around this limitation, we use an opaque type that can only be obtained by
-// passing the value through getToStringValue first.
-function toString(value) {
- return '' + value;
-}
-function getToStringValue(value) {
- switch (typeof value) {
- case 'boolean':
- case 'number':
- case 'object':
- case 'string':
- case 'undefined':
- return value;
+'xlink:href', 'http://www.w3.org/1999/xlink', true);
+['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
+ properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
+ attributeName.toLowerCase(), // attributeName
+ null, // attributeNamespace
+ true);
+});
- default:
- // function, symbol are assigned as empty strings
- return '';
- }
-}
-/** Trusted value is a wrapper for "safe" values which can be assigned to DOM execution sinks. */
+var ReactDebugCurrentFrame = null;
-/**
- * We allow passing objects with toString method as element attributes or in dangerouslySetInnerHTML
- * and we do validations that the value is safe. Once we do validation we want to use the validated
- * value instead of the object (because object.toString may return something else on next call).
- *
- * If application uses Trusted Types we don't stringify trusted values, but preserve them as objects.
- */
-var toStringOrTrustedType = toString;
+{
+ ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
+} // A javascript: URL can contain leading C0 control or \u0020 SPACE,
+// and any newline or tab are filtered out as if they're not part of the URL.
+// https://url.spec.whatwg.org/#url-parsing
+// Tab or newline are defined as \r\n\t:
+// https://infra.spec.whatwg.org/#ascii-tab-or-newline
+// A C0 control is a code point in the range \u0000 NULL to \u001F
+// INFORMATION SEPARATOR ONE, inclusive:
+// https://infra.spec.whatwg.org/#c0-control-or-space
-if (enableTrustedTypesIntegration && typeof trustedTypes !== 'undefined') {
- toStringOrTrustedType = function (value) {
- if (typeof value === 'object' && (trustedTypes.isHTML(value) || trustedTypes.isScript(value) || trustedTypes.isScriptURL(value) ||
- /* TrustedURLs are deprecated and will be removed soon: https://github.com/WICG/trusted-types/pull/204 */
- trustedTypes.isURL && trustedTypes.isURL(value))) {
- // Pass Trusted Types through.
- return value;
- }
+/* eslint-disable max-len */
- return toString(value);
- };
-}
-/**
- * Set attribute for a node. The attribute value can be either string or
- * Trusted value (if application uses Trusted Types).
- */
-function setAttribute(node, attributeName, attributeValue) {
- node.setAttribute(attributeName, attributeValue);
-}
-/**
- * Set attribute with namespace for a node. The attribute value can be either string or
- * Trusted value (if application uses Trusted Types).
- */
+var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
+var didWarn = false;
-function setAttributeNS(node, attributeNamespace, attributeName, attributeValue) {
- node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
+function sanitizeURL(url) {
+ {
+ if (!didWarn && isJavaScriptProtocol.test(url)) {
+ didWarn = true;
+
+ error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
+ }
+ }
}
/**
@@ -33787,7 +35303,7 @@ function getValueForProperty(node, name, expected, propertyInfo) {
var propertyName = propertyInfo.propertyName;
return node[propertyName];
} else {
- if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) {
+ if ( propertyInfo.sanitizeURL) {
// If we haven't fully disabled javascript: URLs, and if
// the hydration is successful of a javascript: URL, we
// still want to warn on the client.
@@ -33897,7 +35413,7 @@ function setValueForProperty(node, name, value, isCustomComponentTag) {
if (value === null) {
node.removeAttribute(_attributeName);
} else {
- setAttribute(node, _attributeName, toStringOrTrustedType(value));
+ node.setAttribute(_attributeName, '' + value);
}
}
@@ -33938,7 +35454,9 @@ function setValueForProperty(node, name, value, isCustomComponentTag) {
} else {
// `setAttribute` with objects becomes only `[object]` in IE8/9,
// ('' + value) makes it output the correct toString()-value.
- attributeValue = toStringOrTrustedType(value);
+ {
+ attributeValue = '' + value;
+ }
if (propertyInfo.sanitizeURL) {
sanitizeURL(attributeValue.toString());
@@ -33946,3322 +35464,2783 @@ function setValueForProperty(node, name, value, isCustomComponentTag) {
}
if (attributeNamespace) {
- setAttributeNS(node, attributeNamespace, attributeName, attributeValue);
- } else {
- setAttribute(node, attributeName, attributeValue);
- }
- }
-}
-
-var ReactDebugCurrentFrame$2 = null;
-var ReactControlledValuePropTypes = {
- checkPropTypes: null
-};
-
-{
- ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
- var hasReadOnlyValue = {
- button: true,
- checkbox: true,
- image: true,
- hidden: true,
- radio: true,
- reset: true,
- submit: true
- };
- var propTypes = {
- value: function (props, propName, componentName) {
- if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
- return null;
- }
-
- return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- },
- checked: function (props, propName, componentName) {
- if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
- return null;
- }
-
- return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- }
- };
- /**
- * Provide a linked `value` attribute for controlled forms. You should not use
- * this outside of the ReactDOM controlled form components.
- */
-
- ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
- checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
- };
-}
-
-function isCheckable(elem) {
- var type = elem.type;
- var nodeName = elem.nodeName;
- return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
-}
-
-function getTracker(node) {
- return node._valueTracker;
-}
-
-function detachTracker(node) {
- node._valueTracker = null;
-}
-
-function getValueFromNode(node) {
- var value = '';
-
- if (!node) {
- return value;
- }
-
- if (isCheckable(node)) {
- value = node.checked ? 'true' : 'false';
- } else {
- value = node.value;
- }
-
- return value;
-}
-
-function trackValueOnNode(node) {
- var valueField = isCheckable(node) ? 'checked' : 'value';
- var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
- var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
- // and don't track value will cause over reporting of changes,
- // but it's better then a hard failure
- // (needed for certain tests that spyOn input values and Safari)
-
- if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
- return;
- }
-
- var get = descriptor.get,
- set = descriptor.set;
- Object.defineProperty(node, valueField, {
- configurable: true,
- get: function () {
- return get.call(this);
- },
- set: function (value) {
- currentValue = '' + value;
- set.call(this, value);
- }
- }); // We could've passed this the first time
- // but it triggers a bug in IE11 and Edge 14/15.
- // Calling defineProperty() again should be equivalent.
- // https://github.com/facebook/react/issues/11768
-
- Object.defineProperty(node, valueField, {
- enumerable: descriptor.enumerable
- });
- var tracker = {
- getValue: function () {
- return currentValue;
- },
- setValue: function (value) {
- currentValue = '' + value;
- },
- stopTracking: function () {
- detachTracker(node);
- delete node[valueField];
- }
- };
- return tracker;
-}
-
-function track(node) {
- if (getTracker(node)) {
- return;
- } // TODO: Once it's just Fiber we can move this to node._wrapperState
-
-
- node._valueTracker = trackValueOnNode(node);
-}
-function updateValueIfChanged(node) {
- if (!node) {
- return false;
- }
-
- var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
- // that trying again will succeed
-
- if (!tracker) {
- return true;
- }
-
- var lastValue = tracker.getValue();
- var nextValue = getValueFromNode(node);
-
- if (nextValue !== lastValue) {
- tracker.setValue(nextValue);
- return true;
- }
-
- return false;
-}
-
-// TODO: direct imports like some-package/src/* are bad. Fix me.
-var didWarnValueDefaultValue = false;
-var didWarnCheckedDefaultChecked = false;
-var didWarnControlledToUncontrolled = false;
-var didWarnUncontrolledToControlled = false;
-
-function isControlled(props) {
- var usesChecked = props.type === 'checkbox' || props.type === 'radio';
- return usesChecked ? props.checked != null : props.value != null;
-}
-/**
- * Implements an host component that allows setting these optional
- * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
- *
- * If `checked` or `value` are not supplied (or null/undefined), user actions
- * that affect the checked state or value will trigger updates to the element.
- *
- * If they are supplied (and not null/undefined), the rendered element will not
- * trigger updates to the element. Instead, the props must change in order for
- * the rendered element to be updated.
- *
- * The rendered element will be initialized as unchecked (or `defaultChecked`)
- * with an empty value (or `defaultValue`).
- *
- * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
- */
-
-
-function getHostProps(element, props) {
- var node = element;
- var checked = props.checked;
-
- var hostProps = _assign({}, props, {
- defaultChecked: undefined,
- defaultValue: undefined,
- value: undefined,
- checked: checked != null ? checked : node._wrapperState.initialChecked
- });
-
- return hostProps;
-}
-function initWrapperState(element, props) {
- {
- ReactControlledValuePropTypes.checkPropTypes('input', props);
-
- if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
- warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
- didWarnCheckedDefaultChecked = true;
- }
-
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
- warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
- didWarnValueDefaultValue = true;
- }
- }
-
- var node = element;
- var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
- node._wrapperState = {
- initialChecked: props.checked != null ? props.checked : props.defaultChecked,
- initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
- controlled: isControlled(props)
- };
-}
-function updateChecked(element, props) {
- var node = element;
- var checked = props.checked;
-
- if (checked != null) {
- setValueForProperty(node, 'checked', checked, false);
- }
-}
-function updateWrapper(element, props) {
- var node = element;
-
- {
- var controlled = isControlled(props);
-
- if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
- warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
- didWarnUncontrolledToControlled = true;
- }
-
- if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
- warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
- didWarnControlledToUncontrolled = true;
- }
- }
-
- updateChecked(element, props);
- var value = getToStringValue(props.value);
- var type = props.type;
-
- if (value != null) {
- if (type === 'number') {
- if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
- // eslint-disable-next-line
- node.value != value) {
- node.value = toString(value);
- }
- } else if (node.value !== toString(value)) {
- node.value = toString(value);
- }
- } else if (type === 'submit' || type === 'reset') {
- // Submit/reset inputs need the attribute removed completely to avoid
- // blank-text buttons.
- node.removeAttribute('value');
- return;
- }
-
- if (disableInputAttributeSyncing) {
- // When not syncing the value attribute, React only assigns a new value
- // whenever the defaultValue React prop has changed. When not present,
- // React does nothing
- if (props.hasOwnProperty('defaultValue')) {
- setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
- }
- } else {
- // When syncing the value attribute, the value comes from a cascade of
- // properties:
- // 1. The value React property
- // 2. The defaultValue React property
- // 3. Otherwise there should be no change
- if (props.hasOwnProperty('value')) {
- setDefaultValue(node, props.type, value);
- } else if (props.hasOwnProperty('defaultValue')) {
- setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
- }
- }
-
- if (disableInputAttributeSyncing) {
- // When not syncing the checked attribute, the attribute is directly
- // controllable from the defaultValue React property. It needs to be
- // updated as new props come in.
- if (props.defaultChecked == null) {
- node.removeAttribute('checked');
- } else {
- node.defaultChecked = !!props.defaultChecked;
- }
- } else {
- // When syncing the checked attribute, it only changes when it needs
- // to be removed, such as transitioning from a checkbox into a text input
- if (props.checked == null && props.defaultChecked != null) {
- node.defaultChecked = !!props.defaultChecked;
- }
- }
-}
-function postMountWrapper(element, props, isHydrating) {
- var node = element; // Do not assign value if it is already set. This prevents user text input
- // from being lost during SSR hydration.
-
- if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
- var type = props.type;
- var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
- // default value provided by the browser. See: #12872
-
- if (isButton && (props.value === undefined || props.value === null)) {
- return;
- }
-
- var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
- // from being lost during SSR hydration.
-
- if (!isHydrating) {
- if (disableInputAttributeSyncing) {
- var value = getToStringValue(props.value); // When not syncing the value attribute, the value property points
- // directly to the React prop. Only assign it if it exists.
-
- if (value != null) {
- // Always assign on buttons so that it is possible to assign an
- // empty string to clear button text.
- //
- // Otherwise, do not re-assign the value property if is empty. This
- // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
- // prematurely marking required inputs as invalid. Equality is compared
- // to the current value in case the browser provided value is not an
- // empty string.
- if (isButton || value !== node.value) {
- node.value = toString(value);
- }
- }
- } else {
- // When syncing the value attribute, the value property should use
- // the wrapperState._initialValue property. This uses:
- //
- // 1. The value React property when present
- // 2. The defaultValue React property when present
- // 3. An empty string
- if (initialValue !== node.value) {
- node.value = initialValue;
- }
- }
- }
-
- if (disableInputAttributeSyncing) {
- // When not syncing the value attribute, assign the value attribute
- // directly from the defaultValue React property (when present)
- var defaultValue = getToStringValue(props.defaultValue);
-
- if (defaultValue != null) {
- node.defaultValue = toString(defaultValue);
- }
+ node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
} else {
- // Otherwise, the value attribute is synchronized to the property,
- // so we assign defaultValue to the same thing as the value property
- // assignment step above.
- node.defaultValue = initialValue;
- }
- } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
- // this is needed to work around a chrome bug where setting defaultChecked
- // will sometimes influence the value of checked (even after detachment).
- // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
- // We need to temporarily unset name to avoid disrupting radio button groups.
-
-
- var name = node.name;
-
- if (name !== '') {
- node.name = '';
- }
-
- if (disableInputAttributeSyncing) {
- // When not syncing the checked attribute, the checked property
- // never gets assigned. It must be manually set. We don't want
- // to do this when hydrating so that existing user input isn't
- // modified
- if (!isHydrating) {
- updateChecked(element, props);
- } // Only assign the checked attribute if it is defined. This saves
- // a DOM write when controlling the checked attribute isn't needed
- // (text inputs, submit/reset)
-
-
- if (props.hasOwnProperty('defaultChecked')) {
- node.defaultChecked = !node.defaultChecked;
- node.defaultChecked = !!props.defaultChecked;
- }
- } else {
- // When syncing the checked attribute, both the checked property and
- // attribute are assigned at the same time using defaultChecked. This uses:
- //
- // 1. The checked React property when present
- // 2. The defaultChecked React property when present
- // 3. Otherwise, false
- node.defaultChecked = !node.defaultChecked;
- node.defaultChecked = !!node._wrapperState.initialChecked;
- }
-
- if (name !== '') {
- node.name = name;
- }
-}
-function restoreControlledState$1(element, props) {
- var node = element;
- updateWrapper(node, props);
- updateNamedCousins(node, props);
-}
-
-function updateNamedCousins(rootNode, props) {
- var name = props.name;
-
- if (props.type === 'radio' && name != null) {
- var queryRoot = rootNode;
-
- while (queryRoot.parentNode) {
- queryRoot = queryRoot.parentNode;
- } // If `rootNode.form` was non-null, then we could try `form.elements`,
- // but that sometimes behaves strangely in IE8. We could also try using
- // `form.getElementsByName`, but that will only return direct children
- // and won't include inputs that use the HTML5 `form=` attribute. Since
- // the input might not even be in a form. It might not even be in the
- // document. Let's just use the local `querySelectorAll` to ensure we don't
- // miss anything.
-
-
- var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
-
- for (var i = 0; i < group.length; i++) {
- var otherNode = group[i];
-
- if (otherNode === rootNode || otherNode.form !== rootNode.form) {
- continue;
- } // This will throw if radio buttons rendered by different copies of React
- // and the same name are rendered into the same form (same as #1939).
- // That's probably okay; we don't support it just as we don't support
- // mixing React radio buttons with non-React ones.
-
-
- var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
-
- if (!otherProps) {
- {
- throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");
- }
- } // We need update the tracked value on the named cousin since the value
- // was changed but the input saw no event or value set
-
-
- updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
- // was previously checked to update will cause it to be come re-checked
- // as appropriate.
-
- updateWrapper(otherNode, otherProps);
- }
- }
-} // In Chrome, assigning defaultValue to certain input types triggers input validation.
-// For number inputs, the display value loses trailing decimal points. For email inputs,
-// Chrome raises "The specified value is not a valid email address".
-//
-// Here we check to see if the defaultValue has actually changed, avoiding these problems
-// when the user is inputting text
-//
-// https://github.com/facebook/react/issues/7253
-
-
-function setDefaultValue(node, type, value) {
- if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
- type !== 'number' || node.ownerDocument.activeElement !== node) {
- if (value == null) {
- node.defaultValue = toString(node._wrapperState.initialValue);
- } else if (node.defaultValue !== toString(value)) {
- node.defaultValue = toString(value);
+ node.setAttribute(attributeName, attributeValue);
}
}
}
-var didWarnSelectedSetOnOption = false;
-var didWarnInvalidChild = false;
-
-function flattenChildren(children) {
- var content = ''; // Flatten children. We'll warn if they are invalid
- // during validateProps() which runs for hydration too.
- // Note that this would throw on non-element objects.
- // Elements are stringified (which is normally irrelevant
- // but matters for ).
-
- React.Children.forEach(children, function (child) {
- if (child == null) {
- return;
- }
-
- content += child; // Note: we don't warn about invalid children here.
- // Instead, this is done separately below so that
- // it happens during the hydration codepath too.
- });
- return content;
-}
-/**
- * Implements an