1"use strict";(globalThis.webpackChunkomc_ui_2_0||=[]).push([[3405],{33405(e,t,r){r.r(t),r.d(t,{default:()=>E});var a=r(48661),s=r(14491);const o=s.Ay.div` 2 position: relative; 3 width: 100%; 4`,i=s.Ay.div``,l=s.Ay.h2.attrs({className:"body-16 bold"})``;var d=r(89026),n=r(9950),c=r(76363);const u=s.Ay.div` 5 min-height: ${e=>{let{theme:t}=e;return 300/t.defaultRem+"rem"}}; 6 height: calc(100vh - ${e=>{let{theme:t}=e;return 515/t.defaultRem+"rem"}}); 7 overflow-y: auto; 8 margin-bottom: ${e=>{let{theme:t}=e;return 10/t.defaultRem+"rem"}}; 9`,m=s.Ay.div``,v=s.Ay.div.attrs({className:"body-14 mt-3"})``,h=s.Ay.div.attrs({className:"body-14"})` 10 padding: 16px; 11 margin: 16px 0; 12 border-radius: 8px; 13 background: var(--gray-10-color); 14 color: var(--gray-90-color); 15`;var g=r(42087),p=r(92526),f=r(56943),x=r(44414);const y=e=>{let{data:t}=e;const[r]=(0,a.B)(),s=(0,g.GV)(p.Mv),o=(0,g.GV)(p.cn);return(0,x.jsxs)(m,{children:[(0,x.jsx)(v,{"data-testid":"si-log-time",children:`${r("dateTime:date",{date:t.createdDateTimeUTC,formatParams:{...(0,f.VD)(s,"short",null===o||void 0===o?void 0:o.bureau_name)}})} ${r("createRelease:sodOrderSubmittedAt","at")} ${r("dateTime:time",{date:t.createdDateTimeUTC,formatParams:{...(0,f.VD)(s,"medium",null===o||void 0===o?void 0:o.bureau_name)}})} `}),(0,x.jsx)(h,{"data-testid":"si-text",children:t.specialInstruction})]})};var b=r(5418),A=r(72),I=r(54212),j=r(38843),T=r(11961),C=r(77239);const R=()=>{const e=(0,n.useRef)(null),{changeRequest:{specialInstructions:t,setSpecialInstruction:r,setSpLoading:a,setSpError:s,spError:o}}=(0,b.y)(A.Q),{accountNumber:i}=(0,g.GV)(j.KW),l=(0,g.GV)(j.XJ),{loading:d,refetch:m,data:v,error:h}=(0,c.IT)(T.Oq,{skip:0===i.length,variables:{accountNumber:i,draftOrderId:l}});(0,n.useEffect)(()=>{h&&s(h)},[h,s]),(0,n.useEffect)(()=>{v&&r(v.specialInstructionLogs||[])},[v,r]);const{errorCorrelationId:p}=(0,n.useMemo)(()=>{var e;let t=null;return o&&(t=(0,f.cx)(o)),{errorCorrelationId:(null===(e=t)||void 0===e?void 0:e.xCorrelationId)||""}},[o]);return(0,g.sv)(()=>{var r,a;(null===t||void 0===t?void 0:t.length)>0&&(null===(r=e.current)||void 0===r||r.scrollTo({top:null===(a=e.current)||void 0===a?void 0:a.scrollHeight,behavior:"smooth"}))},[null===t||void 0===t?void 0:t.length]),(0,n.useEffect)(()=>a(d),[d]),(0,n.useEffect)(()=>()=>r([]),[]),o?(0,x.jsx)(C.A,{correlationId:p,retryCallback:()=>m()}):(0,x.jsxs)(u,{ref:e,"data-testid":"sp-list",children:[d?(0,x.jsx)(I.A,{}):null,!d&&t.map(e=>(0,x.jsx)(y,{data:e},e.createdDateTimeUTC))]})};var S=r(72004),V=r(78503);const E=()=>{const[e]=(0,a.B)(),{changeRequest:{isRequestChangeVisible:t,isAllowedToAddSpecialInstruction:r,specialInstructions:s,spLoading:n,spError:c},orderHistoryIRIS:{orderHistoryIris:{isShared:u,createdBy:m}}}=(0,b.y)(A.Q),v=(0,g.GV)(V.H4);return(0,x.jsxs)(o,{children:[(0,x.jsxs)(i,{className:(0,S.A)(!t||!r||n||s.length||c?"":"d-none"),children:[(0,x.jsx)(l,{className:(0,S.A)(s.length?"":"d-none"),"data-testid":"sent-title",children:e("orderDetails:sent","Sent")}),(0,x.jsx)(R,{})]}),u&&(0,f.xo)(v,null!==m&&void 0!==m?m:"")?null:t&&r&&!c?(0,x.jsx)(d.A,{}):null]})}}}]);
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.