eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNotice = createNotice;\nexports.createSuccessNotice = createSuccessNotice;\nexports.createInfoNotice = createInfoNotice;\nexports.createErrorNotice = createErrorNotice;\nexports.createWarningNotice = createWarningNotice;\nexports.removeNotice = removeNotice;\n\nvar _lodash = __webpack_require__(/*! lodash */ \"lodash\");\n\nvar _constants = __webpack_require__(/*! ./constants */ \"./node_modules/@wordpress/notices/build/store/constants.js\");\n\nvar_marked=\n/*#__PURE__*/\nregeneratorRuntime.mark(createNotice);\n\n/**\n * Yields action objects used in signalling that a notice is to be created.\n *\n * @param {?string} status Notice status.\n * Defaults to `info`.\n * @param {string} content Notice message.\n * @param {?Object} options Notice options.\n * @param {?string} options.context Context under which to\n * group notice.\n * @param {?string} options.id Identifier for notice.\n * Automatically assigned\n * if not specified.\n * @param {?boolean} options.isDismissible Whether the notice can\n * be dismissed by user.\n * Defaults to `true`.\n * @param {?boolean} options.speak Whether the notice\n * content should be\n * announced to screen\n * readers. Defaults to\n * `true`.\n * @param {?Array<WPNoticeAction>} options.actions User actions to be\n * presented with notice.\n */\nfunctioncreateNotice(){\nvarstatus,\ncontent,\noptions,\n_options$speak,\nspeak,\n_options$isDismissibl,\nisDismissible,\n_options$context,\ncontext,\n_options$id,\nid,\n_options$actions,\nactions,\n__unstableHTML,\n_args=arguments;\n\nreturnregeneratorRuntime.wrap(functioncreateNotice$(_context){\nwhile(1){\nswitch(_context.prev=_context.next){\ncase0:\nstatus=_args.length>0&&_args[0]!==undefined?_args[0]:_constants.DEFAULT_STATUS;\ncontent=_args.length>1?_args[1]:undefined;\noptions=_args.length>2&&_args[2]!==undefined?_args[2]:{};\n_options$speak=options.speak,speak=_options$speak===void0?true:_options$speak,_options$isDismissibl=options.isDismissible,isDismissible=_options$isDismissibl===void0?true:_options$isDismissibl,_options$context=options.context,context=_options$context===void0?_constants.DEFAULT_CONTEXT:_options$context,_options$id=options.id,id=_options$id===void0?(0,_lodash.uniqueId)(context):_options$id,_options$actions=options.actions,actions=_options$actions===void0?[]:_options$actions,__unstableHTML=options.__unstableHTML;// The supported value shape of content is currently limited to plain text\n // strings. To avoid setting expectation that e.g. a WPElement could be\n // supported, cast to a string.\n\n content = String(content);\n\n if (!speak) {\n _context.next = 8;\n break;\n }\n\n _context.next = 8;\n return {\n type: 'SPEAK',\n message: content\n };\n\n case 8:\n _context.next = 10;\n return {\n type: 'CREATE_NOTICE',\n context: context,\n
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DEFAULT_STATUS = exports.DEFAULT_CONTEXT = void 0;\n\n/**\n * Default context to use for notice grouping when not otherwise specified. Its\n * specific value doesn't hold much meaning, but it must be reasonably unique\n * and, more importantly, referenced consistently in the store implementation.\n *\n * @type {string}\n */\nvar DEFAULT_CONTEXT = 'global';\n/**\n * Default notice status.\n *\n * @type {string}\n */\n\nexports.DEFAULT_CONTEXT = DEFAULT_CONTEXT;\nvar DEFAULT_STATUS = 'info';\nexports.DEFAULT_STATUS = DEFAULT_STATUS;\n\n\n//# sourceURL=webpack://wp.%5Bname%5D/./node_modules/@wordpress/notices/build/store/constants.js?");
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getNotices = getNotices;\n\nvar _constants = __webpack_require__(/*! ./constants */ \"./node_modules/@wordpress/notices/build/store/constants.js\");\n\n/**\n * Internal dependencies\n */\n\n/**\n * The default empty set of notices to return when there are no notices\n * assigned for a given notices context. This can occur if the getNotices\n * selector is called without a notice ever having been created for the\n * context. A shared value is used to ensure referential equality between\n * sequential selector calls, since otherwise `[] !== []`.\n *\n * @type {Array}\n */\nvar DEFAULT_NOTICES = [];\n/**\n * Notice object.\n *\n * @property {string} id Unique identifier of notice.\n * @property {string} status Status of notice, one of `success`,\n * `info`, `error`, or `warning`. Defaults\n * to `info`.\n * @property {string} content Notice message.\n * @property {string} __unstableHTML Notice message as raw HTML. Intended to\n * serve primarily for compatibility of\n * server-rendered notices, and SHOULD NOT\n * be used for notices. It is subject to\n * removal without notice.\n * @property {boolean} isDismissible Whether the notice can be dismissed by\n * user. Defaults to `true`.\n * @property {WPNoticeAction[]} actions User actions to present with notice.\n *\n * @typedef {WPNotice}\n */\n\n/**\n * Object describing a user action option associated with a notice.\n *\n * @property {string} label Message to use as action label.\n * @property {?string} url Optional URL of resource if action incurs\n * browser navigation.\n * @property {?Function} callback Optional function to invoke when action is\n * triggered by user.\n *\n * @typedef {WPNoticeAction}\n */\n\n/**\n * Returns all notices as an array, optionally for a given context. Defaults to\n * the global context.\n *\n * @param {Object} state Notices state.\n * @param {?string} context Optional grouping context.\n *\n * @return {WPNotice[]} Array of notices.\n */\n\nfunction getNotices(state) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.DEFAULT_CONTEXT;\n return state[context] || DEFAULT_NOTICES;\n}\n\n\n//# sourceURL=webpack://wp.%5Bname%5D/./node_modules/@wordpress/notices/build/store/selectors.js?");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.onSubKey = void 0;\n\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\"));\n\nvar _objectSpread3 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread */ \"./node_modules/@babel/runtime/helpers/objectSpread.js\"));\n\n/**\n * Higher-order reducer creator which creates a combined reducer object, keyed\n * by a property on the action object.\n *\n * @param {string} actionProperty Action property by which to key object.\n *\n * @return {Function} Higher-order reducer.\n */\nvar onSubKey = function onSubKey(actionProperty) {\n return function (reducer) {\n return function () {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var action = arguments.length > 1 ? arguments[1] : undefined;\n // Retrieve subkey from action. Do not track if undefined; useful for cases\n // where reducer is scoped by action shape.\n var key = action[actionProperty];\n\n if (key === undefined) {\n return state;\n } // Avoid updating state if unchanged. Note that this also accounts for a\n // reducer which returns undefined on a key which is not yet tracked.\n\n\n var nextKeyState = reducer(state[key], action);\n\n if (nextKeyState === state[key]) {\n return state;\n }\n\n return (0, _objectSpread3.default)({}, state, (0, _defineProperty2.default)({}, key, nextKeyState));\n };\n };\n};\n\nexports.onSubKey = onSubKey;\nvar _default = onSubKey;\nexports.default = _default;\n\n\n//# sourceURL=webpack://wp.%5Bname%5D/./node_modules/@wordpress/notices/build/store/utils/on-sub-key.js?");