import{j}from"./tanstack-1.0.74-aU0azVkW.js";import{a as H}from"./hooks-1.0.74-NYCTWeI9.js";import{l as O,C as m,di as w,dh as K,dg as U,cp as h,co as D,dj as P}from"./lib-1.0.74-B5IEqfHg.js";import{u as q}from"./useLocaleDayJs-1.0.74-CZZRM8Tp.js";import{d as s}from"./dayjs.min-1.0.74-DSE__uTX.js";import{L as z}from"./useMobilePicker-1.0.74-BBJYmeTF.js";import{A as B}from"./AdapterDayjs-1.0.74-BRyHMPx_.js";import{T as M}from"./TimePicker-1.0.74-gWV6OwNg.js";import"./redux-1.0.74-D8bIc6ki.js";import"./vendor-1.0.74-CN03Eozo.js";import"./utils-1.0.74-7xWhx9mc.js";import"./Languages-1.0.74-DaJcF5OJ.js";import"./index-1.0.74-DtMr5-xA.js";import"./ConfirmDialog-1.0.74-CXu4CqK2.js";import"./ButtonBase-1.0.74-W6tAH7AI.js";import"./CircularProgress-1.0.74-QfwfRJ7i.js";import"./Typography-1.0.74-B4mhsevh.js";import"./useEnhancedEffect-1.0.74-B56M26dS.js";import"./AdminTheme-1.0.74-BtTaJUu_.js";import"./Modal-1.0.74-BfLid1bk.js";import"./Portal-1.0.74-BrUPeMX9.js";import"./useThemeProps-1.0.74-eOKEtzB-.js";import"./getThemeProps-1.0.74-DOfDN6_V.js";import"./index-1.0.74-iJ_9eGZx.js";import"./index-1.0.74-DxwH6OqZ.js";import"./ThemeProvider-1.0.74-4uzbYYLM.js";import"./iconBase-1.0.74-Cs0vntJu.js";import"./InputAdornment-1.0.74-DzikPcDx.js";import"./Select-1.0.74-DHOnlEEH.js";import"./Menu-1.0.74-CdjCBJ4R.js";import"./isHostComponent-1.0.74-DVu5iVWx.js";import"./createSvgIcon-1.0.74-Cw_ZFbxi.js";import"./TextField-1.0.74-BW9Byijb.js";import"./visuallyHidden-1.0.74-Dan1xhjv.js";import"./Chip-1.0.74-BR6j83mk.js";import"./timeViewRenderers-1.0.74-DXJAb_je.js";import"./MenuItem-1.0.74-D9LDbFUb.js";const Dr=({appId:f,columnName:e,columnValue:d,columnMetaData:t,storeColumn:i,columnValidation:p,onColumnChange:g,metaData:y,storeTable:Y,storeForm:b,formMode:x,locale:o,language:k,columnEvents:r})=>{O.debug(f,e,d,t,i,p,y,Y,b,x,o,k);const C=H(),T=s(),L=m.defaultLanguage,{getDateLocale:F,dayjsIsLoading:A}=q(L);return A?null:j.jsx(z,{dateAdapter:B,adapterLocale:i.localize?F(L):void 0,children:j.jsx(M,{format:i.mysqlFormat?"HH:mm:ss":void 0,className:"pp-picker "+P(i),value:s(T.format("YYYY-MM-DD")+"T"+d),label:t.formLabel,views:["hours","minutes","seconds"],disabled:U(y,t,i,x),closeOnSelect:!0,onChange:a=>{a!==null&&!s(T.format("YYYY-MM-DD")+"T"+a).isValid()?C(h({appId:f,columnName:e,columnError:!0,columnText:o.invalidTime,columnType:D.COLUMN})):(a===null?g(e,null):g(e,s(a).format("HH:mm:ss")),C(h({appId:f,columnName:e,columnError:!1,columnText:"",columnType:D.COLUMN})))},slotProps:{textField:{error:p==null?void 0:p.error,helperText:p!=null&&p.error?p==null?void 0:p.text:K(i,o.enterTime),variant:w(),required:t.is_nullable==="NO",sx:{"& input":{textAlign:i.alignment}},onBlur: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{Dr as default};
