const e=require("../PickerButton.js"),t=require("../PickerTag.js"),n=require("./generateRangePicker.js"),r=require("./generateSinglePicker.js");var i={button:e.default,rangeItem:t.default};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.default(e,t);return{DatePicker:i,WeekPicker:a,MonthPicker:o,YearPicker:s,TimePicker:c,QuarterPicker:l,RangePicker:n.default(e,t)}}exports.Components=i,exports.default=s,exports.getTimeProps=o;