PageSourceSearch

https://ecustoms.kz/assets/index-DQujviOz.js

js ecustoms.kz collected 2026-10-08 16:12:15 UTC 4,220 bytes, 1 lines download raw bytes

1import{j as e}from"./jsx-runtime-Ce3Alt7Z.js";import{b as h,J as S,T as D,c as s,e as c,L as C,M as R,N as b,O as I,Q as F,S as k,G as l,h as T,U as A,t as M}from"./index-Cf1dhZ0K.js";import{e as y}from"./ecustoms_mf_2_host__loadShare__react__loadShare__-ByLk7w3R.js";import"./ecustoms_mf_2_host__mf_v__runtimeInit__mf_v__-CoTilJrQ.js";import"./ecustoms_mf_2_host__loadShare__react_mf_2_dom__loadShare__--qYrx-SI.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./preload-helper-BXl3LOEh.js";import"./Dragger-B3ThJBwV.js";const L=({declId:r})=>{const[u,a]=y.useState(!1),{t:n}=h(["Landing","Declaration","Common"]),{mutate:m,data:p,isPending:g}=S();return e.jsxs(e.Fragment,{children:[e.jsx(D,{onClick:i=>{i.stopPropagation(),a(!0)},style:{textDecoration:"underline"},children:n("viewError","Смотреть ошибку")}),e.jsx(s.Modal,{centered:!0,afterOpenChange:i=>{i&&m(r)},closable:!1,destroyOnHidden:!0,open:u,footer:null,width:800,styles:{content:{padding:64}},children:e.jsx(s.Spin,{spinning:g,children:e.jsxs(s.Flex,{vertical:!0,gap:32,children:[e.jsx(s.Typography.Title,{level:3,style:{fontWeight:700},children:n("errorReason","Причина ошибки")}),e.jsx(s.Typography.Text,{children:p}),e.jsx(s.Flex,{vertical:!0,children:e.jsx(s.Button,{size:"large",block:!0,onClick:()=>a(!1),children:n("Declaration:cancel","Отменить")})})]})})})]})},d=[l.DRAFT,l.CREATED];function W(){const{t:r,i18n:u}=h("Declaration"),{t:a}=h("CustomsRegistry"),{status:n}=c.useParams(),[m]=c.useSearchParams(),p=c.useNavigate(),g=m.get("q"),i=C(o=>o.filter),{data:x,fetchNextPage:f,hasNextPage:E,isFetchingNextPage:_,isLoading:v}=R({statusId:Number(n),type:b.PTD,pageSize:8,...i,query:g}),j=y.useMemo(()=>x?.pages?.flatMap(o=>o.content||[])||[],[x]),P=o=>{M("ptd_declaration_card_clicked",{declarationId:o}),p(`/declarations/form/ptd/${o}`)};return n?e.jsx(s.Flex,{vertical:!0,gap:8,children:e.jsx(s.Skeleton,{loading:v,children:j?.length>0?e.jsx(I,{data:j,useWindowScroll:!0,endReached:()=>E&&!_&&f(),components:{Footer:()=>_?e.jsx(s.Skeleton,{active:!0,loading:!0}):null},itemContent:(o,t)=>e.jsx(F,{item:t,onClick:()=>P(t.id),sourceIcon:e.jsx(A,{style:{height:14,width:14}}),sourceText:a("ecustomsCreated"),title:d.includes(t?.statusId)?r("newDeclaration","Новая декларация"):e.jsxs(e.Fragment,{children:[e.jsxs(s.Typography.Text,{type:"secondary",children:[r("regNumb","Регистрационный")," "]}),e.jsx("div",{children:t?.regNumber})]})||"-",customsCodeParams:{label:a("journal.code","Код"),value:t?.customsPost?.code},infoItems:[{label:r("createdAt","Создано"),value:k(t.createdAt,!0),span:4},{label:d.includes(t?.statusId)?a("journal.regNum","Рег. номер"):a("journal.customsPost","Таможенный пост"),value:e.jsx(s.Tooltip,{title:d.includes(t?.statusId)?t?.customsPost?.[T(u?.resolvedLanguage)]:t?.regNumber||"-",children:e.jsx(s.Typography.Text,{ellipsis:!0,children:d.includes(t?.statusId)?t?.customsPost?.[T(u?.resolvedLanguage)]:t?.regNumber||"-"})}),span:4},{label:r("movementFeature","Способ перемещения товаров и ТС"),value:e.jsx(s.Tooltip,{title:t?.movingMethodName,children:e.jsx(s.Typography.Text,{ellipsis:!0,title:t?.movingMethodName,children:t?.movingMethodName})}),span:4},{label:r("transferPurposeCode"),value:e.jsx(s.Tooltip,{title:t?.goodsTransferPurposeName,children:e.jsx(s.Typography.Text,{ellipsis:!0,children:t?.goodsTransferPurposeName})}),span:4},...l.TRANSFERRED===t?.statusId?[{label:r("CustomsRegistry:errors","Ошибки"),value:e.jsx(s.Typography.Text,{onClick:N=>N.stopPropagation(),children:e.jsx(L,{declId:t?.id})}),span:4}]:[],...[l.ISSUE_REJECTED,l.REJECTED,l.REGISTRATION_REJECTED].includes(t?.statusId)?[{label:r("Declaration:rejectionReason"),value:e.jsx(s.Typography.Text,{ellipsis:!0,type:"danger",title:t?.rejectionComment,children:e.jsx(s.Tooltip,{title:t?.rejectionComment,children:t?.rejectionComment||"-"})}),span:4}]:[],...t?.markedAsPaid?[{label:r("Declaration:markedAsPaid"),value:t.markedAsPaid?a("confirmation.yes"):"",span:4}]:[]]})}):e.jsx(s.Empty,{image:s.Empty.PRESENTED_IMAGE_DEFAULT})})}):e.jsx(c.Navigate,{to:"/declarations/ptd",replace:!0})}export{W 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.