1import{f as e,b as s,a as t,j as a,aP as i,am as l}from"./index-D1TPP0ID.js";import{g as o}from"./index-BGVWCr-A.js";import{P as r}from"./index-DKj1rkZQ.js";import{I as c}from"./index-CuYUH4oE.js";import{b as d}from"./hooks-C1xjp8Fj.js";import{C as n}from"./Tabs-Cu_E-a0b.js";import{e as m,r as x}from"./react-CH-bOe9I.js";import{u as p}from"./i18next-DHCxiuaf.js";import"./ahooks-BPfYyHQM.js";import"./axios-CltMZqXm.js";import"./nutUI-C8iMzybT.js";import"./index-DwirLlVF.js";import"./publicMethods-CWSlJswC.js";import"./index-B8K4ezwO.js";import"./index-BLOqPafo.js";const h=()=>{var h;const{state:g}=m(),j=e(),{isMobile:u}=s(),{t:v}=p(),[f,b]=x.useState(),k=(null==g?void 0:g.order_id)||0,A=(null==g?void 0:g.order_no)||"",w=(null==g?void 0:g.sub_order_no)||"",[N,y]=x.useState(!0),{packagesList:I}=d(k),{packageTab:P}=t((e=>e.globalState)),U=async(e="")=>{const{data:s}=await o({order_no:A,sub_order_no:w,logistics_no:e});y(!1),b(s)};x.useEffect((()=>{U(P)}),[]);const S=x.useMemo((()=>I.map(((e,s)=>({title:v("Order.Package")+(s+1),value:e.logistics_no})))),[I]);return a.jsxs(r,{title:v("OrderDetail.shipment_tracking"),isLoading:N,children:[!u&&a.jsx(n,{value:P,options:S,onChange:e=>{j(i({packageTab:e})),U(e)}}),a.jsxs("div",{className:"mb-2 flex items-center bg-b-2 px-3 py-4 text-size-sm desktop:mb-0 desktop:p-6",children:[a.jsx("img",{className:"mr-2 h-12 w-12",src:"data:image/webp;base64,UklGRjoCAABXRUJQVlA4TC4CAAAvL8ALAK/loG0kSUovk0Nx/FnNPp3QcNi2bSBJud9/4b+zHLZtG0jKrfJT/P5LtXexNf9RJgRAAdAABAwYgwhvn9PxsZy82gVUICow4mmRsJ5WgK9UnJzefbqySEi9vQimwKgsX/lIIhBFIHBCvIsqVIBhr0AkhlAHGFFMqa788PFZq7R9SvNgUxMXMlISITamh7dCfPBiBywEyJTSarXVhM9AlEAJF50qHj794RM3r9cXLz6XFiKKoBUK0SBEIUSgj5UokQidTKAAaYAWog9aI7alGGT4+CBKWk0BEIIhhQogSqAAKICYAcYgeFikEKEAAkQg/Pz5//5gXAxA37btfPLMyra9bNu2Xcvmcsstc0Z2z5v+Qv8+9yWi/xOA/ziViqcbmUwmu75XyOVymUwmkz9SMsrg7gRx2QacvhoGl8vlMly8q1WUtIIp8YLIldJNC+ABgLlPpQopDQe/pzqoQjySSJYMoVki0SClxBHKXzoZZtKLkQecF8AaUj3JpA00sa3tLN8FudgONkQh3lg/3J7bOxy/XRafzu4eLPyiC4yPneivq0Z8xvBzFIRhf2xPQo7IP7AgPS+4uCxuUNhNvpMmJiXZgydxZcR0OIPV/rUttGFJ/ExyVm10fYBwyOFtymMro/EHafzPRWTanUU38eVHjPFZEyQ0uzc/OnXxLqXww01UEdKS2YDf69SfLxHJlYIQreZBrUa8UOsfLy4Qzy7O1XqN+uXk6Qf/6wE=",alt:""}),a.jsxs("div",{className:"flex h-12 flex-col",children:[a.jsx("span",{children:v("OrderDetail.express")}),a.jsxs("div",{className:"mt-auto flex items-center text-t-2",children:[v("afterSaleOrder.TrackingNumber"),":",a.jsx(c,{text:P})]})]})]}),a.jsx("div",{className:"flex-1 bg-b-2 px-3 py-4 desktop:px-6 desktop:pb-6 desktop:pt-0",children:a.jsx("div",{className:"rounded-lg desktop:bg-b-1 desktop:p-6 desktop:pb-0",children:null==(h=null==f?void 0:f.tracks)?void 0:h.map(((e,s)=>{var t;const i=0===s,o=s===(null==(t=null==f?void 0:f.tracks)?void 0:t.length)-1;return a.jsxs("div",{className:"".concat(i?"text-t-1":"text-t-3"," relative pb-5 text-size-xs"),children:[!o&&a.jsx("div",{className:"absolute -bottom-3 left-2.5 top-3 z-[0] h-auto w-[1px] bg-line-1"}),a.jsxs("div",{className:"relative z-[1] flex items-center",children:[i?a.jsx("img",{className:"mr-2 h-5 w-5",src:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3_8770)'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3ccircle%20cx='10'%20cy='10'%20r='10'%20fill='%230EBE5A'/%3e%3cpath%20d='M6.00005%2010.4003L9.10992%2013.5102L14.5103%208.10986'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3_8770'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"}):a.jsx("div",{className:"mr-2 flex h-5 w-5 items-center justify-center",children:a.jsx("div",{className:"h-2 w-2 rounded-full bg-t-4"})}),a.jsx("span",{className:"mr-4 ".concat(i?"text-success-6":"text-t-3"," text-size-base"),children:e.status}),a.jsx("span",{className:"text-phone-small",children:l(e.date_time)})]}),e.note&&a.jsx("div",{className:"ml-7 mt-1",children:e.note})]})}))})})]})};export{h 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.