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