PATH:
home
/
lab2454c
/
isaaclondston.com
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
chunks
"use strict";(self.webpackChunk_wcAdmin_webpackJsonp=self.webpackChunk_wcAdmin_webpackJsonp||[]).push([[2624],{92698:function(e,r,t){t.r(r);var a=t(69307),n=t(65736),o=t(94333),s=t(10431),i=t(9818),c=t(86020),l=t(81921),m=t(14599),d=t(54071),u=t(62158),p=t(79205);const{performanceIndicators:f}=(0,p.O3)("dataEndpoints",{performanceIndicators:[]});class y extends a.Component{renderMenu(){const{hiddenBlocks:e,isFirst:r,isLast:t,onMove:o,onRemove:s,onTitleBlur:i,onTitleChange:l,onToggleHiddenBlock:d,titleInput:u,controls:p}=this.props;return(0,a.createElement)(c.EllipsisMenu,{label:(0,n.__)("Choose which analytics to display and the section name","woocommerce"),renderContent:y=>{let{onToggle:g}=y;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.MenuTitle,null,(0,n.__)("Display stats:","woocommerce")),f.map(((r,t)=>{const n=!e.includes(r.stat);return(0,a.createElement)(c.MenuItem,{checked:n,isCheckbox:!0,isClickable:!0,key:t,onInvoke:()=>{d(r.stat)(),(0,m.recordEvent)("dash_indicators_toggle",{status:n?"off":"on",key:r.stat})}},r.label)})),(0,a.createElement)(p,{onToggle:g,onMove:o,onRemove:s,isFirst:r,isLast:t,onTitleBlur:i,onTitleChange:l,titleInput:u}))}})}renderList(){const{query:e,primaryRequesting:r,secondaryRequesting:t,primaryError:o,secondaryError:i,primaryData:d,secondaryData:p,userIndicators:f,defaultDateRange:y}=this.props;if(r||t)return(0,a.createElement)(c.SummaryListPlaceholder,{numberOfItems:f.length});if(o||i)return null;const g=(0,s.getPersistedQuery)(e),{compare:h}=(0,l.getDateParamsFromQuery)(e,y),_="previous_period"===h?(0,n.__)("Previous period:","woocommerce"):(0,n.__)("Previous year:","woocommerce"),{formatAmount:k,getCurrencyConfig:E}=this.context,v=E();return(0,a.createElement)(c.SummaryList,null,(()=>f.map(((e,r)=>{const{primaryValue:t,secondaryValue:n,delta:o,reportUrl:s,reportUrlType:i}=(0,u.Z)({indicator:e,primaryData:d,secondaryData:p,currency:v,formatAmount:k,persistedQuery:g});return(0,a.createElement)(c.SummaryNumber,{key:r,href:s,hrefType:i,label:e.label,value:t,prevLabel:_,prevValue:n,delta:o,onLinkClickCallback:()=>{(0,m.recordEvent)("dash_indicators_click",{key:e.stat})}})}))))}render(){const{userIndicators:e,title:r}=this.props;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.SectionHeader,{title:r||(0,n.__)("Store Performance","woocommerce"),menu:this.renderMenu()}),e.length>0&&(0,a.createElement)("div",{className:"woocommerce-dashboard__store-performance"},this.renderList()))}}y.contextType=d.$,r.default=(0,o.compose)((0,i.withSelect)(((e,r)=>{const{hiddenBlocks:t,query:a,filters:n}=r,o=f.filter((e=>!t.includes(e.stat))),s={hiddenBlocks:t,userIndicators:o,indicators:f};if(0===o.length)return s;const i=(0,u.A)(e,o,a,n);return{...s,...i}})))(y)},62158:function(e,r,t){t.d(r,{A:function(){return u},Z:function(){return d}});var a=t(76292),n=t.n(a),o=t(92819),s=t(81921),i=t(67221),c=t(10431),l=t(81595),m=t(74617);const d=e=>{let{indicator:r,primaryData:t,secondaryData:a,currency:n,formatAmount:s,persistedQuery:i}=e;const d=(0,o.find)(t.data,(e=>e.stat===r.stat)),u=(0,o.find)(a.data,(e=>e.stat===r.stat));if(!d||!u)return{};const p=d._links&&d._links.report[0]&&d._links.report[0].href||"",f=function(e,r,t){return e?"/jetpack"===e?(0,m.getAdminLink)("admin.php?page=jetpack#/dashboard"):(0,c.getNewPath)(r,e,{chart:t.chart}):""}(p,i,d),y="/jetpack"===p?"wp-admin":"wc-admin",g="currency"===d.format,h=(0,l.calculateDelta)(d.value,u.value);return{primaryValue:g?s(d.value):(0,l.formatValue)(n,d.format,d.value),secondaryValue:g?s(u.value):(0,l.formatValue)(n,u.format,u.value),delta:h,reportUrl:f,reportUrlType:y}},u=(e,r,t,a)=>{const{getReportItems:o,getReportItemsError:c,isResolving:l}=e(i.REPORTS_STORE_NAME),{woocommerce_default_date_range:m}=e(i.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings"),d=(0,s.getCurrentDates)(t,m),u=d.primary.before,p=d.secondary.before,f=r.map((e=>e.stat)).join(","),y=(0,i.getFilterQuery)({filters:a,query:t}),g={...y,after:(0,s.appendTimestamp)(d.primary.after,"start"),before:(0,s.appendTimestamp)(u,u.isSame(n()(),"day")?"now":"end"),stats:f},h={...y,after:(0,s.appendTimestamp)(d.secondary.after,"start"),before:(0,s.appendTimestamp)(p,p.isSame(n()(),"day")?"now":"end"),stats:f};return{primaryData:o("performance-indicators",g),primaryError:c("performance-indicators",g)||null,primaryRequesting:l("getReportItems",["performance-indicators",g]),secondaryData:o("performance-indicators",h),secondaryError:c("performance-indicators",h)||null,secondaryRequesting:l("getReportItems",["performance-indicators",h]),defaultDateRange:m}}}}]);
[-] analytics-report-products.js
[edit]
[-] marketing-overview.js
[edit]
[-] 8544.style.css
[edit]
[-] 2463.style.css
[edit]
[-] multichannel-marketing.js
[edit]
[-] analytics-report-orders.js
[edit]
[-] 6743.js
[edit]
[-] 727.style.css
[edit]
[-] 2397.style.css
[edit]
[-] 3994.style.css
[edit]
[-] 4854.style.css
[edit]
[-] 7619.js
[edit]
[-] 1996.style.css
[edit]
[-] wcpay-payment-welcome-page.js
[edit]
[-] 7715.js
[edit]
[-] 4882.style.css
[edit]
[-] analytics-report-coupons.js
[edit]
[-] 7209.js
[edit]
[-] 2463.js
[edit]
[-] 1378.js
[edit]
[+]
..
[-] 5598.js
[edit]
[-] customizable-dashboard.js
[edit]
[-] analytics-report-downloads.js
[edit]
[-] 7708.style.css
[edit]
[-] dashboard.js
[edit]
[-] analytics-report.js
[edit]
[-] store-performance.js
[edit]
[-] 9470.js
[edit]
[-] 3700.style.css
[edit]
[-] analytics-report-stock.js
[edit]
[-] analytics-settings.js
[edit]
[-] add-product-page.js
[edit]
[-] profile-wizard.js
[edit]
[-] 3705.js
[edit]
[-] 2953.style.css
[edit]
[-] 2563.js
[edit]
[-] 8851.style.css
[edit]
[-] 8597.style.css
[edit]
[-] 3705.style.css
[edit]
[-] 6732.style.css
[edit]
[-] activity-panels-inbox.js
[edit]
[-] 6125.style.css
[edit]
[-] 9456.style.css
[edit]
[-] analytics-report-categories.js
[edit]
[-] 1378.style.css
[edit]
[-] activity-panels-help.js
[edit]
[-] analytics-report-customers.js
[edit]
[-] analytics-report-revenue.js
[edit]
[-] homescreen.js
[edit]
[-] 4011.style.css
[edit]
[-] payment-recommendations.js
[edit]
[-] analytics-report-variations.js
[edit]
[-] 9360.style.css
[edit]
[-] edit-product-page.js
[edit]
[-] activity-panels-setup.js
[edit]
[-] dashboard-charts.js
[edit]
[-] 5502.style.css
[edit]
[-] store-alerts.js
[edit]
[-] 185.style.css
[edit]
[-] 5598.style.css
[edit]
[-] leaderboards.js
[edit]
[-] 2624.style.css
[edit]
[-] 3383.style.css
[edit]
[-] 2502.style.css
[edit]
[-] shipping-recommendations.js
[edit]
[-] 3576.style.css
[edit]
[-] 3383.js
[edit]
[-] 3726.style.css
[edit]
[-] 7488.js
[edit]
[-] analytics-report-taxes.js
[edit]
[-] 6824.style.css
[edit]
[-] 9966.style.css
[edit]
[-] 7619.js.LICENSE.txt
[edit]
[-] 9792.style.css
[edit]