/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.nux=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=442)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},120:function(e,t,n){"use strict";var r=n(0),i=n(9),o=Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(i.Path,{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}));t.a=o},18:function(e,t,n){"use strict";var r=n(25);var i=n(35),o=n(27);function u(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return u}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";var r=n(38);var i=n(27),o=n(39);function u(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=e[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}n.d(t,"a",(function(){return u}))},25:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return f({},e,Object(a.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),d=Object(c.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(s.a)(e),[t.tipIds])}return e},preferences:p});function b(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function v(e){return{type:"DISMISS_TIP",id:e}}function h(){return{type:"DISABLE_TIPS"}}function y(){return{type:"ENABLE_TIPS"}}var O=n(20),j=n(40),m=n(2),g=Object(j.a)((function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,u=e.guides[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){var c=o.value;if(Object(m.includes)(c,t)){var a=Object(m.difference)(c,Object(m.keys)(e.preferences.dismissedTips)),s=Object(O.a)(a,2),l=s[0],f=void 0===l?null:l,p=s[1];return{tipIds:c,currentTipId:f,nextTipId:void 0===p?null:p}}}}catch(e){r=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw i}}return null}),(function(e){return[e.guides,e.preferences.dismissedTips]}));function w(e,t){if(!e.preferences.areTipsEnabled)return!1;if(Object(m.has)(e.preferences.dismissedTips,[t]))return!1;var n=g(e,t);return!n||n.currentTipId===t}function x(e){return e.preferences.areTipsEnabled}Object(c.registerStore)("core/nux",{reducer:d,actions:r,selectors:i,persist:["preferences"]});var T=n(0),S=n(8),I=n(3),E=n(1),P=n(120);function _(e){e.stopPropagation()}var D=Object(S.compose)(Object(c.withSelect)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.isTipVisible,o=(0,r.getAssociatedGuide)(n);return{isVisible:i(n),hasNextTip:!(!o||!o.nextTipId)}})),Object(c.withDispatch)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.dismissTip,o=r.disableTips;return{onDismiss:function(){i(n)},onDisable:function(){o()}}})))((function(e){var t=e.position,n=void 0===t?"middle right":t,r=e.children,i=e.isVisible,o=e.hasNextTip,u=e.onDismiss,c=e.onDisable,a=Object(T.useRef)(null),s=Object(T.useCallback)((function(e){a.current&&(a.current.contains(e.relatedTarget)||c())}),[c,a]);return i?Object(T.createElement)(I.Popover,{className:"nux-dot-tip",position:n,noArrow:!0,focusOnMount:"container",shouldAnchorIncludePadding:!0,role:"dialog","aria-label":Object(E.__)("Editor tips"),onClick:_,onFocusOutside:s},Object(T.createElement)("p",null,r),Object(T.createElement)("p",null,Object(T.createElement)(I.Button,{isLink:!0,onClick:u},o?Object(E.__)("See next tip"):Object(E.__)("Got it"))),Object(T.createElement)(I.Button,{className:"nux-dot-tip__disable",icon:P.a,label:Object(E.__)("Disable tips"),onClick:c})):null}));n.d(t,"DotTip",(function(){return D})),u()("wp.nux",{hint:"wp.components.Guide can be used to show a user guide."})},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},8:function(e,t){!function(){e.exports=this.wp.compose}()},9:function(e,t){!function(){e.exports=this.wp.primitives}()}});