import{B as t,x as U,q as c,d as O,k as N,g as B,z as d}from"./app-Bei_nIK3.js";import{g as D,c as w,d as H,r as q,a as z}from"./index-C4lvqdg3.js";import{h as M,o as R}from"./useFlexGapSupport-I9-A4OAO.js";import{u as S}from"./TextArea-BzmabrVb.js";const T=()=>({format:String,showNow:c(),showHour:c(),showMinute:c(),showSecond:c(),use12Hours:c(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:c(),popupClassName:String,status:U()});function V(u){const I=D(u,t(t({},T()),{order:{type:Boolean,default:!0}})),{TimePicker:_,RangePicker:y}=I,j=O({name:"ATimePicker",inheritAttrs:!1,props:t(t(t(t({},w()),H()),T()),{addon:{type:Function}}),slots:Object,setup(m,g){let{slots:i,expose:C,emit:n,attrs:h}=g;const a=m,r=S();M(!(i.addon||a.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const s=N();C({focus:()=>{var o;(o=s.value)===null||o===void 0||o.focus()},blur:()=>{var o;(o=s.value)===null||o===void 0||o.blur()}});const k=(o,F)=>{n("update:value",o),n("change",o,F),r.onFieldChange()},f=o=>{n("update:open",o),n("openChange",o)},P=o=>{n("focus",o)},v=o=>{n("blur",o),r.onFieldBlur()},b=o=>{n("ok",o)};return()=>{const{id:o=r.id.value}=a;return B(_,d(d(d({},h),R(a,["onUpdate:value","onUpdate:open"])),{},{id:o,dropdownClassName:a.popupClassName,mode:void 0,ref:s,renderExtraFooter:a.addon||i.addon||a.renderExtraFooter||i.renderExtraFooter,onChange:k,onOpenChange:f,onFocus:P,onBlur:v,onOk:b}),i)}}}),A=O({name:"ATimeRangePicker",inheritAttrs:!1,props:t(t(t(t({},w()),q()),T()),{order:{type:Boolean,default:!0}}),slots:Object,setup(m,g){let{slots:i,expose:C,emit:n,attrs:h}=g;const a=m,r=N(),s=S();C({focus:()=>{var e;(e=r.value)===null||e===void 0||e.focus()},blur:()=>{var e;(e=r.value)===null||e===void 0||e.blur()}});const k=(e,l)=>{n("update:value",e),n("change",e,l),s.onFieldChange()},f=e=>{n("update:open",e),n("openChange",e)},P=e=>{n("focus",e)},v=e=>{n("blur",e),s.onFieldBlur()},b=(e,l)=>{n("panelChange",e,l)},o=e=>{n("ok",e)},F=(e,l,E)=>{n("calendarChange",e,l,E)};return()=>{const{id:e=s.id.value}=a;return B(y,d(d(d({},h),R(a,["onUpdate:open","onUpdate:value"])),{},{id:e,dropdownClassName:a.popupClassName,picker:"time",mode:void 0,ref:r,onChange:k,onOpenChange:f,onFocus:P,onBlur:v,onPanelChange:b,onOk:o,onCalendarChange:F}),i)}}});return{TimePicker:j,TimeRangePicker:A}}const{TimePicker:p,TimeRangePicker:x}=V(z),K=t(p,{TimePicker:p,TimeRangePicker:x,install:u=>(u.component(p.name,p),u.component(x.name,x),u)});export{K as T,x as a};
