1import{aE as h,j as e,G as o,F as p,dr as u,b2 as j}from"./index-DP1EdfVr.js";import{u as a}from"./Dashboard-BUbooKx9.js";import{T as x}from"./createClass-kVuj6DsW.js";import"./sea-tBcLZDPv.js";import"./Utils-DDhFVWMN.js";import"./moment-zH0z38ay.js";import"./enquiry-7aRAWRvx.js";import"./ReactMultiEmail-I0gguaAl.js";import"./react-select.browser.esm-Kz-Y4OXD.js";import"./BookingForm-C55p4zvW.js";import"./Validation-D7y-_ckL.js";import"./googlePlaces-CWBhVTko.js";import"./react-datepicker-BZLysaCR.js";import"./CustomFileViewer-B6KLT5vU.js";import"./temperature-Bhclty3g.js";/* empty css */import"./LogisticButton-BbcQDlnF.js";import"./MarginInput-C-UcGK4P.js";import"./Pagination-rYuQoB4V.js";import"./index-oZVluTNB.js";import"./Table-sAXoFruL.js";import"./CustomerContactDetail-3IaVK7uo.js";/* empty css */import"./CustomerKycForm-BVOwPjWC.js";/* empty css */import"./FileModal-BoaEYUJW.js";import"./ckeditor-Dhu7FPgn.js";import"./HtmlParser-Bbw_paQX.js";import"./ChangePassword-CvXofl_g.js";import"./CustomerDashboard-BeCPr4d4.js";function L({data:s}){const c=h(),l=(i,n,r)=>{i&&i.preventDefault&&i.preventDefault();const t=Date.now();if(n==="customerKyc"){const m={name:r==null?void 0:r.companyName,uuid:t,id:r==null?void 0:r.id,type:"cu",verified:"all"};c("/dashboard/customerKyc",{state:m})}else if(n==="emailSms"){const m={name:r==null?void 0:r.companyName,uuid:t,id:r==null?void 0:r.id};c("/dashboard/emailSmsSetting",{state:m})}else console.warn(`Unknown redirect type: ${n}`)},{moduleName:d}=a();return e.jsx("div",{className:" shipperConsigneeDetails my-3 p-0",children:(s==null?void 0:s.isPotentialCustomer)===1?e.jsxs("div",{className:"cborder",children:[e.jsx("h6",{children:"Potential Customer"}),e.jsxs("p",{children:[e.jsx("strong",{children:"Company"}),e.jsx("div",{children:s.pCustomerCompanyName})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Address:"}),e.jsx("div",{children:s.pCustomerCompanyAddress})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Contact Person:"}),e.jsx("div",{children:s.pCustomerCompanyContactPerson})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Contact Email:"}),e.jsx("div",{children:s.pCustomerCompanyContactEmail})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Contact Phone:"}),e.jsx("div",{children:s.pCustomerCompanyContactPhone})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Remarks:"}),e.jsx("div",{children:s.pRemarks})]})]}):s.customerKyc?e.jsxs("div",{className:"cborder w-full",children:[e.jsx("label",{className:"m-0 text-center",style:{backgroundColor:"#d1e8f8",color:"#fff",padding:"10px 10px",width:"100%"},children:"Customer"}),e.jsxs("div",{className:"d-flex flex-column align-items-start p-3",style:{gap:"10px"},children:[e.jsxs("div",{className:"d-flex",style:{gap:"10px"},children:[e.jsx("label",{children:"Company:"}),e.jsxs("div",{className:"d-flex",children:[e.jsx("span",{className:"mr-2",children:s.customerKyc.companyName}),d==="Customer Enquiries"&&e.jsxs(e.Fragment,{children:[(o("view","Customer KYC")||o("view-own","Customer KYC"))&&e.jsx(e.Fragment,{children:e.jsx("a",{className:"mx-2",style:{cursor:"pointer"},children:e.jsx(x,{title:"Go to Customer KYC",arrow:!0,children:e.jsx("span",{className:"badge badge-primary p-1",children:e.jsx(p,{className:"",icon:u,onClick:i=>{l(i,"customerKyc",s==null?void 0:s.customerKyc)}})})})})}),o("view","Email SMS Setting")||o("view-own","Email SMS Setting")?e.jsx(e.Fragment,{children:e.jsx("a",{className:"",style:{cursor:"pointer"},children:e.jsx(x,{title:"Go to Email SMS Setting",arrow:!0,children:e.jsx("span",{className:"badge badge-primary p-1",children:e.jsx(p,{className:"",icon:j,onClick:i=>{l(i,"emailSms",s==null?void 0:s.customerKyc)}})})})})}):null]})]})]}),e.jsxs("div",{className:"d-flex",style:{gap:"10px"},children:[e.jsx("strong",{children:"Address:"}),e.jsxs("div",{children:[s.customerKyc.cityId," , ",s.customerKyc.countryCode]})]}),e.jsxs("div",{className:"d-flex",style:{gap:"10px"},children:[e.jsx("strong",{children:"Website:"}),e.jsx("div",{children:s.customerKyc.companyWebsite})]})]})]}):null})}export{L as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.