import{b as _,ek as S,a as f,n8 as B,r as C,x7 as A,j as l,_ as k,P as h,T as v}from"./index-d2b25495.js";import{G as E}from"./GoBack-f6710d2c.js";import{S as d}from"./SectionDivider-859b9192.js";import{C as w}from"./CardContent-be810fe0.js";import"./Divider-29971892.js";import"./dividerClasses-02a44d89.js";import"./LoadingButton-c8e88148.js";import"./index-38f860bc.js";import"./useMediaQuery-b1fbc166.js";import"./useControlled-8d737f13.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:D}}=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(k,{className:"p-6 shadow-xl rounded-2xl",children:l.jsx(w,{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};
