PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-admin
/
dist
/
chunks
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[15],{528:function(e,t,r){"use strict";r.r(t);var a=r(0),o=r(1),c=r.n(o),n=r(2),i=r(580),s=r(555),d=r(552),m=r(556),l=r(3),u=r(23),b=r(12),_=r(139),p=r(547),y=r(550),x=r(545);class h extends a.Component{constructor(){super(),this.getHeadersContent=this.getHeadersContent.bind(this),this.getRowsContent=this.getRowsContent.bind(this),this.getSummary=this.getSummary.bind(this)}getHeadersContent(){return[{label:Object(n.__)("Tax Code",'woocommerce'),key:"tax_code",required:!0,isLeftAligned:!0,isSortable:!0},{label:Object(n.__)("Rate",'woocommerce'),key:"rate",isSortable:!0,isNumeric:!0},{label:Object(n.__)("Total Tax",'woocommerce'),key:"total_tax",isSortable:!0},{label:Object(n.__)("Order Tax",'woocommerce'),key:"order_tax",isSortable:!0},{label:Object(n.__)("Shipping Tax",'woocommerce'),key:"shipping_tax",isSortable:!0},{label:Object(n.__)("Orders",'woocommerce'),key:"orders_count",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0}]}getRowsContent(e){const{render:t,formatDecimal:r,getCurrencyConfig:o}=this.context;return Object(l.map)(e,e=>{const{query:c}=this.props,{order_tax:n,orders_count:i,tax_rate:s,tax_rate_id:d,total_tax:m,shipping_tax:l}=e,y=Object(p.a)(e),x=Object(b.getPersistedQuery)(c),h=Object(b.getNewPath)(x,"/analytics/orders",{filter:"advanced",tax_rate_includes:d});return[{display:Object(a.createElement)(u.Link,{href:h,type:"wc-admin"},y),value:y},{display:s.toFixed(2)+"%",value:s},{display:t(m),value:r(m)},{display:t(n),value:r(n)},{display:t(l),value:r(l)},{display:Object(_.formatValue)(o(),"number",i),value:i}]})}getSummary(e){const{tax_codes:t=0,total_tax:r=0,order_tax:a=0,shipping_tax:o=0,orders_count:c=0}=e,{formatAmount:i,getCurrencyConfig:s}=this.context,d=s();return[{label:Object(n._n)("tax code","tax codes",t,'woocommerce'),value:Object(_.formatValue)(d,"number",t)},{label:Object(n.__)("total tax",'woocommerce'),value:i(r)},{label:Object(n.__)("order tax",'woocommerce'),value:i(a)},{label:Object(n.__)("shipping tax",'woocommerce'),value:i(o)},{label:Object(n._n)("order","orders",c,'woocommerce'),value:Object(_.formatValue)(d,"number",c)}]}render(){const{advancedFilters:e,filters:t,isRequesting:r,query:o}=this.props;return Object(a.createElement)(y.a,{compareBy:"taxes",endpoint:"taxes",getHeadersContent:this.getHeadersContent,getRowsContent:this.getRowsContent,getSummary:this.getSummary,summaryFields:["tax_codes","total_tax","order_tax","shipping_tax","orders_count"],isRequesting:r,itemIdField:"tax_rate_id",query:o,searchBy:"taxes",tableQuery:{orderby:o.orderby||"tax_rate_id"},title:Object(n.__)("Taxes",'woocommerce'),columnPrefsKey:"taxes_report_columns",filters:t,advancedFilters:e})}}h.contextType=x.a;var O=h,j=r(549);class g extends a.Component{getChartMeta(){const{query:e}=this.props,t="compare-taxes"===e.filter?"item-comparison":"time-comparison";return{itemsLabel:Object(n.__)("%d taxes",'woocommerce'),mode:t}}render(){const{isRequesting:e,query:t,path:r}=this.props,{mode:o,itemsLabel:c}=this.getChartMeta(),n={...t};return"item-comparison"===o&&(n.segmentby="tax_rate_id"),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(j.a,{query:t,path:r,filters:i.c,advancedFilters:i.a,report:"taxes"}),Object(a.createElement)(m.a,{charts:i.b,endpoint:"taxes",isRequesting:e,query:n,selectedChart:Object(s.a)(t.chart,i.b),filters:i.c,advancedFilters:i.a}),Object(a.createElement)(d.a,{charts:i.b,filters:i.c,advancedFilters:i.a,mode:o,endpoint:"taxes",query:n,path:r,isRequesting:e,itemsLabel:c,selectedChart:Object(s.a)(t.chart,i.b)}),Object(a.createElement)(O,{isRequesting:e,query:t,filters:i.c,advancedFilters:i.a}))}}g.propTypes={query:c.a.object.isRequired};t.default=g},546:function(e,t,r){"use strict";r.d(t,"e",(function(){return l})),r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return b})),r.d(t,"c",(function(){return _})),r.d(t,"d",(function(){return p})),r.d(t,"f",(function(){return y})),r.d(t,"h",(function(){return x})),r.d(t,"g",(function(){return h}));var a=r(16),o=r(20),c=r.n(o),n=r(3),i=r(12),s=r(11),d=r(17),m=r(547);function l(e,t=n.identity){return function(r="",o){const n="function"==typeof e?e(o):e,s=Object(i.getIdsFromQuery)(r);if(s.length<1)return Promise.resolve([]);const d={include:s.join(","),per_page:s.length};return c()({path:Object(a.addQueryArgs)(n,d)}).then(e=>e.map(t))}}l(s.NAMESPACE+"/products/attributes",e=>({key:e.id,label:e.name}));const u=l(s.NAMESPACE+"/products/categories",e=>({key:e.id,label:e.name})),b=l(s.NAMESPACE+"/coupons",e=>({key:e.id,label:e.code})),_=l(s.NAMESPACE+"/customers",e=>({key:e.id,label:e.name})),p=l(s.NAMESPACE+"/products",e=>({key:e.id,label:e.name})),y=l(s.NAMESPACE+"/taxes",e=>({key:e.id,label:Object(m.a)(e)}));function x({attributes:e,name:t}){const r=Object(d.h)("variationTitleAttributesSeparator"," - ");if(t.indexOf(r)>-1)return t;const a=e.map(({option:e})=>e).join(", ");return a?t+r+a:t}const h=l(({products:e})=>e?s.NAMESPACE+`/products/${e}/variations`:s.NAMESPACE+"/variations",e=>({key:e.id,label:x(e)}))},547:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var a=r(2);function o(e){return[e.country,e.state,e.name||Object(a.__)("TAX",'woocommerce'),e.priority].map(e=>e.toString().toUpperCase().trim()).filter(Boolean).join("-")}},580:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return u})),r.d(t,"a",(function(){return b}));var a=r(2),o=r(34),c=r(11),n=r(7),i=r(546),s=r(547),d=r(62);const{addCesSurveyForAnalytics:m}=Object(n.dispatch)(d.c),l=Object(o.applyFilters)("woocommerce_admin_taxes_report_charts",[{key:"total_tax",label:Object(a.__)("Total Tax",'woocommerce'),order:"desc",orderby:"total_tax",type:"currency"},{key:"order_tax",label:Object(a.__)("Order Tax",'woocommerce'),order:"desc",orderby:"order_tax",type:"currency"},{key:"shipping_tax",label:Object(a.__)("Shipping Tax",'woocommerce'),order:"desc",orderby:"shipping_tax",type:"currency"},{key:"orders_count",label:Object(a.__)("Orders",'woocommerce'),order:"desc",orderby:"orders_count",type:"number"}]),u=Object(o.applyFilters)("woocommerce_admin_taxes_report_filters",[{label:Object(a.__)("Show",'woocommerce'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:()=>!0,filters:[{label:Object(a.__)("All Taxes",'woocommerce'),value:"all"},{label:Object(a.__)("Comparison",'woocommerce'),value:"compare-taxes",chartMode:"item-comparison",settings:{type:"taxes",param:"taxes",getLabels:Object(i.e)(c.NAMESPACE+"/taxes",e=>({id:e.id,key:e.id,label:Object(s.a)(e)})),labels:{helpText:Object(a.__)("Check at least two tax codes below to compare",'woocommerce'),placeholder:Object(a.__)("Search for tax codes to compare",'woocommerce'),title:Object(a.__)("Compare Tax Codes",'woocommerce'),update:Object(a.__)("Compare",'woocommerce')},onClick:m}}]}]),b=Object(o.applyFilters)("woocommerce_admin_taxes_report_advanced_filters",{})}}]);
[-] 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]