(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[9],{627:function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return f}));var n=r(0),o=r(101),c=r(239),i=r.n(c),a=r(42),s=i()(a.b),u=function(e){var t=s.getCurrencyConfig(),r=Object(o.applyFilters)("woocommerce_admin_report_currency",t,e);return i()(r)},f=Object(n.createContext)(s)},628:function(e,t,r){"use strict";r(174);var n=r(13),o=r.n(n),c=r(14),i=r.n(c),a=r(16),s=r.n(a),u=r(17),f=r.n(u),p=r(7),l=r.n(p),b=r(0),y=r(2),m=r(1),O=r.n(m),h=r(112),d=r(42);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l()(e);if(t){var o=l()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f()(this,r)}}var v=function(e){s()(r,e);var t=j(r);function r(){return o()(this,r),t.apply(this,arguments)}return i()(r,[{key:"render",value:function(){var e,t,r,n,o=this.props,c=o.className,i=o.isError,a=o.isEmpty;return i?(e=Object(y.__)("There was an error getting your stats. Please try again.",'woocommerce'),t=Object(y.__)("Reload",'woocommerce'),n=function(){window.location.reload()}):a&&(e=Object(y.__)("No results could be found for this date range.",'woocommerce'),t=Object(y.__)("View Orders",'woocommerce'),r=Object(d.f)("edit.php?post_type=shop_order")),Object(b.createElement)(h.EmptyContent,{className:c,title:e,actionLabel:t,actionURL:r,actionCallback:n})}}]),r}(b.Component);v.propTypes={className:O.a.string,isError:O.a.bool,isEmpty:O.a.bool},v.defaultProps={className:""},t.a=v},674:function(e,t,r){},734:function(e,t,r){"use strict";r.r(t);r(174),r(126),r(151),r(127),r(152);var n=r(4),o=r.n(n),c=r(13),i=r.n(c),a=r(14),s=r.n(a),u=r(16),f=r.n(u),p=r(17),l=r.n(p),b=r(7),y=r.n(b),m=r(0),O=(r(118),r(159),r(253),r(132),r(83),r(277),r(34)),h=r(15),d=r(1),j=r.n(d),v=r(3),g=r(28),w=r(33),_=(r(674),r(628)),E=r(627),R=r(270);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y()(e);if(t){var o=y()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l()(this,r)}}var q=function(e){var t=e.params,r=e.path;return t.report||r.replace(/^\/+/,"")},S=function(e){f()(r,e);var t=C(r);function r(){var e;return i()(this,r),(e=t.apply(this,arguments)).state={hasError:!1},e}return s()(r,[{key:"componentDidCatch",value:function(e){this.setState({hasError:!0}),console.warn(e)}},{key:"render",value:function(){if(this.state.hasError)return null;if(this.props.isError)return Object(m.createElement)(_.a,{isError:!0});var e=q(this.props),t=Object(v.find)(Object(R.a)(),{report:e});if(!t)return null;var r=t.component;return Object(m.createElement)(E.a.Provider,{value:Object(E.b)(Object(g.getQuery)())},Object(m.createElement)(r,this.props))}}]),r}(m.Component);S.propTypes={params:j.a.object.isRequired},t.default=Object(O.compose)(Object(h.withSelect)((function(e,t){var r=Object(g.getQuery)();if(!r.search)return{};var n=q(t),c=Object(g.getSearchWords)(r),i="categories"===n&&"single_category"===r.filter?"products":n,a=Object(w.searchItemsByString)(e,i,c),s=a.isError,u=a.isRequesting,f=a.items,p=Object.keys(f);return p.length?{isError:s,isRequesting:u,query:k(k({},t.query),{},o()({},i,p.join(",")))}:{isError:s,isRequesting:u}})))(S)}}]);