1import{r as s,bG as x,l as P,j as o,P as f,aT as j,cM as g}from"./chunk-BDew4Xcu.js";import{T as E}from"./chunk-CrtXMpc9.js";import c from"./chunk-v7Lxlv0W.js";import"./chunk-B6c8rLjb.js";import"./chunk-CxSGRwnS.js";import"./nlu-mvc-react-BVgdmyC9.js";import"./chunk-jcl64Rzl.js";import"./chunk-BXXhG8cZ.js";import"./chunk-DabME7GG.js";import"./chunk-jGy5q3MD.js";import"./chunk-Di_D3Z-A.js";import"./chunk-BeE-84Ji.js";import"./chunk-B60NATuj.js";import"./chunk-BvEF8423.js";import"./chunk-CIxQO4La.js";const p=j.Citizen,V=()=>{var a,m,u;const[r,F]=s.useState(!1),[i,S]=s.useState(!1),[n,M]=s.useState("edit");let{id:t}=x();const[l,y]=s.useState("1"),T=(C,h)=>{y(h)},{data:e}=P({queryKey:[p+"edit"+t],queryFn:async()=>{if(t!=0)return g({tableName:p,id:t})}}),b=e==null?void 0:e.data,d=(((m=(a=e==null?void 0:e.PermissionModel)==null?void 0:a.ObjTrangThai)==null?void 0:m.length)??0)>0||!!((u=e==null?void 0:e.PermissionModel)!=null&&u.LogHistory);return o.jsx(f,{children:b&&d>0?o.jsx(E,{value:l,handleChangeTab:T,typeForm:n,id:t,openPopup:i,disabled:r,tableName:p,Form:o.jsx(c,{type:n,id:t,open:i,disabled:r})}):o.jsx(c,{type:n,id:t,open:i,disabled:r})})};export{V 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.