????

Your IP : 3.145.200.8


Current Path : C:/inetpub/vhost/donthu.gdtsolutions.vn/api/wwwroot/assets/
Upload File :
Current File : C:/inetpub/vhost/donthu.gdtsolutions.vn/api/wwwroot/assets/DetailForm-BM4Kji1j.js

var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});import{b as reactExports,bV as useFormContext,n as jsxDevRuntimeExports,P as Paper,aq as Grid,x as IconButton,I as Icon,at as Typography,aW as Divider,ac as Stack,y as Button,B as Box,F as useAuth,as as getCurrentDate,be as CHECK_SUCCESS,a9 as CHECK_WARNING,bK as formatDatetime,bI as lodashExports,o as styled,d7 as DonThuNguoiUyQuyen,q as Paragraph,c_ as TiepDan,c$ as CHECK_REQUEST,bf as CHECK_ERROR,d0 as hooks,C as Card,bS as Backdrop,aK as CircularProgress}from"./index-D8rI6KyB.js";import{j as useDonThu,E as Enums_LoaiVanBan,a as FormControl,p as FindUser,l as Enums_GioiTinh,h as useDonThuXuLy,Y as useDonThuXuLyCanBo,m as makeStyles,C as CardHeader,y as useTiepDan,L as formDataCoQuanChuyenDen,r as useDonThuNguoiDungDon,B as useDonThuNguoiUyQuyen,H as Enums_NguoiDungDon,I as formDataNguoiDungDon,J as Enums_PhanTheoSoNguoi,K as Stack$1,v as v4,u as useAsync,F as Form,M as DonForm,N as CardActions}from"./DataTable-BmTpWB90.js";import{T as Tooltip}from"./Tooltip-D7fDAfmq.js";import{T as Table,a as TableHead,b as TableRow,c as TableCell,d as TableBody}from"./TableRow-BtfKIgzM.js";import{L as LoadingButton}from"./tiny-warning.esm-31WyJMCs.js";import{C as Collapse}from"./Collapse-D-11qsGz.js";import{u as useDonThuXuLyChuyenDon}from"./DonThuXuLyChuyenDon.service-B4_YibEw.js";const formDetailCaNhan={soDinhDanh:{field_name:"donThuNguoiUyQuyen.soDinhDanh",title:"Số định danh",type:"select-creatable",disabled:!0},email:{field_name:"donThuNguoiUyQuyen.email",title:"Email",type:"textbox",rules:{required:"Vui lòng nhập",pattern:{value:/\S+@\S+\.\S+/,message:"Sai định dạng email"}},disabled:!0},hoVaTenDem:{field_name:"donThuNguoiUyQuyen.hoVaTenDem",title:"Họ và tên đệm",type:"textbox",rules:{required:"Vui lòng nhập"},disabled:!0},ten:{field_name:"donThuNguoiUyQuyen.ten",title:"Tên",type:"textbox",rules:{required:"Vui lòng nhập"},disabled:!0},gioiTinh:{field_name:"donThuNguoiUyQuyen.gioiTinh",title:"Giới tính",type:"select-custom",rules:{required:"Vui lòng nhập"},options:Enums_GioiTinh,disabled:!0},noiCapCuThe:{field_name:"donThuNguoiUyQuyen.noiCapCuThe",title:"Nơi cấp cụ thể",type:"textbox",disabled:!0},dienThoai:{field_name:"donThuNguoiUyQuyen.dienThoai",title:"Điện thoại",type:"textbox",disabled:!0},thuongTruCuThe:{field_name:"donThuNguoiUyQuyen.thuongTruCuThe",title:"Địa chỉ",type:"textbox",disabled:!0}},formLuatSu={soThe:{field_name:"luatSu.soThe",title:"Số Thẻ",type:"textbox",rules:{required:"Vui lòng nhập"}},ngayCap:{field_name:"luatSu.ngayCap",title:"Ngày cấp",type:"datetime",rules:{required:"Vui lòng nhập"}},noiCap:{field_name:"luatSu.noiCap",title:"Nơi cấp",type:"textbox",rules:{required:"Vui lòng nhập"}},thongTinGioiThieu:{field_name:"luatSu.thongTinGioiThieu",title:"Thông tin giới thiệu",type:"textbox",rules:{required:"Vui lòng nhập"}},fileId:{field_name:"luatSu.fileId",title:"Tài liệu kèm theo",type:"file",isMulti:!0}},CollapsibleUyQuyen=__name(({})=>{const{getDocument,uploadDocument}=useDonThu(),{watch}=useFormContext();return reactExports.useCallback((name,value)=>{},[]),jsxDevRuntimeExports.jsxDEV(Paper,{sx:{width:"100%",overflow:"hidden"},children:[jsxDevRuntimeExports.jsxDEV(Grid,{container:!0,xs:12,children:[jsxDevRuntimeExports.jsxDEV(Tooltip,{title:"Chi tiết ủy quyền",children:jsxDevRuntimeExports.jsxDEV(IconButton,{size:"small",color:"default",children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"info"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:131,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:130,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:129,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Typography,{display:"flex",marginBottom:0,alignItems:"center",fontWeight:"bold",fontSize:15,gutterBottom:!0,component:"div",marginRight:1,children:"Chi tiết"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:134,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Divider,{orientation:"vertical",flexItem:!0},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:146,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:128,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(Divider,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:148,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(Grid,{container:!0,xs:12,children:[jsxDevRuntimeExports.jsxDEV(FormControl,{data:{type:"hidden",name:"donThuNguoiUyQuyen.thongTinCaNhanId"},name:"donThuNguoiUyQuyen.thongTinCaNhanId"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:150,columnNumber:9},void 0),Object.entries(formDetailCaNhan).map(([key,value],idx)=>{const dataFiles=key==="fileId"?{getDocument,uploadDocument,loaiVanBan:Enums_LoaiVanBan.LAWYER,typeFolder:"DonThu",fileId:watch("fileId")}:{};return jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:6,children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...value,name:value.field_name,...dataFiles},rules:value.rules,name:value.field_name,inline:!1},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:170,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:169,columnNumber:13},void 0)})]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:149,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:127,columnNumber:5},void 0)},"CollapsibleUyQuyen"),CollapsibleLuatSu=reactExports.memo(({isLabel})=>{const{getDocument,uploadDocument}=useDonThu(),{watch}=useFormContext();return reactExports.useCallback((name,value)=>{},[]),jsxDevRuntimeExports.jsxDEV(Paper,{sx:{width:"100%",overflow:"hidden"},children:[jsxDevRuntimeExports.jsxDEV(Grid,{container:!0,xs:12,children:[jsxDevRuntimeExports.jsxDEV(Tooltip,{title:"Chi tiết ủy quyền",children:jsxDevRuntimeExports.jsxDEV(IconButton,{size:"small",color:"default",children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"info"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:202,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:201,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:200,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Typography,{display:"flex",marginBottom:0,alignItems:"center",fontWeight:"bold",fontSize:15,gutterBottom:!0,component:"div",marginRight:1,children:"Chi tiết luật sư"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:205,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Divider,{orientation:"vertical",flexItem:!0},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:217,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:199,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(Divider,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:219,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(Grid,{container:!0,xs:12,children:Object.entries(formLuatSu).map(([key,value],idx)=>{const dataFiles=key==="fileId"?{getDocument,uploadDocument,loaiVanBan:Enums_LoaiVanBan.LAWYER,typeFolder:"DonThu",fileId:watch("fileId")}:{};return jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:6,children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...value,name:value.field_name,...dataFiles,disabled:isLabel},rules:value.rules,name:value.field_name,inline:!1,...key==="fileId"?{isLabel}:{}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:235,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:234,columnNumber:13},void 0)})},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:220,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:198,columnNumber:5},void 0)}),Delegacy=reactExports.memo(({isLabel,id})=>{const[open,setOpen]=reactExports.useState(!1),{watch,setValue}=useFormContext(),addButton=reactExports.useMemo(()=>!isLabel&&jsxDevRuntimeExports.jsxDEV(Paper,{sx:{width:"100%"},elevation:3,children:jsxDevRuntimeExports.jsxDEV(Stack,{color:"blueDark",justifyContent:"center",direction:"row",alignItems:"center",children:jsxDevRuntimeExports.jsxDEV(Button,{onClick:()=>setOpen(!0),sx:{width:"100%",alignItems:"center"},startIcon:jsxDevRuntimeExports.jsxDEV(Icon,{children:[watch("donThuNguoiUyQuyen")?"change_circle":"add_circle"," "]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:279,columnNumber:26},void 0),children:watch("donThuNguoiUyQuyen.thongTinCaNhanId")?"Thay đổi":"Thêm thông tin người ủy quyền"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:276,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:275,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:274,columnNumber:9},void 0),[isLabel]);return jsxDevRuntimeExports.jsxDEV(Box,{children:[jsxDevRuntimeExports.jsxDEV(Grid,{rowGap:1,container:!0,xs:12,children:jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:12,children:jsxDevRuntimeExports.jsxDEV(Grid,{sx:{width:"auto"},container:!0,spacing:1,margin:1,children:[jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:(watch("donThuNguoiUyQuyen"),2),display:"flex",alignItems:"center",children:jsxDevRuntimeExports.jsxDEV(Stack,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:jsxDevRuntimeExports.jsxDEV("div",{children:jsxDevRuntimeExports.jsxDEV(Typography,{width:"auto",variant:"h6",fontSize:"inherit",children:[jsxDevRuntimeExports.jsxDEV("strong",{style:{color:"darksalmon"},children:"Người được ủy quyền"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:298,columnNumber:21},void 0),jsxDevRuntimeExports.jsxDEV("span",{style:{color:"red"},children:"*"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:299,columnNumber:21},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:297,columnNumber:19},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:296,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:295,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:294,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:10,display:"flex",alignItems:"center",children:addButton},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:304,columnNumber:13},void 0),watch("donThuNguoiUyQuyen.thongTinCaNhanId")&&jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:12,alignItems:"center",children:jsxDevRuntimeExports.jsxDEV(CollapsibleUyQuyen,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:309,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:308,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:293,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:292,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:291,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(FindUser,{onClose:()=>{setOpen(!1)},open,fieldParent:"donThuNguoiUyQuyen",onChoose:rowData=>{const uyQuyen={...rowData,thongTinCaNhanId:rowData.id,isLuatSu:watch("donThuNguoiUyQuyen.isLuatSu")};setValue("donThuNguoiUyQuyen",uyQuyen),setValue("donThuNguoiUyQuyen.soDinhDanh",{value:rowData.soDinhDanh,label:rowData.soDinhDanh}),setOpen(!1)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:315,columnNumber:7},void 0),jsxDevRuntimeExports.jsxDEV(FormControl,{data:{field_name:"isLuatSu",name:"isLuatSu",title:"Luật sư",type:"checkbox",labelCol:1,contentCol:10,disabled:isLabel},name:"donThuNguoiUyQuyen.isLuatSu"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:336,columnNumber:7},void 0),watch("donThuNguoiUyQuyen.isLuatSu")&&jsxDevRuntimeExports.jsxDEV(Grid,{rowGap:1,container:!0,xs:12,children:jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:12,children:jsxDevRuntimeExports.jsxDEV(Grid,{sx:{width:"auto"},container:!0,spacing:1,margin:1,children:jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:12,children:jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:12,display:"flex",alignItems:"center",children:jsxDevRuntimeExports.jsxDEV(CollapsibleLuatSu,{isLabel},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:354,columnNumber:19},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:353,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:352,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:351,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:350,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:349,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/Delegacy.tsx",lineNumber:290,columnNumber:5},void 0)}),formDataXuLy={dmPhanTheoThamQuyenId:{field_name:"donThuXuLy.dmPhanTheoThamQuyenId",title:"Thẩm quyền giải quyết",type:"select-async",value_field:"id",value_label:"name",url:"/api/buss/auth/DMPhanTheoThamQuyens",fullLine:!0,rules:{required:"Vui lòng nhập"}},dmHinhThucXuLyDonId:{field_name:"donThuXuLy.dmHinhThucXuLyDonId",title:"Hướng xử lý",type:"select-async",value_field:"id",value_label:"name",url:"/api/buss/allow/DMHinhThucXuLyDons",rules:{required:"Vui lòng nhập"},fullLine:!0},loaiDonViNhan:{field_name:"donThuXuLy.loaiDonViNhan",title:"Loại đơn vị nhận",options:[{value:1,label:"Trong hệ thống"},{value:2,label:"Ngoài hệ thống"}],type:"select-custom",fullLine:!0},coQuanTiepNhanId:{field_name:"donThuXuLy.donThuXuLyChuyenDon.coQuanTiepNhanId",title:"Cơ quan tiếp nhận",type:"select-async",url:"/api/buss/allow/Organizations",value_field:"id",value_label:"organName",rules:{required:"Vui lòng nhập"},isSearchByQuery:!0,fullLine:!0},canBoTiepNhanId:{field_name:"donThuXuLy.donThuXuLyChuyenDon.canBoTiepNhanId",title:"Cán bộ tiếp nhận",type:"select-async",url:"/api/default/allow/CanBoWithRoles/GetByOrganization",value_field:"id",value_label:"hoVaTen",rules:{required:"Vui lòng nhập"},isSearchByQuery:!0,fullLine:!0,allwayAddWhere:!0},coQuanTiepNhanNgoaiHeThong:{field_name:"donThuXuLy.donThuXuLyChuyenDon.coQuanTiepNhanNgoaiHeThong",title:"Cơ quan tiếp nhận ngoài hệ thống",type:"textbox",fullLine:!0},canBoXuLy:{field_name:"donThuXuLy.donThuXuLyCanBo.canBoId",title:"Cán bộ xử lý",type:"select-async",value_field:"id",value_label:"hoVaTen",url:"/api/buss/auth/CanBos",rules:{required:"Vui lòng nhập"},where:[{field:"dmChucVu/isLanhDao",expression:"eq",value:!1}],multiLabel:[{field:"chucVu",ligature:"-",position:"end"}],fullLine:!0,isClearable:!0},thoiHanXuLy:{field_name:"donThuXuLy.thoiHanXuLy",title:"Thời hạn",type:"datetime",fullLine:!0},dmTrangThaiXuLyDonId:{field_name:"donThuXuLy.dmTrangThaiXuLyDonId",title:"Trạng thái xử lý",url:"/api/buss/allow/DMTrangThaiXuLyDons",value_field:"id",value_label:"name",rules:{required:"Vui lòng nhập"},type:"select-async",fullLine:!0},fileId:{field_name:"donThuXuLy.fileId",title:"Tài liệu kèm theo",type:"file",isMulti:!0,fullLine:!0},yKienXuLy:{field_name:"donThuXuLy.yKienXuLy",title:"Ý kiến xử lý",type:"textarea",fullLine:!0,rules:{required:"Vui lòng nhập"}},id:{field_name:"donThuXuLy.id",type:"hidden"},donThuXuLyChuyenDonId:{field_name:"donThuXuLy.donThuXuLyChuyenDon.id",type:"hidden"},trangThai:{field_name:"donThuXuLy.donThuXuLyChuyenDon.trangThai",type:"chip",title:"Trạng thái",fullLine:!0,enums:{ChoTiepNhan:{label:"Chờ tiếp nhận",color:"primary"},TuChoi:{label:"Từ chối",color:"error"},TiepNhan:{label:"Đã tiếp nhận",color:"success"}}}},ProcessForm=reactExports.memo(reactExports.forwardRef(({id},ref)=>{const{getDocument,uploadDocument,updateLetterProcess}=useDonThuXuLy(),{postChuyenDon,updateChuyenDon}=useDonThuXuLyChuyenDon(),{watch}=useFormContext(),[isUpdate,setIsUpdate]=reactExports.useState(!1),{getValues,setValue}=useFormContext(),isChuyenDon=[3,4,5].includes(watch("donThuXuLy.dmHinhThucXuLyDonId")),{user}=useAuth(),{updateCanBoXuLy,postCanBoXuLy}=useDonThuXuLyCanBo(),handleEdit=reactExports.useCallback(async()=>{try{const data=getValues(),{id:id2,donThuXuLyCanBo,...dataForm}={...data.donThuXuLy},dataFormat=Object.entries(dataForm).reduce((pre,[key,value])=>(value&&!value.hidden&&(pre[key]=value),pre),{});delete dataFormat.loaiDonViNhan,delete dataFormat.id;const{donThuXuLyChuyenDon,...dataXuLy}=dataFormat;if(id2&&(await updateLetterProcess(id2,{...dataXuLy}),donThuXuLyCanBo.canBoId&&await postCanBoXuLy({canBoId:donThuXuLyCanBo.canBoId,donThuXuLyId:id2})),donThuXuLyChuyenDon&&[3,4,5].includes(dataXuLy.dmHinhThucXuLyDonId)){const{id:idChuyenDon,...dataChuyen}=donThuXuLyChuyenDon;idChuyenDon&&donThuXuLyChuyenDon.trangThai==="ChoTiepNhan"?await updateChuyenDon(idChuyenDon,{...dataChuyen,ngayChuyenDon:getCurrentDate({}).format()}):(delete donThuXuLyChuyenDon.trangThai,delete donThuXuLyChuyenDon.id,await postChuyenDon({...donThuXuLyChuyenDon,donThuXuLyId:id2,ngayChuyenDon:getCurrentDate({}).format()}))}CHECK_SUCCESS("Cập nhật thành công"),setIsUpdate(!1)}catch(error){console.log(error)}},[]);reactExports.useImperativeHandle(ref,()=>({enableEdit:statusEdit=>{setIsUpdate(statusEdit===StatusEdit.EDIT)},handleEdit}),[]);const checkHidden=reactExports.useCallback(name=>{let hidden=!1;switch(name){case"donThuXuLy.donThuXuLyChuyenDon.coQuanTiepNhanId":case"donThuXuLy.donThuXuLyChuyenDon.canBoTiepNhanId":hidden=!isChuyenDon||watch("donThuXuLy.loaiDonViNhan")!==1;break;case"donThuXuLy.donThuXuLyChuyenDon.coQuanTiepNhanNgoaiHeThong":hidden=!isChuyenDon||watch("donThuXuLy.loaiDonViNhan")!==2;break;case"donThuXuLy.dmTrangThaiXuLyDonId":hidden=isChuyenDon;break;case"donThuXuLy.loaiDonViNhan":hidden=!isChuyenDon;break;case"donThuXuLy.thoiHanXuLy":case"donThuXuLy.donThuXuLyCanBo.canBoId":hidden=isChuyenDon||watch("donThuXuLy.dmPhanTheoThamQuyenId")===2;break}return hidden},[watch,isChuyenDon]),checkConditions=reactExports.useCallback(name=>{let where=[];switch(name){case"donThuXuLy.donThuXuLyChuyenDon.canBoTiepNhanId":where=[{field:"organizationId",expression:"eq",value:`${watch("donThuXuLy.donThuXuLyChuyenDon.coQuanTiepNhanId")}`}];break;case"donThuXuLy.donThuXuLyChuyenDon.coQuanTiepNhanId":where=[{field:"id",expression:"ne",value:user.organizationId}];break;case"donThuXuLy.dmHinhThucXuLyDonId":watch("donThuXuLy.dmPhanTheoThamQuyenId")===1?where=[{field:"id",expression:"in",value:"(1,2,6,7)"}]:where=[{field:"id",expression:"in",value:"(3,4,5)"}];break}return where},[watch,isChuyenDon,user]);return jsxDevRuntimeExports.jsxDEV(Box,{children:[jsxDevRuntimeExports.jsxDEV(Grid,{container:!0,xs:12,children:jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:4,children:[jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...formDataXuLy.dmPhanTheoThamQuyenId,name:formDataXuLy.dmPhanTheoThamQuyenId.field_name},rules:formDataXuLy.dmPhanTheoThamQuyenId.rules,name:formDataXuLy.dmPhanTheoThamQuyenId.field_name,isLabel:id&&!isUpdate,onChange:()=>{setValue("donThuXuLy.dmHinhThucXuLyDonId",null)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:331,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(FormControl,{data:{type:"hidden",name:"donThuXuLy.id"},name:"donThuXuLy.id"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:343,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:330,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:329,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Grid,{rowGap:0,container:!0,xs:12,children:[jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...formDataXuLy.id,name:formDataXuLy.id.field_name},name:formDataXuLy.id.field_name,isLabel:id&&!isUpdate},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:353,columnNumber:11},void 0),Object.entries(formDataXuLy).map(([key,value],idx,arr)=>{const hidden=checkHidden(value.field_name),where=checkConditions(value.field_name);return["fileId","yKienXuLy","id","donThuXuLyChuyenDonId","trangThai","phanTheoDieuKien","dmPhanTheoThamQuyenId"].includes(key)?jsxDevRuntimeExports.jsxDEV(reactExports.Fragment,{},idx+key,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:381,columnNumber:15},void 0):jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:4,id:value.field_name,display:hidden?"none":"block",children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...value,name:value.field_name,where},rules:value.rules,name:value.field_name,isLabel:id&&!isUpdate,hidden},idx+key,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:371,columnNumber:17},void 0)},idx+key,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:370,columnNumber:15},void 0)}),watch("donThuXuLy.donThuXuLyChuyenDon.id",null)&&jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:4,children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...formDataXuLy.trangThai,name:formDataXuLy.trangThai.field_name},name:formDataXuLy.trangThai.field_name,isLabel:!0},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:387,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:386,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:4,children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...formDataXuLy.fileId,name:formDataXuLy.fileId.field_name,getDocument,uploadDocument,loaiVanBan:Enums_LoaiVanBan.ORGAN_RESOLVED,typeFolder:"DonThu",fileId:watch("donThuXuLy.fileId"),notChangeValue:!0},rules:formDataXuLy.fileId,name:formDataXuLy.fileId.field_name,isLabel:id&&!isUpdate},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:396,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:395,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:12,children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...formDataXuLy.yKienXuLy,name:formDataXuLy.yKienXuLy.field_name},rules:formDataXuLy.yKienXuLy.rules,name:formDataXuLy.yKienXuLy.field_name,isLabel:id&&!isUpdate},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:415,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:414,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:352,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/ProcessLetter.tsx",lineNumber:328,columnNumber:7},void 0)})),useStyles=makeStyles(()=>({table:{"& .MuiTableCell-root":{border:"1px solid rgba(224, 224, 224, 1)",padding:"12px 7px"}}})),HistoryDonForm=reactExports.memo(reactExports.forwardRef(({id},ref)=>{const[dataChuyenDon,setDataChuyenDon]=reactExports.useState([]),{getLuongChuyenDon}=useDonThu(),classes=useStyles();return reactExports.useEffect(()=>{id&&getLuongChuyenDon(id).then(cur=>{cur&&setDataChuyenDon(cur.resultObj)}).catch(err=>CHECK_WARNING("Không lấy được dữ liệu"))},[]),jsxDevRuntimeExports.jsxDEV(Box,{padding:1,children:jsxDevRuntimeExports.jsxDEV(Table,{className:classes.table,stickyHeader:!0,"aria-label":"sticky table",children:[jsxDevRuntimeExports.jsxDEV(TableHead,{children:jsxDevRuntimeExports.jsxDEV(TableRow,{sx:{border:"ActiveBorder"},children:[jsxDevRuntimeExports.jsxDEV(TableCell,{sx:{width:"4rem"},align:"center",children:"STT"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:44,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{sx:{width:"8rem"},children:"Thời gian tiếp nhận / chuyển đơn"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:47,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{sx:{width:"12rem"},align:"center",children:"Đơn vị xử lý"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:48,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{sx:{width:"12rem"},align:"center",children:"Đơn vị tiếp nhận"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:51,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{sx:{width:"10rem"},align:"center",children:"Nội dung xử lý"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:54,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{sx:{width:"10rem"},align:"center",children:"Ghi chú thời hạn xử lý"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:57,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:43,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:42,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(TableBody,{children:dataChuyenDon&&dataChuyenDon.length>0?dataChuyenDon.map((row,index)=>{var _a;return jsxDevRuntimeExports.jsxDEV(TableRow,{hover:!0,role:"checkbox",tabIndex:-1,children:[jsxDevRuntimeExports.jsxDEV(TableCell,{align:"center",children:index+1},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:67,columnNumber:21},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{align:"center",children:formatDatetime(row.ngayChuyenDon||row.ngayTiepNhan)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:68,columnNumber:21},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{align:"left",children:(_a=row.coQuanChuyenDi)==null?void 0:_a.organName},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:69,columnNumber:21},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{align:"left",children:lodashExports.get(row,"coQuanTiepNhan[0].organName","")},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:70,columnNumber:21},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{align:"left",children:row.yKienXuLy},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:71,columnNumber:21},void 0),jsxDevRuntimeExports.jsxDEV(TableCell,{align:"center"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:72,columnNumber:21},void 0)]},"row.code"+index,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:66,columnNumber:19},void 0)}):jsxDevRuntimeExports.jsxDEV(TableRow,{hover:!0,role:"checkbox",tabIndex:-1,children:jsxDevRuntimeExports.jsxDEV(TableCell,{colSpan:6,align:"center",children:jsxDevRuntimeExports.jsxDEV(Typography,{color:"darkgray",children:"Dữ liệu trống"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:79,columnNumber:19},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:78,columnNumber:17},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:77,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:62,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:41,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/HistoryProcess.tsx",lineNumber:40,columnNumber:7},void 0)})),ExpandMore=styled(props=>{const{expand,...other}=props;return jsxDevRuntimeExports.jsxDEV(IconButton,{...other},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:64,columnNumber:10},void 0)})(({theme,expand})=>({transform:expand?"rotate(0deg)":"rotate(180deg)",marginLeft:"auto",transition:theme.transitions.create("transform",{duration:theme.transitions.duration.shortest})})),CardHeaderCustom=styled(CardHeader)(({theme})=>({"& .MuiCardHeader-title":{color:"#1976d2",fontSize:"small",fontWeight:"500",padding:0},padding:5})),ThongTinChungForm=reactExports.memo(reactExports.forwardRef(({id},ref)=>{const[isUpdate,setIsUpdate]=reactExports.useState(!1),{getValues}=useFormContext(),{updateReceivingCitizens}=useTiepDan(),{updateLetter}=useDonThu(),handleEdit=reactExports.useCallback(async()=>{try{const tiepDan=getValues("tiepDan"),dataForm={};Object.entries(formDataCoQuanChuyenDen).forEach(([key,value])=>{dataForm[key]=lodashExports.get(tiepDan,key)});const{dmNhiemKyId,...tiepDanData}=dataForm;tiepDan!=null&&tiepDan.id&&await updateReceivingCitizens(tiepDan==null?void 0:tiepDan.id,tiepDanData),id&&await updateLetter(id,{dmNhiemKyId}),CHECK_SUCCESS("Cập nhật thành công"),setIsUpdate(!1)}catch{}},[id]);return reactExports.useImperativeHandle(ref,()=>({enableEdit:statusEdit=>{setIsUpdate(statusEdit==="EDIT")},handleEdit}),[]),jsxDevRuntimeExports.jsxDEV(Box,{children:jsxDevRuntimeExports.jsxDEV(Grid,{rowGap:1,container:!0,xs:12,children:Object.entries(formDataCoQuanChuyenDen).map(([key,value],idx,arr)=>jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:4,children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...value,name:value.field_name},rules:value.rules,name:value.field_name,isLabel:id&&!isUpdate},idx+key,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:146,columnNumber:17},void 0)},idx+3+key,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:145,columnNumber:15},void 0))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:142,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:141,columnNumber:7},void 0)})),NguoiDungDonForm=reactExports.memo(reactExports.forwardRef(({id},ref)=>{const[isUpdate,setIsUpdate]=reactExports.useState(!1),{watch,getValues}=useFormContext(),{updateLetter}=useDonThu(),{postUserLetter}=useDonThuNguoiDungDon(),{updateNguoiUyQuyen}=useDonThuNguoiUyQuyen(),handleChangeNS=reactExports.useCallback(async(name,value)=>{if(id)try{console.log(name,value);const nguoiDaiDien={thongTinCaNhanId:value.slice(-1)[0].thongTinCaNhan.id,loai:name==="nguoiDaiDien"?Enums_NguoiDungDon.DUNGDON:Enums_NguoiDungDon.DICUNG,donThuId:id};await postUserLetter(nguoiDaiDien)}catch{}},[id]),handleEdit=reactExports.useCallback(async()=>{try{const dataForm={};Object.entries({...formDataNguoiDungDon,donThuNguoiUyQuyen:"",luatSu:""}).forEach(([key,value])=>{dataForm[key]=lodashExports.get(getValues(),key)});const{donThuNguoiUyQuyen,luatSu,...donThu}=dataForm;delete luatSu.fileId;let nguoiUyQuyen={};donThuNguoiUyQuyen&&(nguoiUyQuyen=new DonThuNguoiUyQuyen({thongTinCaNhanId:donThuNguoiUyQuyen.thongTinCaNhanId,...luatSu,isLuatSu:donThuNguoiUyQuyen.isLuatSu})),delete nguoiUyQuyen.fileId,delete nguoiUyQuyen.donThuId,delete nguoiUyQuyen.id;const donThuSave={phanTheoSoNguoi:donThu.phanTheoSoNguoi,soNguoi:donThu.soNguoi,soNguoiDaiDien:donThu.soNguoiDaiDien};console.log(nguoiUyQuyen,donThuSave),id&&(await updateLetter(id,donThuSave),await updateNguoiUyQuyen(id,nguoiUyQuyen)),setIsUpdate(!1)}catch{}},[id]);reactExports.useImperativeHandle(ref,()=>({enableEdit:statusEdit=>{setIsUpdate(statusEdit==="EDIT")},handleEdit}),[]);const layout=reactExports.useCallback(phanTheoSoNguoi=>{switch(phanTheoSoNguoi){case"0":case"1":return 4;default:return 3}},[]);return jsxDevRuntimeExports.jsxDEV(Box,{children:[jsxDevRuntimeExports.jsxDEV(Grid,{rowGap:1,container:!0,xs:12,children:Object.entries(formDataNguoiDungDon).map(([key,value],idx,arr)=>{const formatLayout=layout(watch("phanTheoSoNguoi"));return idx===0||watch("phanTheoSoNguoi")===value.group?jsxDevRuntimeExports.jsxDEV(Grid,{item:!0,xs:formatLayout,children:jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...value,name:value.field_name},rules:value.rules,name:value.field_name,isLabel:id&&!isUpdate},idx+key,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:256,columnNumber:17},void 0)},idx+3+key,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:255,columnNumber:15},void 0):jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:268,columnNumber:15},void 0)})},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:251,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(Divider,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:272,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(FormControl,{data:formDataNguoiDungDon.nguoiDaiDien,name:formDataNguoiDungDon.nguoiDaiDien.field_name,isLabel:id&&!isUpdate,enableSaveSingle:id,onChange:handleChangeNS},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:273,columnNumber:9},void 0),watch("phanTheoSoNguoi")===Enums_PhanTheoSoNguoi[1].value&&jsxDevRuntimeExports.jsxDEV(FormControl,{data:formDataNguoiDungDon.nguoiDiCung,name:formDataNguoiDungDon.nguoiDiCung.field_name,isLabel:id&&!isUpdate,onChange:handleChangeNS,enableSaveSingle:id},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:282,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(Divider,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:290,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(FormControl,{data:{...formDataNguoiDungDon.uyQuyen,name:"uyQuyen",disabled:id&&!isUpdate},name:"uyQuyen"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:292,columnNumber:9},void 0),watch("uyQuyen")&&jsxDevRuntimeExports.jsxDEV(Delegacy,{id,isLabel:!!(id&&!isUpdate)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:296,columnNumber:30},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:250,columnNumber:7},void 0)}));var StatusEdit=(StatusEdit2=>(StatusEdit2.EDIT="EDIT",StatusEdit2.SEEN="SEEN",StatusEdit2))(StatusEdit||{});const ExpandForm=reactExports.memo(reactExports.forwardRef(({children,title,id,enableEdit=!0,titleEdit="Chỉnh sửa",isPreventEdit},ref)=>{const[expanded,setExpanded]=reactExports.useState(!0),[status,setStatus]=reactExports.useState("SEEN"),[statusSaveForm,setStatusSaveForm]=reactExports.useState("idle"),refChild=reactExports.useRef();reactExports.useEffect(()=>{id&&setStatus("SEEN")},[id]);const handleExpandClick=reactExports.useCallback(()=>{setExpanded(pre=>!pre)},[]);reactExports.useImperativeHandle(ref,()=>({handleExpandClick}),[handleExpandClick]);const childWithProps=reactExports.isValidElement(children)?reactExports.cloneElement(children,{ref:refChild,id}):children,handleSaveUpdate=reactExports.useCallback(async()=>{try{setStatusSaveForm("pending"),await refChild.current.handleEdit(),setStatus("SEEN"),setStatusSaveForm("success")}catch{}},[]);return jsxDevRuntimeExports.jsxDEV(Box,{marginBottom:1,borderRadius:"0.5rem",bgcolor:"white",boxShadow:"0px 5px 5px -3px rgba(0, 0, 0, 0.06), 0px 0px 0px 1px rgba(0, 0, 0, 0.042), 0px 3px 14px 2px rgba(0, 0, 0, 0.036)",children:[jsxDevRuntimeExports.jsxDEV(CardHeaderCustom,{title:jsxDevRuntimeExports.jsxDEV(Stack$1,{direction:"row",justifyContent:"space-between",children:[jsxDevRuntimeExports.jsxDEV(Stack$1,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[jsxDevRuntimeExports.jsxDEV(ExpandMore,{expand:expanded,onClick:handleExpandClick,"aria-label":"show more",children:jsxDevRuntimeExports.jsxDEV(Icon,{children:"expand_more"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:368,columnNumber:21},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:367,columnNumber:19},void 0),jsxDevRuntimeExports.jsxDEV(Paragraph,{children:title},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:370,columnNumber:19},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:366,columnNumber:17},void 0),id&&enableEdit&&!isPreventEdit&&jsxDevRuntimeExports.jsxDEV(Stack$1,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[status==="SEEN"&&jsxDevRuntimeExports.jsxDEV(Button,{size:"small",onClick:()=>{setExpanded(!0),refChild.current.enableEdit("EDIT"),setStatus("EDIT")},variant:"outlined",startIcon:jsxDevRuntimeExports.jsxDEV(Icon,{children:"edit"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:383,columnNumber:36},void 0),children:titleEdit},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:375,columnNumber:23},void 0),status==="EDIT"&&jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{children:statusSaveForm==="pending"?jsxDevRuntimeExports.jsxDEV(LoadingButton,{loading:!0,loadingPosition:"start",color:"success",startIcon:jsxDevRuntimeExports.jsxDEV(Icon,{children:"save"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:395,columnNumber:40},void 0),variant:"outlined",children:"Lưu"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:391,columnNumber:27},void 0):jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{children:[jsxDevRuntimeExports.jsxDEV(Button,{variant:"outlined",size:"small",onClick:handleSaveUpdate,startIcon:jsxDevRuntimeExports.jsxDEV(Icon,{children:"save"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:406,columnNumber:42},void 0),color:"success",children:"Lưu"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:402,columnNumber:29},void 0),jsxDevRuntimeExports.jsxDEV(Button,{variant:"outlined",size:"small",color:"error",onClick:()=>{refChild.current.enableEdit("SEEN"),setStatus("SEEN")},startIcon:jsxDevRuntimeExports.jsxDEV(Icon,{children:"cancel"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:419,columnNumber:42},void 0),children:"Hủy"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:411,columnNumber:29},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:401,columnNumber:27},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:389,columnNumber:23},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:373,columnNumber:19},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:365,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:363,columnNumber:11},void 0),jsxDevRuntimeExports.jsxDEV(Collapse,{in:expanded,timeout:"auto",children:childWithProps},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:432,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:356,columnNumber:9},void 0)})),Index=__name(({id,onClose})=>{const[isPreventEdit,setIsPreventEdit]=reactExports.useState(!1),{postLetter,getXuLyByDonThu}=useDonThu(),{getBienNhan}=useTiepDan(),refForm=reactExports.useRef(),refExpand=reactExports.useRef(),{user}=useAuth(),getDataById=reactExports.useCallback(async id2=>{var _a;try{let{donThuNguoiUyQuyen,tiepDan,donThuNguoiDungDons,phanTheoSoNguoi,soNguoi,soNguoiDaiDien,noiDungDon,tiepNhanTu,donThuXuLys,donThuCoQuanDaGiaiQuyet,...data}=await getXuLyByDonThu(id2),defaultVal={DICUNG:[],DUNGDON:[]},groupNguoiDungDon={DICUNG:[],DUNGDON:[]};donThuNguoiDungDons&&(groupNguoiDungDon=donThuNguoiDungDons==null?void 0:donThuNguoiDungDons.reduce((preVal,currentVal)=>{switch(currentVal.loai){case Enums_NguoiDungDon.DUNGDON:preVal.DUNGDON.push(currentVal);break;default:preVal.DICUNG.push(currentVal);break}return preVal},defaultVal));let luatSu={};if(donThuNguoiUyQuyen){const{thongTinCaNhan,...nguoiUyQuyen}=donThuNguoiUyQuyen;if(donThuNguoiUyQuyen={...nguoiUyQuyen,...thongTinCaNhan,soDinhDanh:{value:donThuNguoiUyQuyen.thongTinCaNhan.soDinhDanh,label:donThuNguoiUyQuyen.thongTinCaNhan.soDinhDanh}},donThuNguoiUyQuyen!=null&&donThuNguoiUyQuyen.isLuatSu){const{ngayCap,noiCap,soThe,thongTinGioiThieu}=donThuNguoiUyQuyen;luatSu={ngayCap,noiCap,soThe,thongTinGioiThieu}}}!lodashExports.isEmpty(donThuCoQuanDaGiaiQuyet)&&lodashExports.get(donThuCoQuanDaGiaiQuyet,"coQuanDaGiaiQuyet")?donThuCoQuanDaGiaiQuyet.isCoQuanDaGiaiQuyet=!0:donThuCoQuanDaGiaiQuyet={nonData:!0};const{ngayTiepNhan,ngayXuLy,dmHinhThucXuLyDon,dmTrangThaiXuLyDon,coQuanTiepNhan,canBoTiepNhan,ngayChuyenDon,donThuXuLyCanBo}=tiepNhanTu||{},donThuXuLy=donThuXuLys[0]||{},dataForm={id:id2,phanTheoDieuKien:data.phanTheoDieuKien,dmLoaiDoiTuongId:data.dmLoaiDoiTuongId,dmLinhVucId:data.dmLinhVucId,dmPhanTheoNoiDungId:data.dmPhanTheoNoiDungId,fileId:data.fileId,nguoiDaiDien:groupNguoiDungDon.DUNGDON.map(cur=>({...cur,thongTinCaNhan:{...cur.thongTinCaNhan,soDinhDanh:{value:cur.thongTinCaNhan.soDinhDanh,label:cur.thongTinCaNhan.soDinhDanh+" - "+cur.hoVaTen}}})),nguoiDiCung:groupNguoiDungDon.DICUNG.map(cur=>({...cur,thongTinCaNhan:{...cur.thongTinCaNhan,soDinhDanh:{value:cur.thongTinCaNhan.soDinhDanh,label:cur.thongTinCaNhan.soDinhDanh+" - "+cur.hoVaTen}}})),donThuNguoiUyQuyen,luatSu,noiDungDon,phanTheoSoNguoi,soNguoi,soNguoiDaiDien,tiepDan,dmNhiemKyId:data.dmNhiemKyId,uyQuyen:!!donThuNguoiUyQuyen,province:data.noiGhiNhanTinh,district:data.noiGhiNhanHuyen,ward:data.noiGhiNhan,noiGhiNhanCuThe:data.noiGhiNhanCuThe,tenCoQuan:data.tenCoQuan,sdtCoQuan:data.sDTCoQuan,diaChiCoQuan:data.diaChiCoQuan,donThuCoQuanDaGiaiQuyet,tiepNhanTu:{ngayTiepNhan,ngayXuLy:ngayChuyenDon?ngayChuyenDon[0]:"",hinhThucXuLyDon:dmHinhThucXuLyDon==null?void 0:dmHinhThucXuLyDon.name,trangThaiXuLyDon:dmTrangThaiXuLyDon==null?void 0:dmTrangThaiXuLyDon.name,coQuanTiepNhan:donThuXuLyCanBo==null?void 0:donThuXuLyCanBo.organName,diaChi:donThuXuLyCanBo==null?void 0:donThuXuLyCanBo.organAdd,canBoTiepNhan:canBoTiepNhan?(_a=canBoTiepNhan[0])==null?void 0:_a.hoVaTen:""},donThuXuLy:{thoiHanXuLy:donThuXuLy.thoiHanXuLy,dmPhanTheoThamQuyenId:donThuXuLy.dmPhanTheoThamQuyenId,loaiDonViNhan:donThuXuLy.loaiDonViNhan||1,fileId:donThuXuLy.fileId||v4(),id:donThuXuLy.id,dmHinhThucXuLyDonId:donThuXuLy.dmHinhThucXuLyDonId,dmTrangThaiXuLyDonId:donThuXuLy.dmTrangThaiXuLyDonId,yKienXuLy:donThuXuLy.yKienXuLy,donThuXuLyCanBo:donThuXuLy.donThuXuLyCanBo,donThuXuLyChuyenDon:{id:lodashExports.get(donThuXuLy,"chuyenDon[0].chuyenDonId",null),coQuanTiepNhanId:lodashExports.get(donThuXuLy,"chuyenDon[0].coQuanTiepNhan.id",null),canBoTiepNhanId:lodashExports.get(donThuXuLy,"chuyenDon[0].canBoTiepNhan.id",null),trangThai:lodashExports.get(donThuXuLy,"chuyenDon[0].trangThai",null),coQuanTiepNhanNgoaiHeThong:donThuXuLy.coQuanTiepNhanNgoaiHeThong}}};return(user.role==="LD"||user.role==="TT"||lodashExports.get(donThuXuLy,"chuyenDon[0].trangThai")==="TiepNhan")&&setIsPreventEdit(!0),console.log(dataForm),dataForm}catch(error){console.log(error)}},[user]),handleSubmit=reactExports.useCallback(async dataForm=>{var _a,_b;try{let{nguoiDaiDien,nguoiDiCung,donThuNguoiUyQuyen,tiepDan,luatSu,fileId,donThuCoQuanDaGiaiQuyet,...donThu}=dataForm;if(!id){const donThuNguoiDungDons=[];let nguoiUyQuyen;donThuNguoiUyQuyen&&!lodashExports.isEmpty(donThuNguoiUyQuyen)&&donThuNguoiUyQuyen.thongTinCaNhanId&&(nguoiUyQuyen=new DonThuNguoiUyQuyen({thongTinCaNhanId:donThuNguoiUyQuyen.thongTinCaNhanId,...luatSu,isLuatSu:donThuNguoiUyQuyen.isLuatSu}),delete nguoiUyQuyen.fileId),nguoiDaiDien&&nguoiDaiDien.forEach(u=>donThuNguoiDungDons.push({thongTinCaNhanId:u.thongTinCaNhan.id,loai:Enums_NguoiDungDon.DUNGDON})),nguoiDiCung&&nguoiDiCung.forEach(u=>donThuNguoiDungDons.push({thongTinCaNhanId:u.thongTinCaNhan.id,loai:Enums_NguoiDungDon.DICUNG}));const{dmNhiemKyId,...dataTiepDan}=tiepDan;delete donThu.uyQuyen,delete donThu.coQuanGiaiQuyet,delete donThu.fileId,delete nguoiUyQuyen.fileId;const tiepDanSave=new TiepDan({...dataTiepDan,dmHinhThucTiepDanId:1});delete donThuCoQuanDaGiaiQuyet.isCoQuanDaGiaiQuyet;const donThuSave={donThuNguoiDungDons,donThuNguoiUyQuyen:nguoiUyQuyen,fileId,tiepDan:tiepDanSave,...donThu,dmNhiemKyId,dmLoaiHinhTiepNhanId:2,thoiGianTiepNhan:(_a=tiepDanSave.tiepDanXuLy)==null?void 0:_a.ngayXuLy,donThuXuLys:[{ngayTiepNhan:(_b=tiepDanSave.tiepDanXuLy)==null?void 0:_b.ngayXuLy}]},{resultObj}=await postLetter(donThuSave);CHECK_REQUEST("Lưu Thành công! Xuất giấy biên nhận?","Thông báo","Giấy biên nhận",()=>getBienNhan(resultObj.tiepDanId)).then(async()=>{onClose(),console.log("Thành công")}),Promise.resolve(resultObj)}}catch(error){CHECK_ERROR(error)}},[onClose]),{execute:submitForm,status:statusSubmit}=useAsync(handleSubmit),{execute,status}=useAsync(getDataById),getInitData=reactExports.useCallback(()=>{const currentDate=hooks(),iniData={fileId:v4(),phanTheoSoNguoi:"Mot",tiepDan:{ngayTiepDan:getCurrentDate({}).format(),ngayHenTra:getCurrentDate({date:currentDate.clone().add(10,"days")}).format(),fileId:v4(),tiepDanXuLy:{ngayXuLy:getCurrentDate({}).format()}}};return Promise.resolve(iniData)},[]);return jsxDevRuntimeExports.jsxDEV(Form,{ref:refForm,onSubmit:submitForm,defaultValues:()=>id?execute(id):getInitData(),children:jsxDevRuntimeExports.jsxDEV(Card,{sx:{background:"transparent",borderRadius:"0.5rem",boxShadow:"none !important",padding:"0.2rem"},children:[jsxDevRuntimeExports.jsxDEV(Backdrop,{sx:{color:"#fff",zIndex:theme=>theme.zIndex.drawer+1},open:status==="pending"||statusSubmit==="pending",children:jsxDevRuntimeExports.jsxDEV(CircularProgress,{color:"inherit"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:701,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:697,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(ExpandForm,{isPreventEdit,id,ref:refExpand,titleEdit:"Cập nhật xử lý",title:"Xử lý tại đơn vị",children:jsxDevRuntimeExports.jsxDEV(ProcessForm,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:710,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:703,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(ExpandForm,{isPreventEdit,id,enableEdit:!1,ref:refExpand,title:"Người đứng đơn",children:jsxDevRuntimeExports.jsxDEV(NguoiDungDonForm,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:713,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:712,columnNumber:9},void 0),jsxDevRuntimeExports.jsxDEV(ExpandForm,{isPreventEdit,id,enableEdit:!1,ref:refExpand,title:"Đơn / Vụ việc",children:jsxDevRuntimeExports.jsxDEV(DonForm,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:716,columnNumber:11},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:715,columnNumber:9},void 0),id&&jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment,{children:[jsxDevRuntimeExports.jsxDEV(ExpandForm,{isPreventEdit,id,enableEdit:!1,ref:refExpand,title:"Cơ quan chuyển đến",children:jsxDevRuntimeExports.jsxDEV(ThongTinChungForm,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:727,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:720,columnNumber:13},void 0),jsxDevRuntimeExports.jsxDEV(ExpandForm,{isPreventEdit,id,enableEdit:!1,ref:refExpand,title:"Luồng xử lý đơn",children:jsxDevRuntimeExports.jsxDEV(HistoryDonForm,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:736,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:729,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:719,columnNumber:11},void 0),!id&&jsxDevRuntimeExports.jsxDEV(CardActions,{children:jsxDevRuntimeExports.jsxDEV(Stack$1,{direction:"row",justifyContent:"end",spacing:2,children:[jsxDevRuntimeExports.jsxDEV(Button,{size:"small",color:"error",startIcon:jsxDevRuntimeExports.jsxDEV(Icon,{children:"cancel"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:743,columnNumber:61},void 0),onClick:onClose,disabled:!1,children:"Hủy"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:743,columnNumber:15},void 0),jsxDevRuntimeExports.jsxDEV(Button,{size:"small",type:"button",onClick:()=>{refForm.current.submit()},variant:"outlined",startIcon:status==="pending"?jsxDevRuntimeExports.jsxDEV(CircularProgress,{size:20},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:753,columnNumber:51},void 0):jsxDevRuntimeExports.jsxDEV(Icon,{children:"save"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:753,columnNumber:84},void 0),disabled:status==="pending",children:"Lưu"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:746,columnNumber:15},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:742,columnNumber:13},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:741,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:696,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/donthu.gdtsolutions.vn/src/app/views/main/DonThuXuLy/DetailForm.tsx",lineNumber:695,columnNumber:5},void 0)},"Index"),LetterForm=reactExports.memo(Index),DetailForm=Object.assign(LetterForm,{ExpandMore,ExpandForm,ThongTinChungForm,NguoiDungDonForm});export{DetailForm as D,HistoryDonForm as H,ProcessForm as P};