%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/
Upload File :
Create Path :
Current File : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/97.64a7a20d.chunk.js

(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[97],{1137:function(e,t,c){"use strict";c.d(t,"a",(function(){return N}));var a=c(39),r=c(1072),s=c(5),n=c(0),i=c(43),l=c(1099),o=c(27),d=c(6),j=c(1);var b=function(e){const t=Object(i.a)(),c=Object(d.c)(Object(o.c)(t.palette.primary.main));return Object(j.jsx)("div",{className:e.classes.header,children:e.header&&Object(j.jsx)(l.a,{theme:c,children:e.header})})},m=c(94),h=c(1121),x=c(1125);var p=function(e){const t=Object(i.a)(),c=Object(d.c)(Object(o.c)(t.palette.primary.main)),{classes:r}=e;return Object(j.jsxs)(j.Fragment,{children:[e.header&&Object(j.jsx)(l.a,{theme:c,children:Object(j.jsx)("div",{className:Object(s.a)(r.sidebarHeader,e.variant),children:e.header})}),e.content&&Object(j.jsx)(a.a,{className:r.sidebarContent,enable:e.innerScroll,children:e.content})]})};function u(e,t){const[c,a]=Object(n.useState)(!1),{classes:r}=e;Object(n.useImperativeHandle)(t,(()=>({toggleSidebar:i})));const i=()=>{a(!c)};return Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)(h.a,{lgUp:"permanent"===e.variant,children:Object(j.jsx)(x.a,{variant:"temporary",anchor:e.position,open:c,onOpen:e=>{},onClose:e=>i(),disableSwipeToOpen:!0,classes:{root:Object(s.a)(r.sidebarWrapper,e.variant),paper:Object(s.a)(r.sidebar,e.variant,"left"===e.position?r.leftSidebar:r.rightSidebar)},ModalProps:{keepMounted:!0},container:e.rootRef.current,BackdropProps:{classes:{root:r.backdrop}},style:{position:"absolute"},children:Object(j.jsx)(p,{...e})})}),"permanent"===e.variant&&Object(j.jsx)(h.a,{mdDown:!0,children:Object(j.jsx)(m.a,{variant:"permanent",className:Object(s.a)(r.sidebarWrapper,e.variant),open:c,classes:{paper:Object(s.a)(r.sidebar,e.variant,"left"===e.position?r.leftSidebar:r.rightSidebar)},children:Object(j.jsx)(p,{...e})})})]})}var O=Object(n.forwardRef)(u);const f=200,g=Object(r.a)((e=>({"@global":{"#fuse-main":{height:e=>e.innerScroll&&"100vh"}},root:{display:"flex",flexDirection:"row",minWidth:0,minHeight:"100%",position:"relative",flex:"1 1 auto",height:"auto",backgroundColor:e.palette.background.default},innerScroll:{height:"100%"},topBg:{position:"absolute",left:0,right:0,top:0,height:f,background:"linear-gradient(to right, ".concat(e.palette.primary.dark," 0%, ").concat(e.palette.primary.main," 100%)"),backgroundSize:"cover",pointerEvents:"none"},contentWrapper:{display:"flex",flexDirection:"column",padding:"0 3.2rem",flex:"1 1 100%",zIndex:2,maxWidth:"100%",minWidth:0,minHeight:0,[e.breakpoints.down("xs")]:{padding:"0 1.6rem"}},header:{height:136,minHeight:136,maxHeight:136,display:"flex",color:e.palette.primary.contrastText},headerSidebarToggleButton:{color:e.palette.primary.contrastText},contentCard:{display:"flex",flex:"1 1 100%",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",minHeight:0,borderRadius:"20px 20px 0 0"},toolbar:{height:64,minHeight:64,display:"flex",alignItems:"center",borderBottom:"1px solid ".concat(e.palette.divider)},content:{flex:"1 1 auto",height:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"},sidebarWrapper:{position:"absolute",backgroundColor:"transparent",zIndex:5,overflow:"hidden","&.permanent":{[e.breakpoints.up("lg")]:{zIndex:1,position:"relative"}}},sidebar:{position:"absolute","&.permanent":{[e.breakpoints.up("lg")]:{backgroundColor:"transparent",position:"relative",border:"none",overflow:"hidden"}},width:240,height:"100%"},leftSidebar:{},rightSidebar:{},sidebarHeader:{height:f,minHeight:f,color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark,"&.permanent":{[e.breakpoints.up("lg")]:{backgroundColor:"transparent"}}},sidebarContent:{display:"flex",flex:"1 1 auto",flexDirection:"column",backgroundColor:e.palette.background.default,color:e.palette.text.primary,[e.breakpoints.up("lg")]:{overflow:"auto","-webkit-overflow-scrolling":"touch"}},backdrop:{position:"absolute"}}))),v=Object(n.forwardRef)(((e,t)=>{const c=Object(n.useRef)(null),r=Object(n.useRef)(null),i=Object(n.useRef)(null),l=g(e),o=e.rightSidebarHeader||e.rightSidebarContent,d=e.leftSidebarHeader||e.leftSidebarContent;return Object(n.useImperativeHandle)(t,(()=>({rootRef:i,toggleLeftSidebar:()=>{c.current.toggleSidebar()},toggleRightSidebar:()=>{r.current.toggleSidebar()}}))),Object(j.jsxs)("div",{className:Object(s.a)(l.root,e.innerScroll&&l.innerScroll),ref:i,children:[Object(j.jsx)("div",{className:l.topBg}),Object(j.jsxs)("div",{className:"flex container w-full",children:[d&&Object(j.jsx)(O,{position:"left",header:e.leftSidebarHeader,content:e.leftSidebarContent,variant:e.leftSidebarVariant||"permanent",innerScroll:e.innerScroll,classes:l,ref:c,rootRef:i}),Object(j.jsxs)("div",{className:Object(s.a)(l.contentWrapper,d&&(void 0===e.leftSidebarVariant||"permanent"===e.leftSidebarVariant)&&"lg:ltr:pl-0 lg:rtl:pr-0",o&&(void 0===e.rightSidebarVariant||"permanent"===e.rightSidebarVariant)&&"lg:pr-0"),children:[Object(j.jsx)(b,{header:e.header,classes:l}),Object(j.jsxs)("div",{className:Object(s.a)(l.contentCard,e.innerScroll&&"inner-scroll"),children:[e.contentToolbar&&Object(j.jsx)("div",{className:l.toolbar,children:e.contentToolbar}),e.content&&Object(j.jsx)(a.a,{className:l.content,enable:e.innerScroll,scrollToTopOnRouteChange:e.innerScroll,children:e.content})]})]}),o&&Object(j.jsx)(O,{position:"right",header:e.rightSidebarHeader,content:e.rightSidebarContent,variant:e.rightSidebarVariant||"permanent",innerScroll:e.innerScroll,classes:l,ref:r,rootRef:i})]})]})}));v.defaultProps={};var N=Object(n.memo)(v)},1182:function(e,t,c){"use strict";c.d(t,"b",(function(){return n})),c.d(t,"c",(function(){return i})),c.d(t,"d",(function(){return o})),c.d(t,"e",(function(){return b}));var a=c(19),r=c(50),s=c.n(r);const n=Object(a.b)("eCommerceApp/orders/getOrders",(async()=>{const e=await s.a.get("/api/e-commerce-app/orders");return await e.data})),i=Object(a.b)("eCommerceApp/orders/removeOrders",(async(e,t)=>{let{dispatch:c,getState:a}=t;return await s.a.post("/api/e-commerce-app/remove-orders",{orderIds:e}),e})),l=Object(a.c)({}),{selectAll:o,selectById:d}=l.getSelectors((e=>e.eCommerceApp.orders)),j=Object(a.d)({name:"eCommerceApp/orders",initialState:l.getInitialState({searchText:""}),reducers:{setOrdersSearchText:{reducer:(e,t)=>{e.searchText=t.payload},prepare:e=>({payload:e.target.value||""})}},extraReducers:{[n.fulfilled]:l.setAll,[i.fulfilled]:(e,t)=>l.removeMany(e,t.payload)}}),{setOrdersSearchText:b}=j.actions;t.a=j.reducer},1183:function(e,t,c){"use strict";c.d(t,"b",(function(){return n})),c.d(t,"c",(function(){return i})),c.d(t,"d",(function(){return o})),c.d(t,"e",(function(){return b}));var a=c(19),r=c(50),s=c.n(r);const n=Object(a.b)("eCommerceApp/products/getProducts",(async()=>{const e=await s.a.get("/api/e-commerce-app/products");return await e.data})),i=Object(a.b)("eCommerceApp/products/removeProducts",(async(e,t)=>{let{dispatch:c,getState:a}=t;return await s.a.post("/api/e-commerce-app/remove-products",{productIds:e}),e})),l=Object(a.c)({}),{selectAll:o,selectById:d}=l.getSelectors((e=>e.eCommerceApp.products)),j=Object(a.d)({name:"eCommerceApp/products",initialState:l.getInitialState({searchText:""}),reducers:{setProductsSearchText:{reducer:(e,t)=>{e.searchText=t.payload},prepare:e=>({payload:e.target.value||""})}},extraReducers:{[n.fulfilled]:l.setAll,[i.fulfilled]:(e,t)=>l.removeMany(e,t.payload)}}),{setProductsSearchText:b}=j.actions;t.a=j.reducer},1187:function(e,t,c){"use strict";c.d(t,"b",(function(){return i})),c.d(t,"d",(function(){return l})),c.d(t,"f",(function(){return o})),c.d(t,"c",(function(){return j})),c.d(t,"e",(function(){return b}));var a=c(19),r=c(50),s=c.n(r),n=c(52);const i=Object(a.b)("eCommerceApp/product/getProduct",(async e=>{const t=await s.a.get("/api/e-commerce-app/product",{params:e}),c=await t.data;return void 0===c?null:c})),l=Object(a.b)("eCommerceApp/product/removeProduct",(async(e,t)=>{let{dispatch:c,getState:a}=t;const{id:r}=a().eCommerceApp.product;return await s.a.post("/api/e-commerce-app/remove-product",{id:r}),r})),o=Object(a.b)("eCommerceApp/product/saveProduct",(async(e,t)=>{let{dispatch:c,getState:a}=t;const{product:r}=a().eCommerceApp,n=await s.a.post("/api/e-commerce-app/product/save",{...r,...e});return await n.data})),d=Object(a.d)({name:"eCommerceApp/product",initialState:null,reducers:{resetProduct:()=>null,newProduct:{reducer:(e,t)=>t.payload,prepare:e=>({payload:{id:n.a.generateGUID(),name:"",handle:"",description:"",categories:[],tags:[],images:[],priceTaxExcl:0,priceTaxIncl:0,taxRate:0,comparedPrice:0,quantity:0,sku:"",width:"",height:"",depth:"",weight:"",extraShippingFee:0,active:!0}})}},extraReducers:{[i.fulfilled]:(e,t)=>t.payload,[o.fulfilled]:(e,t)=>t.payload,[l.fulfilled]:(e,t)=>null}}),{newProduct:j,resetProduct:b}=d.actions;t.a=d.reducer},1200:function(e,t,c){"use strict";c.d(t,"b",(function(){return n})),c.d(t,"c",(function(){return o}));var a=c(19),r=c(50),s=c.n(r);const n=Object(a.b)("eCommerceApp/order/getOrder",(async e=>{const t=await s.a.get("/api/e-commerce-app/order",{params:e}),c=await t.data;return void 0===c?null:c})),i=Object(a.b)("eCommerceApp/order/saveOrder",(async e=>{const t=await s.a.post("/api/e-commerce-app/order/save",e);return await t.data})),l=Object(a.d)({name:"eCommerceApp/order",initialState:null,reducers:{resetOrder:()=>null},extraReducers:{[n.fulfilled]:(e,t)=>t.payload,[i.fulfilled]:(e,t)=>t.payload}}),{resetOrder:o}=l.actions;t.a=l.reducer},1224:function(e,t,c){"use strict";var a=c(112),r=c(1200),s=c(1182),n=c(1187),i=c(1183);const l=Object(a.c)({products:i.a,product:n.a,orders:s.a,order:r.a});t.a=l},1315:function(e,t,c){"use strict";var a=c(10),r=c(5),s=c(1);const n=[{id:1,name:"Awaiting check payment",color:"bg-blue text-white"},{id:2,name:"Payment accepted",color:"bg-green text-white"},{id:3,name:"Preparing the order",color:"bg-orange text-black"},{id:4,name:"Shipped",color:"bg-purple text-white"},{id:5,name:"Delivered",color:"bg-green-700 text-white"},{id:6,name:"Canceled",color:"bg-pink text-white"},{id:7,name:"Refunded",color:"bg-red text-white"},{id:8,name:"Payment error",color:"bg-red-700 text-white"},{id:9,name:"On pre-order (paid)",color:"bg-purple-300 text-white"},{id:10,name:"Awaiting bank wire payment",color:"bg-blue text-white"},{id:11,name:"Awaiting PayPal payment",color:"bg-blue-700 text-white"},{id:12,name:"Remote payment accepted",color:"bg-green-800 text-white"},{id:13,name:"On pre-order (not paid)",color:"bg-purple-700 text-white"},{id:14,name:"Awaiting Cash-on-delivery payment",color:"bg-blue-800 text-white"}];t.a=function(e){return Object(s.jsx)("div",{className:Object(r.a)("inline text-12 font-semibold py-4 px-12 rounded-full truncate",a.a.find(n,{name:e.name}).color),children:e.name})}},2708:function(e,t,c){"use strict";c.r(t);var a=c(1137),r=c(1098),s=c(1090),n=c(43),i=c(1117),l=c(1119),o=c(194),d=c(133),j=c(1118),b=c(0),m=c(6),h=c(49),x=c(28),p=c(89),u=c(1224),O=c(1200),f=c(1109),g=c(1116),v=c(1072),N=c(1220),y=c(1223),w=c(1199),S=c(1221),C=c(1222),A=c(5),k=c(1);const T=Object(v.a)((e=>({root:{"& table ":{"& th:first-child, & td:first-child":{paddingLeft:"".concat(0,"!important")},"& th:last-child, & td:last-child":{paddingRight:"".concat(0,"!important")}}},divider:{width:1,backgroundColor:e.palette.divider,height:144},seller:{backgroundColor:e.palette.primary.dark,color:e.palette.getContrastText(e.palette.primary.dark),marginRight:-88,paddingRight:66,width:480,"& .divider":{backgroundColor:e.palette.getContrastText(e.palette.primary.dark),opacity:.5}}}))),I=e=>{const t=T(e),c=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2});return Object(k.jsx)("div",{className:Object(A.a)(t.root,"flex-grow flex-shrink-0 p-0"),children:e.order&&Object(k.jsx)(f.a,{className:"w-xl mx-auto shadow-0",children:Object(k.jsxs)(g.a,{className:"p-88 print:p-0",children:[Object(k.jsx)(o.a,{color:"textSecondary",className:"mb-32",children:e.order.date}),Object(k.jsxs)("div",{className:"flex justify-between",children:[Object(k.jsxs)("div",{children:[Object(k.jsx)("table",{className:"mb-16",children:Object(k.jsx)("tbody",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("td",{className:"pb-4",children:Object(k.jsx)(o.a,{className:"font-light",variant:"h6",color:"textSecondary",children:"INVOICE"})}),Object(k.jsx)("td",{className:"pb-4 px-8",children:Object(k.jsx)(o.a,{className:"font-light",variant:"h6",color:"inherit",children:e.order.reference})})]})})}),Object(k.jsx)(o.a,{color:"textSecondary",children:"".concat(e.order.customer.firstName," ").concat(e.order.customer.lastName)}),e.order.customer.invoiceAddress.address&&Object(k.jsx)(o.a,{color:"textSecondary",children:e.order.customer.invoiceAddress.address}),e.order.customer.phone&&Object(k.jsx)(o.a,{color:"textSecondary",children:e.order.customer.phone}),e.order.customer.email&&Object(k.jsx)(o.a,{color:"textSecondary",children:e.order.customer.email})]}),Object(k.jsxs)("div",{className:Object(A.a)(t.seller,"flex items-center p-16"),children:[Object(k.jsx)("img",{className:"w-80",src:"assets/images/logos/fuse.svg",alt:"logo"}),Object(k.jsx)("div",{className:Object(A.a)(t.divider,"divider mx-8 h-96")}),Object(k.jsxs)("div",{className:"px-8",children:[Object(k.jsx)(o.a,{color:"inherit",children:"FUSE INC."}),Object(k.jsx)(o.a,{color:"inherit",children:"2810 Country Club Road Cranford, NJ 07016"}),Object(k.jsx)(o.a,{color:"inherit",children:"+66 123 455 87"}),Object(k.jsx)(o.a,{color:"inherit",children:"hello@fuseinc.com"}),Object(k.jsx)(o.a,{color:"inherit",children:"www.fuseinc.com"})]})]})]}),Object(k.jsxs)("div",{className:"mt-64",children:[Object(k.jsxs)(N.a,{className:"simple",children:[Object(k.jsx)(S.a,{children:Object(k.jsxs)(C.a,{children:[Object(k.jsx)(w.a,{children:"PRODUCT"}),Object(k.jsx)(w.a,{children:"PRICE"}),Object(k.jsx)(w.a,{align:"right",children:"QUANTITY"}),Object(k.jsx)(w.a,{align:"right",children:"TOTAL"})]})}),Object(k.jsx)(y.a,{children:e.order.products.map((e=>Object(k.jsxs)(C.a,{children:[Object(k.jsx)(w.a,{children:Object(k.jsx)(o.a,{variant:"subtitle1",children:e.name})}),Object(k.jsx)(w.a,{align:"right",children:c.format(e.price)}),Object(k.jsx)(w.a,{align:"right",children:e.quantity}),Object(k.jsx)(w.a,{align:"right",children:c.format(e.price*e.quantity)})]},e.id)))})]}),Object(k.jsx)(N.a,{className:"simple mt-32",children:Object(k.jsxs)(y.a,{children:[Object(k.jsxs)(C.a,{children:[Object(k.jsx)(w.a,{children:Object(k.jsx)(o.a,{className:"font-normal",variant:"subtitle1",color:"textSecondary",children:"SUBTOTAL"})}),Object(k.jsx)(w.a,{align:"right",children:Object(k.jsx)(o.a,{className:"font-normal",variant:"subtitle1",color:"textSecondary",children:c.format(e.order.subtotal)})})]}),Object(k.jsxs)(C.a,{children:[Object(k.jsx)(w.a,{children:Object(k.jsx)(o.a,{className:"font-normal",variant:"subtitle1",color:"textSecondary",children:"TAX"})}),Object(k.jsx)(w.a,{align:"right",children:Object(k.jsx)(o.a,{className:"font-normal",variant:"subtitle1",color:"textSecondary",children:c.format(e.order.tax)})})]}),Object(k.jsxs)(C.a,{children:[Object(k.jsx)(w.a,{children:Object(k.jsx)(o.a,{className:"font-normal",variant:"subtitle1",color:"textSecondary",children:"DISCOUNT"})}),Object(k.jsx)(w.a,{align:"right",children:Object(k.jsx)(o.a,{className:"font-normal",variant:"subtitle1",color:"textSecondary",children:c.format(e.order.discount)})})]}),Object(k.jsxs)(C.a,{children:[Object(k.jsx)(w.a,{children:Object(k.jsx)(o.a,{className:"font-light",variant:"h4",color:"textSecondary",children:"TOTAL"})}),Object(k.jsx)(w.a,{align:"right",children:Object(k.jsx)(o.a,{className:"font-light",variant:"h4",color:"textSecondary",children:c.format(e.order.total)})})]})]})})]}),Object(k.jsxs)("div",{className:"mt-96",children:[Object(k.jsx)(o.a,{className:"mb-24 print:mb-12",variant:"body1",children:"Please pay within 15 days. Thank you for your business."}),Object(k.jsxs)("div",{className:"flex",children:[Object(k.jsx)("div",{className:"flex-shrink-0",children:Object(k.jsx)("img",{className:"w-32",src:"assets/images/logos/fuse.svg",alt:"logo"})}),Object(k.jsx)(o.a,{className:"font-normal mb-64 px-24",variant:"caption",color:"textSecondary",children:"In condimentum malesuada efficitur. Mauris volutpat placerat auctor. Ut ac congue dolor. Quisque scelerisque lacus sed feugiat fermentum. Cras aliquet facilisis pellentesque. Nunc hendrerit quam at leo commodo, a suscipit tellus dapibus. Etiam at felis volutpat est mollis lacinia. Mauris placerat sem sit amet velit mollis, in porttitor ex finibus. Proin eu nibh id libero tincidunt lacinia et eget eros."})]})]})]})})})};var P=Object(b.memo)(I),R=c(1455),D=c(1384),H=c(1383),U=c(1124),q=c(1097),B=c(1173),W=c.n(B),E=c(1369),F=c(1315);function L(e){return Object(k.jsx)(q.a,{title:e.text,placement:"top",children:Object(k.jsx)(s.a,{className:"text-red",children:"place"})})}var M=function(){const e=Object(m.c)((e=>{let{eCommerceApp:t}=e;return t.order})),[t,c]=Object(b.useState)("shipping");return Object(k.jsxs)("div",{children:[Object(k.jsxs)("div",{className:"pb-48",children:[Object(k.jsxs)("div",{className:"pb-16 flex items-center",children:[Object(k.jsx)(s.a,{color:"action",children:"account_circle"}),Object(k.jsx)(o.a,{className:"h2 mx-12 font-medium",color:"textSecondary",children:"Customer"})]}),Object(k.jsxs)("div",{className:"mb-24",children:[Object(k.jsx)("div",{className:"table-responsive mb-48",children:Object(k.jsxs)("table",{className:"simple",children:[Object(k.jsx)("thead",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Name"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Email"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Phone"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Company"})})]})}),Object(k.jsx)("tbody",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("td",{children:Object(k.jsxs)("div",{className:"flex items-center",children:[Object(k.jsx)(U.a,{src:e.customer.avatar}),Object(k.jsx)(o.a,{className:"truncate mx-8",children:"".concat(e.customer.firstName," ").concat(e.customer.lastName)})]})}),Object(k.jsx)("td",{children:Object(k.jsx)(o.a,{className:"truncate",children:e.customer.email})}),Object(k.jsx)("td",{children:Object(k.jsx)(o.a,{className:"truncate",children:e.customer.phone})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.customer.company})})]})})]})}),Object(k.jsxs)(R.a,{className:"border-0 shadow-0 overflow-hidden",expanded:"shipping"===t,onChange:()=>c("shipping"!==t&&"shipping"),children:[Object(k.jsx)(H.a,{expandIcon:Object(k.jsx)(W.a,{}),classes:{root:"border border-solid rounded-16 mb-16"},children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Shipping Address"})}),Object(k.jsxs)(D.a,{className:"flex flex-col md:flex-row -mx-8",children:[Object(k.jsx)(o.a,{className:"w-full md:max-w-256 mb-16 md:mb-0 mx-8 text-16",children:e.customer.shippingAddress.address}),Object(k.jsx)("div",{className:"w-full h-320 rounded-16 overflow-hidden mx-8",children:Object(k.jsx)(E.a,{bootstrapURLKeys:{key:""},defaultZoom:15,defaultCenter:[e.customer.shippingAddress.lat,e.customer.shippingAddress.lng],children:Object(k.jsx)(L,{text:e.customer.shippingAddress.address,lat:e.customer.shippingAddress.lat,lng:e.customer.shippingAddress.lng})})})]})]}),Object(k.jsxs)(R.a,{className:"shadow-0 border-0 overflow-hidden",expanded:"invoice"===t,onChange:()=>c("invoice"!==t&&"invoice"),children:[Object(k.jsx)(H.a,{expandIcon:Object(k.jsx)(W.a,{}),classes:{root:"border border-solid rounded-16 mb-16"},children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Invoice Address"})}),Object(k.jsxs)(D.a,{className:"flex flex-col md:flex-row -mx-8",children:[Object(k.jsx)(o.a,{className:"w-full md:max-w-256 mb-16 md:mb-0 mx-8 text-16",children:e.customer.invoiceAddress.address}),Object(k.jsx)("div",{className:"w-full h-320 rounded-16 overflow-hidden mx-8",children:Object(k.jsx)(E.a,{bootstrapURLKeys:{key:""},defaultZoom:15,defaultCenter:[e.customer.invoiceAddress.lat,e.customer.invoiceAddress.lng],children:Object(k.jsx)(L,{text:e.customer.invoiceAddress.address,lat:e.customer.invoiceAddress.lat,lng:e.customer.invoiceAddress.lng})})})]})]})]})]}),Object(k.jsxs)("div",{className:"pb-48",children:[Object(k.jsxs)("div",{className:"pb-16 flex items-center",children:[Object(k.jsx)(s.a,{color:"action",children:"access_time"}),Object(k.jsx)(o.a,{className:"h2 mx-12 font-medium",color:"textSecondary",children:"Order Status"})]}),Object(k.jsx)("div",{className:"table-responsive",children:Object(k.jsxs)("table",{className:"simple",children:[Object(k.jsx)("thead",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Status"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Updated On"})})]})}),Object(k.jsx)("tbody",{children:e.status.map((e=>Object(k.jsxs)("tr",{children:[Object(k.jsx)("td",{children:Object(k.jsx)(F.a,{name:e.name})}),Object(k.jsx)("td",{children:e.date})]},e.id)))})]})})]}),Object(k.jsxs)("div",{className:"pb-48",children:[Object(k.jsxs)("div",{className:"pb-16 flex items-center",children:[Object(k.jsx)(s.a,{color:"action",children:"attach_money"}),Object(k.jsx)(o.a,{className:"h2 mx-12 font-medium",color:"textSecondary",children:"Payment"})]}),Object(k.jsx)("div",{className:"table-responsive",children:Object(k.jsxs)("table",{className:"simple",children:[Object(k.jsx)("thead",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"TransactionID"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Payment Method"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Amount"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Date"})})]})}),Object(k.jsx)("tbody",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.payment.transactionId})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.payment.method})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.payment.amount})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.payment.date})})]})})]})})]}),Object(k.jsxs)("div",{className:"pb-48",children:[Object(k.jsxs)("div",{className:"pb-16 flex items-center",children:[Object(k.jsx)(s.a,{color:"action",children:"local_shipping"}),Object(k.jsx)(o.a,{className:"h2 mx-12 font-medium",color:"textSecondary",children:"Shipping"})]}),Object(k.jsx)("div",{className:"table-responsive",children:Object(k.jsxs)("table",{className:"simple",children:[Object(k.jsx)("thead",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Tracking Code"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Carrier"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Weight"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Fee"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Date"})})]})}),Object(k.jsx)("tbody",{children:e.shippingDetails.map((e=>Object(k.jsxs)("tr",{children:[Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.tracking})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.carrier})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.weight})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.fee})}),Object(k.jsx)("td",{children:Object(k.jsx)("span",{className:"truncate",children:e.date})})]},e.date)))})]})})]})]})};var V=function(){const e=Object(m.c)((e=>{let{eCommerceApp:t}=e;return t.order}));return Object(k.jsx)("div",{className:"table-responsive",children:Object(k.jsxs)("table",{className:"simple",children:[Object(k.jsx)("thead",{children:Object(k.jsxs)("tr",{children:[Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"ID"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Image"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Name"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Price"})}),Object(k.jsx)("th",{children:Object(k.jsx)(o.a,{className:"font-semibold",children:"Quantity"})})]})}),Object(k.jsx)("tbody",{children:e.products.map((e=>Object(k.jsxs)("tr",{children:[Object(k.jsx)("td",{className:"w-64",children:e.id}),Object(k.jsx)("td",{className:"w-80",children:Object(k.jsx)("img",{className:"product-image",src:e.image,alt:"product"})}),Object(k.jsx)("td",{children:Object(k.jsx)(o.a,{component:x.a,to:"/apps/e-commerce/products/".concat(e.id),className:"truncate",style:{color:"inherit",textDecoration:"underline"},children:e.name})}),Object(k.jsx)("td",{className:"w-64 text-right",children:Object(k.jsxs)("span",{className:"truncate",children:["$",e.price]})}),Object(k.jsx)("td",{className:"w-64 text-right",children:Object(k.jsx)("span",{className:"truncate",children:e.quantity})})]},e.id)))})]})})};t.default=Object(d.a)("eCommerceApp",u.a)((function(e){const t=Object(m.b)(),c=Object(m.c)((e=>{let{eCommerceApp:t}=e;return t.order})),d=Object(n.a)(),u=Object(h.j)(),[f,g]=Object(b.useState)(0),[v,N]=Object(b.useState)(!1);return Object(p.b)((()=>{t(Object(O.b)(u)).then((e=>{e.payload||N(!0)}))}),[t,u]),Object(b.useEffect)((()=>()=>{t(Object(O.c)()),N(!1)}),[t]),v?Object(k.jsxs)(j.a.div,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.1}},className:"flex flex-col flex-1 items-center justify-center h-full",children:[Object(k.jsx)(o.a,{color:"textSecondary",variant:"h5",children:"There is no such order!"}),Object(k.jsx)(r.a,{className:"mt-24",component:x.a,variant:"outlined",to:"/apps/e-commerce/orders",color:"inherit",children:"Go to Orders Page"})]}):Object(k.jsx)(a.a,{classes:{content:"flex",header:"min-h-72 h-72 sm:h-136 sm:min-h-136"},header:c&&Object(k.jsx)("div",{className:"flex flex-1 w-full items-center justify-between",children:Object(k.jsxs)("div",{className:"flex flex-1 flex-col items-center sm:items-start",children:[Object(k.jsx)(j.a.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1,transition:{delay:.3}},children:Object(k.jsxs)(o.a,{className:"flex items-center sm:mb-12",component:x.a,role:"button",to:"/apps/e-commerce/orders",color:"inherit",children:[Object(k.jsx)(s.a,{className:"text-20",children:"ltr"===d.direction?"arrow_back":"arrow_forward"}),Object(k.jsx)("span",{className:"mx-4 font-medium",children:"Orders"})]})}),Object(k.jsx)("div",{className:"flex flex-col min-w-0 items-center sm:items-start",children:Object(k.jsxs)(j.a.div,{initial:{x:-20,opacity:0},animate:{x:0,opacity:1,transition:{delay:.3}},children:[Object(k.jsx)(o.a,{className:"text-16 sm:text-20 truncate font-semibold",children:"Order ".concat(c.reference)}),Object(k.jsx)(o.a,{variant:"caption",className:"font-medium",children:"From ".concat(c.customer.firstName," ").concat(c.customer.lastName)})]})})]})}),contentToolbar:Object(k.jsxs)(l.a,{value:f,onChange:function(e,t){g(t)},indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto",classes:{root:"w-full h-64"},children:[Object(k.jsx)(i.a,{className:"h-64",label:"Order Details"}),Object(k.jsx)(i.a,{className:"h-64",label:"Products"}),Object(k.jsx)(i.a,{className:"h-64",label:"Invoice"})]}),content:c&&Object(k.jsxs)("div",{className:"p-16 sm:p-24 max-w-2xl w-full",children:[0===f&&Object(k.jsx)(M,{}),1===f&&Object(k.jsx)(V,{}),2===f&&Object(k.jsx)(P,{order:c})]}),innerScroll:!0})}))}}]);

Zerion Mini Shell 1.0