woocommerce/packages/woocommerce-admin/dist/experimental/index.js
2021-12-10 12:03:04 +00:00

2 lines
55 KiB
JavaScript

/*! For license information please see index.js.LICENSE.txt */
this.wc=this.wc||{},this.wc.experimental=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=464)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t,n){e.exports=n(47)()},116:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(22);var i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,s=function(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},s))}},169:function(e,t,n){"use strict";var o=n(23),r=n(22),i=n(25);n(1);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var c=n(5),s=n.n(c),l=n(65),u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=a(n.className,o):n.setAttribute("class",a(n.className&&n.className.baseVal||"",o)));var n,o}))},m=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1];t.removeClasses(r,"exit"),t.addClass(r,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.addClass(r,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.removeClasses(r,i),t.addClass(r,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?""+(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}Object(i.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(o+=" "+r),"active"===n&&e&&e.scrollTop,o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o}))}(e,o))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,i=n.done;this.appliedClasses[t]={},o&&u(e,o),r&&u(e,r),i&&u(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Object(r.a)(e,["classNames"]));return s.a.createElement(l.a,Object(o.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.a.Component);m.defaultProps={classNames:""},m.propTypes={};t.a=m},172:function(e,t,n){"use strict";var o=n(22),r=n(23);var i=n(25),a=(n(1),n(5)),c=n.n(a),s=n(33);function l(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function m(e,t,n){var o=l(e.children),r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var c={};for(var s in t){if(r[s])for(o=0;o<r[s].length;o++){var l=r[s][o];c[r[s][o]]=n(l)}c[s]=n(s)}for(o=0;o<i.length;o++)c[i[o]]=n(i[o]);return c}(t,o);return Object.keys(r).forEach((function(i){var c=r[i];if(Object(a.isValidElement)(c)){var s=i in t,l=i in o,m=t[i],p=Object(a.isValidElement)(m)&&!m.props.in;!l||s&&!p?l||!s||p?l&&s&&Object(a.isValidElement)(m)&&(r[i]=Object(a.cloneElement)(c,{onExited:n.bind(null,c),in:m.props.in,exit:u(c,"exit",e),enter:u(c,"enter",e)})):r[i]=Object(a.cloneElement)(c,{in:!1}):r[i]=Object(a.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:u(c,"exit",e),enter:u(c,"enter",e)})}})),r}var p=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){function t(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,r=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,o=i,l(n.children,(function(e){return Object(a.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:u(e,"appear",n),enter:u(e,"enter",n),exit:u(e,"exit",n)})}))):m(e,r,i),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(o.a)(e,["component","childFactory"]),i=this.state.contextValue,a=p(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c.a.createElement(s.a.Provider,{value:i},a):c.a.createElement(s.a.Provider,{value:i},c.a.createElement(t,r,a))},t}(c.a.Component);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};t.a=d},2:function(e,t){e.exports=window.wp.i18n},21:function(e,t){e.exports=window.wc.components},22:function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.d(t,"a",(function(){return o}))},23:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},25:function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}n.d(t,"a",(function(){return r}))},265:function(e,t,n){var o;o=function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var o=e.direction,r=e.value;switch(o){case"top":return n.top+r<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+r<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-r>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-r>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var o=n(1),r=n.n(o),i=n(2),a=n.n(i),c=n(0),s=n.n(c),l=n(3),u=n.n(l);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,r=d(t).call(this,e),n=!r||"object"!==m(r)&&"function"!=typeof r?f(o):r,b(f(n),"getContainer",(function(){return n.props.containment||window})),b(f(n),"addEventListener",(function(e,t,o,r){var i;n.debounceCheck||(n.debounceCheck={});var a=function(){i=null,n.check()},c={target:e,fn:r>-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,o||0)},getLastTimeout:function(){return i}};e.addEventListener(t,c.fn),n.debounceCheck[t]=c})),b(f(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),b(f(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),b(f(n),"check",(function(){var e,t,o=n.node;if(!o)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(o.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===m(i)&&(t.top+=i.top||0,t.left+=i.left||0,t.bottom-=i.bottom||0,t.right-=i.right||0);var a={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},c=e.height>0&&e.width>0,s=c&&a.top&&a.left&&a.bottom&&a.right;if(c&&n.props.partialVisibility){var l=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(l=a[n.props.partialVisibility]),s=n.props.minTopValue?l&&e.top<=t.bottom-n.props.minTopValue:l}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),s=u()(i,e,t));var p=n.state;return n.state.isVisible!==s&&(p={isVisible:s,visibilityRect:a},n.setState(p),n.props.onChange&&n.props.onChange(s)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=a.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&p(n.prototype,o),i&&p(n,i),t}(r.a.Component);b(g,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),b(g,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(e,t,n){"use strict";var o=n(6);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=o(n(5),n(29))},27:function(e,t){e.exports=window.wp.keycodes},277:function(e,t,n){"use strict";var o=n(0),r=n(8),i=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},278:function(e,t,n){"use strict";var o=n(0),r=n(8),i=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},29:function(e,t){e.exports=window.ReactDOM},3:function(e,t){e.exports=window.wp.components},33:function(e,t,n){"use strict";var o=n(5),r=n.n(o);t.a=r.a.createContext(null)},464:function(e,t,n){"use strict";n.r(t),n.d(t,"Navigation",(function(){return W})),n.d(t,"NavigationBackButton",(function(){return G})),n.d(t,"NavigationGroup",(function(){return q})),n.d(t,"NavigationMenu",(function(){return $})),n.d(t,"NavigationItem",(function(){return Y})),n.d(t,"Text",(function(){return K})),n.d(t,"useSlot",(function(){return X})),n.d(t,"ListItem",(function(){return l})),n.d(t,"List",(function(){return m})),n.d(t,"CollapsibleList",(function(){return y})),n.d(t,"TaskItem",(function(){return D})),n.d(t,"InboxNoteCard",(function(){return F})),n.d(t,"InboxDismissConfirmationModal",(function(){return U})),n.d(t,"InboxNotePlaceholder",(function(){return V})),n.d(t,"VerticalCSSTransition",(function(){return k}));var o=n(3),r=n(169),i=n(0),a=n(27),c=n(6),s=n.n(c);const l=({children:e,disableGutters:t=!1,animation:n="none",className:o="",exit:c,enter:l,onExited:u,in:m,...p})=>{const d=!!(null==p?void 0:p.onClick),f=d?{role:"button",onKeyDown:e=>{return t=e,void("function"==typeof(n=p.onClick)&&t.keyCode===a.ENTER&&n(t));var t,n},tabIndex:0}:{},h=s()({"has-action":d,"has-gutters":!t,"transitions-disabled":"slide-right"!==n});return Object(i.createElement)(r.a,{timeout:500,classNames:o||"woocommerce-list__item",in:m,exit:c,enter:l,onExited:u},Object(i.createElement)("li",Object.assign({},f,p,{className:`woocommerce-experimental-list__item ${h} ${o}`}),e))};var u=n(172);const m=({children:e,listType:t,animation:n="none",...o})=>Object(i.createElement)(u.a,Object.assign({component:t||"ul",className:"woocommerce-experimental-list"},o),i.Children.map(e,e=>{if(Object(i.isValidElement)(e)){const{onExited:t,in:o,enter:a,exit:c,...s}=e.props,l=s.animation||n;return Object(i.createElement)(r.a,{timeout:500,onExited:t,in:o,enter:a,exit:c,classNames:"woocommerce-list__item"},Object(i.cloneElement)(e,{animation:l,...s}))}return e}));var p=n(116),d=n(278),f=n(277),h=n(65);const b={transitionProperty:"max-height",transitionDuration:"500ms",maxHeight:0,overflow:"hidden"};function g(e,t,n){if(n.length<e.length){const e=n.map(e=>e.key);return t.filter(t=>t.key&&e.includes(t.key))}const o=t.map(e=>e.key),r=e.map(e=>e.key);return n.filter(e=>e.key&&(o.includes(e.key)||!r.includes(e.key)))}const v=(e,t,n)=>{let o=0;"entered"!==e&&"entering"!==e||!n||(o=function(e){let t=0;if(e)for(const n of e.children){t+=n.clientHeight;const e=window.getComputedStyle(n);t+=parseInt(e.marginTop,10)||0,t+=parseInt(e.marginBottom,10)||0}return t}(n));const r={...b,maxHeight:o};return"entering"!==e&&"exiting"!==e&&(delete r.transitionDuration,delete r.transition,delete r.transitionProperty),"entered"!==e||t||delete r.maxHeight,r},y=({children:e,collapsed:t=!0,collapseLabel:n,expandLabel:o,show:a=0,onCollapse:c,onExpand:b,...y})=>{const[O,x]=Object(i.useState)(t),[E,w]=Object(i.useState)(t),[j,_]=Object(i.useState)({collapse:n,expand:o}),[k,T]=Object(i.useState)({all:[],shown:[],hidden:[]}),N=Object(i.useRef)(null),C=()=>{let t=[];const r=i.Children.map(e,e=>Object(i.isValidElement)(e)&&"key"in e?e:null)||[];let c=r;a>0&&(t=r.slice(0,a),c=r.slice(a)),c.length>0&&_({expand:o,collapse:n}),T({all:r,shown:t,hidden:c})};Object(i.useEffect)(()=>{w(O)},[O]),Object(i.useEffect)(()=>{const t=i.Children.map(e,e=>Object(i.isValidElement)(e)&&"key"in e?e:null)||[];k.all.length>0&&O&&"none"!==y.animation?(T({...k,shown:g(k.all,k.shown,t)}),setTimeout(()=>{C()},500)):C()},[e]);const S=Object(i.useCallback)(()=>{var e;x(!O),e=!O,c&&e&&c(),b&&!e&&b()},[O]),A=s()(y.className||"","woocommerce-experimental-list"),D=s()({"woocommerce-experimental-list-wrapper":!O});return Object(i.createElement)(m,Object.assign({},y,{className:A}),[...k.shown,Object(i.createElement)(h.a,{key:"remaining-children",timeout:500,in:!E,mountOnEnter:!0,unmountOnExit:!1},e=>{const t=v(e,O,N.current);return Object(i.createElement)("div",{className:D,ref:N,style:t},Object(i.createElement)(u.a,{className:"woocommerce-experimental-list"},i.Children.map(k.hidden,e=>{const{onExited:t,in:n,enter:o,exit:a,...c}=e.props,s=c.animation||y.animation;return Object(i.createElement)(r.a,{key:e.key,timeout:500,onExited:t,in:n,enter:o,exit:a,classNames:"woocommerce-list__item"},Object(i.cloneElement)(e,{animation:s,...c}))})))}),k.hidden.length>0?Object(i.createElement)(l,{key:"collapse-item",className:"list-item-collapse",onClick:S,animation:"none",disableGutters:!0},Object(i.createElement)("p",null,O?j.expand:j.collapse),Object(i.createElement)(p.a,{className:"list-item-collapse__icon",size:30,icon:O?d.a:f.a})):null])};var O=n(2),x=n(475),E=n(61),w=n.n(E),j=n(21),_=n(53);const k=({children:e,defaultStyle:t,...n})=>{const[o,a]=Object(i.useState)(0),[c,s]=Object(i.useState)(n.in||!1),l=Object(i.useRef)(null),u=Object(i.useCallback)(e=>{e&&a(function(e){let t=0;for(const n of e.children){t+=n.clientHeight;const e=window.getComputedStyle(n);t+=parseInt(e.marginTop,10)||0,t+=parseInt(e.marginBottom,10)||0}return t}(e))},[e]);Object(i.useEffect)(()=>{s(n.in||!1)},[n.in]);const m={entered:{maxHeight:o},entering:{maxHeight:o},exiting:{maxHeight:0},exited:{maxHeight:0}},p=e=>{const o=(()=>{const{timeout:e}=n;let t,o,r;return"number"==typeof e&&(t=o=r=e),void 0!==e&&"number"!=typeof e&&(t=e.exit,o=e.enter,r=void 0!==e.appear?e.appear:o),{exit:t,enter:o,appear:r}})(),r=l.current&&l.current.context&&l.current.context.isMounting;let i;i=e.startsWith("enter")?o[r?"enter":"appear"]:o.exit;const a={transitionProperty:"max-height",transitionDuration:void 0===i?"500ms":i+"ms",overflow:"hidden",...t||{},...m[e]};return"entering"!==e&&"exiting"!==e&&(delete a.transitionDuration,delete a.transition,delete a.transitionProperty),"entered"===e&&n.in&&delete a.maxHeight,a};return Object(i.createElement)(r.a,Object.assign({},n,{in:c,ref:l}),t=>Object(i.createElement)("div",{className:"vertical-css-transition-container",style:p(t),ref:u},e))},T=["a","b","em","i","strong","p","br"],N=["target","href","rel","name","download"],C=e=>({__html:Object(_.sanitize)(e,{ALLOWED_TAGS:T,ALLOWED_ATTR:N})}),S=({level:e,completed:t,children:n})=>{let r="";return 1!==e||t?2!==e||t||(r=Object(O.__)("This task is required to set up your extension",'woocommerce')):r=Object(O.__)("This task is required to keep your store running",'woocommerce'),""===r?n:Object(i.createElement)(o.Tooltip,{text:r},n)},A=({children:e,expandable:t,expanded:n})=>t?Object(i.createElement)(k,{timeout:500,in:n,classNames:"woocommerce-task-list__item-expandable-content",defaultStyle:{transitionProperty:"max-height, opacity"}},e):n?Object(i.createElement)(i.Fragment,null,e):null,D=({completed:e,title:t,onDelete:n,onCollapse:r,onDismiss:a,onSnooze:c,onExpand:u,onClick:m,additionalInfo:d,time:f,content:h,expandable:b=!1,expanded:g=!1,showActionButton:v,level:y=3,action:E,actionLabel:_,...k})=>{const[T,N]=Object(i.useState)(g);Object(i.useEffect)(()=>{N(g)},[g]);const D=s()("woocommerce-task-list__item",{complete:e,expanded:T,"level-2":2===y&&!e,"level-1":1===y&&!e});void 0===v&&(v=b);const R=(a||c)&&!e||n&&e;return Object(i.createElement)(l,Object.assign({disableGutters:!0,className:D,onClick:b&&v?()=>{N(!T),T&&u&&u(),!T&&r&&r()}:m},k),Object(i.createElement)(S,{level:y,completed:e},Object(i.createElement)("div",{className:"woocommerce-task-list__item-before"},1!==y||e?Object(i.createElement)("div",{className:"woocommerce-task__icon"},e&&Object(i.createElement)(p.a,{icon:x.a})):Object(i.createElement)(w.a,{size:36}))),Object(i.createElement)("div",{className:"woocommerce-task-list__item-text"},Object(i.createElement)(K,{as:"div",size:"14",lineHeight:e?"18px":"20px",weight:e?"normal":"600",variant:e?"body.small":"button"},Object(i.createElement)("span",{className:"woocommerce-task-list__item-title"},t),Object(i.createElement)(A,{expandable:b,expanded:T},Object(i.createElement)("div",{className:"woocommerce-task-list__item-expandable-content"},h,b&&!e&&d&&Object(i.createElement)("div",{className:"woocommerce-task__additional-info",dangerouslySetInnerHTML:C(d)}),!e&&v&&Object(i.createElement)(o.Button,{className:"woocommerce-task-list__item-action",isPrimary:!0,onClick:e=>{e.stopPropagation(),E(e,{isExpanded:!0})}},_||t))),!b&&!e&&d&&Object(i.createElement)("div",{className:"woocommerce-task__additional-info",dangerouslySetInnerHTML:C(d)}),f&&Object(i.createElement)("div",{className:"woocommerce-task__estimated-time"},f))),R&&Object(i.createElement)(j.EllipsisMenu,{label:Object(O.__)("Task Options",'woocommerce'),className:"woocommerce-task-list__item-after",onToggle:e=>e.stopPropagation(),renderContent:()=>Object(i.createElement)("div",{className:"woocommerce-task-card__section-controls"},a&&!e&&Object(i.createElement)(o.Button,{onClick:e=>{e.stopPropagation(),a()}},Object(O.__)("Dismiss",'woocommerce')),c&&!e&&Object(i.createElement)(o.Button,{onClick:e=>{e.stopPropagation(),c()}},Object(O.__)("Remind me later",'woocommerce')),n&&e&&Object(i.createElement)(o.Button,{onClick:e=>{e.stopPropagation(),n()}},Object(O.__)("Delete",'woocommerce')))}))};var R=n(265),L=n.n(R),M=n(9),P=n.n(M);const I=({label:e,onClick:t,href:n})=>{const[r,a]=Object(i.useState)(!1);return Object(i.createElement)(o.Button,{isSecondary:!0,isBusy:r,disabled:r,href:n,onClick:e=>{const n=e.currentTarget.href||"";let o=!0,r="";window.wcSettings&&(r=window.wcSettings.adminUrl),!n.length||r&&n.startsWith(r)||(e.preventDefault(),o=!1,window.open(n,"_blank")),a(o),t()}},e)};const z=["a","b","em","i","strong","p","br"],B=["target","href","rel","name","download"],H=o.Dropdown,F=({note:e,lastRead:t,onDismiss:n,onNoteActionClick:r,onBodyLinkClick:a,onNoteVisible:c,className:l})=>{const[u,m]=Object(i.useState)(!1),p=Object(i.useRef)(!1),d=Object(i.useRef)(null),f=function(e){const t=Object(i.useCallback)(t=>{const n=t.target;if(n&&"href"in n){const t=n.href;t&&e&&e(t)}},[e]);return Object(i.useCallback)(e=>(e&&e.addEventListener("click",t),()=>{e&&e.removeEventListener("click",t)}),[t])}(t=>{a&&a(e,t)}),h=(t,o)=>{n&&n(e,t),o()},{content:b,date_created:g,date_created_gmt:v,image:y,is_deleted:x,layout:E,status:w,title:k}=e;if(x)return null;const T=!t||!v||new Date(v+"Z").getTime()>t,N=g,C="plain"!==E&&""!==E,S=s()("woocommerce-inbox-message",l,E,{"message-is-unread":T&&"unactioned"===w});return Object(i.createElement)(L.a,{onChange:t=>{t&&!p.current&&(c&&c(e),p.current=!0)}},Object(i.createElement)("section",{className:S},C&&Object(i.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(i.createElement)("img",{src:y,alt:""})),Object(i.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(i.createElement)("div",{className:"woocommerce-inbox-message__content"},T&&Object(i.createElement)("div",{className:"woocommerce-inbox-message__unread-indicator"}),N&&Object(i.createElement)("span",{className:"woocommerce-inbox-message__date"},P.a.utc(N).fromNow()),Object(i.createElement)(j.H,{className:"woocommerce-inbox-message__title"},k),Object(i.createElement)(j.Section,{className:"woocommerce-inbox-message__text"},Object(i.createElement)("span",{dangerouslySetInnerHTML:(A=b,{__html:Object(_.sanitize)(A,{ALLOWED_TAGS:z,ALLOWED_ATTR:B})}),ref:f}))),Object(i.createElement)("div",{className:"woocommerce-inbox-message__actions"},(()=>{const{actions:t}=e;return u||(t?Object(i.createElement)(i.Fragment,null,t.map(t=>Object(i.createElement)(I,{key:t.id,label:t.label,href:t&&t.url&&t.url.length?t.url:void 0,onClick:()=>(t=>{r&&r(e,t),t.actioned_text&&m(t.actioned_text)})(t)}))):void 0)})(),u?null:Object(i.createElement)(H,{contentClassName:"woocommerce-admin-dismiss-dropdown",position:"bottom right",renderToggle:({onClose:e,onToggle:t})=>Object(i.createElement)(o.Button,{isTertiary:!0,onClick:e=>{e.target.focus(),t()},ref:d,onBlur:t=>((e,t)=>{const n=["woocommerce-admin-dismiss-notification","components-popover__content","components-dropdown__content"];let o=null;if(e.relatedTarget)o=e.relatedTarget;else if(d.current){const e=d.current.ownerDocument;o=e?e.activeElement:null}let r=!1;if(o&&"className"in o){const e=o.className;r=n.some(t=>e.includes(t))}r?e.preventDefault():t()})(t,e)},Object(O.__)("Dismiss",'woocommerce')),focusOnMount:!1,popoverProps:{noArrow:!0},renderContent:({onToggle:e})=>Object(i.createElement)("ul",null,Object(i.createElement)("li",null,Object(i.createElement)(o.Button,{className:"woocommerce-admin-dismiss-notification",onClick:()=>h("note",e)},Object(O.__)("Dismiss this message",'woocommerce'))),Object(i.createElement)("li",null,Object(i.createElement)(o.Button,{className:"woocommerce-admin-dismiss-notification",onClick:()=>h("all",e)},Object(O.__)("Dismiss all messages",'woocommerce'))))})))));var A},U=({onClose:e,onDismiss:t,buttonLabel:n=Object(O.__)("Yes, I'm sure",'woocommerce')})=>{const[r,a]=Object(i.useState)(!1);return Object(i.createElement)(o.Modal,{title:Object(O.__)("Are you sure?",'woocommerce'),onRequestClose:()=>e(),className:"woocommerce-inbox-dismiss-confirmation_modal"},Object(i.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_wrapper"},Object(i.createElement)("p",null,Object(O.__)("Dismissed messages cannot be viewed again",'woocommerce')),Object(i.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_buttons"},Object(i.createElement)(o.Button,{isSecondary:!0,onClick:()=>e()},Object(O.__)("Cancel",'woocommerce')),Object(i.createElement)(o.Button,{isSecondary:!0,isBusy:r,disabled:r,onClick:()=>{a(!0),t()}},n))))},V=({className:e})=>Object(i.createElement)("div",{className:"woocommerce-inbox-message is-placeholder "+e,"aria-hidden":!0},Object(i.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(i.createElement)("div",{className:"woocommerce-inbox-message__content"},Object(i.createElement)("div",{className:"woocommerce-inbox-message__date"},Object(i.createElement)("div",{className:"sixth-line"})),Object(i.createElement)("div",{className:"woocommerce-inbox-message__title"},Object(i.createElement)("div",{className:"line"}),Object(i.createElement)("div",{className:"line"})),Object(i.createElement)("div",{className:"woocommerce-inbox-message__text"},Object(i.createElement)("div",{className:"line"}),Object(i.createElement)("div",{className:"third-line"}))),Object(i.createElement)("div",{className:"woocommerce-inbox-message__actions"},Object(i.createElement)("div",{className:"fifth-line"}),Object(i.createElement)("div",{className:"fifth-line"})))),W=o.Navigation||o.__experimentalNavigation,G=o.NavigationBackButton||o.__experimentalNavigationBackButton,q=o.NavigationGroup||o.__experimentalNavigationGroup,$=o.NavigationMenu||o.__experimentalNavigationMenu,Y=o.NavigationItem||o.__experimentalNavigationItem,K=o.Text||o.__experimentalText,X=o.useSlot||o.__experimentalUseSlot},47:function(e,t,n){"use strict";var o=n(48);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},475:function(e,t,n){"use strict";var o=n(0),r=n(8),i=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=i},48:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5:function(e,t){e.exports=window.React},53:function(e,t,n){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,o=Object.getPrototypeOf,r=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,c=Object.create,s="undefined"!=typeof Reflect&&Reflect,l=s.apply,u=s.construct;l||(l=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var m,p=E(Array.prototype.forEach),d=E(Array.prototype.pop),f=E(Array.prototype.push),h=E(String.prototype.toLowerCase),b=E(String.prototype.match),g=E(String.prototype.replace),v=E(String.prototype.indexOf),y=E(String.prototype.trim),O=E(RegExp.prototype.test),x=(m=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(m,t)});function E(e){return function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return l(e,t,o)}}function w(e,o){t&&t(e,null);for(var r=o.length;r--;){var i=o[r];if("string"==typeof i){var a=h(i);a!==i&&(n(o)||(o[r]=a),i=a)}e[i]=!0}return e}function j(t){var n=c(null),o=void 0;for(o in t)l(e,t,[o])&&(n[o]=t[o]);return n}function _(e,t){for(;null!==e;){var n=r(e,t);if(n){if(n.get)return E(n.get);if("function"==typeof n.value)return E(n.value)}e=o(e)}return function(e){return console.warn("fallback value for",e),null}}var k=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=i(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),S=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),A=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=i(["#text"]),R=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),P=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),I=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),z=a(/<%[\s\S]*|[\s\S]*%>/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),F=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},$=function(e,t){if("object"!==(void 0===e?"undefined":W(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),n=function(t){return e(t)};if(n.version="2.2.9",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var o=t.document,r=t.document,a=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,l=t.Element,u=t.NodeFilter,m=t.NamedNodeMap,E=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,Y=t.Text,K=t.Comment,X=t.DOMParser,Z=t.trustedTypes,J=l.prototype,Q=_(J,"cloneNode"),ee=_(J,"nextSibling"),te=_(J,"childNodes"),ne=_(J,"parentNode");if("function"==typeof c){var oe=r.createElement("template");oe.content&&oe.content.ownerDocument&&(r=oe.content.ownerDocument)}var re=$(Z,o),ie=re&&Pe?re.createHTML(""):"",ae=r,ce=ae.implementation,se=ae.createNodeIterator,le=ae.createDocumentFragment,ue=o.importNode,me={};try{me=j(r).documentMode?r.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&ce&&void 0!==ce.createHTMLDocument&&9!==me;var de=I,fe=z,he=B,be=H,ge=U,ve=V,ye=F,Oe=null,xe=w({},[].concat(G(k),G(T),G(N),G(S),G(D))),Ee=null,we=w({},[].concat(G(R),G(L),G(M),G(P))),je=null,_e=null,ke=!0,Te=!0,Ne=!1,Ce=!1,Se=!1,Ae=!1,De=!1,Re=!1,Le=!1,Me=!0,Pe=!1,Ie=!0,ze=!0,Be=!1,He={},Fe=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ue=null,Ve=w({},["audio","video","img","source","image","track"]),We=null,Ge=w({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ke=Ye,Xe=!1,Ze=null,Je=r.createElement("form"),Qe=function(e){Ze&&Ze===e||(e&&"object"===(void 0===e?"undefined":W(e))||(e={}),e=j(e),Oe="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS):xe,Ee="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR):we,We="ADD_URI_SAFE_ATTR"in e?w(j(Ge),e.ADD_URI_SAFE_ATTR):Ge,Ue="ADD_DATA_URI_TAGS"in e?w(j(Ve),e.ADD_DATA_URI_TAGS):Ve,je="FORBID_TAGS"in e?w({},e.FORBID_TAGS):{},_e="FORBID_ATTR"in e?w({},e.FORBID_ATTR):{},He="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Me=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Ie=!1!==e.SANITIZE_DOM,ze=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,Ke=e.NAMESPACE||Ye,Ce&&(Te=!1),Le&&(Re=!0),He&&(Oe=w({},[].concat(G(D))),Ee=[],!0===He.html&&(w(Oe,k),w(Ee,R)),!0===He.svg&&(w(Oe,T),w(Ee,L),w(Ee,P)),!0===He.svgFilters&&(w(Oe,N),w(Ee,L),w(Ee,P)),!0===He.mathMl&&(w(Oe,S),w(Ee,M),w(Ee,P))),e.ADD_TAGS&&(Oe===xe&&(Oe=j(Oe)),w(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(Ee===we&&(Ee=j(Ee)),w(Ee,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&w(We,e.ADD_URI_SAFE_ATTR),ze&&(Oe["#text"]=!0),Se&&w(Oe,["html","head","body"]),Oe.table&&(w(Oe,["tbody"]),delete je.tbody),i&&i(e),Ze=e)},et=w({},["mi","mo","mn","ms","mtext"]),tt=w({},["foreignobject","desc","title","annotation-xml"]),nt=w({},T);w(nt,N),w(nt,C);var ot=w({},S);w(ot,A);var rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=h(e.tagName),o=h(t.tagName);if(e.namespaceURI===$e)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===o||et[o]):Boolean(nt[n]);if(e.namespaceURI===qe)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===$e?"math"===n&&tt[o]:Boolean(ot[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===$e&&!tt[o])return!1;if(t.namespaceURI===qe&&!et[o])return!1;var r=w({},["title","style","font","a","script"]);return!ot[n]&&(r[n]||!nt[n])}return!1},it=function(e){f(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},at=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Re||Le)try{it(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){var t=void 0,n=void 0;if(De)e="<remove></remove>"+e;else{var o=b(e,/^[\r\n\t ]+/);n=o&&o[0]}var i=re?re.createHTML(e):e;if(Ke===Ye)try{t=(new X).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Ke,"template",null);try{t.documentElement.innerHTML=Xe?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Se?t.documentElement:a},st=function(e){return se.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},lt=function(e){return!(e instanceof Y||e instanceof K||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof E&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},ut=function(e){return"object"===(void 0===s?"undefined":W(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":W(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},mt=function(e,t,o){pe[e]&&p(pe[e],(function(e){e.call(n,t,o,Ze)}))},pt=function(e){var t=void 0;if(mt("beforeSanitizeElements",e,null),lt(e))return it(e),!0;if(b(e.nodeName,/[\u0080-\uFFFF]/))return it(e),!0;var o=h(e.nodeName);if(mt("uponSanitizeElement",e,{tagName:o,allowedTags:Oe}),!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return it(e),!0;if(!Oe[o]||je[o]){if(ze&&!Fe[o]){var r=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&r)for(var a=i.length-1;a>=0;--a)r.insertBefore(Q(i[a],!0),ee(e))}return it(e),!0}return e instanceof l&&!rt(e)?(it(e),!0):"noscript"!==o&&"noembed"!==o||!O(/<\/no(script|embed)/i,e.innerHTML)?(Ce&&3===e.nodeType&&(t=e.textContent,t=g(t,de," "),t=g(t,fe," "),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),mt("afterSanitizeElements",e,null),!1):(it(e),!0)},dt=function(e,t,n){if(Ie&&("id"===t||"name"===t)&&(n in r||n in Je))return!1;if(Te&&O(he,t));else if(ke&&O(be,t));else{if(!Ee[t]||_e[t])return!1;if(We[t]);else if(O(ye,g(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ue[e])if(Ne&&!O(ge,g(n,ve,"")));else if(n)return!1}return!0},ft=function(e){var t=void 0,o=void 0,r=void 0,i=void 0;mt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(i=a.length;i--;){var s=t=a[i],l=s.name,u=s.namespaceURI;if(o=y(t.value),r=h(l),c.attrName=r,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,mt("uponSanitizeAttribute",e,c),o=c.attrValue,!c.forceKeepAttr&&(at(l,e),c.keepAttr))if(O(/\/>/i,o))at(l,e);else{Ce&&(o=g(o,de," "),o=g(o,fe," "));var m=e.nodeName.toLowerCase();if(dt(m,r,o))try{u?e.setAttributeNS(u,l,o):e.setAttribute(l,o),d(n.removed)}catch(e){}}}mt("afterSanitizeAttributes",e,null)}},ht=function e(t){var n=void 0,o=st(t);for(mt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)mt("uponSanitizeShadowNode",n,null),pt(n)||(n.content instanceof a&&e(n.content),ft(n));mt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var i=void 0,c=void 0,l=void 0,u=void 0,m=void 0;if((Xe=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ut(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported){if("object"===W(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(ut(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ae||Qe(r),n.removed=[],"string"==typeof e&&(Be=!1),Be);else if(e instanceof s)1===(c=(i=ct("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?i=c:i.appendChild(c);else{if(!Re&&!Ce&&!Se&&-1===e.indexOf("<"))return re&&Pe?re.createHTML(e):e;if(!(i=ct(e)))return Re?null:ie}i&&De&&it(i.firstChild);for(var p=st(Be?e:i);l=p.nextNode();)3===l.nodeType&&l===u||pt(l)||(l.content instanceof a&&ht(l.content),ft(l),u=l);if(u=null,Be)return e;if(Re){if(Le)for(m=le.call(i.ownerDocument);i.firstChild;)m.appendChild(i.firstChild);else m=i;return Me&&(m=ue.call(o,m,!0)),m}var d=Se?i.outerHTML:i.innerHTML;return Ce&&(d=g(d,de," "),d=g(d,fe," ")),re&&Pe?re.createHTML(d):d},n.setConfig=function(e){Qe(e),Ae=!0},n.clearConfig=function(){Ze=null,Ae=!1},n.isValidAttribute=function(e,t,n){Ze||Qe({});var o=h(e),r=h(t);return dt(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],f(pe[e],t))},n.removeHook=function(e){pe[e]&&d(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()},6:function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)t.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},61:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-notice-outline",c,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:l,height:r,width:r,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,i=n(5),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},65:function(e,t,n){"use strict";var o=n(22),r=n(25),i=(n(1),n(5)),a=n.n(i),c=n(29),s=n.n(c),l=!1,u=n(33),m=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r="exited",o.appearStatus="entering"):r="entered":r=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",o.state={status:r},o.nextCallback=null,o}Object(r.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[s.a.findDOMNode(this),o],i=r[0],a=r[1],c=this.getTimeouts(),u=o?c.appear:c.enter;!e&&!n||l?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:s.a.findDOMNode(this);t&&!l?(this.props.onExit(o),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.a.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(o.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(u.a.Provider,{value:null},"function"==typeof n?n(e,r):a.a.cloneElement(a.a.Children.only(n),r))},t}(a.a.Component);function p(){}m.contextType=u.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},m.UNMOUNTED="unmounted",m.EXITED="exited",m.ENTERING="entering",m.ENTERED="entered",m.EXITING="exiting";t.a=m},8:function(e,t){e.exports=window.wp.primitives},9:function(e,t){e.exports=window.moment}});