"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9503],{42024:function(e,t,n){n.d(t,{b:function(){return r}});var r=["Pending","Awaiting shipment","Shipped","Refunded","Cancelled","Completed"]},29177:function(e,t,n){n.d(t,{Cy:function(){return l},Gy:function(){return i},WF:function(){return a}});var r=n(89290),i=function(e){if(!e)return"";try{l=JSON.parse(e)}catch(e){}if(!l)return e;var t="",n=!0,i=!1,a=void 0;try{for(var l,u,o=Object.entries(l)[Symbol.iterator]();!(n=(u=o.next()).done);n=!0){var s=(0,r._)(u.value,2),c=s[0],p=s[1];p&&c&&(t+=p+", ")}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return t},a=function(e){if(!e)return"";try{l=JSON.parse(e)}catch(e){}if(!l)return e;var t="",n=!0,i=!1,a=void 0;try{for(var l,u,o=Object.entries(l)[Symbol.iterator]();!(n=(u=o.next()).done);n=!0){var s=(0,r._)(u.value,2),c=s[0],p=s[1];p&&c&&(t+="".concat(c,": ").concat(p,"\n"))}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return t},l=function(e){var t,n;if(e){try{n=JSON.parse(e)}catch(e){}n||(t=e),n&&"object"!=typeof n&&(t=n,n=void 0)}return{addressString:t,addressJson:n}}},89503:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var r=n(52322),i=n(63756),a=n(98317);n(2784);var l=n(1441),u=n(42024),o=n(90379),s=n(29177),c=n(98099);function p(){var e=(0,a.getGraphQLClient)();return(0,r.jsx)(l.Z,{entityCategory:i.EDBEntity.Order,entityListRoute:o.JB.route,entityBaseRoute:o.Pq.baseRoute,listLabel:"Orders",entityLabel:"Order",hideAddNew:!0,getMany:e.getOrders,deleteOne:e.deleteOrder,deleteMany:e.deleteManyOrders,columns:[{name:"id",label:"ID",type:"Simple text",exactSearch:!0,visible:!0,maxWidth:"100px"},{name:"status",label:"Status",type:"Simple text",visible:!0,exactSearch:!0,searchOptions:u.b.map(function(e){return{value:e,label:e}})},{name:"orderTotalPrice",label:"Total",type:"Currency",visible:!0},{name:"createDate",label:"Created",type:"Datetime",visible:!0,getValueView:function(e){return(0,c.BK)(e)}},{name:"updateDate",label:"Updated",type:"Datetime",visible:!1,getValueView:function(e){return(0,c.BK)(e)}},{name:"customerName",label:"Name",type:"Simple text",visible:!0},{name:"customerAddress",label:"Address",type:"Simple text",visible:!0,getValueView:s.Gy,getTooltipValueView:s.WF},{name:"customerPhone",label:"Phone",type:"Simple text",visible:!1},{name:"customerEmail",label:"Email",type:"Simple text",visible:!1},{name:"customerComment",label:"Comment",type:"Simple text",visible:!1},{name:"shippingMethod",label:"Shipping method",type:"Simple text",visible:!1},{name:"paymentMethod",label:"Payment method",type:"Simple text",visible:!1},{name:"shippingPrice",label:"Shipping price",type:"Currency",visible:!1},{name:"totalQnt",label:"Total Qnt",type:"Simple text",visible:!1},{name:"userId",label:"User ID",type:"Simple text",visible:!1},{name:"currency",label:"Currency",type:"Simple text",visible:!1}]})}}}]);