import{b as _,eh as C,a as S,ja as f,r as B,jQ as A,j as l,_ as E,Q as h,T as v}from"./index-def636a4.js";import{G as k}from"./GoBack-37987f0d.js";import{S as d}from"./SectionDivider-47a0b8b2.js";import{C as w}from"./CardContent-c8b2d0af.js";import"./Divider-6e68cefb.js";import"./dividerClasses-2b953c2a.js";import"./LoadingButton-621a0e8f.js";import"./index-f48c8aa0.js";import"./useMediaQuery-4304fb25.js";import"./useControlled-bd643819.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||"-"})]}),F=()=>{var a,o,r,t,p,c,m,u,b,x,j,g;const s=_(),{id:n}=C(),{clientLocation:{selectedData:e},system:{userAccessList:D}}=S(y=>f(y));return B.useEffect(()=>{s(A({id:n||""}))},[]),l.jsxs(l.Fragment,{children:[l.jsx(k,{is_goback:!0,go_back_url:"/pages/masters/client_location",title:`${e.name} (${e.code})`,showSaveButton:!1,loading:!1}),l.jsx(E,{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.customer)==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:((t=e==null?void 0:e.country)==null?void 0:t.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:((p=e==null?void 0:e.shipping_city)==null?void 0:p.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:((j=e==null?void 0:e.created_by)==null?void 0:j.username)||""}),l.jsx(i,{label:"Created On",value:(e==null?void 0:e.created_on)||""}),l.jsx(i,{label:"Modified By",value:((g=e==null?void 0:e.modified_by)==null?void 0:g.username)||""}),l.jsx(i,{label:"Modified On",value:(e==null?void 0:e.modified_on)||""})]})})})]})};export{F as default};
