import{j as a}from"./jsx-runtime-Dfk2JFgj.js";import{r as n}from"./index-CWN_QRa1.js";import{e as m,h as r}from"./index-DNsi8NHw.js";import"./index-CIVavKlu.js";import"./index-DllfNvuz.js";import"./DefaultPropsProvider-BPu7lNPC.js";import"./CheckGroup-BpaEcK_0.js";import"./v4-CtRu48qb.js";import"./index-6WYjB5r3.js";import"./index-Bk93qgka.js";import"./index-DnVHLn3F.js";import"./index-Cj3pldWQ.js";import"./tiny-invariant-CopsF_GD.js";import"./iframe-BT4Dhm0c.js";import"./index-DgIb9kCw.js";const v={title:"Components/DateRangePickerModal",component:m,argTypes:{id:{table:{disable:!0}},onChange:{table:{disable:!0}},className:{table:{disable:!0}},style:{table:{disable:!0}},startDate:{control:{type:"text"}},endDate:{control:{type:"text"}},maxDate:{control:{type:"text"}},minDate:{control:{type:"text"}},customRangeDate:{control:{type:"number"}}}},x=t=>{const[l,i]=n.useState(t.startDate&&r(t.startDate)||void 0),[u,p]=n.useState(t.endDate&&r(t.endDate)||null),D=(c,h)=>{i(c),p(h)};return a.jsx("div",{style:{width:"350px"},children:a.jsx(m,{...t,startDate:l,endDate:u,onChange:D,maxDate:t.maxDate})})},e=x.bind({});e.args={timePickerType:"selects",showTwoMonths:!0,withTime:!1,customRangeDate:0,dateFormat:"MMM DD, YYYY hh:mm A"};var o,s,d;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`args => {
  const [dateStartValue, setDateStartValue] = useState<moment.Moment | undefined>(args.startDate && moment(args.startDate) || undefined);
  const [dateEndValue, setDateEndValue] = useState<moment.Moment | null>(args.endDate && moment(args.endDate) || null);
  const handleChange = (start, end) => {
    setDateStartValue(start);
    setDateEndValue(end);
  };
  return <div style={{
    width: "350px"
  }}>
    <DateRangePickerModal {...args} startDate={dateStartValue} endDate={dateEndValue} onChange={handleChange} maxDate={args.maxDate} />
  </div>;
}`,...(d=(s=e.parameters)==null?void 0:s.docs)==null?void 0:d.source}}};const Y=["Modal"];export{e as Modal,Y as __namedExportsOrder,v as default};
