const e=require("../_util/type.js"),t=require("../_util/omit.js"),n=require("../vc-util/devWarning.js"),r=require("../form/FormItemContext.js"),i=require("../date-picker/generatePicker/props.js"),a=require("../date-picker/generatePicker/index.js");let o=require("vue");var s=()=>({format:String,showNow:e.booleanType(),showHour:e.booleanType(),showMinute:e.booleanType(),showSecond:e.booleanType(),use12Hours:e.booleanType(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:e.booleanType(),popupClassName:String,status:e.stringType()});function c(e){let{TimePicker:c,RangePicker:l}=a.default(e,{...s(),order:{type:Boolean,default:!0}});return{TimePicker:(0,o.defineComponent)({name:`ATimePicker`,inheritAttrs:!1,props:{...i.commonProps(),...i.datePickerProps(),...s(),addon:{type:Function}},slots:Object,setup(e,{slots:i,expose:a,emit:s,attrs:l}){let u=e,d=r.useInjectFormItemContext();n.default(!(i.addon||u.addon),`TimePicker`,"`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");let f=(0,o.ref)();a({focus:()=>{f.value?.focus()},blur:()=>{f.value?.blur()}});let p=(e,t)=>{s(`update:value`,e),s(`change`,e,t),d.onFieldChange()},m=e=>{s(`update:open`,e),s(`openChange`,e)},h=e=>{s(`focus`,e)},g=e=>{s(`blur`,e),d.onFieldBlur()},_=e=>{s(`ok`,e)};return()=>{let{id:e=d.id.value}=u;return(0,o.createVNode)(c,{...l,...t.default(u,[`onUpdate:value`,`onUpdate:open`]),id:e,dropdownClassName:u.popupClassName,mode:void 0,ref:f,renderExtraFooter:u.addon||i.addon||u.renderExtraFooter||i.renderExtraFooter,onChange:p,onOpenChange:m,onFocus:h,onBlur:g,onOk:_},i)}}}),TimeRangePicker:(0,o.defineComponent)({name:`ATimeRangePicker`,inheritAttrs:!1,props:{...i.commonProps(),...i.rangePickerProps(),...s(),order:{type:Boolean,default:!0}},slots:Object,setup(e,{slots:n,expose:i,emit:a,attrs:s}){let c=e,u=(0,o.ref)(),d=r.useInjectFormItemContext();i({focus:()=>{u.value?.focus()},blur:()=>{u.value?.blur()}});let f=(e,t)=>{a(`update:value`,e),a(`change`,e,t),d.onFieldChange()},p=e=>{a(`update:open`,e),a(`openChange`,e)},m=e=>{a(`focus`,e)},h=e=>{a(`blur`,e),d.onFieldBlur()},g=(e,t)=>{a(`panelChange`,e,t)},_=e=>{a(`ok`,e)},v=(e,t,n)=>{a(`calendarChange`,e,t,n)};return()=>{let{id:e=d.id.value}=c;return(0,o.createVNode)(l,{...s,...t.default(c,[`onUpdate:open`,`onUpdate:value`]),id:e,dropdownClassName:c.popupClassName,picker:`time`,mode:void 0,ref:u,onChange:f,onOpenChange:p,onFocus:m,onBlur:h,onPanelChange:g,onOk:_,onCalendarChange:v},n)}}})}}exports.default=c,exports.timePickerProps=s;