wp/wp-includes/js/dist/nux.js
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    80 /******/ 	// __webpack_public_path__
    80 /******/ 	// __webpack_public_path__
    81 /******/ 	__webpack_require__.p = "";
    81 /******/ 	__webpack_require__.p = "";
    82 /******/
    82 /******/
    83 /******/
    83 /******/
    84 /******/ 	// Load entry module and return exports
    84 /******/ 	// Load entry module and return exports
    85 /******/ 	return __webpack_require__(__webpack_require__.s = 458);
    85 /******/ 	return __webpack_require__(__webpack_require__.s = "51Wn");
    86 /******/ })
    86 /******/ })
    87 /************************************************************************/
    87 /************************************************************************/
    88 /******/ ({
    88 /******/ ({
    89 
    89 
    90 /***/ 0:
    90 /***/ "1ZqX":
    91 /***/ (function(module, exports) {
    91 /***/ (function(module, exports) {
    92 
    92 
    93 (function() { module.exports = this["wp"]["element"]; }());
    93 (function() { module.exports = window["wp"]["data"]; }());
    94 
    94 
    95 /***/ }),
    95 /***/ }),
    96 
    96 
    97 /***/ 1:
    97 /***/ "51Wn":
    98 /***/ (function(module, exports) {
       
    99 
       
   100 (function() { module.exports = this["wp"]["i18n"]; }());
       
   101 
       
   102 /***/ }),
       
   103 
       
   104 /***/ 14:
       
   105 /***/ (function(module, __webpack_exports__, __webpack_require__) {
    98 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   106 
    99 
   107 "use strict";
   100 "use strict";
       
   101 // ESM COMPAT FLAG
       
   102 __webpack_require__.r(__webpack_exports__);
   108 
   103 
   109 // EXPORTS
   104 // EXPORTS
   110 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
   105 __webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store; });
   111 
   106 __webpack_require__.d(__webpack_exports__, "DotTip", function() { return /* reexport */ dot_tip; });
   112 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
   107 
   113 var arrayWithHoles = __webpack_require__(38);
   108 // NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/actions.js
   114 
   109 var actions_namespaceObject = {};
   115 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
   110 __webpack_require__.r(actions_namespaceObject);
   116 function _iterableToArrayLimit(arr, i) {
   111 __webpack_require__.d(actions_namespaceObject, "triggerGuide", function() { return triggerGuide; });
   117   if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
   112 __webpack_require__.d(actions_namespaceObject, "dismissTip", function() { return dismissTip; });
   118   var _arr = [];
   113 __webpack_require__.d(actions_namespaceObject, "disableTips", function() { return disableTips; });
   119   var _n = true;
   114 __webpack_require__.d(actions_namespaceObject, "enableTips", function() { return enableTips; });
   120   var _d = false;
   115 
   121   var _e = undefined;
   116 // NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/selectors.js
   122 
   117 var selectors_namespaceObject = {};
   123   try {
   118 __webpack_require__.r(selectors_namespaceObject);
   124     for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
   119 __webpack_require__.d(selectors_namespaceObject, "getAssociatedGuide", function() { return getAssociatedGuide; });
   125       _arr.push(_s.value);
   120 __webpack_require__.d(selectors_namespaceObject, "isTipVisible", function() { return isTipVisible; });
   126 
   121 __webpack_require__.d(selectors_namespaceObject, "areTipsEnabled", function() { return selectors_areTipsEnabled; });
   127       if (i && _arr.length === i) break;
   122 
   128     }
   123 // EXTERNAL MODULE: external ["wp","deprecated"]
   129   } catch (err) {
   124 var external_wp_deprecated_ = __webpack_require__("NMb1");
   130     _d = true;
   125 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_);
   131     _e = err;
   126 
   132   } finally {
   127 // EXTERNAL MODULE: external ["wp","data"]
   133     try {
   128 var external_wp_data_ = __webpack_require__("1ZqX");
   134       if (!_n && _i["return"] != null) _i["return"]();
   129 
   135     } finally {
   130 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/reducer.js
   136       if (_d) throw _e;
   131 /**
       
   132  * WordPress dependencies
       
   133  */
       
   134 
       
   135 /**
       
   136  * Reducer that tracks which tips are in a guide. Each guide is represented by
       
   137  * an array which contains the tip identifiers contained within that guide.
       
   138  *
       
   139  * @param {Array} state  Current state.
       
   140  * @param {Object} action Dispatched action.
       
   141  *
       
   142  * @return {Array} Updated state.
       
   143  */
       
   144 
       
   145 function guides(state = [], action) {
       
   146   switch (action.type) {
       
   147     case 'TRIGGER_GUIDE':
       
   148       return [...state, action.tipIds];
       
   149   }
       
   150 
       
   151   return state;
       
   152 }
       
   153 /**
       
   154  * Reducer that tracks whether or not tips are globally enabled.
       
   155  *
       
   156  * @param {boolean} state Current state.
       
   157  * @param {Object} action Dispatched action.
       
   158  *
       
   159  * @return {boolean} Updated state.
       
   160  */
       
   161 
       
   162 function areTipsEnabled(state = true, action) {
       
   163   switch (action.type) {
       
   164     case 'DISABLE_TIPS':
       
   165       return false;
       
   166 
       
   167     case 'ENABLE_TIPS':
       
   168       return true;
       
   169   }
       
   170 
       
   171   return state;
       
   172 }
       
   173 /**
       
   174  * Reducer that tracks which tips have been dismissed. If the state object
       
   175  * contains a tip identifier, then that tip is dismissed.
       
   176  *
       
   177  * @param {Object} state  Current state.
       
   178  * @param {Object} action Dispatched action.
       
   179  *
       
   180  * @return {Object} Updated state.
       
   181  */
       
   182 
       
   183 function dismissedTips(state = {}, action) {
       
   184   switch (action.type) {
       
   185     case 'DISMISS_TIP':
       
   186       return { ...state,
       
   187         [action.id]: true
       
   188       };
       
   189 
       
   190     case 'ENABLE_TIPS':
       
   191       return {};
       
   192   }
       
   193 
       
   194   return state;
       
   195 }
       
   196 const preferences = Object(external_wp_data_["combineReducers"])({
       
   197   areTipsEnabled,
       
   198   dismissedTips
       
   199 });
       
   200 /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
       
   201   guides,
       
   202   preferences
       
   203 }));
       
   204 
       
   205 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/actions.js
       
   206 /**
       
   207  * Returns an action object that, when dispatched, presents a guide that takes
       
   208  * the user through a series of tips step by step.
       
   209  *
       
   210  * @param {string[]} tipIds Which tips to show in the guide.
       
   211  *
       
   212  * @return {Object} Action object.
       
   213  */
       
   214 function triggerGuide(tipIds) {
       
   215   return {
       
   216     type: 'TRIGGER_GUIDE',
       
   217     tipIds
       
   218   };
       
   219 }
       
   220 /**
       
   221  * Returns an action object that, when dispatched, dismisses the given tip. A
       
   222  * dismissed tip will not show again.
       
   223  *
       
   224  * @param {string} id The tip to dismiss.
       
   225  *
       
   226  * @return {Object} Action object.
       
   227  */
       
   228 
       
   229 function dismissTip(id) {
       
   230   return {
       
   231     type: 'DISMISS_TIP',
       
   232     id
       
   233   };
       
   234 }
       
   235 /**
       
   236  * Returns an action object that, when dispatched, prevents all tips from
       
   237  * showing again.
       
   238  *
       
   239  * @return {Object} Action object.
       
   240  */
       
   241 
       
   242 function disableTips() {
       
   243   return {
       
   244     type: 'DISABLE_TIPS'
       
   245   };
       
   246 }
       
   247 /**
       
   248  * Returns an action object that, when dispatched, makes all tips show again.
       
   249  *
       
   250  * @return {Object} Action object.
       
   251  */
       
   252 
       
   253 function enableTips() {
       
   254   return {
       
   255     type: 'ENABLE_TIPS'
       
   256   };
       
   257 }
       
   258 
       
   259 // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
       
   260 var rememo = __webpack_require__("pPDe");
       
   261 
       
   262 // EXTERNAL MODULE: external "lodash"
       
   263 var external_lodash_ = __webpack_require__("YLtl");
       
   264 
       
   265 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/selectors.js
       
   266 /**
       
   267  * External dependencies
       
   268  */
       
   269 
       
   270 
       
   271 /**
       
   272  * An object containing information about a guide.
       
   273  *
       
   274  * @typedef {Object} NUXGuideInfo
       
   275  * @property {string[]} tipIds       Which tips the guide contains.
       
   276  * @property {?string}  currentTipId The guide's currently showing tip.
       
   277  * @property {?string}  nextTipId    The guide's next tip to show.
       
   278  */
       
   279 
       
   280 /**
       
   281  * Returns an object describing the guide, if any, that the given tip is a part
       
   282  * of.
       
   283  *
       
   284  * @param {Object} state Global application state.
       
   285  * @param {string} tipId The tip to query.
       
   286  *
       
   287  * @return {?NUXGuideInfo} Information about the associated guide.
       
   288  */
       
   289 
       
   290 const getAssociatedGuide = Object(rememo["a" /* default */])((state, tipId) => {
       
   291   for (const tipIds of state.guides) {
       
   292     if (Object(external_lodash_["includes"])(tipIds, tipId)) {
       
   293       const nonDismissedTips = Object(external_lodash_["difference"])(tipIds, Object(external_lodash_["keys"])(state.preferences.dismissedTips));
       
   294       const [currentTipId = null, nextTipId = null] = nonDismissedTips;
       
   295       return {
       
   296         tipIds,
       
   297         currentTipId,
       
   298         nextTipId
       
   299       };
   137     }
   300     }
   138   }
   301   }
   139 
   302 
   140   return _arr;
   303   return null;
   141 }
   304 }, state => [state.guides, state.preferences.dismissedTips]);
   142 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
   305 /**
   143 var unsupportedIterableToArray = __webpack_require__(29);
   306  * Determines whether or not the given tip is showing. Tips are hidden if they
   144 
   307  * are disabled, have been dismissed, or are not the current tip in any
   145 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
   308  * guide that they have been added to.
   146 var nonIterableRest = __webpack_require__(39);
   309  *
   147 
   310  * @param {Object} state Global application state.
   148 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
   311  * @param {string} tipId The tip to query.
   149 
   312  *
   150 
   313  * @return {boolean} Whether or not the given tip is showing.
   151 
   314  */
   152 
   315 
   153 function _slicedToArray(arr, i) {
   316 function isTipVisible(state, tipId) {
   154   return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])();
   317   if (!state.preferences.areTipsEnabled) {
   155 }
   318     return false;
   156 
   319   }
   157 /***/ }),
   320 
   158 
   321   if (Object(external_lodash_["has"])(state.preferences.dismissedTips, [tipId])) {
   159 /***/ 154:
   322     return false;
   160 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   323   }
   161 
   324 
   162 "use strict";
   325   const associatedGuide = getAssociatedGuide(state, tipId);
   163 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
   326 
   164 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
   327   if (associatedGuide && associatedGuide.currentTipId !== tipId) {
   165 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
   328     return false;
   166 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
   329   }
   167 
   330 
   168 
   331   return true;
       
   332 }
       
   333 /**
       
   334  * Returns whether or not tips are globally enabled.
       
   335  *
       
   336  * @param {Object} state Global application state.
       
   337  *
       
   338  * @return {boolean} Whether tips are globally enabled.
       
   339  */
       
   340 
       
   341 function selectors_areTipsEnabled(state) {
       
   342   return state.preferences.areTipsEnabled;
       
   343 }
       
   344 
       
   345 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/index.js
   169 /**
   346 /**
   170  * WordPress dependencies
   347  * WordPress dependencies
   171  */
   348  */
   172 
   349 
   173 var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
   350 /**
   174   xmlns: "http://www.w3.org/2000/svg",
   351  * Internal dependencies
   175   viewBox: "0 0 24 24"
   352  */
   176 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
   353 
   177   d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
   354 
   178 }));
   355 
   179 /* harmony default export */ __webpack_exports__["a"] = (close);
   356 
   180 
   357 const STORE_NAME = 'core/nux';
   181 
   358 /**
   182 /***/ }),
   359  * Store definition for the nux namespace.
   183 
   360  *
   184 /***/ 18:
   361  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
   185 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   362  *
   186 
   363  * @type {Object}
   187 "use strict";
   364  */
   188 
   365 
   189 // EXPORTS
   366 const store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, {
   190 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
   367   reducer: reducer,
   191 
   368   actions: actions_namespaceObject,
   192 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
   369   selectors: selectors_namespaceObject,
   193 var arrayLikeToArray = __webpack_require__(26);
   370   persist: ['preferences']
   194 
   371 }); // Once we build a more generic persistence plugin that works across types of stores
   195 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
   372 // we'd be able to replace this with a register call.
   196 
   373 
   197 function _arrayWithoutHoles(arr) {
   374 Object(external_wp_data_["registerStore"])(STORE_NAME, {
   198   if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
   375   reducer: reducer,
   199 }
   376   actions: actions_namespaceObject,
   200 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
   377   selectors: selectors_namespaceObject,
   201 var iterableToArray = __webpack_require__(35);
   378   persist: ['preferences']
   202 
   379 });
   203 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
   380 
   204 var unsupportedIterableToArray = __webpack_require__(29);
   381 // EXTERNAL MODULE: external ["wp","element"]
   205 
   382 var external_wp_element_ = __webpack_require__("GRId");
   206 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
   383 
   207 function _nonIterableSpread() {
   384 // EXTERNAL MODULE: external ["wp","compose"]
   208   throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   385 var external_wp_compose_ = __webpack_require__("K9lf");
   209 }
   386 
   210 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
   387 // EXTERNAL MODULE: external ["wp","components"]
   211 
   388 var external_wp_components_ = __webpack_require__("tI+e");
   212 
   389 
   213 
   390 // EXTERNAL MODULE: external ["wp","i18n"]
   214 
   391 var external_wp_i18n_ = __webpack_require__("l3Sj");
   215 function _toConsumableArray(arr) {
   392 
   216   return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
   393 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
   217 }
   394 var library_close = __webpack_require__("w95h");
   218 
   395 
   219 /***/ }),
   396 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/components/dot-tip/index.js
   220 
   397 
   221 /***/ 2:
   398 
       
   399 /**
       
   400  * WordPress dependencies
       
   401  */
       
   402 
       
   403 
       
   404 
       
   405 
       
   406 
       
   407 
       
   408 
       
   409 function onClick(event) {
       
   410   // Tips are often nested within buttons. We stop propagation so that clicking
       
   411   // on a tip doesn't result in the button being clicked.
       
   412   event.stopPropagation();
       
   413 }
       
   414 
       
   415 function DotTip({
       
   416   position = 'middle right',
       
   417   children,
       
   418   isVisible,
       
   419   hasNextTip,
       
   420   onDismiss,
       
   421   onDisable
       
   422 }) {
       
   423   const anchorParent = Object(external_wp_element_["useRef"])(null);
       
   424   const onFocusOutsideCallback = Object(external_wp_element_["useCallback"])(event => {
       
   425     if (!anchorParent.current) {
       
   426       return;
       
   427     }
       
   428 
       
   429     if (anchorParent.current.contains(event.relatedTarget)) {
       
   430       return;
       
   431     }
       
   432 
       
   433     onDisable();
       
   434   }, [onDisable, anchorParent]);
       
   435 
       
   436   if (!isVisible) {
       
   437     return null;
       
   438   }
       
   439 
       
   440   return Object(external_wp_element_["createElement"])(external_wp_components_["Popover"], {
       
   441     className: "nux-dot-tip",
       
   442     position: position,
       
   443     noArrow: true,
       
   444     focusOnMount: "container",
       
   445     shouldAnchorIncludePadding: true,
       
   446     role: "dialog",
       
   447     "aria-label": Object(external_wp_i18n_["__"])('Editor tips'),
       
   448     onClick: onClick,
       
   449     onFocusOutside: onFocusOutsideCallback
       
   450   }, Object(external_wp_element_["createElement"])("p", null, children), Object(external_wp_element_["createElement"])("p", null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
       
   451     isLink: true,
       
   452     onClick: onDismiss
       
   453   }, hasNextTip ? Object(external_wp_i18n_["__"])('See next tip') : Object(external_wp_i18n_["__"])('Got it'))), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
       
   454     className: "nux-dot-tip__disable",
       
   455     icon: library_close["a" /* default */],
       
   456     label: Object(external_wp_i18n_["__"])('Disable tips'),
       
   457     onClick: onDisable
       
   458   }));
       
   459 }
       
   460 /* harmony default export */ var dot_tip = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])((select, {
       
   461   tipId
       
   462 }) => {
       
   463   const {
       
   464     isTipVisible,
       
   465     getAssociatedGuide
       
   466   } = select('core/nux');
       
   467   const associatedGuide = getAssociatedGuide(tipId);
       
   468   return {
       
   469     isVisible: isTipVisible(tipId),
       
   470     hasNextTip: !!(associatedGuide && associatedGuide.nextTipId)
       
   471   };
       
   472 }), Object(external_wp_data_["withDispatch"])((dispatch, {
       
   473   tipId
       
   474 }) => {
       
   475   const {
       
   476     dismissTip,
       
   477     disableTips
       
   478   } = dispatch('core/nux');
       
   479   return {
       
   480     onDismiss() {
       
   481       dismissTip(tipId);
       
   482     },
       
   483 
       
   484     onDisable() {
       
   485       disableTips();
       
   486     }
       
   487 
       
   488   };
       
   489 }))(DotTip));
       
   490 
       
   491 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/index.js
       
   492 /**
       
   493  * WordPress dependencies
       
   494  */
       
   495 
       
   496 
       
   497 
       
   498 external_wp_deprecated_default()('wp.nux', {
       
   499   since: '5.4',
       
   500   hint: 'wp.components.Guide can be used to show a user guide.'
       
   501 });
       
   502 
       
   503 
       
   504 /***/ }),
       
   505 
       
   506 /***/ "GRId":
   222 /***/ (function(module, exports) {
   507 /***/ (function(module, exports) {
   223 
   508 
   224 (function() { module.exports = this["lodash"]; }());
   509 (function() { module.exports = window["wp"]["element"]; }());
   225 
   510 
   226 /***/ }),
   511 /***/ }),
   227 
   512 
   228 /***/ 26:
   513 /***/ "K9lf":
   229 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   230 
       
   231 "use strict";
       
   232 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
       
   233 function _arrayLikeToArray(arr, len) {
       
   234   if (len == null || len > arr.length) len = arr.length;
       
   235 
       
   236   for (var i = 0, arr2 = new Array(len); i < len; i++) {
       
   237     arr2[i] = arr[i];
       
   238   }
       
   239 
       
   240   return arr2;
       
   241 }
       
   242 
       
   243 /***/ }),
       
   244 
       
   245 /***/ 29:
       
   246 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   247 
       
   248 "use strict";
       
   249 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
       
   250 /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26);
       
   251 
       
   252 function _unsupportedIterableToArray(o, minLen) {
       
   253   if (!o) return;
       
   254   if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
       
   255   var n = Object.prototype.toString.call(o).slice(8, -1);
       
   256   if (n === "Object" && o.constructor) n = o.constructor.name;
       
   257   if (n === "Map" || n === "Set") return Array.from(o);
       
   258   if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
       
   259 }
       
   260 
       
   261 /***/ }),
       
   262 
       
   263 /***/ 3:
       
   264 /***/ (function(module, exports) {
   514 /***/ (function(module, exports) {
   265 
   515 
   266 (function() { module.exports = this["wp"]["components"]; }());
   516 (function() { module.exports = window["wp"]["compose"]; }());
   267 
   517 
   268 /***/ }),
   518 /***/ }),
   269 
   519 
   270 /***/ 35:
   520 /***/ "NMb1":
   271 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   272 
       
   273 "use strict";
       
   274 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
       
   275 function _iterableToArray(iter) {
       
   276   if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
       
   277 }
       
   278 
       
   279 /***/ }),
       
   280 
       
   281 /***/ 37:
       
   282 /***/ (function(module, exports) {
   521 /***/ (function(module, exports) {
   283 
   522 
   284 (function() { module.exports = this["wp"]["deprecated"]; }());
   523 (function() { module.exports = window["wp"]["deprecated"]; }());
   285 
   524 
   286 /***/ }),
   525 /***/ }),
   287 
   526 
   288 /***/ 38:
   527 /***/ "Tqx9":
   289 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   290 
       
   291 "use strict";
       
   292 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
       
   293 function _arrayWithHoles(arr) {
       
   294   if (Array.isArray(arr)) return arr;
       
   295 }
       
   296 
       
   297 /***/ }),
       
   298 
       
   299 /***/ 39:
       
   300 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   301 
       
   302 "use strict";
       
   303 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
       
   304 function _nonIterableRest() {
       
   305   throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
       
   306 }
       
   307 
       
   308 /***/ }),
       
   309 
       
   310 /***/ 4:
       
   311 /***/ (function(module, exports) {
   528 /***/ (function(module, exports) {
   312 
   529 
   313 (function() { module.exports = this["wp"]["data"]; }());
   530 (function() { module.exports = window["wp"]["primitives"]; }());
   314 
   531 
   315 /***/ }),
   532 /***/ }),
   316 
   533 
   317 /***/ 42:
   534 /***/ "YLtl":
       
   535 /***/ (function(module, exports) {
       
   536 
       
   537 (function() { module.exports = window["lodash"]; }());
       
   538 
       
   539 /***/ }),
       
   540 
       
   541 /***/ "l3Sj":
       
   542 /***/ (function(module, exports) {
       
   543 
       
   544 (function() { module.exports = window["wp"]["i18n"]; }());
       
   545 
       
   546 /***/ }),
       
   547 
       
   548 /***/ "pPDe":
   318 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   549 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   319 
   550 
   320 "use strict";
   551 "use strict";
   321 
   552 
   322 
   553 
   594 });
   825 });
   595 
   826 
   596 
   827 
   597 /***/ }),
   828 /***/ }),
   598 
   829 
   599 /***/ 458:
   830 /***/ "tI+e":
       
   831 /***/ (function(module, exports) {
       
   832 
       
   833 (function() { module.exports = window["wp"]["components"]; }());
       
   834 
       
   835 /***/ }),
       
   836 
       
   837 /***/ "w95h":
   600 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   838 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   601 
   839 
   602 "use strict";
   840 "use strict";
   603 // ESM COMPAT FLAG
   841 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
   604 __webpack_require__.r(__webpack_exports__);
   842 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
   605 
   843 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
   606 // EXPORTS
   844 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
   607 __webpack_require__.d(__webpack_exports__, "DotTip", function() { return /* reexport */ dot_tip; });
   845 
   608 
       
   609 // NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/actions.js
       
   610 var actions_namespaceObject = {};
       
   611 __webpack_require__.r(actions_namespaceObject);
       
   612 __webpack_require__.d(actions_namespaceObject, "triggerGuide", function() { return triggerGuide; });
       
   613 __webpack_require__.d(actions_namespaceObject, "dismissTip", function() { return dismissTip; });
       
   614 __webpack_require__.d(actions_namespaceObject, "disableTips", function() { return disableTips; });
       
   615 __webpack_require__.d(actions_namespaceObject, "enableTips", function() { return enableTips; });
       
   616 
       
   617 // NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/selectors.js
       
   618 var selectors_namespaceObject = {};
       
   619 __webpack_require__.r(selectors_namespaceObject);
       
   620 __webpack_require__.d(selectors_namespaceObject, "getAssociatedGuide", function() { return getAssociatedGuide; });
       
   621 __webpack_require__.d(selectors_namespaceObject, "isTipVisible", function() { return isTipVisible; });
       
   622 __webpack_require__.d(selectors_namespaceObject, "areTipsEnabled", function() { return selectors_areTipsEnabled; });
       
   623 
       
   624 // EXTERNAL MODULE: external {"this":["wp","deprecated"]}
       
   625 var external_this_wp_deprecated_ = __webpack_require__(37);
       
   626 var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_);
       
   627 
       
   628 // EXTERNAL MODULE: external {"this":["wp","data"]}
       
   629 var external_this_wp_data_ = __webpack_require__(4);
       
   630 
       
   631 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
       
   632 var defineProperty = __webpack_require__(5);
       
   633 
       
   634 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
       
   635 var toConsumableArray = __webpack_require__(18);
       
   636 
       
   637 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/reducer.js
       
   638 
       
   639 
       
   640 
       
   641 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; }
       
   642 
       
   643 function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
       
   644 
   846 
   645 /**
   847 /**
   646  * WordPress dependencies
   848  * WordPress dependencies
   647  */
   849  */
   648 
   850 
   649 /**
   851 const close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
   650  * Reducer that tracks which tips are in a guide. Each guide is represented by
   852   xmlns: "http://www.w3.org/2000/svg",
   651  * an array which contains the tip identifiers contained within that guide.
   853   viewBox: "0 0 24 24"
   652  *
   854 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
   653  * @param {Array} state  Current state.
   855   d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
   654  * @param {Object} action Dispatched action.
       
   655  *
       
   656  * @return {Array} Updated state.
       
   657  */
       
   658 
       
   659 function guides() {
       
   660   var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
       
   661   var action = arguments.length > 1 ? arguments[1] : undefined;
       
   662 
       
   663   switch (action.type) {
       
   664     case 'TRIGGER_GUIDE':
       
   665       return [].concat(Object(toConsumableArray["a" /* default */])(state), [action.tipIds]);
       
   666   }
       
   667 
       
   668   return state;
       
   669 }
       
   670 /**
       
   671  * Reducer that tracks whether or not tips are globally enabled.
       
   672  *
       
   673  * @param {boolean} state Current state.
       
   674  * @param {Object} action Dispatched action.
       
   675  *
       
   676  * @return {boolean} Updated state.
       
   677  */
       
   678 
       
   679 function areTipsEnabled() {
       
   680   var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
       
   681   var action = arguments.length > 1 ? arguments[1] : undefined;
       
   682 
       
   683   switch (action.type) {
       
   684     case 'DISABLE_TIPS':
       
   685       return false;
       
   686 
       
   687     case 'ENABLE_TIPS':
       
   688       return true;
       
   689   }
       
   690 
       
   691   return state;
       
   692 }
       
   693 /**
       
   694  * Reducer that tracks which tips have been dismissed. If the state object
       
   695  * contains a tip identifier, then that tip is dismissed.
       
   696  *
       
   697  * @param {Object} state  Current state.
       
   698  * @param {Object} action Dispatched action.
       
   699  *
       
   700  * @return {Object} Updated state.
       
   701  */
       
   702 
       
   703 function dismissedTips() {
       
   704   var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
       
   705   var action = arguments.length > 1 ? arguments[1] : undefined;
       
   706 
       
   707   switch (action.type) {
       
   708     case 'DISMISS_TIP':
       
   709       return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.id, true));
       
   710 
       
   711     case 'ENABLE_TIPS':
       
   712       return {};
       
   713   }
       
   714 
       
   715   return state;
       
   716 }
       
   717 var preferences = Object(external_this_wp_data_["combineReducers"])({
       
   718   areTipsEnabled: areTipsEnabled,
       
   719   dismissedTips: dismissedTips
       
   720 });
       
   721 /* harmony default export */ var reducer = (Object(external_this_wp_data_["combineReducers"])({
       
   722   guides: guides,
       
   723   preferences: preferences
       
   724 }));
   856 }));
   725 
   857 /* harmony default export */ __webpack_exports__["a"] = (close);
   726 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/actions.js
   858 
   727 /**
       
   728  * Returns an action object that, when dispatched, presents a guide that takes
       
   729  * the user through a series of tips step by step.
       
   730  *
       
   731  * @param {string[]} tipIds Which tips to show in the guide.
       
   732  *
       
   733  * @return {Object} Action object.
       
   734  */
       
   735 function triggerGuide(tipIds) {
       
   736   return {
       
   737     type: 'TRIGGER_GUIDE',
       
   738     tipIds: tipIds
       
   739   };
       
   740 }
       
   741 /**
       
   742  * Returns an action object that, when dispatched, dismisses the given tip. A
       
   743  * dismissed tip will not show again.
       
   744  *
       
   745  * @param {string} id The tip to dismiss.
       
   746  *
       
   747  * @return {Object} Action object.
       
   748  */
       
   749 
       
   750 function dismissTip(id) {
       
   751   return {
       
   752     type: 'DISMISS_TIP',
       
   753     id: id
       
   754   };
       
   755 }
       
   756 /**
       
   757  * Returns an action object that, when dispatched, prevents all tips from
       
   758  * showing again.
       
   759  *
       
   760  * @return {Object} Action object.
       
   761  */
       
   762 
       
   763 function disableTips() {
       
   764   return {
       
   765     type: 'DISABLE_TIPS'
       
   766   };
       
   767 }
       
   768 /**
       
   769  * Returns an action object that, when dispatched, makes all tips show again.
       
   770  *
       
   771  * @return {Object} Action object.
       
   772  */
       
   773 
       
   774 function enableTips() {
       
   775   return {
       
   776     type: 'ENABLE_TIPS'
       
   777   };
       
   778 }
       
   779 
       
   780 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
       
   781 var slicedToArray = __webpack_require__(14);
       
   782 
       
   783 // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
       
   784 var rememo = __webpack_require__(42);
       
   785 
       
   786 // EXTERNAL MODULE: external {"this":"lodash"}
       
   787 var external_this_lodash_ = __webpack_require__(2);
       
   788 
       
   789 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/selectors.js
       
   790 
       
   791 
       
   792 function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
       
   793 
       
   794 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(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
       
   795 
       
   796 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; }
       
   797 
       
   798 /**
       
   799  * External dependencies
       
   800  */
       
   801 
       
   802 
       
   803 /**
       
   804  * An object containing information about a guide.
       
   805  *
       
   806  * @typedef {Object} NUXGuideInfo
       
   807  * @property {string[]} tipIds       Which tips the guide contains.
       
   808  * @property {?string}  currentTipId The guide's currently showing tip.
       
   809  * @property {?string}  nextTipId    The guide's next tip to show.
       
   810  */
       
   811 
       
   812 /**
       
   813  * Returns an object describing the guide, if any, that the given tip is a part
       
   814  * of.
       
   815  *
       
   816  * @param {Object} state Global application state.
       
   817  * @param {string} tipId The tip to query.
       
   818  *
       
   819  * @return {?NUXGuideInfo} Information about the associated guide.
       
   820  */
       
   821 
       
   822 var getAssociatedGuide = Object(rememo["a" /* default */])(function (state, tipId) {
       
   823   var _iterator = _createForOfIteratorHelper(state.guides),
       
   824       _step;
       
   825 
       
   826   try {
       
   827     for (_iterator.s(); !(_step = _iterator.n()).done;) {
       
   828       var tipIds = _step.value;
       
   829 
       
   830       if (Object(external_this_lodash_["includes"])(tipIds, tipId)) {
       
   831         var nonDismissedTips = Object(external_this_lodash_["difference"])(tipIds, Object(external_this_lodash_["keys"])(state.preferences.dismissedTips));
       
   832 
       
   833         var _nonDismissedTips = Object(slicedToArray["a" /* default */])(nonDismissedTips, 2),
       
   834             _nonDismissedTips$ = _nonDismissedTips[0],
       
   835             currentTipId = _nonDismissedTips$ === void 0 ? null : _nonDismissedTips$,
       
   836             _nonDismissedTips$2 = _nonDismissedTips[1],
       
   837             nextTipId = _nonDismissedTips$2 === void 0 ? null : _nonDismissedTips$2;
       
   838 
       
   839         return {
       
   840           tipIds: tipIds,
       
   841           currentTipId: currentTipId,
       
   842           nextTipId: nextTipId
       
   843         };
       
   844       }
       
   845     }
       
   846   } catch (err) {
       
   847     _iterator.e(err);
       
   848   } finally {
       
   849     _iterator.f();
       
   850   }
       
   851 
       
   852   return null;
       
   853 }, function (state) {
       
   854   return [state.guides, state.preferences.dismissedTips];
       
   855 });
       
   856 /**
       
   857  * Determines whether or not the given tip is showing. Tips are hidden if they
       
   858  * are disabled, have been dismissed, or are not the current tip in any
       
   859  * guide that they have been added to.
       
   860  *
       
   861  * @param {Object} state Global application state.
       
   862  * @param {string} tipId The tip to query.
       
   863  *
       
   864  * @return {boolean} Whether or not the given tip is showing.
       
   865  */
       
   866 
       
   867 function isTipVisible(state, tipId) {
       
   868   if (!state.preferences.areTipsEnabled) {
       
   869     return false;
       
   870   }
       
   871 
       
   872   if (Object(external_this_lodash_["has"])(state.preferences.dismissedTips, [tipId])) {
       
   873     return false;
       
   874   }
       
   875 
       
   876   var associatedGuide = getAssociatedGuide(state, tipId);
       
   877 
       
   878   if (associatedGuide && associatedGuide.currentTipId !== tipId) {
       
   879     return false;
       
   880   }
       
   881 
       
   882   return true;
       
   883 }
       
   884 /**
       
   885  * Returns whether or not tips are globally enabled.
       
   886  *
       
   887  * @param {Object} state Global application state.
       
   888  *
       
   889  * @return {boolean} Whether tips are globally enabled.
       
   890  */
       
   891 
       
   892 function selectors_areTipsEnabled(state) {
       
   893   return state.preferences.areTipsEnabled;
       
   894 }
       
   895 
       
   896 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/index.js
       
   897 /**
       
   898  * WordPress dependencies
       
   899  */
       
   900 
       
   901 /**
       
   902  * Internal dependencies
       
   903  */
       
   904 
       
   905 
       
   906 
       
   907 
       
   908 var store = Object(external_this_wp_data_["registerStore"])('core/nux', {
       
   909   reducer: reducer,
       
   910   actions: actions_namespaceObject,
       
   911   selectors: selectors_namespaceObject,
       
   912   persist: ['preferences']
       
   913 });
       
   914 /* harmony default export */ var build_module_store = (store);
       
   915 
       
   916 // EXTERNAL MODULE: external {"this":["wp","element"]}
       
   917 var external_this_wp_element_ = __webpack_require__(0);
       
   918 
       
   919 // EXTERNAL MODULE: external {"this":["wp","compose"]}
       
   920 var external_this_wp_compose_ = __webpack_require__(9);
       
   921 
       
   922 // EXTERNAL MODULE: external {"this":["wp","components"]}
       
   923 var external_this_wp_components_ = __webpack_require__(3);
       
   924 
       
   925 // EXTERNAL MODULE: external {"this":["wp","i18n"]}
       
   926 var external_this_wp_i18n_ = __webpack_require__(1);
       
   927 
       
   928 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
       
   929 var library_close = __webpack_require__(154);
       
   930 
       
   931 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/components/dot-tip/index.js
       
   932 
       
   933 
       
   934 /**
       
   935  * WordPress dependencies
       
   936  */
       
   937 
       
   938 
       
   939 
       
   940 
       
   941 
       
   942 
       
   943 
       
   944 function onClick(event) {
       
   945   // Tips are often nested within buttons. We stop propagation so that clicking
       
   946   // on a tip doesn't result in the button being clicked.
       
   947   event.stopPropagation();
       
   948 }
       
   949 
       
   950 function DotTip(_ref) {
       
   951   var _ref$position = _ref.position,
       
   952       position = _ref$position === void 0 ? 'middle right' : _ref$position,
       
   953       children = _ref.children,
       
   954       isVisible = _ref.isVisible,
       
   955       hasNextTip = _ref.hasNextTip,
       
   956       onDismiss = _ref.onDismiss,
       
   957       onDisable = _ref.onDisable;
       
   958   var anchorParent = Object(external_this_wp_element_["useRef"])(null);
       
   959   var onFocusOutsideCallback = Object(external_this_wp_element_["useCallback"])(function (event) {
       
   960     if (!anchorParent.current) {
       
   961       return;
       
   962     }
       
   963 
       
   964     if (anchorParent.current.contains(event.relatedTarget)) {
       
   965       return;
       
   966     }
       
   967 
       
   968     onDisable();
       
   969   }, [onDisable, anchorParent]);
       
   970 
       
   971   if (!isVisible) {
       
   972     return null;
       
   973   }
       
   974 
       
   975   return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
       
   976     className: "nux-dot-tip",
       
   977     position: position,
       
   978     noArrow: true,
       
   979     focusOnMount: "container",
       
   980     shouldAnchorIncludePadding: true,
       
   981     role: "dialog",
       
   982     "aria-label": Object(external_this_wp_i18n_["__"])('Editor tips'),
       
   983     onClick: onClick,
       
   984     onFocusOutside: onFocusOutsideCallback
       
   985   }, Object(external_this_wp_element_["createElement"])("p", null, children), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
       
   986     isLink: true,
       
   987     onClick: onDismiss
       
   988   }, hasNextTip ? Object(external_this_wp_i18n_["__"])('See next tip') : Object(external_this_wp_i18n_["__"])('Got it'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
       
   989     className: "nux-dot-tip__disable",
       
   990     icon: library_close["a" /* default */],
       
   991     label: Object(external_this_wp_i18n_["__"])('Disable tips'),
       
   992     onClick: onDisable
       
   993   }));
       
   994 }
       
   995 /* harmony default export */ var dot_tip = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
       
   996   var tipId = _ref2.tipId;
       
   997 
       
   998   var _select = select('core/nux'),
       
   999       isTipVisible = _select.isTipVisible,
       
  1000       getAssociatedGuide = _select.getAssociatedGuide;
       
  1001 
       
  1002   var associatedGuide = getAssociatedGuide(tipId);
       
  1003   return {
       
  1004     isVisible: isTipVisible(tipId),
       
  1005     hasNextTip: !!(associatedGuide && associatedGuide.nextTipId)
       
  1006   };
       
  1007 }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) {
       
  1008   var tipId = _ref3.tipId;
       
  1009 
       
  1010   var _dispatch = dispatch('core/nux'),
       
  1011       dismissTip = _dispatch.dismissTip,
       
  1012       disableTips = _dispatch.disableTips;
       
  1013 
       
  1014   return {
       
  1015     onDismiss: function onDismiss() {
       
  1016       dismissTip(tipId);
       
  1017     },
       
  1018     onDisable: function onDisable() {
       
  1019       disableTips();
       
  1020     }
       
  1021   };
       
  1022 }))(DotTip));
       
  1023 
       
  1024 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/index.js
       
  1025 /**
       
  1026  * WordPress dependencies
       
  1027  */
       
  1028 
       
  1029 /**
       
  1030  * Internal dependencies
       
  1031  */
       
  1032 
       
  1033 
       
  1034 
       
  1035 external_this_wp_deprecated_default()('wp.nux', {
       
  1036   hint: 'wp.components.Guide can be used to show a user guide.'
       
  1037 });
       
  1038 
       
  1039 
       
  1040 /***/ }),
       
  1041 
       
  1042 /***/ 5:
       
  1043 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  1044 
       
  1045 "use strict";
       
  1046 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
       
  1047 function _defineProperty(obj, key, value) {
       
  1048   if (key in obj) {
       
  1049     Object.defineProperty(obj, key, {
       
  1050       value: value,
       
  1051       enumerable: true,
       
  1052       configurable: true,
       
  1053       writable: true
       
  1054     });
       
  1055   } else {
       
  1056     obj[key] = value;
       
  1057   }
       
  1058 
       
  1059   return obj;
       
  1060 }
       
  1061 
       
  1062 /***/ }),
       
  1063 
       
  1064 /***/ 6:
       
  1065 /***/ (function(module, exports) {
       
  1066 
       
  1067 (function() { module.exports = this["wp"]["primitives"]; }());
       
  1068 
       
  1069 /***/ }),
       
  1070 
       
  1071 /***/ 9:
       
  1072 /***/ (function(module, exports) {
       
  1073 
       
  1074 (function() { module.exports = this["wp"]["compose"]; }());
       
  1075 
   859 
  1076 /***/ })
   860 /***/ })
  1077 
   861 
  1078 /******/ });
   862 /******/ });