PATH:
home
/
letacommog
/
laperouse
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-admin
/
dist
/
chunks
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[21],{702:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return D}));var r=o(14),n=o.n(r),c=o(13),a=o.n(c),i=o(16),u=o.n(i),l=o(17),s=o.n(l),m=o(6),d=o.n(m),f=o(0),b=o(1),p=o.n(b),_=o(3),y=o(49),k=Object(y.applyFilters)("woocommerce_admin_stock_report_filters",[{label:Object(_.__)("Show",'woocommerce'),staticParams:["paged","per_page"],param:"type",showFilters:function(){return!0},filters:[{label:Object(_.__)("All Products",'woocommerce'),value:"all"},{label:Object(_.__)("Out of Stock",'woocommerce'),value:"outofstock"},{label:Object(_.__)("Low Stock",'woocommerce'),value:"lowstock"},{label:Object(_.__)("In Stock",'woocommerce'),value:"instock"},{label:Object(_.__)("On Backorder",'woocommerce'),value:"onbackorder"}]}]),v=Object(y.applyFilters)("woocommerce_admin_stock_report_advanced_filters",{}),w=o(10),O=o.n(w),j=o(73),h=o(68),g=o(32),S=o(274),C=o(33),R=o(728);function q(e,t,o){return!!t&&(e&&t<=o==="instock")}var F=o(718);function E(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=d()(e);if(t){var n=d()(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return s()(this,o)}}var P=Object(C.g)("stockStatuses",{}),V=function(e){u()(o,e);var t=E(o);function o(){var e;return n()(this,o),(e=t.call(this)).getHeadersContent=e.getHeadersContent.bind(O()(e)),e.getRowsContent=e.getRowsContent.bind(O()(e)),e.getSummary=e.getSummary.bind(O()(e)),e}return a()(o,[{key:"getHeadersContent",value:function(){return[{label:Object(_.__)("Product / Variation",'woocommerce'),key:"title",required:!0,isLeftAligned:!0,isSortable:!0},{label:Object(_.__)("SKU",'woocommerce'),key:"sku",isSortable:!0},{label:Object(_.__)("Status",'woocommerce'),key:"stock_status",isSortable:!0,defaultSort:!0},{label:Object(_.__)("Stock",'woocommerce'),key:"stock_quantity",isSortable:!0}]}},{key:"getRowsContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=this.props.query,r=Object(g.getPersistedQuery)(o);return t.map((function(t){var o=t.id,n=t.manage_stock,c=t.parent_id,a=t.sku,i=t.stock_quantity,u=t.stock_status,l=t.low_stock_amount,s=Object(j.decodeEntities)(t.name),m=Object(g.getNewPath)(r,"/analytics/products",{filter:"single_product",products:c||o}),d=Object(f.createElement)(h.Link,{href:m,type:"wc-admin"},s),b=Object(C.f)("post.php?action=edit&post="+(c||o));return[{display:d,value:s},{display:a,value:a},{display:q(u,i,l)?Object(f.createElement)(h.Link,{href:b,type:"wp-admin"},Object(_._x)("Low","Indication of a low quantity",'woocommerce')):Object(f.createElement)(h.Link,{href:b,type:"wp-admin"},P[u]),value:u},{display:n?Object(S.formatValue)(e.context.getCurrencyConfig(),"number",i):Object(_.__)("N/A",'woocommerce'),value:i}]}))}},{key:"getSummary",value:function(e){var t=e.products,o=void 0===t?0:t,r=e.outofstock,n=void 0===r?0:r,c=e.lowstock,a=void 0===c?0:c,i=e.instock,u=void 0===i?0:i,l=e.onbackorder,s=void 0===l?0:l,m=this.context.getCurrencyConfig();return[{label:Object(_._n)("product","products",o,'woocommerce'),value:Object(S.formatValue)(m,"number",o)},{label:Object(_.__)("out of stock",'woocommerce'),value:Object(S.formatValue)(m,"number",n)},{label:Object(_.__)("low stock",'woocommerce'),value:Object(S.formatValue)(m,"number",a)},{label:Object(_.__)("on backorder",'woocommerce'),value:Object(S.formatValue)(m,"number",s)},{label:Object(_.__)("in stock",'woocommerce'),value:Object(S.formatValue)(m,"number",u)}]}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,o=e.filters,r=e.query;return Object(f.createElement)(R.a,{endpoint:"stock",getHeadersContent:this.getHeadersContent,getRowsContent:this.getRowsContent,getSummary:this.getSummary,summaryFields:["products","outofstock","lowstock","instock","onbackorder"],query:r,tableQuery:{orderby:r.orderby||"stock_status",order:r.order||"asc",type:r.type||"all"},title:Object(_.__)("Stock",'woocommerce'),filters:o,advancedFilters:t})}}]),o}(f.Component);V.contextType=F.a;var x=V,L=o(725);function A(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=d()(e);if(t){var n=d()(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return s()(this,o)}}var D=function(e){u()(o,e);var t=A(o);function o(){return n()(this,o),t.apply(this,arguments)}return a()(o,[{key:"render",value:function(){var e=this.props,t=e.query,o=e.path;return Object(f.createElement)(f.Fragment,null,Object(f.createElement)(L.a,{query:t,path:o,showDatePicker:!1,filters:k,advancedFilters:v,report:"stock"}),Object(f.createElement)(x,{query:t,filters:k,advancedFilters:v}))}}]),o}(f.Component);D.propTypes={query:p.a.object.isRequired}}}]);
[+]
..
[-] 47.style.css
[edit]
[-] 5.c750e100a6fdd3a69f62.js
[edit]
[-] 54.7fac56b68b9f3e25d29a.js
[edit]
[-] 13.1fb65e2fff8975ecf26a.js
[edit]
[-] 30.style.css
[edit]
[-] 18.style.css
[edit]
[-] 46.style.css
[edit]
[-] 23.style.rtl.css
[edit]
[-] 33.style.css
[edit]
[-] 9.style.css
[edit]
[-] 47.style.rtl.css
[edit]
[-] 48.style.rtl.css
[edit]
[-] 0.d82e0e3293a5788ce1b3.js
[edit]
[-] 47.cd57928eaf0f6b1653b7.js
[edit]
[-] 29.style.rtl.css
[edit]
[-] 34.style.css
[edit]
[-] 38.style.rtl.css
[edit]
[-] 15.b43dc4898cfe64a80f40.js
[edit]
[-] 7.style.rtl.css
[edit]
[-] 36.style.css
[edit]
[-] 14.57ecb260ced16ea3d9cd.js
[edit]
[-] 10.style.rtl.css
[edit]
[-] 10.style.css
[edit]
[-] 17.3bb7411d9278dab5881f.js
[edit]
[-] 38.style.css
[edit]
[-] 11.style.css
[edit]
[-] 38.6eb0f9093968baecc7b4.js
[edit]
[-] 12.style.rtl.css
[edit]
[-] 53.a3f503c6370338b21be2.js
[edit]
[-] 52.6c12fab082eddf9686fc.js
[edit]
[-] 0.style.rtl.css
[edit]
[-] 12.style.css
[edit]
[-] 12.1e3fd4a0eb677c221f97.js
[edit]
[-] 30.7e1d8028430fa7148071.js
[edit]
[-] 13.style.css
[edit]
[-] 0.style.css
[edit]
[-] 7.98d5571225e8bb353b9c.js
[edit]
[-] 7.style.css
[edit]
[-] 1.9c6240fe0285336d4601.js
[edit]
[-] 18.style.rtl.css
[edit]
[-] 4.569ef0d82e269809ccea.js
[edit]
[-] 8.88cdb058cc37250e3894.js
[edit]
[-] 30.style.rtl.css
[edit]
[-] 48.style.css
[edit]
[-] 49.e78eb9119c8eac3f6923.js
[edit]
[-] 11.e31ce9931c09bfa70ffd.js
[edit]
[-] 9.17f4ec69378f7c8ffa0d.js
[edit]
[-] 34.style.rtl.css
[edit]
[-] 16.49b97e6388f1e4ab98e0.js
[edit]
[-] 10.7db1c967ff2c6fee000a.js
[edit]
[-] 3.9d9bcc97f47cdfb1b68d.js
[edit]
[-] 18.9a8ad51cd904fce65ba8.js
[edit]
[-] 29.style.css
[edit]
[-] 34.0d0ac48ee5f2de7cb625.js
[edit]
[-] 5.c750e100a6fdd3a69f62.js.LICENSE.txt
[edit]
[-] 6.a1cfaa769c3ae60919e3.js
[edit]
[-] 23.2a199043713d4e1770f4.js
[edit]
[-] 13.style.rtl.css
[edit]
[-] 21.0573c8f697c9f049bb48.js
[edit]
[-] 33.1d4c376e447be418680d.js
[edit]
[-] 53.a3f503c6370338b21be2.js.LICENSE.txt
[edit]
[-] 51.7833f6f14975491e98af.js
[edit]
[-] 11.style.rtl.css
[edit]
[-] 29.18be233035c4325ece57.js
[edit]
[-] 22.236bdfd5d0b2ac1d6f41.js
[edit]
[-] 20.4da69c21435efd2c9e40.js
[edit]
[-] 19.2c402410e34b9bac52cb.js
[edit]
[-] 28.381aadd00d85f921db60.js
[edit]
[-] 46.style.rtl.css
[edit]
[-] 33.style.rtl.css
[edit]
[-] 48.77063cbcc06c66457bda.js
[edit]
[-] 46.c754aac4b14123e58adb.js
[edit]
[-] 2.7c37f2d162f480b8a1f8.js
[edit]
[-] 36.style.rtl.css
[edit]
[-] 9.style.rtl.css
[edit]
[-] 23.style.css
[edit]
[-] 36.22aea36f504a5d4259ea.js
[edit]