1import{j as e,aP as l,r as p,c,W as x,bk as f}from"./index-BYjmYzu-.js";import{s as n,N as j}from"./new_vendor_customer-2jaHrB49.js";import{C as i}from"./col-DSokC5oO.js";import{M as C}from"./modal_component-CgKrFsb7.js";import{M as h}from"./modal_header-su8lU-Gk.js";import{T as g}from"./tab_components-B8bQccEp.js";import{I as y}from"./infinte_scroll_container-B6ZGJA3m.js";import{P as w,I as N}from"./common_card_components-uRdztIn7.js";import{g as M}from"./utils-BZTh1pv3.js";import{u as d}from"./index-DaqPscqA.js";import{L as V}from"./index-Cyc1eiiQ.js";import{C as P}from"./common_page-Bxr-oQPy.js";import{a as S}from"./index-DAkkRkhc.js";import"./index-BNQX9KrA.js";import"./DialogWrap-BcWh8mEF.js";import"./Portal-BnIU9h3K.js";import"./getScrollBarSize-BX5bDlpW.js";import"./useId-CCfbXMy0.js";import"./format_date_utils-BUOZNjAG.js";import"./index-CKmpMa3z.js";import"./react-number-format.es-HDPTMfGw.js";import"./form_utils-BRD3em_d.js";import"./constants-DWya29Vt.js";const k=()=>{const o=[{title:"NAME",size:14,key:"title"},{title:"DUE AMOUNT",size:10,key:"amount"}];return e.jsx(l,{gutter:0,align:"middle",className:n.headerRow,children:o.map(s=>e.jsx(i,{span:s.size,children:e.jsx("span",{className:n.listHeader,children:s.title})},s.key))})};function B({item:o}){const{display_name:s,pending_amount:t,phone:r}=o;return e.jsx("div",{className:n.cardContainer,children:e.jsxs(l,{gutter:0,align:"middle",children:[e.jsx(i,{span:14,children:e.jsx(w,{title:s,phone:r})}),e.jsx(i,{span:10,children:e.jsx(N,{title:M(t)})})]})})}const I=()=>{const{buyers:o}=d("");return e.jsx(V,{split:!0,rowKey:s=>s.uuid,dataSource:o,renderItem:s=>e.jsx(B,{item:s})})};function L(){const{isLoading:o}=S(),{buyers:s,isLoading:t}=d(""),[r,a]=p.useState(!1);if(t||o)return e.jsx(c,{showText:!1});const m=(s==null?void 0:s.length)||0,u=()=>e.jsx(h,{title:"Add New Customer",showBackButton:!1,onClose:()=>{a(!1)}});return e.jsx(P,{children:e.jsxs(e.Fragment,{children:[r&&e.jsx(C,{Component:j,Header:u,onSuccess:()=>{a(!1)}}),e.jsx(g,{dataTitle:`${m} ${f("Customer",m)}`,showDateValue:!1,dataValue:void 0,ActionComponents:()=>e.jsx(x,{size:"medium",onClick:()=>{a(!0)},children:"+ ADD"})}),e.jsx(k,{}),e.jsx(y,{loadMore:()=>{},current_page:1,PageComponent:I})]})})}L.displayName="VendorCustomers";export{L as Component};
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.