PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-admin
/
dist
/
chunks
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[48],{570:function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return u}));var a=r(9),n=r.n(a),o=r(3),c=r(21),s=r(11),i=r(12),l=r(139),m=r(17);const d=({indicator:e,primaryData:t,secondaryData:r,currency:a,formatAmount:n,persistedQuery:c})=>{const s=Object(o.find)(t.data,t=>t.stat===e.stat),d=Object(o.find)(r.data,t=>t.stat===e.stat);if(!s||!d)return{};const u=s._links&&s._links.report[0]&&s._links.report[0].href||"",p=function(e,t,r){return e?"/jetpack"===e?Object(m.g)("admin.php?page=jetpack#/dashboard"):Object(i.getNewPath)(t,e,{chart:r.chart}):""}(u,c,s),b="/jetpack"===u?"wp-admin":"wc-admin",f="currency"===s.format,y=Object(l.calculateDelta)(s.value,d.value);return{primaryValue:f?n(s.value):Object(l.formatValue)(a,s.format,s.value),secondaryValue:f?n(d.value):Object(l.formatValue)(a,d.format,d.value),delta:y,reportUrl:p,reportUrlType:b}},u=(e,t,r,a)=>{const{getReportItems:o,getReportItemsError:i,isResolving:l}=e(s.REPORTS_STORE_NAME),{woocommerce_default_date_range:m}=e(s.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings"),d=Object(c.getCurrentDates)(r,m),u=d.primary.before,p=d.secondary.before,b=t.map(e=>e.stat).join(","),f=Object(s.getFilterQuery)({filters:a,query:r}),y={...f,after:Object(c.appendTimestamp)(d.primary.after,"start"),before:Object(c.appendTimestamp)(u,u.isSame(n()(),"day")?"now":"end"),stats:b},g={...f,after:Object(c.appendTimestamp)(d.secondary.after,"start"),before:Object(c.appendTimestamp)(p,p.isSame(n()(),"day")?"now":"end"),stats:b};return{primaryData:o("performance-indicators",y),primaryError:i("performance-indicators",y)||null,primaryRequesting:l("getReportItems",["performance-indicators",y]),secondaryData:o("performance-indicators",g),secondaryError:i("performance-indicators",g)||null,secondaryRequesting:l("getReportItems",["performance-indicators",g]),defaultDateRange:m}}},642:function(e,t,r){},649:function(e,t,r){"use strict";r.r(t);var a=r(0),n=r(2),o=r(15),c=r(12),s=r(17),i=r(7),l=r(11),m=r(23),d=r(21),u=r(18),p=(r(642),r(545)),b=r(570);const{performanceIndicators:f}=Object(s.h)("dataEndpoints",{performanceIndicators:[]});class y extends a.Component{renderMenu(){const{hiddenBlocks:e,isFirst:t,isLast:r,onMove:o,onRemove:c,onTitleBlur:s,onTitleChange:i,onToggleHiddenBlock:l,titleInput:d,controls:p}=this.props;return Object(a.createElement)(m.EllipsisMenu,{label:Object(n.__)("Choose which analytics to display and the section name",'woocommerce'),renderContent:({onToggle:b})=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)(m.MenuTitle,null,Object(n.__)("Display Stats:",'woocommerce')),f.map((t,r)=>{const n=!e.includes(t.stat);return Object(a.createElement)(m.MenuItem,{checked:n,isCheckbox:!0,isClickable:!0,key:r,onInvoke:()=>{l(t.stat)(),Object(u.recordEvent)("dash_indicators_toggle",{status:n?"off":"on",key:t.stat})}},t.label)}),window.wcAdminFeatures["analytics-dashboard/customizable"]&&Object(a.createElement)(p,{onToggle:b,onMove:o,onRemove:c,isFirst:t,isLast:r,onTitleBlur:s,onTitleChange:i,titleInput:d}))})}renderList(){const{query:e,primaryRequesting:t,secondaryRequesting:r,primaryError:o,secondaryError:s,primaryData:i,secondaryData:l,userIndicators:p,defaultDateRange:f}=this.props;if(t||r)return Object(a.createElement)(m.SummaryListPlaceholder,{numberOfItems:p.length});if(o||s)return null;const y=Object(c.getPersistedQuery)(e),{compare:g}=Object(d.getDateParamsFromQuery)(e,f),O="previous_period"===g?Object(n.__)("Previous Period:",'woocommerce'):Object(n.__)("Previous Year:",'woocommerce'),{formatAmount:j,getCurrencyConfig:_}=this.context,h=_();return Object(a.createElement)(m.SummaryList,null,()=>p.map((e,t)=>{const{primaryValue:r,secondaryValue:n,delta:o,reportUrl:c,reportUrlType:s}=Object(b.b)({indicator:e,primaryData:i,secondaryData:l,currency:h,formatAmount:j,persistedQuery:y});return Object(a.createElement)(m.SummaryNumber,{key:t,href:c,hrefType:s,label:e.label,value:r,prevLabel:O,prevValue:n,delta:o,onLinkClickCallback:()=>{Object(u.recordEvent)("dash_indicators_click",{key:e.stat})}})}))}render(){const{userIndicators:e,title:t}=this.props;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(m.SectionHeader,{title:t||Object(n.__)("Store Performance",'woocommerce'),menu:this.renderMenu()}),e.length>0&&Object(a.createElement)("div",{className:"woocommerce-dashboard__store-performance"},this.renderList()))}}y.contextType=p.a,t.default=Object(o.compose)(Object(i.withSelect)((e,t)=>{const{hiddenBlocks:r,query:a,filters:n}=t,o=f.filter(e=>!r.includes(e.stat)),{woocommerce_default_date_range:c}=e(l.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings"),s={hiddenBlocks:r,userIndicators:o,indicators:f,defaultDateRange:c};if(0===o.length)return s;const i=Object(b.a)(e,o,a,n);return{...s,...i}}))(y)}}]);
[-] analytics-report-products.js
[edit]
[-] 44.style.rtl.css
[edit]
[-] 5.style.rtl.css
[edit]
[-] 31.style.css
[edit]
[-] marketing-overview.js
[edit]
[-] 47.style.css
[edit]
[-] analytics-report-orders.js
[edit]
[-] 49.style.css
[edit]
[-] 14.style.rtl.css
[edit]
[-] 9.style.css
[edit]
[-] analytics-report-coupons.js
[edit]
[-] 46.style.rtl.css
[edit]
[-] 11.style.rtl.css
[edit]
[+]
..
[-] 44.style.css
[edit]
[-] 46.style.css
[edit]
[-] 14.style.css
[edit]
[-] customizable-dashboard.js
[edit]
[-] analytics-report-downloads.js
[edit]
[-] 0.style.css
[edit]
[-] dashboard.js
[edit]
[-] analytics-report.js
[edit]
[-] store-performance.js
[edit]
[-] analytics-report-stock.js
[edit]
[-] 2.js.LICENSE.txt
[edit]
[-] 0.js
[edit]
[-] analytics-settings.js
[edit]
[-] 26.style.rtl.css
[edit]
[-] profile-wizard.js
[edit]
[-] 4.style.rtl.css
[edit]
[-] 7.style.css
[edit]
[-] 48.style.rtl.css
[edit]
[-] 6.style.css
[edit]
[-] 3.js
[edit]
[-] 2.js
[edit]
[-] 1.js
[edit]
[-] activity-panels-inbox.js
[edit]
[-] analytics-report-categories.js
[edit]
[-] 12.style.rtl.css
[edit]
[-] 48.style.css
[edit]
[-] 4.style.css
[edit]
[-] 17.style.rtl.css
[edit]
[-] activity-panels-help.js
[edit]
[-] analytics-report-customers.js
[edit]
[-] analytics-report-revenue.js
[edit]
[-] homescreen.js
[edit]
[-] 47.style.rtl.css
[edit]
[-] payment-recommendations.js
[edit]
[-] analytics-report-variations.js
[edit]
[-] 6.style.rtl.css
[edit]
[-] 26.style.css
[edit]
[-] 34.style.css
[edit]
[-] dashboard-charts.js
[edit]
[-] 32.style.rtl.css
[edit]
[-] store-alerts.js
[edit]
[-] 31.style.rtl.css
[edit]
[-] 25.style.css
[edit]
[-] 0.style.rtl.css
[edit]
[-] 9.style.rtl.css
[edit]
[-] leaderboards.js
[edit]
[-] wcpay-usage-modal.js
[edit]
[-] 25.style.rtl.css
[edit]
[-] 34.style.rtl.css
[edit]
[-] 11.style.css
[edit]
[-] 7.style.rtl.css
[edit]
[-] 49.style.rtl.css
[edit]
[-] task-list.js
[edit]
[-] analytics-report-taxes.js
[edit]
[-] 32.style.css
[edit]
[-] 5.style.css
[edit]
[-] 12.style.css
[edit]
[-] 17.style.css
[edit]