"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("../PickerButton.js"),a=require("../PickerTag.js"),d=require("./generateRangePicker.js"),l=require("./generateSinglePicker.js"),k={button:f.default,rangeItem:a.default};function m(r){return r?Array.isArray(r)?r:[r]:[]}function P(r){const{format:t,picker:i,showHour:u,showMinute:o,showSecond:s,use12Hours:c}=r,e=m(t)[0],n={...r};return e&&typeof e=="string"&&(!e.includes("s")&&s===void 0&&(n.showSecond=!1),!e.includes("m")&&o===void 0&&(n.showMinute=!1),!e.includes("H")&&!e.includes("h")&&u===void 0&&(n.showHour=!1),(e.includes("a")||e.includes("A"))&&c===void 0&&(n.use12Hours=!0)),i==="time"?n:(typeof e=="function"&&delete n.format,{showTime:n})}function g(r,t){const{DatePicker:i,WeekPicker:u,MonthPicker:o,YearPicker:s,TimePicker:c,QuarterPicker:e}=l.default(r,t),n=d.default(r,t);return{DatePicker:i,WeekPicker:u,MonthPicker:o,YearPicker:s,TimePicker:c,QuarterPicker:e,RangePicker:n}}exports.Components=k;exports.default=g;exports.getTimeProps=P;
