PageSourceSearch

https://zakup.gov.kz/assets/PassportData-jYha5MSb.js

js zakup.gov.kz collected 2026-10-09 16:56:41 UTC 3,493 bytes, 1 lines download raw bytes

1import{q as R,fi as w,fj as z,fk as D,fl as S,fm as T,r as j,m as c,j as e,G as u,s as C}from"./theme-3dfVej7W.js";import{F as r}from"./index-BzeA_MbD.js";import{R as v}from"./EditOutlined-Dtr1qgwG.js";import{P as q}from"./index-BZy7ibvr.js";import{R as E}from"./DeleteOutlined-A7wxyeiA.js";import{T as O}from"./index-I1ZxXO3B.js";import{R as Y}from"./PlusOutlined-DO9FITow.js";import{A as _}from"./index-wH3ULS13.js";import{F as A}from"./index-C86gn5Ct.js";import{M as G}from"./index-C016Db5J.js";import{S as Q}from"./AntdIcon-B8e_FEAo.js";import{I as f}from"./index-CQ9iPbHV.js";import{D as $}from"./index-D4v2P043.js";import"./vite-preload-helper-BXl3LOEh.js";import"./useBreakpoint-DBaSuQQQ.js";import"./useForm-Cmblz3t1.js";import"./row-M1qaIYld.js";import"./index-DqejBB-o.js";import"./PurePanel-CIovuaru.js";import"./index-CwLtvCkV.js";import"./Sider-CaqjhNAo.js";import"./EllipsisOutlined-fLaExTxN.js";import"./index-C63dYVM1.js";import"./index-D10blwUV.js";import"./EyeOutlined-DGpwx6h2.js";function xe(){const{t,i18n:h}=R("profile"),o=w(),l=z(),[y]=D(),[b]=S(),[g]=T(),[p,d]=j.useState(null),[I,n]=j.useState(!1),[i]=r.useForm(),x=s=>
1{const a=l.data?.find(m=>m.code===s);return a?h.language.startsWith("kz")&&a.name_kz?.trim()?a.name_kz:a.name_ru:s},P=[{title:t("passport.type"),dataIndex:"type",render:x},{title:t("passport.series"),dataIndex:"series"},{title:t("registration.tableNumber"),dataIndex:"number"},{title:t("passport.date"),dataIndex:"date",render:s=>s?c(s).format("YYYY-MM-DD"):"-"},{title:t("passport.organization"),dataIndex:"organization"},{title:t("passport.actions"),key:"actions",render:(s,a)=>a.editable?e.jsxs("span",{className:"flex gap-2",children:[e.jsx(u,{icon:e.jsx(v,{}),onClick:()=>{d(a),i.setFieldsValue({...a,date:a.date?c(a.date):null}),n(!0)}}),e.jsx(q,{title:t("passport.deleteConfirm"),onConfirm:()=>g(a.id).unwrap().then(()=>o.refetch()),children:e.jsx(u,{danger:!0,icon:e.jsx(E,{})})})]}):null}],F=(l.data??[]).map(s=>({value:s.code,label:x(s.code)})),k=async s=>{const a={...s,date:s.date?.toISOString()??null};try{p?await b({id:p.id,...a}).unwrap():await y(a).unwrap(),n(!1),d(null),i.resetFields(),o.refetch()}catch(m){const N=m?.data?.detail;C.error(N||t("registration.saveError"))}},M=(o.data??[]).some(s=>!s.editable);return e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx(O.Title,{level:4,children:t("passport.title")}),e.jsx(u,{type:"primary",icon:e.jsx(Y,{}),onClick:()=>{d(null),i.resetFields(),n(!0)},children:t("passport.add")})]}),M&&e.jsx(_,{className:"mb-4",type:"info",showIcon:!0,message:t("passport.integrationNote")}),e.jsx(A,{bordered:!0,loading:o.isFetching,columns:P,dataSource:o.data??[],rowKey:"id",pagination:!1,scroll:{x:800}}),e.jsx(G,{open:I,title:t(p?"passport.edit":"passport.add"),onCancel:()=>n(!1),onOk:()=>i.submit(),children:e.jsxs(r,{form:i,layout:"vertical",onFinish:k,children:[e.jsx(r.Item,{name:"type",label:t("passport.type"),rules:[{required:!0}],children:e.jsx(Q,{options:F,loading:l.isFetching})}),e.jsx(r.Item,{name:"series",label:t("passport.series"),children:e.jsx(f,{})}),e.jsx(r.Item,{name:"number",label:t("passport.number"),rules:[{required:!0}],children:e.jsx(f,{})}),e.jsx(r.Item,{name:"date",label:t("passport.date"),children:e.jsx($,{className:"w-full",disabledDate:s=>s.isAfter(c(),"day")})}),e.jsx(r.Item,{name:"organization",label:t("passport.organization"),children:e.jsx(f,{})})]})})]})}export{xe 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.