import{j as K}from"./tanstack-1.0.74-aU0azVkW.js";import{P}from"./react-number-format.es-1.0.74-V5uzMUOI.js";import{l as j,dg as s,di as w,dh as A,cp as b,co as d}from"./lib-1.0.74-B5IEqfHg.js";import{a as B}from"./hooks-1.0.74-NYCTWeI9.js";import{T as D}from"./TextField-1.0.74-BW9Byijb.js";import"./redux-1.0.74-D8bIc6ki.js";import"./vendor-1.0.74-CN03Eozo.js";import"./utils-1.0.74-7xWhx9mc.js";import"./CircularProgress-1.0.74-QfwfRJ7i.js";import"./ButtonBase-1.0.74-W6tAH7AI.js";import"./Typography-1.0.74-B4mhsevh.js";import"./useEnhancedEffect-1.0.74-B56M26dS.js";import"./Select-1.0.74-DHOnlEEH.js";import"./Menu-1.0.74-CdjCBJ4R.js";import"./ThemeProvider-1.0.74-4uzbYYLM.js";import"./index-1.0.74-DxwH6OqZ.js";import"./Portal-1.0.74-BrUPeMX9.js";import"./iconBase-1.0.74-Cs0vntJu.js";import"./isHostComponent-1.0.74-DVu5iVWx.js";import"./Modal-1.0.74-BfLid1bk.js";import"./createSvgIcon-1.0.74-Cw_ZFbxi.js";const m=({appId:a,columnName:p,columnValue:y,columnMetaData:e,storeColumn:i,columnValidation:f,onColumnChange:F,metaData:T,storeForm:O,formMode:h,locale:g,language:o,columnEvents:r})=>{j.debug(a,p,y,e,i,f,T,O,h,g,o);const x=B(),C={readOnly:s(T,e,i,h)};return K.jsx(P,{customInput:D,error:f==null?void 0:f.error,label:e.formLabel,value:y??"",required:e.is_nullable==="NO",slotProps:{htmlInput:C},className:i.classNames,helperText:A(i,g.enterTime),variant:w(),onValueChange:({value:t})=>{if(t===""&&e.is_nullable!=="NO")F(p,null),x(b({appId:a,columnName:p,columnError:!1,columnText:"",columnType:d.FORM}));else{F(p,(t+"000000").substring(0,6));let R=t.substring(2,3),k=t.substring(4,5);Number(R)>5||Number(k)>5?x(b({appId:a,columnName:p,columnError:!0,columnText:g.mandatoryField,columnType:d.FORM})):x(b({appId:a,columnName:p,columnError:!1,columnText:"",columnType:d.FORM}))}},onInvalid:t=>{t.preventDefault()},prefix:(i==null?void 0:i.prefix)??"",sx:{"& input":{textAlign:i.alignment}},format:"##:##:##",placeholder:"00:00:00",onBlurCapture:r==null?void 0:r.onBlur,onChangeCapture:r==null?void 0:r.onChange,onClickCapture:r==null?void 0:r.onClick,onDoubleClickCapture:r==null?void 0:r.onDoubleClick,onFocusCapture:r==null?void 0:r.onFocus,onKeyDownCapture:r==null?void 0:r.onKeyDown,onKeyUpCapture:r==null?void 0:r.onKeyUp})};export{m as default};
