File: /storage/v4513/tepnot/public_html/wp-content/plugins/dokan-pro/assets/js/analytics-report.js
(globalThis.webpackChunkdokan_pro=globalThis.webpackChunkdokan_pro||[]).push([[8],{2171:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>k});var s=t(6087),o=t(9491),n=t(7143),a=t(5556),i=t.n(a),c=t(8468),l=t(6476),p=t(314),u=t(4111),d=t(7723),h=t(6427),y=t(8846),g=t(4908),m=t(5155),_=t(790);const f=()=>{const[e,r]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{const e=setTimeout(()=>{r(!1)},3e3);return()=>{clearTimeout(e)}},[]),e?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.WooHeaderPageTitle,{children:(0,d.__)("Loading…","dokan-lite")}),(0,_.jsx)("div",{className:"woocommerce-layout__loading",children:(0,_.jsx)(y.Spinner,{})})]}):(0,_.jsx)("div",{className:"woocommerce-layout__no-match",children:(0,_.jsx)(h.Card,{children:(0,_.jsx)(h.CardBody,{children:(0,_.jsx)(g.Text,{children:(0,d.__)("Sorry, you are not allowed to access this page.","dokan-lite")})})})})};var T=t(4351),x=t(1469),j=t(129);const E=({params:e,path:r})=>e.report||r.replace(/^\/+/,"");class b extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(e){this.setState({hasError:!0}),console.warn(e)}render(){if(this.state.hasError)return null;const{isError:e}=this.props;if(e)return(0,_.jsx)(T.A,{});const r=E(this.props),t=(0,c.find)((0,x.A)(),{report:r});if(!t)return console.log("report not found"),(0,_.jsx)(f,{});const s=t.component,o={...this.props,query:{...this.props.query,seller_id:j.w?.seller_id||""}};return(0,_.jsx)(u.CurrencyContext.Provider,{value:(0,u.getFilteredCurrencyInstance)((0,l.getQuery)()),children:(0,_.jsx)(s,{...o})})}}b.propTypes={params:i().object.isRequired};const k=(0,o.compose)((0,n.withSelect)((e,r)=>{const t=(0,l.getQuery)(),{search:s}=t,o=e(p.ITEMS_STORE_NAME);if(!s)return{};const n=E(r),a=(0,l.getSearchWords)(t),i="categories"===n&&"single_category"===t.filter?"products":n,c=(0,p.searchItemsByString)(o,i,a,{per_page:100}),{isError:u,isRequesting:d,items:h}=c,y=Object.keys(h);return y.length?{isError:u,isRequesting:d,query:{...r.query,[i]:y.join(",")}}:{isError:u,isRequesting:d}}))(b)},2694:(e,r,t)=>{"use strict";var s=t(6925);function o(){}function n(){}n.resetWarningCache=o,e.exports=function(){function e(e,r,t,o,n,a){if(a!==s){var i=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 i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:o};return t.PropTypes=t,t}},4351:(e,r,t)=>{"use strict";t.d(r,{A:()=>l});var s=t(7723),o=t(5556),n=t.n(o),a=t(8846),i=t(790);function c({className:e}){const r=(0,s.__)("There was an error getting your stats. Please try again.","dokan"),t=(0,s.__)("Reload","dokan");return(0,i.jsx)(a.EmptyContent,{className:e,title:r,actionLabel:t,actionCallback:()=>{window.location.reload()}})}c.propTypes={className:n().string};const l=c},5556:(e,r,t)=>{e.exports=t(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);