PageSourceSearch

https://dashboard.velocity.in/assets/timeline_drawer-D83Au9yV.js

js velocity.in collected 2026-10-01 11:37:43 UTC 4,785 bytes, 1 lines download raw bytes

1import{e0 as w,r as v,j as s,c as I,bd as i,bS as N,aA as C}from"./index-BYjmYzu-.js";import{C as b}from"./index-ByjQY1tN.js";import{D as f}from"./index-Cy7Vl5oX.js";import D from"./package_images-DYcTQD86.js";import{D as T}from"./discrepancy_table-Dd0u9BW-.js";import{R}from"./SyncOutlined-B6P8b_PL.js";import{T as _}from"./Timeline-BEefx6d8.js";import"./index-CZNe-HiK.js";import"./Portal-BnIU9h3K.js";import"./getScrollBarSize-BX5bDlpW.js";import"./CloseIcon-DqZkkrpQ.js";import"./modal_component-CgKrFsb7.js";import"./modal_header-su8lU-Gk.js";import"./index-BNQX9KrA.js";import"./DialogWrap-BcWh8mEF.js";import"./useId-CCfbXMy0.js";import"./InfoCircleOutlined-DObI79rA.js";import"./UpOutlined--pJ7qTde.js";import"./DownOutlined-CNOnAf1g.js";import"./LeftOutlined-Bj9cZ122.js";import"./RightOutlined-nkDSTxE1.js";import"./Table-B5SVGtym.js";import"./index-BG2GygdK.js";import"./css-CG3sgCP8.js";import"./isEqual-DutTMpuB.js";import"./dropdown-CVdns1v5.js";import"./Dropdown-Dy0ThnTD.js";import"./isNumeric-OYazz19Q.js";import"./index-BT5g8ZbQ.js";import"./index-DaOxzf_F.js";import"./utils-BZTh1pv3.js";import"./react-number-format.es-HDPTMfGw.js";import"./Skeleton-DbxtqGSl.js";import"./ExclamationCircleOutlined-htogdyLm.js";import"./CheckCircleOutlined-D9_Yb30M.js";import"./index-EFx6b1xQ.js";import"./index-Dn8Hzhoo.js";import"./index-D6c-D_1p.js";import"./CloseCircleFilled-CihxIFhu.js";import"./table_loader-1S6nfwbj.js";import"./Warning-BoFj_C8a.js";import"./mixpanel_utils-BIdpoJGP.js";import"./humbleicons_ai-mDn1omRQ.js";import"./product_guide_activity_provider-UtFB426n.js";import"./firebase-CW9I-1vg.js";import"./user_guide_banner-B4om9wXq.js";import"./mixpanel-Boxg7-FG.js";import"./ClockCircleOutlined-C5uPcbgy.js";import"./CloseOutlined-Dj9ziNvG.js";import"./index-CneRmXqw.js";import"./PlusOutlined-ByZyTB3m.js";import"./Skeleton-B0jWT2qh.js";import"./Keyframes-CEQCE7hz.js";import"./index-DWTh2oxh.js";import"./index-C3z6_BZa.js";import"./constant-BjqaakFy.js";import"./MoneyBillLine-DnUa9uMh.js";import"./InvoiceLine-_87NgkCt.js";import"./BillLine-lEZAu1jX.js";import"./WalletOutlined-_1SGXT6X.js";import"./utils-k_PfN3YJ.js";import"./disable_tooltips-CFCTnA_K.js";import"./DownloadOutlined-Cpoeis49.js";import"./DownloadOutlined-DTidZHln.js";const B="_historyTitle_1yhps_13",M="_timelineItem_1yhps_18",L="_dotContainer_1yhps_24",k="_dot_1yhps_24",E="_timelineContent_1yhps_34",H="_header_1yhps_39",W="_timestamp_1yhps_49",Y="_details_1yhps_54",A="_detailRow_1yhps_58",F="_label_1yhps_63",S="_value_1yhps_69",V="_viewImagesButton_1yhps_98",$="_dashedLine_1yhps_109",e={historyTitle:B,timelineItem:M,dotContainer:L,dot:k,timelineContent:E,header:H,timestamp:W,details:Y,detailRow:A,label:F,value:S,viewImagesButton:V,dashedLine:$},st=({onClose:r})=>{var c;const{discrepancyDetails:a,isLoading:m,reloadWeightDiscrepancyDetails:x,isValidating:l}=w(),[n,p]=v.useState({showModal:!1,images:[]}),o=((c=a==null?void 0:a.attributes)==null?void 0:c.activities)||[],j=(t,g)=>{var h;const d=g===0?"var(--shipfast-primary-color)":"#B9BECE",u=t!=null&&t.created_at?C(t==null?void 0:t.created_at).format("DD MMM YYYY | HH:mm A"):"",y=((h=t==null?void 0:t.images)==null?void 0:h.length)>0;return s.jsx(_.Item,{dot:s.jsx(i,{className:e.dotContainer,style:{borderColor:d},children:s.jsx("div",{className:e.dot,style:{backgroundColor:d}})}),className:`${e.timelineItem} ${e.dashedLine}`,children:s.jsxs(i,{vertical:!0,gap:16,children:[s.jsxs(i,{className:e.header,vertical:!0,children:[s.jsx(T,{status:t.title}),s.jsx("span",{className:e.timestamp,children:u})]}),s.jsx("div",{className:e.timelineContent,children:s.jsxs(i,{vertical:!0,gap:4,className:e.details,children:[s.jsxs("div",{className:e.detailRow,children:[s.jsx("span",{className:e.label,children:"Action By:"}),s.jsx("span",{className:e.value,children:t.user_name})]}),!!(t!=null&&t.comment)&&s.jsxs("div",{className:e.detailRow,children:[s.jsx("span",{className:e.label,children:"Remarks:"}),s.jsx("span",{className:e.value,children:t.comment})]}),y&&s.jsxs("div",{className:e.detailRow,children:[s.jsx("span",{className:e.label,children:"Images:"}),s.jsx("button",{className:e.viewImagesButton,onClick:()=>p({showModal:!0,images:t==null?void 0:t.images}),children:"View Images"})]})]})})]})},t.id)};return s.jsxs(b,{header:s.jsx(f,{headerTitle:"Weight Discrepancy Timeline",onClose:r}),open:!0,onClose:r,children:[m?s.jsx(I,{}):s.jsxs(i,{vertical:!0,gap:20,children:[s.jsxs(i,{justify:"space-between",align:"center",children:[s.jsx("p",{className:e.historyTitle,children:"History"}),s.jsx(N,{size:"small",onClick:x,loading:l,disabled:l||m,icon:s.jsx(R,{})})]}),s.jsx(_,{children:o==null?void 0:o.map(j)})]}),n.showModal&&s.jsx(D,{onClose:()=>p({showModal:!1,images:[]}),images:n.images})]})};export{st 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.