PageSourceSearch

https://app.intoaec.ai/_next/static/chunks/38882.9afd8162af63cb97.js

js intoaec.ai collected 2026-10-04 04:56:26 UTC 7,672 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38882],{938882:function(e,l,i){i.r(l),i.d(l,{default:function(){return g}});var n=i(785893),o=i(95442),d=i(254675),t=i(729101),r=i(612698),a=i(380224),s=i(242600),c=i(513712),m=i(847884),u=i(974887),v=i(736153),f=i(595814),x=i(667294),h=i(567421);let j={borderRadius:"10px",overflow:"hidden",border:"1px solid #d1d1d1",height:"fit-content","& .MuiTableBody-root tr:last-of-type .MuiTableCell-root":{borderBottom:"none"}};function Z(e){var l,i,Z,p,q,g,I,b,E,T,F,L,N;let{selectedVendors:C}=e,R=(0,a.Z)(),{localizationValue:M}=(0,d.W)(),{t:w}=(0,h.$G)(),k=(0,x.useMemo)(()=>{if(M){var e;return null!==(e=(0,t.LY)(M,"CURRENCY","SYMBOL"))&&void 0!==e?e:""}return""},[M]);return(0,n.jsx)(o.Z,{className:"".concat(1===C.length?"col-7":2===C.length?"col-6":"col-5"," px-1"),sx:{"& .MuiTableCell-root":{fontSize:"0.8rem !important",fontWeight:"500  "}},children:(0,n.jsx)(s.Z,{sx:j,children:(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(m.Z,{sx:{backgroundColor:"primary.main","& .MuiTableCell-head":{color:"#FFFFFF",padding:"7px"},"& .MuiTableCell-root":{border:"1px solid #d1d1d1"}},children:(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(v.Z,{width:"50%",children:w("common.products")}),(null===(i=C[0])||void 0===i?void 0:null===(l=i.rfq)||void 0===l?void 0:l.rfqEstimateId)?(0,n.jsx)(v.Z,{width:"50%",align:"center",colSpan:4,children:w("common.estimate")}):(0,n.jsx)(v.Z,{width:"50%",align:"center",colSpan:4})]})}),(0,n.jsxs)(f.Z,{children:[(0,n.jsxs)(u.Z,{sx:{background:"#f5f5f5","& .MuiTableCell-root":{minHeight:"60px",padding:"13px 7px"}},children:[(0,n.jsx)(v.Z,{children:w("common.description")}),(0,n.jsx)(v.Z,{children:w("common.quantity")}),(null===(p=C[0])||void 0===p?void 0:null===(Z=p.rfq)||void 0===Z?void 0:Z.rfqEstimateId)&&(0,n.jsx)(v.Z,{children:w("common.rateUnit")}),(null===(g=C[0])||void 0===g?void 0:null===(q=g.rfq)||void 0===q?void 0:q.rfqEstimateId)&&(0,n.jsx)(v.Z,{children:w("common.profit")}),(null===(b=C[0])||void 0===b?void 0:null===(I=b.rfq)||void 0===I?void 0:I.rfqEstimateId)&&(0,n.jsx)(v.Z,{children:w("common.totalPrice")})]}),null==C?void 0:null===(E=C[0])||void 0===E?void 0:E.rfqLineItems.map((e,l)=>{var i,o,d,r,a,s;return(0,n.jsxs)(u.Z,{sx:{background:"#ffffff","& .MuiTableCell-root":{minHeight:"60px",padding:"16px"}},children:[(0,n.jsx)(v.Z,{children:null==e?void 0:e.rfqLineItemName}),(0,n.jsx)(v.Z,{children:null==e?void 0:e.rfqLineItemQuantity}),(null===(o=C[0])||void 0===o?void 0:null===(i=o.rfq)||void 0===i?void 0:i.rfqEstimateId)&&(0,n.jsx)(v.Z,{children:(0,t.Is)(M,(null==e?void 0:e.itemRateFromEstimate)*(null==e?void 0:e.rfqLineItemQuantity))}),(null===(r=C[0])||void 0===r?void 0:null===(d=r.rfq)||void 0===d?void 0:d.rfqEstimateId)&&(0,n.jsx)(v.Z,{children:(0,t.Is)(M,(null==e?void 0:e.itemTotalFromEstimate)-(null==e?void 0:e.itemRateFromEstimate)*(null==e?void 0:e.rfqLineItemQuantity))}),(null===(s=C[0])||void 0===s?void 0:null===(a=s.rfq)||void 0===a?void 0:a.rfqEstimateId)&&(0,n.jsx)(v.Z,{children:(0,t.Is)(M,(null==e?void 0:e.itemTotalFromEstimate)||0)})]},l)}),(null===(F=C[0])||void 0===F?void 0:null===(T=F.rfq)||void 0===T?void 0:T.rfqEstimateId)&&(0,n.jsxs)(u.Z,{sx:{background:"#ffffff","& .MuiTableCell-root":{minHeight:"60px",padding:"25px"}},children:[(0,n.jsx)(v.Z,{sx:{color:null==R?void 0:null===(L=R.palette)||void 0===L?void 0:L.primary.main},children:w("common.total")}),(0,n.jsx)(v.Z,{}),(0,n.jsx)(v.Z,{}),(0,n.jsx)(v.Z,{}),(0,n.jsx)(v.Z,{className:"fw-600 ",children:(0,n.jsx)("div",{children:"".concat(k," ").concat((0,t.Is)(M,null===(N=C[0])||void 0===N?void 0:N.rfqLineItems.reduce((e,l)=>e+(0,r.QV)(Number(null==l?void 0:l.itemTotalFromEstimate)||0),0)),"\n                        ")})})]})]})]})})})}let p=["#72EFAB","#FFF783","#F68378"];function q(e){let{selectedVendors:l}=e,i=(0,a.Z)(),{localizationValue:Z}=(0,d.W)(),{t:q}=(0,h.$G)(),g=(0,x.useMemo)(()=>{if(Z){var e;return null!==(e=(0,t.LY)(Z,"CURRENCY","SYMBOL"))&&void 0!==e?e:""}return""},[Z]);return(0,n.jsx)(o.Z,{className:"".concat(1===l.length?"col-5":2===l.length?"col-6":"col-7"," d-flex row"),sx:{"& .MuiTableCell-root":{fontSize:"0.8rem !important",fontWeight:"500  "}},children:null==l?void 0:l.map((e,d)=>{var a,x,h,I,b,E,T,F,L,N,C,R;return(0,n.jsx)(o.Z,{className:"".concat(1===l.length?"col-12":2===l.length?"col-6":"col-4"," px-1"),children:(0,n.jsx)(s.Z,{sx:j,children:(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(m.Z,{sx:{backgroundColor:null!==(N=p[d])&&void 0!==N?N:"#72EFAB","& .MuiTableCell-head":{color:"#000",padding:"7px"},"& .MuiTableCell-root":{border:"1px solid #d1d1d1"}},children:(0,n.jsx)(u.Z,{children:(0,n.jsx)(v.Z,{align:"center",colSpan:(null===(x=l[0])||void 0===x?void 0:null===(a=x.rfq)||void 0===a?void 0:a.rfqEstimateId)?3:2,children:null==e?void 0:e.receiverName})})}),(0,n.jsxs)(f.Z,{children:[(0,n.jsxs)(u.Z,{sx:{backgroundColor:null!==(C=p[d])&&void 0!==C?C:"#72EFAB","& .MuiTableCell-root":{minHeight:"60px",padding:"13px 7px",fontSize:"0.85rem"}},children:[(0,n.jsx)(v.Z,{width:"30%",align:"center",children:q("common.rateUnit")}),(0,n.jsx)(v.Z,{width:"35%",align:"center",children:q("common.totalPrice")}),(null===(I=l[0])||void 0===I?void 0:null===(h=I.rfq)||void 0===h?void 0:h.rfqEstimateId)&&(0,n.jsx)(v.Z,{align:"center",children:"%"})]}),(null!==(R=null==e?void 0:e.vendorRfqLineItems)&&void 0!==R?R:[]).map((i,o)=>{var d,r,a;let s=null==e?void 0:null===(d=e.rfqLineItems)||void 0===d?void 0:d.find(e=>e.rfqLineItemName===i.vendorRfqLineItemName);return(0,n.jsxs)(u.Z,{sx:{background:"#ffffff","& .MuiTableCell-root":{minHeight:"60px"}},children:[(0,n.jsx)(v.Z,{width:"30%",align:"center",children:(0,t.Is)(Z,(null==i?void 0:i.vendorRfqLineItemTotal)/(null==i?void 0:i.vendorRfqLineItemQuantity))}),(0,n.jsx)(v.Z,{width:"30%",align:"center",children:(0,t.Is)(Z,null==i?void 0:i.vendorRfqLineItemTotal)}),(null===(a=l[0])||void 0===a?void 0:null===(r=a.rfq)||void 0===r?void 0:r.rfqEstimateId)&&(0,n.jsxs)(v.Z,{style:{color:Number(null==s?void 0:s.itemTotalFromEstimate)-Number(null==i?void 0:i.vendorRfqLineItemTotal)<0?"red":"#2ed47a"},width:"30%",align:"center",children:["".concat(((Number(null==s?void 0:s.itemTotalFromEstimate)-Number(null==i?void 0:i.vendorRfqLineItemTotal))/Number(null==s?void 0:s.itemTotalFromEstimate)*100).toFixed(2),"%"),"(".concat(g," ").concat((0,t.Is)(Z,Number(null==s?void 0:s.itemTotalFromEstimate)-Number(null==i?void 0:i.vendorRfqLineItemTotal)),")")]})]},o)}),(0,n.jsxs)(u.Z,{sx:{background:"#ffffff","& .MuiTableCell-root":{minHeight:"60px",padding:"25px"}},children:[(0,n.jsx)(v.Z,{align:"center",sx:{color:null==i?void 0:null===(b=i.palette)||void 0===b?void 0:b.primary.main},children:q("common.total")}),(0,n.jsx)(v.Z,{align:"center",className:"fw-600 ",children:"".concat(g).concat((0,t.Is)(Z,null==e?void 0:e.vendorRfqLineItems.reduce((e,l)=>e+(0,r.QV)(Number(null==l?void 0:l.vendorRfqLineItemTotal)||0),0)),"\n                        ")}),(null===(T=l[0])||void 0===T?void 0:null===(E=T.rfq)||void 0===E?void 0:E.rfqEstimateId)&&(0,n.jsxs)(v.Z,{align:"center",children:[(((null===(F=l[0])||void 0===F?void 0:F.rfqLineItems.reduce((e,l)=>e+(Number(null==l?void 0:l.itemTotalFromEstimate)||0),0))-(null==e?void 0:e.vendorRfqLineItems.reduce((e,l)=>e+(Number(null==l?void 0:l.vendorRfqLineItemTotal)||0),0)))/(null===(L=l[0])||void 0===L?void 0:L.rfqLineItems.reduce((e,l)=>e+(Number(null==l?void 0:l.itemTotalFromEstimate)||0),0))*100).toFixed(2),"%"]})]})]})]})})},d)})})}var g=e=>{let{selectedVendors:l}=e;return(0,n.jsx)(o.Z,{sx:{width:"100%",minWidth:0},children:(0,n.jsxs)(o.Z,{className:"d-flex row",children:[(0,n.jsx)(Z,{selectedVendors:l}),(0,n.jsx)(q,{selectedVendors:l})]})})}}}]);

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.