99 |
99 |
100 (function() { module.exports = this["wp"]["i18n"]; }()); |
100 (function() { module.exports = this["wp"]["i18n"]; }()); |
101 |
101 |
102 /***/ }), |
102 /***/ }), |
103 |
103 |
104 /***/ 15: |
104 /***/ 14: |
105 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
105 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
106 |
106 |
107 "use strict"; |
107 "use strict"; |
108 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); |
108 |
109 function _defineProperty(obj, key, value) { |
109 // EXPORTS |
110 if (key in obj) { |
110 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; }); |
111 Object.defineProperty(obj, key, { |
|
112 value: value, |
|
113 enumerable: true, |
|
114 configurable: true, |
|
115 writable: true |
|
116 }); |
|
117 } else { |
|
118 obj[key] = value; |
|
119 } |
|
120 |
|
121 return obj; |
|
122 } |
|
123 |
|
124 /***/ }), |
|
125 |
|
126 /***/ 17: |
|
127 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
128 |
|
129 "use strict"; |
|
130 |
|
131 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js |
|
132 function _arrayWithoutHoles(arr) { |
|
133 if (Array.isArray(arr)) { |
|
134 for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { |
|
135 arr2[i] = arr[i]; |
|
136 } |
|
137 |
|
138 return arr2; |
|
139 } |
|
140 } |
|
141 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js |
|
142 var iterableToArray = __webpack_require__(34); |
|
143 |
|
144 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js |
|
145 function _nonIterableSpread() { |
|
146 throw new TypeError("Invalid attempt to spread non-iterable instance"); |
|
147 } |
|
148 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js |
|
149 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); |
|
150 |
|
151 |
|
152 |
|
153 function _toConsumableArray(arr) { |
|
154 return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread(); |
|
155 } |
|
156 |
|
157 /***/ }), |
|
158 |
|
159 /***/ 2: |
|
160 /***/ (function(module, exports) { |
|
161 |
|
162 (function() { module.exports = this["lodash"]; }()); |
|
163 |
|
164 /***/ }), |
|
165 |
|
166 /***/ 28: |
|
167 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
168 |
|
169 "use strict"; |
|
170 |
111 |
171 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js |
112 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js |
172 var arrayWithHoles = __webpack_require__(37); |
113 var arrayWithHoles = __webpack_require__(38); |
173 |
114 |
174 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js |
115 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js |
175 function _iterableToArrayLimit(arr, i) { |
116 function _iterableToArrayLimit(arr, i) { |
|
117 if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; |
176 var _arr = []; |
118 var _arr = []; |
177 var _n = true; |
119 var _n = true; |
178 var _d = false; |
120 var _d = false; |
179 var _e = undefined; |
121 var _e = undefined; |
180 |
122 |
195 } |
137 } |
196 } |
138 } |
197 |
139 |
198 return _arr; |
140 return _arr; |
199 } |
141 } |
|
142 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js |
|
143 var unsupportedIterableToArray = __webpack_require__(29); |
|
144 |
200 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js |
145 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js |
201 var nonIterableRest = __webpack_require__(38); |
146 var nonIterableRest = __webpack_require__(39); |
202 |
147 |
203 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js |
148 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js |
204 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); |
149 |
205 |
150 |
206 |
151 |
207 |
152 |
208 function _slicedToArray(arr, i) { |
153 function _slicedToArray(arr, i) { |
209 return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); |
154 return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])(); |
210 } |
155 } |
211 |
156 |
212 /***/ }), |
157 /***/ }), |
213 |
158 |
214 /***/ 30: |
159 /***/ 154: |
|
160 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
161 |
|
162 "use strict"; |
|
163 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); |
|
164 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
165 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); |
|
166 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
167 |
|
168 |
|
169 /** |
|
170 * WordPress dependencies |
|
171 */ |
|
172 |
|
173 var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
174 xmlns: "http://www.w3.org/2000/svg", |
|
175 viewBox: "0 0 24 24" |
|
176 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
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" |
|
178 })); |
|
179 /* harmony default export */ __webpack_exports__["a"] = (close); |
|
180 |
|
181 |
|
182 /***/ }), |
|
183 |
|
184 /***/ 18: |
|
185 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
186 |
|
187 "use strict"; |
|
188 |
|
189 // EXPORTS |
|
190 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); |
|
191 |
|
192 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js |
|
193 var arrayLikeToArray = __webpack_require__(26); |
|
194 |
|
195 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js |
|
196 |
|
197 function _arrayWithoutHoles(arr) { |
|
198 if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); |
|
199 } |
|
200 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js |
|
201 var iterableToArray = __webpack_require__(35); |
|
202 |
|
203 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js |
|
204 var unsupportedIterableToArray = __webpack_require__(29); |
|
205 |
|
206 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js |
|
207 function _nonIterableSpread() { |
|
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."); |
|
209 } |
|
210 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 function _toConsumableArray(arr) { |
|
216 return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); |
|
217 } |
|
218 |
|
219 /***/ }), |
|
220 |
|
221 /***/ 2: |
|
222 /***/ (function(module, exports) { |
|
223 |
|
224 (function() { module.exports = this["lodash"]; }()); |
|
225 |
|
226 /***/ }), |
|
227 |
|
228 /***/ 26: |
|
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) { |
|
265 |
|
266 (function() { module.exports = this["wp"]["components"]; }()); |
|
267 |
|
268 /***/ }), |
|
269 |
|
270 /***/ 35: |
|
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) { |
|
283 |
|
284 (function() { module.exports = this["wp"]["deprecated"]; }()); |
|
285 |
|
286 /***/ }), |
|
287 |
|
288 /***/ 38: |
|
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) { |
|
312 |
|
313 (function() { module.exports = this["wp"]["data"]; }()); |
|
314 |
|
315 /***/ }), |
|
316 |
|
317 /***/ 42: |
215 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
318 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
216 |
319 |
217 "use strict"; |
320 "use strict"; |
218 |
321 |
219 |
322 |
491 }); |
594 }); |
492 |
595 |
493 |
596 |
494 /***/ }), |
597 /***/ }), |
495 |
598 |
496 /***/ 34: |
599 /***/ 458: |
497 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
600 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
498 |
601 |
499 "use strict"; |
602 "use strict"; |
500 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); |
603 // ESM COMPAT FLAG |
501 function _iterableToArray(iter) { |
|
502 if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); |
|
503 } |
|
504 |
|
505 /***/ }), |
|
506 |
|
507 /***/ 37: |
|
508 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
509 |
|
510 "use strict"; |
|
511 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); |
|
512 function _arrayWithHoles(arr) { |
|
513 if (Array.isArray(arr)) return arr; |
|
514 } |
|
515 |
|
516 /***/ }), |
|
517 |
|
518 /***/ 375: |
|
519 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
520 |
|
521 "use strict"; |
|
522 __webpack_require__.r(__webpack_exports__); |
604 __webpack_require__.r(__webpack_exports__); |
|
605 |
|
606 // EXPORTS |
|
607 __webpack_require__.d(__webpack_exports__, "DotTip", function() { return /* reexport */ dot_tip; }); |
|
608 |
|
609 // NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/actions.js |
523 var actions_namespaceObject = {}; |
610 var actions_namespaceObject = {}; |
524 __webpack_require__.r(actions_namespaceObject); |
611 __webpack_require__.r(actions_namespaceObject); |
525 __webpack_require__.d(actions_namespaceObject, "triggerGuide", function() { return triggerGuide; }); |
612 __webpack_require__.d(actions_namespaceObject, "triggerGuide", function() { return triggerGuide; }); |
526 __webpack_require__.d(actions_namespaceObject, "dismissTip", function() { return dismissTip; }); |
613 __webpack_require__.d(actions_namespaceObject, "dismissTip", function() { return dismissTip; }); |
527 __webpack_require__.d(actions_namespaceObject, "disableTips", function() { return disableTips; }); |
614 __webpack_require__.d(actions_namespaceObject, "disableTips", function() { return disableTips; }); |
528 __webpack_require__.d(actions_namespaceObject, "enableTips", function() { return enableTips; }); |
615 __webpack_require__.d(actions_namespaceObject, "enableTips", function() { return enableTips; }); |
|
616 |
|
617 // NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/selectors.js |
529 var selectors_namespaceObject = {}; |
618 var selectors_namespaceObject = {}; |
530 __webpack_require__.r(selectors_namespaceObject); |
619 __webpack_require__.r(selectors_namespaceObject); |
531 __webpack_require__.d(selectors_namespaceObject, "getAssociatedGuide", function() { return getAssociatedGuide; }); |
620 __webpack_require__.d(selectors_namespaceObject, "getAssociatedGuide", function() { return getAssociatedGuide; }); |
532 __webpack_require__.d(selectors_namespaceObject, "isTipVisible", function() { return isTipVisible; }); |
621 __webpack_require__.d(selectors_namespaceObject, "isTipVisible", function() { return isTipVisible; }); |
533 __webpack_require__.d(selectors_namespaceObject, "areTipsEnabled", function() { return selectors_areTipsEnabled; }); |
622 __webpack_require__.d(selectors_namespaceObject, "areTipsEnabled", function() { return selectors_areTipsEnabled; }); |
534 |
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 |
535 // EXTERNAL MODULE: external {"this":["wp","data"]} |
628 // EXTERNAL MODULE: external {"this":["wp","data"]} |
536 var external_this_wp_data_ = __webpack_require__(5); |
629 var external_this_wp_data_ = __webpack_require__(4); |
537 |
630 |
538 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js |
631 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js |
539 var defineProperty = __webpack_require__(15); |
632 var defineProperty = __webpack_require__(5); |
540 |
|
541 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js |
|
542 var objectSpread = __webpack_require__(7); |
|
543 |
633 |
544 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules |
634 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules |
545 var toConsumableArray = __webpack_require__(17); |
635 var toConsumableArray = __webpack_require__(18); |
546 |
636 |
547 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/reducer.js |
637 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/reducer.js |
548 |
638 |
549 |
639 |
550 |
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; } |
551 |
644 |
552 /** |
645 /** |
553 * WordPress dependencies |
646 * WordPress dependencies |
554 */ |
647 */ |
555 |
648 |
683 type: 'ENABLE_TIPS' |
776 type: 'ENABLE_TIPS' |
684 }; |
777 }; |
685 } |
778 } |
686 |
779 |
687 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules |
780 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules |
688 var slicedToArray = __webpack_require__(28); |
781 var slicedToArray = __webpack_require__(14); |
689 |
782 |
690 // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js |
783 // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js |
691 var rememo = __webpack_require__(30); |
784 var rememo = __webpack_require__(42); |
692 |
785 |
693 // EXTERNAL MODULE: external "lodash" |
786 // EXTERNAL MODULE: external {"this":"lodash"} |
694 var external_lodash_ = __webpack_require__(2); |
787 var external_this_lodash_ = __webpack_require__(2); |
695 |
788 |
696 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/selectors.js |
789 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/selectors.js |
697 |
790 |
698 |
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 |
699 /** |
798 /** |
700 * External dependencies |
799 * External dependencies |
701 */ |
800 */ |
702 |
801 |
703 |
802 |
704 /** |
803 /** |
705 * An object containing information about a guide. |
804 * An object containing information about a guide. |
706 * |
805 * |
707 * @typedef {Object} NUX.GuideInfo |
806 * @typedef {Object} NUXGuideInfo |
708 * @property {string[]} tipIds Which tips the guide contains. |
807 * @property {string[]} tipIds Which tips the guide contains. |
709 * @property {?string} currentTipId The guide's currently showing tip. |
808 * @property {?string} currentTipId The guide's currently showing tip. |
710 * @property {?string} nextTipId The guide's next tip to show. |
809 * @property {?string} nextTipId The guide's next tip to show. |
711 */ |
810 */ |
712 |
811 |
715 * of. |
814 * of. |
716 * |
815 * |
717 * @param {Object} state Global application state. |
816 * @param {Object} state Global application state. |
718 * @param {string} tipId The tip to query. |
817 * @param {string} tipId The tip to query. |
719 * |
818 * |
720 * @return {?NUX.GuideInfo} Information about the associated guide. |
819 * @return {?NUXGuideInfo} Information about the associated guide. |
721 */ |
820 */ |
722 |
821 |
723 var getAssociatedGuide = Object(rememo["a" /* default */])(function (state, tipId) { |
822 var getAssociatedGuide = Object(rememo["a" /* default */])(function (state, tipId) { |
724 var _iteratorNormalCompletion = true; |
823 var _iterator = _createForOfIteratorHelper(state.guides), |
725 var _didIteratorError = false; |
824 _step; |
726 var _iteratorError = undefined; |
|
727 |
825 |
728 try { |
826 try { |
729 for (var _iterator = state.guides[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { |
827 for (_iterator.s(); !(_step = _iterator.n()).done;) { |
730 var tipIds = _step.value; |
828 var tipIds = _step.value; |
731 |
829 |
732 if (Object(external_lodash_["includes"])(tipIds, tipId)) { |
830 if (Object(external_this_lodash_["includes"])(tipIds, tipId)) { |
733 var nonDismissedTips = Object(external_lodash_["difference"])(tipIds, Object(external_lodash_["keys"])(state.preferences.dismissedTips)); |
831 var nonDismissedTips = Object(external_this_lodash_["difference"])(tipIds, Object(external_this_lodash_["keys"])(state.preferences.dismissedTips)); |
734 |
832 |
735 var _nonDismissedTips = Object(slicedToArray["a" /* default */])(nonDismissedTips, 2), |
833 var _nonDismissedTips = Object(slicedToArray["a" /* default */])(nonDismissedTips, 2), |
736 _nonDismissedTips$ = _nonDismissedTips[0], |
834 _nonDismissedTips$ = _nonDismissedTips[0], |
737 currentTipId = _nonDismissedTips$ === void 0 ? null : _nonDismissedTips$, |
835 currentTipId = _nonDismissedTips$ === void 0 ? null : _nonDismissedTips$, |
738 _nonDismissedTips$2 = _nonDismissedTips[1], |
836 _nonDismissedTips$2 = _nonDismissedTips[1], |
826 |
915 |
827 // EXTERNAL MODULE: external {"this":["wp","element"]} |
916 // EXTERNAL MODULE: external {"this":["wp","element"]} |
828 var external_this_wp_element_ = __webpack_require__(0); |
917 var external_this_wp_element_ = __webpack_require__(0); |
829 |
918 |
830 // EXTERNAL MODULE: external {"this":["wp","compose"]} |
919 // EXTERNAL MODULE: external {"this":["wp","compose"]} |
831 var external_this_wp_compose_ = __webpack_require__(6); |
920 var external_this_wp_compose_ = __webpack_require__(9); |
832 |
921 |
833 // EXTERNAL MODULE: external {"this":["wp","components"]} |
922 // EXTERNAL MODULE: external {"this":["wp","components"]} |
834 var external_this_wp_components_ = __webpack_require__(4); |
923 var external_this_wp_components_ = __webpack_require__(3); |
835 |
924 |
836 // EXTERNAL MODULE: external {"this":["wp","i18n"]} |
925 // EXTERNAL MODULE: external {"this":["wp","i18n"]} |
837 var external_this_wp_i18n_ = __webpack_require__(1); |
926 var external_this_wp_i18n_ = __webpack_require__(1); |
838 |
927 |
|
928 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js |
|
929 var library_close = __webpack_require__(154); |
|
930 |
839 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/components/dot-tip/index.js |
931 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/components/dot-tip/index.js |
840 |
932 |
841 |
933 |
842 /** |
934 /** |
843 * WordPress dependencies |
935 * WordPress dependencies |
845 |
937 |
846 |
938 |
847 |
939 |
848 |
940 |
849 |
941 |
850 function getAnchorRect(anchor) { |
942 |
851 // The default getAnchorRect() excludes an element's top and bottom padding |
|
852 // from its calculation. We want tips to point to the outer margin of an |
|
853 // element, so we override getAnchorRect() to include all padding. |
|
854 return anchor.parentNode.getBoundingClientRect(); |
|
855 } |
|
856 |
943 |
857 function onClick(event) { |
944 function onClick(event) { |
858 // Tips are often nested within buttons. We stop propagation so that clicking |
945 // Tips are often nested within buttons. We stop propagation so that clicking |
859 // on a tip doesn't result in the button being clicked. |
946 // on a tip doesn't result in the button being clicked. |
860 event.stopPropagation(); |
947 event.stopPropagation(); |
861 } |
948 } |
862 |
949 |
863 function DotTip(_ref) { |
950 function DotTip(_ref) { |
864 var children = _ref.children, |
951 var _ref$position = _ref.position, |
|
952 position = _ref$position === void 0 ? 'middle right' : _ref$position, |
|
953 children = _ref.children, |
865 isVisible = _ref.isVisible, |
954 isVisible = _ref.isVisible, |
866 hasNextTip = _ref.hasNextTip, |
955 hasNextTip = _ref.hasNextTip, |
867 onDismiss = _ref.onDismiss, |
956 onDismiss = _ref.onDismiss, |
868 onDisable = _ref.onDisable; |
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]); |
869 |
970 |
870 if (!isVisible) { |
971 if (!isVisible) { |
871 return null; |
972 return null; |
872 } |
973 } |
873 |
974 |
874 return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { |
975 return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { |
875 className: "nux-dot-tip", |
976 className: "nux-dot-tip", |
876 position: "middle right", |
977 position: position, |
877 noArrow: true, |
978 noArrow: true, |
878 focusOnMount: "container", |
979 focusOnMount: "container", |
879 getAnchorRect: getAnchorRect, |
980 shouldAnchorIncludePadding: true, |
880 role: "dialog", |
981 role: "dialog", |
881 "aria-label": Object(external_this_wp_i18n_["__"])('Editor tips'), |
982 "aria-label": Object(external_this_wp_i18n_["__"])('Editor tips'), |
882 onClick: onClick |
983 onClick: onClick, |
|
984 onFocusOutside: onFocusOutsideCallback |
883 }, 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"], { |
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"], { |
884 isLink: true, |
986 isLink: true, |
885 onClick: onDismiss |
987 onClick: onDismiss |
886 }, 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_["IconButton"], { |
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"], { |
887 className: "nux-dot-tip__disable", |
989 className: "nux-dot-tip__disable", |
888 icon: "no-alt", |
990 icon: library_close["a" /* default */], |
889 label: Object(external_this_wp_i18n_["__"])('Disable tips'), |
991 label: Object(external_this_wp_i18n_["__"])('Disable tips'), |
890 onClick: onDisable |
992 onClick: onDisable |
891 })); |
993 })); |
892 } |
994 } |
893 /* harmony default export */ var dot_tip = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { |
995 /* harmony default export */ var dot_tip = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { |
918 } |
1020 } |
919 }; |
1021 }; |
920 }))(DotTip)); |
1022 }))(DotTip)); |
921 |
1023 |
922 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/index.js |
1024 // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/index.js |
923 /* concated harmony reexport DotTip */__webpack_require__.d(__webpack_exports__, "DotTip", function() { return dot_tip; }); |
1025 /** |
|
1026 * WordPress dependencies |
|
1027 */ |
|
1028 |
924 /** |
1029 /** |
925 * Internal dependencies |
1030 * Internal dependencies |
926 */ |
1031 */ |
927 |
1032 |
928 |
1033 |
929 |
1034 |
930 |
1035 external_this_wp_deprecated_default()('wp.nux', { |
931 /***/ }), |
1036 hint: 'wp.components.Guide can be used to show a user guide.' |
932 |
1037 }); |
933 /***/ 38: |
1038 |
|
1039 |
|
1040 /***/ }), |
|
1041 |
|
1042 /***/ 5: |
934 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
1043 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
935 |
1044 |
936 "use strict"; |
1045 "use strict"; |
937 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); |
1046 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); |
938 function _nonIterableRest() { |
1047 function _defineProperty(obj, key, value) { |
939 throw new TypeError("Invalid attempt to destructure non-iterable instance"); |
1048 if (key in obj) { |
940 } |
1049 Object.defineProperty(obj, key, { |
941 |
1050 value: value, |
942 /***/ }), |
1051 enumerable: true, |
943 |
1052 configurable: true, |
944 /***/ 4: |
1053 writable: true |
945 /***/ (function(module, exports) { |
1054 }); |
946 |
1055 } else { |
947 (function() { module.exports = this["wp"]["components"]; }()); |
1056 obj[key] = value; |
948 |
1057 } |
949 /***/ }), |
1058 |
950 |
1059 return obj; |
951 /***/ 5: |
1060 } |
952 /***/ (function(module, exports) { |
|
953 |
|
954 (function() { module.exports = this["wp"]["data"]; }()); |
|
955 |
1061 |
956 /***/ }), |
1062 /***/ }), |
957 |
1063 |
958 /***/ 6: |
1064 /***/ 6: |
959 /***/ (function(module, exports) { |
1065 /***/ (function(module, exports) { |
960 |
1066 |
|
1067 (function() { module.exports = this["wp"]["primitives"]; }()); |
|
1068 |
|
1069 /***/ }), |
|
1070 |
|
1071 /***/ 9: |
|
1072 /***/ (function(module, exports) { |
|
1073 |
961 (function() { module.exports = this["wp"]["compose"]; }()); |
1074 (function() { module.exports = this["wp"]["compose"]; }()); |
962 |
1075 |
963 /***/ }), |
|
964 |
|
965 /***/ 7: |
|
966 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
967 |
|
968 "use strict"; |
|
969 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); |
|
970 /* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); |
|
971 |
|
972 function _objectSpread(target) { |
|
973 for (var i = 1; i < arguments.length; i++) { |
|
974 var source = arguments[i] != null ? arguments[i] : {}; |
|
975 var ownKeys = Object.keys(source); |
|
976 |
|
977 if (typeof Object.getOwnPropertySymbols === 'function') { |
|
978 ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { |
|
979 return Object.getOwnPropertyDescriptor(source, sym).enumerable; |
|
980 })); |
|
981 } |
|
982 |
|
983 ownKeys.forEach(function (key) { |
|
984 Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); |
|
985 }); |
|
986 } |
|
987 |
|
988 return target; |
|
989 } |
|
990 |
|
991 /***/ }) |
1076 /***/ }) |
992 |
1077 |
993 /******/ }); |
1078 /******/ }); |