????

Your IP : 216.73.216.35


Current Path : C:/inetpub/vhost/kiemkegpmb.gdtsolutions.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/kiemkegpmb.gdtsolutions.vn/www/assets/FormDetailAutoCustom-630c411d.js

import{r as s,i as T,j as o}from"./index-66f9303d.js";import{c as E,j as p,t as k,B as F}from"./DropdownList-64abc4b5.js";const $=s.forwardRef(({Id:m,columns:n,children:f,title:a,titleNew:i,url:r,apiGetData:l,isPadding:j,defaultValue:t,getData:b,style:C},h)=>{let x=n.filter(e=>e.type||e.tabName),N=E(x)||[];const g=n.filter(e=>e.type),v=t?{...p(g),...t}:p(g),[A,d]=s.useState(v);s.useImperativeHandle(h,()=>({loadData(){u()}})),s.useEffect(()=>{t&&d(t)},[t]);const D=e=>typeof e=="string"?`'${e}'`:e,u=s.useCallback(()=>{let e=l||`${r}(${D(m)})${k(n)?`?$expand=${k(n)}`:""}`;r&&(m||m===0)&&T(e,"GET",null,{odata:!l}).then(c=>{d(c),b&&b(c)})},[m,l,r]);return s.useEffect(()=>{u()},[u]),o.jsxDEV(o.Fragment,{children:o.jsxDEV("div",{children:o.jsxDEV("div",{style:C,className:j?"":"form-detail-custom",children:[a!==!1&&o.jsxDEV("div",{className:"d-flex align-items-start justify-content-between hidden-by-formcontrol",children:o.jsxDEV("div",{className:"d-flex align-items-center gap-4",children:i&&typeof i!="string"?i:o.jsxDEV("h3",{className:"fw-bold mb-0",children:i||`Thông tin chi tiết ${a||""}`},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/components/TableAutoCustom/Custom/FormDetailAutoCustom.jsx",lineNumber:55,columnNumber:21},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/components/TableAutoCustom/Custom/FormDetailAutoCustom.jsx",lineNumber:51,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/components/TableAutoCustom/Custom/FormDetailAutoCustom.jsx",lineNumber:50,columnNumber:15},globalThis),o.jsxDEV(F,{listFormControl:N,title:a,data:A,children:f},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/components/TableAutoCustom/Custom/FormDetailAutoCustom.jsx",lineNumber:60,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/components/TableAutoCustom/Custom/FormDetailAutoCustom.jsx",lineNumber:48,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/components/TableAutoCustom/Custom/FormDetailAutoCustom.jsx",lineNumber:47,columnNumber:9},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/components/TableAutoCustom/Custom/FormDetailAutoCustom.jsx",lineNumber:46,columnNumber:7},globalThis)});export{$ as F};