PageSourceSearch

https://doors.indiassetz.com/static/js/4211.38b901d5.chunk.js

js indiassetz.com collected 2026-10-02 06:44:07 UTC 10,119 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkvaluation_react||=[]).push([[4211],{39331(e,t,o){o.d(t,{A:()=>i.A});var i=o(12127)},92078(e,t,o){const i=(0,o(62815).A)({amount:{fontSize:"24px !important",fontWeight:"700 !important"},box:{"& h1":{color:"#0A3A67",fontSize:"1rem",fontWeight:"500",marginBottom:".5rem"},"& h2":{color:"rgba(10, 58, 103, 0.60)",fontSize:"14px",fontStyle:"italic",fontWeight:"400"},"@media (max-width: 1024px)":{margin:"1rem"},border:"1px solid rgba(10, 58, 103, 0.15)",borderRadius:"30px",boxShadow:"2px 2px 16px 0px rgba(10, 58, 103, 0.12)",margin:"1rem 0",padding:"1.5rem"},card:{border:"1px solid rgba(167, 130, 149, 0.15)",borderRadius:"30px",boxShadow:"2px 2px 16px 0px rgba(10, 58, 103, 0.12)",cursor:"pointer",flex:1,padding:"1.5rem"},chip:{background:"rgba(10, 58, 103, 0.05)",border:"1px solid rgba(10, 58, 103, 0.15) !important",padding:"6px 4px !important"},main:{"@media (max-width: 1024px)":{padding:"24px 0"},"@media (min-width: 1440px)":{margin:"0 auto",width:"1123px"},background:"#fff",padding:"24px"},overlay:{background:"rgba(0,0,0,0.5)",borderRadius:"30px",height:"100%",left:0,position:"absolute",top:0,width:"100%"},overlayText:{color:"white",fontSize:"1.3rem !important",fontStyle:"italic",fontWeight:"400",left:"40%",padding:"6px 1rem",position:"absolute",top:"40%",zIndex:5},title:{fontSize:"14px",fontWeight:"400"},today:{color:"#60BD59",fontSize:"12px",fontWeight:"400"},todayBox:{alignItems:"center",background:"rgba(96, 189, 89, 0.10)",borderRadius:"50px",display:"flex",gap:"6px",justifyContent:"space-between",padding:"4px 16px"},type:{fontSize:"1rem",fontWeight:"500"}});o.d(t,["A",0,i])},94211(e,t,o){o.r(t),o.d(t,{default:()=>A});var i=o(9950),n=o(5726),a=o(28429),d=o(8321),l=o(53011),r=o(39331),s=o(82053),c=o(60899),u=o(74745),m=o(69634),v=o(92078),x=o(44414);function p(){const e=(0,n.wA)(),t=(0,v.A)(),{filters:o}=(0,n.d4)(e=>e.vender),[a,d]=(0,i.useState)(0),[r,p]=(0,i.useState)(0),[g,h]=(0,i.useState)(0),[f,b]=(0,i.useState)(0),[y,A]=(0,i.useState)(0);(0,i.useEffect)(()=>{D()},[]);const D=async()=>{var t,o,i,n,a;const l=await e((0,m.PS)()),r=(null===l||void 0===l||null===(t=l.find(e=>"Bengaluru"===(null===e||void 0===e?void 0:e.city)))||void 0===t?void 0:t.count)||0,s=(null===l||void 0===l||null===(o=l.find(e=>"Mumbai"===(null===e||void 0===e?void 0:e.city)))||void 0===o?void 0:o.count)||0,c=(null===l||void 0===l||null===(i=l.find(e=>"Hyderabad"===(null===e||void 0===e?void 0:e.city)))||void 0===i?void 0:i.count)||0,u=(null===l||void 0===l||null===(n=l.find(e=>"Delhi - NCR"===(null===e||void 0===e?void 0:e.city)))||void 0===n?void 0:n.count)||0,v=(null===l||void 0===l||null===(a=l.find(e=>"Chennai"===(null===e||void 0===e?void 0:e.city)))||void 0===a?void 0:a.count)||0;d(r),p(u),h(s),b(c),A(v)},C=[{color:"#427D9D",count:a||0,title:"Bengaluru"},{color:"#704264",count:r||0,title:"Delhi - NCR"},{color:"#874CCC",count:g||0,title:"Mumbai"},{color:"#135D66",count:f||0,title:"Hyderabad"},{color:"#AF8260",count:y||0,title:"Chennai"}];return(0,x.jsx)(l.A,{className:t.box,sx:{backgroundColor:"#fff"},children:(0,x.jsxs)(l.A,{sx:{marginTop:"0.7rem"},children:[(0,x.jsx)(s.A,{sx:{color:"#0A3A67",fontWeight:"500",marginRight:".5rem"},children:"Vendors by Branch"}),(0,x.jsx)(s.A,{variant:"h2",children:"Insights of Vendors through different branch."}),(0,x.jsx)(c.Ay,{container:!0,sx:{alignItems:"center",justifyContent:"space-around",marginTop:{lg:"2rem",xs:".5rem"}},children:null===C||void 0===C?void 0:C.map(i=>(0,x.jsx)(c.Ay,{item:!0,lg:2.2,sm:5.8,xs:12,sx:{alignItems:"center",marginBottom:{lg:0,xs:"1rem"}},children:(0,x.jsxs)(l.A,{className:t.card,sx:{border:o.branch===i.title?"1px solid":"none",borderColor:i.color,padding:{lg:"15px"}},onClick:()=>{o.branch===i.title?e(m.ms.setFilters({branch:void 0})):e(m.ms.setFilters({branch:null===i||void 0===i?void 0:i.title}))},children:[(0,x.jsx)(s.A,{className:t.title,sx:{color:null===i||void 0===i?void 0:i.color,fontSize:{lg:"0.8rem",xs:"1rem"}},children:null===i||void 0===i?void 0:i.title}),(0,x.jsx)(u.A,{sx:{color:null===i||void 0===i?void 0:i.color,margin:".5rem 0"}}),(0,x.jsx)(l.A,{sx:{alignItems:"center",display:"flex",gap:{lg:1,xs:2}},children:(0,x.jsx)(s.A,{sx:{color:null===i||void 0===i?void 0:i.color},className:t.amount,children:null===i||void 0===i?void 0:i.count})}),(0,x.jsx)(l.A,{sx:{alignItems:"center",display:"flex",justifyContent:"space-between",marginTop:"1rem"},children:(0,x.jsx)(l.A,{sx:{alignItems:"center",display:"flex",flexDirection:{lg:"column",xs:"row"},gap:{lg:1,xs:2}}})})]},null===i||void 0===i?void 0:i.title)},i.name))})]})})}var g=o(59051),h=o.n(g),f=o(73445),b=o(6030);const y=(0,o(62815).A)({main:{"@media (max-width: 767px)":{padding:"24px 12px"},"@media (min-width: 1440px)":{margin:"0 auto",width:"1123px"},backgroundPositionY:"top",backgroundSize:"contain",padding:"24px 54px"}});function A(){const e=y(),t=(0,n.wA)(),o=(0,a.Zp)(),s=(0,a.zy)(),{pathname:c}=(0,a.zy)(),u=(0,n.d4)(e=>{var t;return null===(t=e.vender)||void 0===t?void 0:t.isLoading}),{filters:v,currentTablePage:g,rowPerPage:A,addSelectedVendor:D}=(0,n.d4)(e=>e.vender),[C,S]=(0,i.useState)(0),[T,j]=(0,i.useState)([]),[R,_]=(0,i.useState)(g||0),[w,E]=(0,i.useState)(A||10),[N,I]=(0,i.useState)(!1),z=new URLSearchParams(s.search),B=(z.get("clientId"),z.get("orderId"),z.get("add-vendor")),F=(z.get("tab"),z.get("transType"));(0,i.useEffect)(()=>{!async function(e,o,i){var n,a,d;const l={branch:null===i||void 0===i?void 0:i.branch,createdFromDate:null===i||void 0===i?void 0:i.createdFromDate,createdToDate:null===i||void 0===i?void 0:i.createdToDate,leadSource:null===i||void 0===i?void 0:i.leadSource,limit:o,orderCategory:null===i||void 0===i?void 0:i.orderCategory,page:e,rwm:null===i||void 0===i?void 0:i.rwm,sortAt:null===i||void 0===i?void 0:i.sortAt,sortBy:null===i||void 0===i?void 0:i.sortBy,updatedFromDate:null===i||void 0===i?void 0:i.updatedFromDate,updatedToDate:null===i||void 0===i?void 0:i.updatedToDate};let r=await t((0,m.Nu)(l));S((null===r||void 0===r||null===(n=r[0])||void 0===n?void 0:n.total_vendors)||0);const s=null===r||void 0===r||null===(a=r[0])||void 0===a||null===(d=a.vendors)||void 0===d?void 0:d.map(e=>({branch:(null===e||void 0===e?void 0:e.branch)||"-",category:(null===e||void 0===e?void 0:e.category)||"-",company_name:(null===e||void 0===e?void 0:e.company_name)||"-",createdBy:(null===e||void 0===e?void 0:e.created_by_emp_name)||"-",createdDateTime:null!==e&&void 0!==e&&e.created_at?h()(null===e||void 0===e?void 0:e.created_at).format("DD/MM/YYYY hh:mm A"):"-",id:(null===e||void 0===e?void 0:e.vendor_user_id
1)||"-",mobile_no:(null===e||void 0===e?void 0:e.mobile_no)||"-",vender_id:(null===e||void 0===e?void 0:e.vendor_id)||"-"}));j(s||[])}(R,w,v)},[R,w,v]);const P=[{name:f.pX.BRANCH,value:null===v||void 0===v?void 0:v.branch},{name:f.pX.ORDER_CATEGORY,value:null===v||void 0===v?void 0:v.orderCategory}],W=e=>{const{BRANCH:o,CREATED_FROM_DATE:i,CREATED_TO_DATE:n,RWM:a,RM:d,SORT_AT:l,SORT_BY:r,UPDATED_FROM_DATE:s,UPDATED_TO_DATE:c,PROPERTY_TYPE:u,LEAD_SOURCE:x,ORDER_CATEGORY:p}=f.pX,g={[o]:{stateKey:"branch"},[i]:{stateKey:"createdFromDate"},[n]:{stateKey:"createdToDate"},[x]:{stateKey:"leadSource"},[p]:{stateKey:"orderCategory"},[u]:{stateKey:"propertyType"},[d]:{stateKey:"rm"},[a]:{stateKey:"rwm"},[l]:{stateKey:"sortAt"},[r]:{stateKey:"sortBy"},[s]:{stateKey:"updatedFromDate"},[c]:{stateKey:"updatedToDate"}};if(g[e]){const{stateKey:o}=g[e];if(o){const e={...v,[o]:""};t(m.ms.setFilters(e))}}};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.A,{className:e.main,sx:{backgroundPositionY:"top",backgroundSize:"contain"},children:(0,x.jsxs)(l.A,{className:e.customerStyles,children:[(0,x.jsx)(b.Y9,{}),(0,x.jsx)(b.k3,{title:"Vendors"}),(0,x.jsx)(p,{}),P.map((e,t)=>{var o;return(0,x.jsxs)(x.Fragment,{children:[e.value&&(0,x.jsx)(b.$7,{label:e.name,value:e.value,onDelete:()=>W(e.name)},t),e.name===f.pX.DATE&&(null===(o=e.types)||void 0===o?void 0:o.map(e=>(0,x.jsx)(b.$7,{label:e.name,value:e.value,onDelete:()=>W(e.name)},e.name)))]})}),(0,x.jsxs)(l.A,{display:"flex",justifyContent:"flex-end",alignItems:"center",sx:{"@media (max-width:768px)":{alignItems:"flex-start",flexDirection:"column-reverse"}},children:[(0,x.jsx)(l.A,{display:"flex",justifyContent:"flex-end",alignItems:"center",flexWrap:"wrap",children:(0,x.jsx)(b.K0,{label:"Filter",icon:(0,x.jsx)(d.A,{}),onClick:I,sx:{height:"40px"}})}),N&&(0,x.jsx)(r.A,{open:N,handleClose:()=>I(!1),filters:v,filterLabelsAndValues:P,handleClearAll:async()=>{t(m.ms.setFilters({...m.lJ}))},handleConfirm:e=>{t(m.ms.setFilters({...e}))}})]}),(0,x.jsx)(b.zh,{rows:T,columns:[{field:"vender_id",flex:1,headerName:"Vendor Id",minWidth:220,sortable:!1},{field:"company_name",flex:1,headerName:"Vendor Name",minWidth:170,sortable:!1},{field:"mobile_no",flex:1,headerName:"Contact No.",minWidth:100,sortable:!1},{field:"category",flex:1,headerName:"Vendor Type",minWidth:150,sortable:!1},{field:"branch",flex:1,headerName:"Branch",minWidth:90,sortable:!1},{field:"createdBy",flex:1,headerName:"Created By",minWidth:100,sortable:!1},{field:"createdDateTime",flex:1,headerName:"Created Date & Time",minWidth:180,sortable:!1}],rowCount:C,page:R,onPageChange:_,onRowClick:e=>{t(m.ms.setCurrentTablePage(R)),t(m.ms.setRowPerPage(w)),B?(e=>{var i;const n=[["clientId",z.get("clientId")],["orderId",z.get("orderId")],["add-vendor",z.get("add-vendor")],["tab",z.get("tab")]];"Amount Received from Vendor"===(null===n||void 0===n||null===(i=n[3])||void 0===i?void 0:i[1])?t(m.ms.addSelectedReceivableVendor(e)):t(m.ms.addSelectedVendor(e));const a=n.filter(e=>{let[t,o]=e;return null!==o}).map(e=>{let[t,o]=e;return`${t}=${encodeURIComponent(o)}`}).join("&");o(`/${F}/add-payment-received-from-client-yards?${a}`)})(null===e||void 0===e?void 0:e.id):o(`/vendor-details/${null===e||void 0===e?void 0:e.id}`)},headerHeight:76,headerBorderRadius:"20px 20px 0px 0px",pageSize:w,onRowsPerPageChange:E})]})}),u&&(0,x.jsx)(b.aH,{})]})}},8321(e,t,o){var i=o(23235),n=o(44414);const a=(0,i.A)((0,n.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");o.d(t,["A",0,a])}}]);

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.