import{b as _,eh as S,a as f,iM as B,r as C,wR as A,j as l,_ as w,Q as h,T as v}from"./index-76d4793e.js";import{G as E}from"./GoBack-71b56a16.js";import{S as d}from"./SectionDivider-538443ec.js";import{C as M}from"./CardContent-2f10f9e9.js";import"./Divider-3f770145.js";import"./dividerClasses-45958eb8.js";import"./LoadingButton-89ba2db7.js";import"./index-ecea5cfc.js";import"./useMediaQuery-8cb39c65.js";import"./useControlled-e03384de.js";import"./composeClasses-b42b2e69.js";const i=({label:s,value:n})=>l.jsxs(h,{size:{xs:12,md:6,lg:4},px:2,children:[l.jsx(v,{variant:"body2",color:"text.secondary",children:s}),l.jsx(v,{variant:"body1",color:"text.primary",fontWeight:500,children:n||"-"})]}),I=()=>{var a,o,r,p,t,c,m,u,b,x,g,j;const s=_(),{id:n}=S(),{location:{selectedData:e},system:{userAccessList:k}}=f(y=>B(y));return C.useEffect(()=>{s(A({id:n||""}))},[]),l.jsxs(l.Fragment,{children:[l.jsx(E,{is_goback:!0,go_back_url:"/pages/masters/locations",title:`${e.name} (${e.code})`,showSaveButton:!1,loading:!1}),l.jsx(w,{className:"p-6 shadow-xl rounded-2xl",children:l.jsx(M,{children:l.jsxs(h,{container:!0,spacing:3,children:[l.jsx(i,{label:"Company",value:((a=e==null?void 0:e.company)==null?void 0:a.name)||""}),l.jsx(i,{label:"Email",value:e.email||""}),l.jsx(i,{label:"Mobile",value:e.mobile||""}),l.jsx(i,{label:"WhatsApp",value:e.whatsapp_number||""}),l.jsx(i,{label:"Address",value:e.address||""}),l.jsx(i,{label:"City",value:((o=e==null?void 0:e.city)==null?void 0:o.name)||""}),l.jsx(i,{label:"State",value:((r=e==null?void 0:e.state)==null?void 0:r.name)||""}),l.jsx(i,{label:"Country",value:((p=e==null?void 0:e.country)==null?void 0:p.name)||""}),l.jsx(i,{label:"Pincode",value:(e==null?void 0:e.pincode)||""}),l.jsx(d,{title:"Shipping Address"}),l.jsx(i,{label:"Shipping Address",value:e.shipping_address||""}),l.jsx(i,{label:"Shipping Email",value:e.shipping_email||""}),l.jsx(i,{label:"Shipping Mobile",value:e.shipping_mobile||""}),l.jsx(i,{label:"Shipping City",value:((t=e==null?void 0:e.shipping_city)==null?void 0:t.name)||""}),l.jsx(i,{label:"Shipping State",value:((c=e==null?void 0:e.shipping_state)==null?void 0:c.name)||""}),l.jsx(i,{label:"Shipping Country",value:((m=e==null?void 0:e.shipping_country)==null?void 0:m.name)||""}),l.jsx(i,{label:"Shipping Pincode",value:e.shipping_pincode||""}),l.jsx(d,{title:"Billing Address"}),l.jsx(i,{label:"Billing Address",value:e.billing_address||""}),l.jsx(i,{label:"Billing Email",value:e.billing_email||""}),l.jsx(i,{label:"Billing Mobile",value:e.billing_mobile||""}),l.jsx(i,{label:"Billing City",value:((u=e==null?void 0:e.billing_city)==null?void 0:u.name)||""}),l.jsx(i,{label:"Billing State",value:((b=e==null?void 0:e.billing_state)==null?void 0:b.name)||""}),l.jsx(i,{label:"Billing Country",value:((x=e==null?void 0:e.billing_country)==null?void 0:x.name)||""}),l.jsx(i,{label:"Billing Pincode",value:e.billing_pincode||""}),l.jsx(i,{label:"Remarks",value:e.remarks||""}),l.jsx(i,{label:"Created By",value:((g=e==null?void 0:e.created_by)==null?void 0:g.username)||""}),l.jsx(i,{label:"Created On",value:(e==null?void 0:e.created_on)||""}),l.jsx(i,{label:"Modified By",value:((j=e==null?void 0:e.modified_by)==null?void 0:j.username)||""}),l.jsx(i,{label:"Modified On",value:(e==null?void 0:e.modified_on)||""})]})})})]})};export{I as default};
