import e from"../PickerButton.mjs";import t from"../PickerTag.mjs";import n from"./generateRangePicker.mjs";import r from"./generateSinglePicker.mjs";var i={button:e,rangeItem:t};function a(e){return e?Array.isArray(e)?e:[e]:[]}function o(e){let{format:t,picker:n,showHour:r,showMinute:i,showSecond:o,use12Hours:s}=e,c=a(t)[0],l={...e};return c&&typeof c==`string`&&(!c.includes(`s`)&&o===void 0&&(l.showSecond=!1),!c.includes(`m`)&&i===void 0&&(l.showMinute=!1),!c.includes(`H`)&&!c.includes(`h`)&&r===void 0&&(l.showHour=!1),(c.includes(`a`)||c.includes(`A`))&&s===void 0&&(l.use12Hours=!0)),n===`time`?l:(typeof c==`function`&&delete l.format,{showTime:l})}function s(e,t){let{DatePicker:i,WeekPicker:a,MonthPicker:o,YearPicker:s,TimePicker:c,QuarterPicker:l}=r(e,t);return{DatePicker:i,WeekPicker:a,MonthPicker:o,YearPicker:s,TimePicker:c,QuarterPicker:l,RangePicker:n(e,t)}}export{i as Components,s as default,o as getTimeProps};