PageSourceSearch

https://dashboard.velocity.in/assets/discrepancy_table-Dd0u9BW-.js

js velocity.in collected 2026-10-01 11:36:47 UTC 27,016 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dispute_drawer-F4hiz0Gw.js","assets/index-BYjmYzu-.js","assets/index-BoBYvmN_.css","assets/index-ByjQY1tN.js","assets/index-CZNe-HiK.js","assets/Portal-BnIU9h3K.js","assets/getScrollBarSize-BX5bDlpW.js","assets/index-BblLubfX.css","assets/index-Cy7Vl5oX.js","assets/CloseIcon-DqZkkrpQ.js","assets/index-CKFX8CyF.css","assets/shipment_image_item-BbHhgTrx.js","assets/utils-BZTh1pv3.js","assets/react-number-format.es-HDPTMfGw.js","assets/CloseOutlined-Dj9ziNvG.js","assets/index-yNgqIjMK.js","assets/DeleteOutlined-DFutYCzo.js","assets/DownloadOutlined-DTidZHln.js","assets/progress-CulXLWa9.js","assets/shipment_image_item-Tn0OY0gv.css","assets/index-DaOxzf_F.js","assets/Skeleton-DbxtqGSl.js","assets/ExclamationCircleOutlined-htogdyLm.js","assets/CheckCircleOutlined-D9_Yb30M.js","assets/index-BT5g8ZbQ.js","assets/index-EFx6b1xQ.js","assets/index-Dn8Hzhoo.js","assets/index-D6c-D_1p.js","assets/dropdown-CVdns1v5.js","assets/Dropdown-Dy0ThnTD.js","assets/isNumeric-OYazz19Q.js","assets/CloseCircleFilled-CihxIFhu.js","assets/DownOutlined-CNOnAf1g.js","assets/index-Danh44rx.css","assets/table_loader-1S6nfwbj.js","assets/table_loader-BuHEt9ox.css","assets/Warning-BoFj_C8a.js","assets/mixpanel_utils-BIdpoJGP.js","assets/humbleicons_ai-mDn1omRQ.js","assets/modal_header-su8lU-Gk.js","assets/humbleicons_ai-p1bkHfAz.css","assets/product_guide_activity_provider-UtFB426n.js","assets/firebase-CW9I-1vg.js","assets/user_guide_banner-B4om9wXq.js","assets/mixpanel-Boxg7-FG.js","assets/ClockCircleOutlined-C5uPcbgy.js","assets/user_guide_banner-BE1dec_2.css","assets/index-CneRmXqw.js","assets/PlusOutlined-ByZyTB3m.js","assets/Skeleton-B0jWT2qh.js","assets/Keyframes-CEQCE7hz.js","assets/index-C3AvJ9vn.css","assets/UpOutlined--pJ7qTde.js","assets/col-DSokC5oO.js","assets/form_utils-BRD3em_d.js","assets/dispute_drawer-BZfu4pXq.css","assets/timeline_drawer-D83Au9yV.js","assets/package_images-DYcTQD86.js","assets/modal_component-CgKrFsb7.js","assets/index-BNQX9KrA.js","assets/DialogWrap-BcWh8mEF.js","assets/useId-CCfbXMy0.js","assets/InfoCircleOutlined-DObI79rA.js","assets/LeftOutlined-Bj9cZ122.js","assets/RightOutlined-nkDSTxE1.js","assets/package_images-CMZq0Kym.css","assets/SyncOutlined-B6P8b_PL.js","assets/Timeline-BEefx6d8.js","assets/Table-B5SVGtym.js","assets/index-BG2GygdK.js","assets/css-CG3sgCP8.js","assets/isEqual-DutTMpuB.js","assets/index-DWTh2oxh.js","assets/index-C3z6_BZa.js","assets/constant-BjqaakFy.js","assets/MoneyBillLine-DnUa9uMh.js","assets/InvoiceLine-_87NgkCt.js","assets/BillLine-lEZAu1jX.js","assets/WalletOutlined-_1SGXT6X.js","assets/utils-k_PfN3YJ.js","assets/disable_tooltips-CFCTnA_K.js","assets/DownloadOutlined-Cpoeis49.js","assets/index-BEyOJi_b.css","assets/timeline_drawer-CAJaw6Bw.css","assets/escalate_drawer-PU7B86Ud.js","assets/escalate_drawer-8S4axswC.css"])))=>i.map(i=>d[i]);
2import{e1 as Se,r as O,j as e,W as He,iI as Ve,a4 as Ae,a1 as We,bi as K,aC as Oe,bj as P,bk as Ue,aP as qe,T as H,C as Qe,bd as a,ay as je,bS as z,ak as ie,dH as Ye,gP as Ge,ew as Je,fq as Xe,fp as Pe,aT as Ze,bW as Y,fc as et,iJ as tt,bv as oe,b$ as st,iK as at,c0 as nt,iL as it,cg as fe,c as lt,dL as ot,ch as ct,aA as _e,bh as ut,hz as Q,by as ke,gw as pt}from"./index-BYjmYzu-.js";import{T as $e}from"./Table-B5SVGtym.js";import{d as ce}from"./index-BT5g8ZbQ.js";import{W as le}from"./index-DaOxzf_F.js";import{D as Ee}from"./dropdown-CVdns1v5.js";import{R as rt}from"./CloseCircleFilled-CihxIFhu.js";import{R as Re}from"./DownOutlined-CNOnAf1g.js";import{D as ht}from"./index-DWTh2oxh.js";import{R as mt}from"./CheckCircleOutlined-D9_Yb30M.js";import{R as dt}from"./SyncOutlined-B6P8b_PL.js";import{R as Ce}from"./InfoCircleOutlined-DObI79rA.js";import{R as _t}from"./ExclamationCircleOutlined-htogdyLm.js";const xt="_acceptButton_1fpo6_10",gt={acceptButton:xt},bt=({discrepancyId:s})=>{const{reloadWeightDiscrepancies:l}=Se(),[p,r]=O.useState(!1),n=async()=>{r(!0);const{ok:c}=await Ve({id:s});c?(Ae("Weight discrepancy accepted successfully"),l()):We("Failed to accept weight discrepancy"),r(!1)};return e.jsx(He,{size:"small",loading:p,onClick:n,className:gt.acceptButton,children:"ACCEPT"})},jt="_moreProdlink_1oovo_10",yt={moreProdlink:jt},wt=({items:s})=>{const{name:l,quantity:p,external_id:r,hsn:n,sku:c}=(s==null?void 0:s[0])||{},d=c||r;return e.jsxs(e.Fragment,{children:[e.jsx(K,{children:Oe(l,27)}),e.jsxs(P,{children:["Qty ",p]}),e.jsxs(P,{copyable:d?{text:d}:void 0,children:["SKU: ",d]}),e.jsxs(P,{copyable:n?{text:n}:void 0,children:["HSN: ",n||"NA"]})]})}
2,ft=({items:s})=>{const l=(s==null?void 0:s.length)-1;return!l||l<=0?e.jsx(e.Fragment,{}):e.jsxs(P,{className:yt.moreProdlink,children:["+",l," More ",Ue("Product",l)]})},Ct="_popoverContent_s5xds_10",St="_headerText_s5xds_13",vt="_itemDetails_s5xds_21",ne={popoverContent:Ct,headerText:St,itemDetails:vt},Dt=({items:s})=>{const l=[{dataIndex:"number",width:30,render:(r,n,c)=>e.jsxs(H.Text,{type:"secondary",children:[c+1,"."]})},{dataIndex:"name",render:(r,n)=>e.jsxs(Qe.Compact,{direction:"vertical",children:[e.jsx(H.Text,{className:ne.itemName,children:Oe(r,50)}),e.jsx(H.Text,{type:"secondary",className:ne.itemDetails,children:`Qty ${n.quantity}, SKU: ${n.sku||n.external_id||""}, HSN: ${n.hsn_code||""}`})]})}],p=s==null?void 0:s.map((r,n)=>({key:`item_${n+1}`,...r}));return e.jsxs(e.Fragment,{children:[e.jsx(qe,{align:"top",justify:"space-between",wrap:!1,className:ne.popoverContent,children:e.jsx(H.Text,{className:ne.headerText,children:"Items"})}),e.jsx($e,{columns:l,dataSource:p,pagination:!1,scroll:{x:!0},showHeader:!1,rowKey:"id",size:"small",className:ne.table})]})},Nt="_container_10ruz_10",It={container:Nt},Ft=({status:s})=>{if(!Object.keys(le).includes(s))return e.jsx("div",{children:s});const{label:l,textColor:p,bgColor:r}=le[s];return e.jsx(a,{className:It.container,style:{backgroundColor:r},children:e.jsx("p",{style:{color:p},children:l})})},Hs=({status:s})=>{if(!Object.keys(le).includes(s))return e.jsx("div",{children:s});const{label:l,textColor:p,bgColor:r}=le[s];return e.jsx("p",{style:{color:p},children:l})},kt="_label_agpme_10",Tt="_button_agpme_15",At="_dropdownIcon_agpme_18",Wt="_dropdownOverlay_agpme_22",Ot="_dropdownMenu_agpme_35",Pt="_optionContainer_agpme_42",$t="_isOptionSelected_agpme_51",Et="_isOptionNotSelected_agpme_58",Rt="_moreButtonText_agpme_62",Bt="_moreItemsCount_agpme_70",F={label:kt,button:Tt,dropdownIcon:At,dropdownOverlay:Wt,dropdownMenu:Ot,optionContainer:Pt,isOptionSelected:$t,isOptionNotSelected:Et,moreButtonText:Rt,moreItemsCount:Bt},{Text:Lt}=H,Mt=()=>{var k,N;const{query:s,appendParams:l}=je(),p=s.current_tab,n=((k=s.status)==null?void 0:k.split(","))||[];let c=[...Object.entries(le).map(([i,h])=>({label:h.label,value:i}))];const d=n.length>0,$=d?(N=c.find(i=>n.includes(i.value)))==null?void 0:N.label:"",w=d?$:"All",E=p!="all",D=n.length>1,f=n.length-1;return E?e.jsx(e.Fragment,{}):e.jsxs(a,{className:F.container,align:"center",gap:6,children:[e.jsx("p",{className:F.label,children:"Status:"}),e.jsx(Ee,{menu:{items:[{key:"1",label:e.jsx(a,{vertical:!0,gap:2,className:F.dropdownMenu,children:c.map(i=>{const h=n.includes(i.value);return e.jsx(a,{className:ie(F.optionContainer,{[F.isOptionSelected]:h,[F.isOptionNotSelected]:!h}),align:"center",onClick:()=>{if(h){const j=n.filter(V=>V!==i.value);j.length===0?l({status:[],pageNumber:[]}):l({status:j.join(","),pageNumber:[]})}else{const j=[...n,i.value];j.length===0?l({status:[],pageNumber:[]}):l({status:j.join(","),pageNumber:[]})}},children:e.jsx("p",{children:i.label})},i.value)})}),onClick:i=>{i==null||i.stopPropagation()}}]},placement:"bottomLeft",overlayClassName:F.dropdownOverlay,children:e.jsx(z,{size:"small",className:F.button,children:e.jsxs(a,{justify:"space-between",gap:6,children:[e.jsx(Lt,{className:ie({[F.moreButtonText]:D}),ellipsis:{tooltip:!0},children:w}),D&&e.jsxs("p",{className:F.moreItemsCount,children:["+",f]}),d?e.jsx(rt,{onClick:i=>{i.stopPropagation(),l({status:[],pageNumber:[]})},className:F.dropdownIcon}):e.jsx(Re,{className:F.dropdownIcon})]})})})]})},Kt="_root_1pswu_10",zt="_container_1pswu_14",Ht="_label_1pswu_17",Vt="_searchInput_1pswu_23",Ut="_searchInputExpanded_1pswu_36",qt="_searchIcon_1pswu_39",Qt="_clearIcon_1pswu_43",Yt="_dropdown_1pswu_48",Gt="_skuOption_1pswu_61",Jt="_skuOptionText_1pswu_73",Xt="_divider_1pswu_79",Zt="_modeRow_1pswu_85",es="_modeOption_1pswu_89",ts="_radio_1pswu_99",ss="_radioChecked_1pswu_109",as="_modeLabel_1pswu_123",m={root:Kt,container:zt,label:Ht,searchInput:Vt,searchInputExpanded:Ut,searchIcon:qt,clearIcon:Qt,dropdown:Yt,skuOption:Gt,skuOptionText:Jt,divider:Xt,modeRow:Zt,modeOption:es,radio:ts,radioChecked:ss,modeLabel:as},{Text:xe}=H,ns=()=>{const{query:s,appendParams:l}=je(),p=O.useRef(null),r=O.useRef(null),n=s.skuFilter||"",c=s.skuMatch||"all",[d,$]=O.useState(n),[w,E]=O.useState(!1),[D,f]=O.useState(c);O.useEffect(()=>{$(n),f(c)},[n,c,s.current_tab]),O.useEffect(()=>{if(!w)return;const i=h=>{var j;(j=r.current)!=null&&j.contains(h.target)||E(!1)};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[w]);const k=(i,h)=>{const j=i.trim();if(!j){N();return}l({skuFilter:j,skuMatch:h,pageNumber:[]}),$(j),f(h),E(!1)},N=()=>{$(""),f("all"),E(!1),l({skuFilter:[],skuMatch:[],pageNumber:[]})};return e.jsxs("div",{ref:r,className:m.root,children:[e.jsxs(a,{align:"center",gap:10,className:m.container,children:[e.jsx(xe,{type:"secondary",className:m.label,children:"SKU"}),e.jsx(Ye,{ref:p,size:"small",placeholder:"Search by SKU",value:d,className:ie(m.searchInput,{[m.searchInputExpanded]:!!d.trim()}),onChange:i=>{const h=i.target.value;$(h),f("all"),E(!!h.trim())},suffix:d?e.jsx(Ge,{className:m.clearIcon,onClick:i=>{var h;i.stopPropagation(),N(),(h=p.current)==null||h.focus()}}):e.jsx(Je,{className:m.searchIcon})})]}),w&&e.jsxs("div",{className:m.dropdown,children:[e.jsx("button",{type:"button",className:m.skuOption,onClick:()=>k(d,D),children:e.jsx(xe,{className:m.skuOptionText,ellipsis:!0,children:d.trim()})}),e.jsx("div",{className:m.divider}),e.jsxs(a,{className:m.modeRow,align:"center",gap:8,children:[e.jsxs("button",{type:"button",className:m.modeOption,onClick:()=>{f("all"),k(d,"all")},children:[e.jsx("span",{className:ie(m.radio,{[m.radioChecked]:D==="all"})}),e.jsx(xe,{className:m.modeLabel,children:"All results with this SKU"})]}),e.jsxs("button",{type:"button",className:m.modeOption,onClick:()=>{f("only"),k(d,"only")},children:[e.jsx("span",{className:ie(m.radio,{[m.radioChecked]:D==="only"})}),e.jsx(xe,{className:m.modeLabel,children:"Only Single SKU"})]})]})]})]})},is="_secondaryIcon_7rb63_10",ls="_dropdownIconContainer_7rb63_16",os="_dropdownButton_7rb63_24",ge={secondaryIcon:is,dropdownIconContainer:ls,dropdownButton:os},Te=5e3,cs=ce(()=>
2oe(()=>import("./dispute_drawer-F4hiz0Gw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55])),null),us=()=>{var V,ue;const{query:s,appendParams:l}=je(),{discrepancies:p,reloadWeightDiscrepancies:r}=Se(),[n,c]=O.useState(!1),{discrepancyQueryParamsString:d}=Xe(),{selectedDiscrepancyIds:$}=Pe(),w=(V=p==null?void 0:p.data)==null?void 0:V.filter(M=>$.includes(M.id)),E=w==null?void 0:w.every(M=>{var U,q,v,pe,re,he,R,me,de;return((pe=(v=(q=(U=M.attributes)==null?void 0:U.shipment)==null?void 0:q.items)==null?void 0:v[0])==null?void 0:pe.sku)===((de=(me=(R=(he=(re=w[0])==null?void 0:re.attributes)==null?void 0:he.shipment)==null?void 0:R.items)==null?void 0:me[0])==null?void 0:de.sku)}),D=!Ze()&&!E,f=s.selectAll==="true",k=(ue=p==null?void 0:p.meta)==null?void 0:ue.total,N=f&&k>Te,i=async()=>{const U=`{${s.selected_discrepancy_ids}}`,{ok:q,data:v}=await tt({ids:U,selectAll:f,querParamsString:d});q?(Ae((v==null?void 0:v.message)||"Weight discrepancy accepted successfully"),r(),l({selected_discrepancy_ids:[],selectAll:[]})):We((v==null?void 0:v.error)||"Failed to accept weight discrepancy")},h=[{key:"ship_order",label:e.jsx(Y,{title:N?`Max ${Te} discrepancies can be accepted at a time`:"",color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:"Accept Discrepancies"}),icon:e.jsx(mt,{className:ge.secondaryIcon}),onClick:i,disabled:N},{key:"initiate_ai_call",label:e.jsx(Y,{color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},title:D?"Please select discrepancies with the same SKU":"",children:e.jsx("span",{children:"Dispute discrepancies"})}),icon:e.jsx(et,{className:ge.secondaryIcon}),onClick:()=>{c(!0)},disabled:D}],j=()=>{c(!1)};return e.jsxs(e.Fragment,{children:[e.jsx(Ee,{menu:{items:h},placement:"bottomRight",children:e.jsx(z,{size:"small",className:ge.dropdownButton,children:e.jsxs(a,{gap:10,align:"center",justify:"space-between",children:[e.jsx("p",{children:"Select bulk action"}),e.jsx(a,{className:ge.dropdownIconContainer,children:e.jsx(Re,{})})]})})}),n&&e.jsx(cs,{onClose:j,isBulkDispute:!0})]})},ps="_container_h87iv_10",rs="_seeHistoryButton_h87iv_13",hs="_itemsCount_h87iv_23",ms="_raiseDisputeButton_h87iv_28",ds="_exclamationIconContainer_h87iv_34",_s="_exclamationIcon_h87iv_34",xs="_statusCellContainer_h87iv_47",gs="_actionsContainer_h87iv_51",bs="_remainingDaysContainer_h87iv_54",js="_excessValue_h87iv_63",ys="_awbNumber_h87iv_68",ws="_dateFilter_h87iv_71",fs="_tableStyle_h87iv_74",Cs="_infoIcon_h87iv_77",Ss="_slabWeightText_h87iv_81",vs="_excessAdditionalSlabText_h87iv_86",Ds="_imagePreviewContainer_h87iv_100",u={container:ps,seeHistoryButton:rs,itemsCount:hs,raiseDisputeButton:ms,exclamationIconContainer:ds,exclamationIcon:_s,statusCellContainer:xs,actionsContainer:gs,remainingDaysContainer:bs,excessValue:js,awbNumber:ys,dateFilter:ws,tableStyle:fs,infoIcon:Cs,slabWeightText:Ss,excessAdditionalSlabText:vs,imagePreviewContainer:Ds},Ns=ce(()=>oe(()=>import("./timeline_drawer-D83Au9yV.js"),__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,10,57,58,39,59,60,61,62,52,32,63,64,65,66,67,68,69,70,71,28,29,30,24,20,12,13,21,22,23,25,26,27,31,33,34,35,36,37,38,40,41,42,43,44,45,14,46,47,48,49,50,51,72,73,74,75,76,77,78,79,80,81,17,82,83])),null),Is=ce(()=>oe(()=>import("./dispute_drawer-F4hiz0Gw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55])),null),Fs=ce(()=>
2oe(()=>import("./escalate_drawer-PU7B86Ud.js"),__vite__mapDeps([84,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,54,53,85])),null),ks=ce(()=>oe(()=>import("./package_images-DYcTQD86.js"),__vite__mapDeps([57,1,2,58,39,59,60,5,6,61,62,52,32,63,64,65])),null),{Text:be}=H,Ts=()=>{var ve,De;const{discrepancies:s,isLoading:l,isValidating:p,reloadWeightDiscrepancies:r}=Se(),{query:n,appendParams:c,removeParam:d}=je(),[$,w]=O.useState(""),[E]=st($,500),[D,f]=O.useState({showModal:!1,images:[]}),{current_tab:k}=n,{selectedDiscrepancyIds:N}=Pe(),i=N,h=(i==null?void 0:i.length)>0,j=(ve=s==null?void 0:s.data)==null?void 0:ve.map(o=>o.id),{excessWeightFilterOptions:V}=at(),{shipfastWarehousePickupList:ue,isLoading:M}=nt(E),U=ue.map(o=>({label:o.attributes.name,value:o.id})),{ageingFilterOptions:q}=it(),v=n.type,pe=v==="timeline",re=v==="raise",he=v==="escalate",R=((De=s==null?void 0:s.meta)==null?void 0:De.total)||0,me=R<2?"Discrepancy":"Discrepancies",de=o=>{c({type:"timeline",id:o})},Be=o=>{c({type:"raise",id:o})},Le=o=>{c({type:"escalate",id:o})},ye=()=>{c({type:[],id:[]})},Me=[{title:"Discrepancy Details",key:"discrepancy_details",render:(o,t)=>{var x,g,b,_,I,S;const C=((x=t==null?void 0:t.attributes)==null?void 0:x.updated_at)||((g=t==null?void 0:t.attributes)==null?void 0:g.created_at),y=_e(C).format("DD MMM YY | hh:mm A");return e.jsxs(a,{vertical:!0,gap:4,children:[e.jsxs(a,{vertical:!0,children:[e.jsx(K,{children:"Updated on:"}),e.jsx(P,{children:y})]}),e.jsxs(a,{vertical:!0,children:[e.jsx(K,{children:"AWB#:"}),e.jsx(P,{className:u.awbNumber,copyable:!0,children:(_=(b=t==null?void 0:t.attributes)==null?void 0:b.shipment)==null?void 0:_.tracking_number}),e.jsx(P,{children:(S=(I=t==null?void 0:t.attributes)==null?void 0:I.carrier)==null?void 0:S.name})]})]})}},{title:"Products",key:"products",render:(o,t)=>{var C,y,x,g,b,_;return e.jsxs(a,{vertical:!0,children:[e.jsx(wt,{items:(y=(C=t==null?void 0:t.attributes)==null?void 0:C.shipment)==null?void 0:y.items}),e.jsx(ut,{placement:"bottom",content:e.jsx(Dt,{items:(g=(x=t==null?void 0:t.attributes)==null?void 0:x.shipment)==null?void 0:g.items}),trigger:"hover",className:u.popover,children:e.jsx("div",{children:e.jsx(ft,{items:(_=(b=t==null?void 0:t.attributes)==null?void 0:b.shipment)==null?void 0:_.items})})})]})}},{title:e.jsxs(a,{align:"center",gap:4,justify:"space-between",children:[e.jsx("p",{children:"Applied Weight"}),e.jsx(Y,{title:"Details of the shipment weight entered by you.",color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:e.jsx(Ce,{className:u.infoIcon})})]}),key:"applied_weight",render:(o,t)=>{var I,S,T,A,W,B,L,G,J,X,Z,ee,te,se,ae;const C=(I=t==null?void 0:t.attributes)!=null&&I.applied_final_weight?`${parseFloat((Number((S=t==null?void 0:t.attributes)==null?void 0:S.applied_final_weight)/1e3).toFixed(3))}. Kg`:"N/A",y=(T=t==null?void 0:t.attributes)!=null&&T.applied_weight?`${parseFloat((Number((A=t==null?void 0:t.attributes)==null?void 0:A.applied_weight)/1e3).toFixed(3))}. Kg`:"N/A",x=(W=t==null?void 0:t.attributes)!=null&&W.applied_volume_weight?`${parseFloat((((B=t==null?void 0:t.attributes)==null?void 0:B.applied_volume_weight)/1e3).toFixed(3))}. Kg`:"N/A",g=(L=t==null?void 0:t.attributes)!=null&&L.applied_dimensions&&Object.keys((G=t==null?void 0:t.attributes)==null?void 0:G.applied_dimensions).length==3?` (${(X=(J=t==null?void 0:t.attributes)==null?void 0:J.applied_dimensions)==null?void 0:X.length}x${(ee=(Z=t==null?void 0:t.attributes)==null?void 0:Z.applied_dimensions)==null?void 0:ee.width}x${(se=(te=t==null?void 0:t.attributes)==null?void 0:te.applied_dimensions)==null?void 0:se.height})`:"",b=(ae=t==null?void 0:t.attributes)==null?void 0:ae.applied_weight_slab,_=b?`${parseFloat((Number(b)/1e3).toFixed(1))} Kg`:"N/A";return e.jsxs(a,{gap:6,vertical:!0,children:[e.jsxs(a,{vertical:!0,children:[e.jsxs(K,{children:[C," "]}),b&&e.jsx("p",{className:u.slabWeightText,children:`(Slab: ${_})`})]}),e.jsxs(a,{vertical:!0,children:[e.jsx(Q,{children:"Dead Weight"}),e.jsx(P,{children:y})]}),e.jsxs(a,{vertical:!0,children:[e.jsx(Q,{children:"Volumetric Weight"}),e.jsxs(P,{children:[x,g]})]})]})}},{title:e.jsxs(a,{align:"center",gap:4,justify:"space-between",children:[e.jsx("p",{children:"Courier Weight"}),e.jsx(Y,{title:"Initial weight received from the courier on your shipment.",color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:e.jsx(Ce,{className:u.infoIcon})})]}
2),key:"courier_weight",render:(o,t)=>{var S,T,A,W,B,L,G,J,X,Z,ee,te,se,ae,Ne,Ie,Fe;const C=(S=t==null?void 0:t.attributes)!=null&&S.original_final_weight?`${parseFloat((Number((T=t==null?void 0:t.attributes)==null?void 0:T.original_final_weight)/1e3).toFixed(3))}. Kg`:"N/A",y=(A=t==null?void 0:t.attributes)!=null&&A.courier_weight?`${parseFloat((Number((W=t==null?void 0:t.attributes)==null?void 0:W.courier_weight)/1e3).toFixed(3))}. Kg`:"N/A",x=(B=t==null?void 0:t.attributes)!=null&&B.courier_volume_weight?`${parseFloat((((L=t==null?void 0:t.attributes)==null?void 0:L.courier_volume_weight)/1e3).toFixed(3))}. Kg`:"N/A",g=(G=t==null?void 0:t.attributes)!=null&&G.courier_dimensions&&Object.keys((J=t==null?void 0:t.attributes)==null?void 0:J.courier_dimensions).length==3?` (${(Z=(X=t==null?void 0:t.attributes)==null?void 0:X.courier_dimensions)==null?void 0:Z.length}x${(te=(ee=t==null?void 0:t.attributes)==null?void 0:ee.courier_dimensions)==null?void 0:te.width}x${(ae=(se=t==null?void 0:t.attributes)==null?void 0:se.courier_dimensions)==null?void 0:ae.height})`:"",b=((Ne=t==null?void 0:t.attributes)==null?void 0:Ne.dispute_images_count)>0||!!((Ie=t==null?void 0:t.attributes)!=null&&Ie.reference_shipment_id),_=(Fe=t==null?void 0:t.attributes)==null?void 0:Fe.courier_weight_slab,I=_?`${parseFloat((Number(_)/1e3).toFixed(1))} Kg`:"N/A";return e.jsxs(a,{gap:6,vertical:!0,children:[e.jsxs(a,{vertical:!0,children:[e.jsxs(K,{children:[C," "]}),_&&e.jsx("p",{className:u.slabWeightText,children:`(Slab: ${I})`})]}),e.jsxs(a,{vertical:!0,children:[e.jsx(Q,{children:"Dead Weight"}),e.jsx(P,{children:y})]}),e.jsxs(a,{vertical:!0,children:[e.jsx(Q,{children:"Volumetric Weight"}),e.jsxs(P,{children:[x,g]})]}),b&&e.jsx(a,{vertical:!0,gap:4,className:u.imagePreviewContainer,children:e.jsx(z,{type:"link",size:"small",className:u.seeHistoryButton,onClick:()=>{c({id:t==null?void 0:t.id}),f({showModal:!0,images:[]})},children:"Shipment Images"})})]})}},{title:e.jsxs(a,{align:"center",gap:4,justify:"space-between",children:[e.jsx("p",{children:"Charged Weight"}),e.jsx(Y,{title:"Final weight uploaded by us after validating the courier's initial weight. Subject to change in case of a valid dispute.",color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:e.jsx(Ce,{className:u.infoIcon})})]}),key:"charged_weight",render:(o,t)=>{var g,b,_;const C=(g=t==null?void 0:t.attributes)!=null&&g.final_weight?`${parseFloat((Number((b=t==null?void 0:t.attributes)==null?void 0:b.final_weight)/1e3).toFixed(3))}. Kg`:"N/A",y=(_=t==null?void 0:t.attributes)==null?void 0:_.charged_weight_slab,x=y?`${parseFloat((Number(y)/1e3).toFixed(1))} Kg`:"N/A";return e.jsxs(a,{vertical:!0,children:[e.jsx(K,{children:C}),y&&e.jsx("p",{className:u.slabWeightText,children:`(Slab: ${x})`})]})}},{title:"Excess Weight & Charge",key:"excess_weight_charge",render:(o,t)=>{var _,I,S,T,A,W;const C=(_=t==null?void 0:t.attributes)!=null&&_.weight_difference?`${parseFloat((Number((I=t==null?void 0:t.attributes)==null?void 0:I.weight_difference)/1e3).toFixed(3))}. kg`:"N/A",y=(S=t==null?void 0:t.attributes)!=null&&S.additional_charges?`₹ ${(T=t==null?void 0:t.attributes)==null?void 0:T.additional_charges}`:"N/A",x=(A=t==null?void 0:t.attributes)==null?void 0:A.excess_weight_slab,g=(W=t==null?void 0:t.attributes)==null?void 0:W.charges_updated,b=x?`${parseFloat((Number(x)/1e3).toFixed(1))} Kg`:"N/A";return e.jsxs(a,{vertical:!0,gap:4,children:[e.jsxs(a,{vertical:!0,children:[e.jsx(Q,{children:"Excess Weight"}),e.jsx("p",{className:u.excessValue,children:C}),x&&e.jsxs("p",{className:u.excessAdditionalSlabText,children:["(Additional Slab: ",e.jsx("span",{children:b}),")"]})]}),e.jsxs(a,{vertical:!0,children:[e.jsx(Q,{children:"Excess Charges"}),e.jsxs(a,{gap:6,children:[e.jsx("p",{className:u.excessValue,children:y}),g&&e.jsx(Y,{title:"Excess charge updated as shipment got RTOed",color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:e.jsx("div",{className:u.exclamationIconContainer,children:e.jsx(_t,{className:u.exclamationIcon})})})]})]})]})}},{title:"Status",key:"status",render:(o,t)=>{var S,T,A,W,B,L;const C=_e((S=t==null?void 0:t.attributes)==null?void 0:S.created_at),y=_e((T=t==null?void 0:t.attributes)==null?void 0:T.updated_at),x=_e(),g=["raised"].includes((A=t==null?void 0:t.attributes)==null?void 0:A.status),b=g?10-x.diff(C,"day"):2-x.diff(y,"day"),_=["raised","rejected"].includes((W=t==null?void 0:t.attributes)==null?void 0:W.status),I=["rejected"].includes((B=t==null?void 0:t.attributes)==null?void 0:B.status);return e.jsxs(a,{justify:"space-between",gap:16,className:u.statusCellContainer,children:[e.jsx(K,{children:e.jsx(Ft,{status:(L=t==null?void 0:t.attributes)==null?void 0:L.status})}),e.jsxs(a,{vertical:!0,gap:8,justify:"space-between",className:u.actionsContainer,align:"flex-end",children:[e.jsxs(a,{gap:8,vertical:!0,children:[g&&e.jsx(bt,{discrepancyId:t==null?void 0:t.id}),g&&e.jsx(ke,{size:"small",className:u.raiseDisputeButton,onClick:()=>Be(t==null?void 0:t.id),children:"RAISE DISPUTE"}),I&&e.jsx(ke,{size:"small",className:u.raiseDisputeButton,onClick:()=>Le(t==null?void 0:t.id),children:"ESCALATE"})]}),e.jsx(a,{children:e.jsx(z,{type:"link",onClick:()=>de(t==null?void 0:t.id),className:u.seeHistoryButton,size:"small",children:"See History >"})}),_&&e.jsxs(a,{className:u.remainingDaysContainer,gap:8,align:"center",children:[e.jsx(pt,{}),e.jsxs("p",{children:[b," days remaining"]})]})]})]})}}],we=n.selectAll==="true",Ke=!we&&N.length<R,ze=we?R:N.length;return e.jsxs(a,{vertical:!0,gap:16,className:u.container,children:[h?e.jsxs(a,{justify:"space-between",align:"center",children:[e.jsxs(a,{gap:10,align:"center",children:[e.jsxs(be,{type:"secondary",children:[ze," out of ",R," ",R>1?"Discrepancies":"Discrepancy"," Selected"]}),e.jsxs(a,{align:"center",children:[e.jsx(z,{type:"link",size:"small",danger:!0,onClick:()=>{c({selected_discrepancy_ids:[],selectAll:[]})},children:"Clear All"}),Ke&&e.jsx(z,{size:"small",type:"link",onClick:()=>{c({selectAll:"true"})},children:"Select All Orders"})]})]}),e.jsx(us,{})]}):e.jsxs(a,{justify:"space-between",align:"center",children:[e.jsxs("p",{className:u.itemsCount,children:[R," ",me]}),e.jsxs(a,{gap:10,align:"center",children:[e.jsxs(a,{align:"center",gap:10,children:[e.jsx(be,{type:"secondary",children:"Warehouse:"}),e.jsx(fe,{options:U,size:"small",showSearch:!0,allowClear:!0,placeholder:"All",onClear:()=>{w(""),c({warehouseId:[],warehouseSearch:[],pageNumber:[]})},value:n.warehouseId||void 0,onSearch:o=>{w(o)},onChange:o=>{o?c({warehouseId:o,pageNumber:[]}):(w(""),c({warehouseId:[],warehouseSearch:[],pageNumber:[]}))},filterOption:(o,t)=>(t==null?void 0:t.label).toLowerCase().includes(o.toLowerCase()),className:u.dateFilter,loading:M,notFoundContent:M?e.jsx(lt,{}):e.jsx(ot,{description:"No warehouses found"})})]}),e.jsx(Mt,{}),["new"].includes(k)&&e.jsx(ns,{}),e.jsxs(a,{align:"center",gap:10,children:[e.jsx(be,{type:"secondary",children:"Excess Weight:"}),e.jsx(fe,{options:V,size:"small",value:n.excessWeight,onChange:o=>c({excessWeight:o,pageNumber:[]}),className:u.dateFilter})]}),e.jsxs(a,{align:"center",gap:10,children:[e.jsx(be,{type:"secondary",children:"Ageing:"}),e.jsx(fe,{options:q,size:"small",value:n.ageingFilter,onChange:o=>c({ageingFilter:o,pageNumber:[]}),className:u.dateFilter})]}),e.jsx(ht,{disableDownload:l||p||R===0}),e.jsx(z,{size:"small",onClick:r,loading:l||p,disabled:p||l,icon:e.jsx(dt,{})})]})]}),e.jsx($e,{columns:Me,dataSource:s==null?void 0:s.data,rowKey:"id",loading:l||p,pagination:!1,className:u.tableStyle,rowSelection:["new"].includes(k)?{selectedRowKeys:we?j:i,type:"checkbox",onChange:o=>{c({selected_discrepancy_ids:o.join(","),selectAll:[]})}}:void 0}),e.jsx(ct,{meta:s==null?void 0:s.meta}),pe&&e.jsx(Ns,{onClose:ye}),re&&e.jsx(Is,{onClose:ye}),he&&e.jsx(Fs,{onClose:ye}),D.showModal&&e.jsx(ks,{onClose:()=>{d("id"),f({showModal:!1,images:[]})},images:D.images,showShipmentImages:!0})]})},Vs=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));
2export{Hs as D,Vs as d};

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.