import{j as l}from"./assertThisInitialized-ClXgY4BW.js";import{a as u}from"./ideExtension-Duoj5XVI.js";import{f}from"./fieldDecorators-DYb0TeBY.js";import{D as e}from"./DateField-Csy-M8g5.js";import"./index-BP8_t0zE.js";import"./utils-CkyKHvS2.js";import"./defaultI18nProvider-C_r1y4tu.js";import"./index-BCKAMao3.js";import"./dataProvider-BSMCbdJg.js";import"./useResourceDefinitionContext-mEDLreK0.js";import"./TextField-n0Myx-gm.js";import"./Typography-E7d16C50.js";import"./Button-C3j8Wgdd.js";import"./useRecordContext-CmNI-aHo.js";import"./ReferenceArrayField-ctaku4-6.js";import"./Box-UI_bZnlM.js";import"./hooks-kyAPvxe4.js";import"./index-qEiLzbkV.js";import"./Stack-BmeOikgJ.js";import"./Chip-4IhPI0f3.js";import"./useQuery-DJhJ3Hj4.js";import"./useLogout-DAYYFX4P.js";import"./SwitchBase-GsdOADyY.js";import"./pick-BQz50zYv.js";import"./hasIn-BUTlUeuZ.js";import"./_isIterateeCall-D0xvKagp.js";import"./identity-B2iMGpmP.js";import"./_baseUniq-BtunyI9N.js";import"./isArrayLikeObject-WBq23Ido.js";import"./useFormControl-D0zEVldg.js";import"./useDataProvider-BTi1EEZL.js";import"./useGetList-Dit6Yzrj.js";import"./usePaginationState-CSxOqUBu.js";import"./useRemoveFromStore-DvPdj666.js";import"./useResourceContext-BI9mATY-.js";import"./createSvgIcon-C1LdFc73.js";import"./useGetRecordRepresentation-DwGaoA_n.js";import"./useAuthenticated-CxLvTTH7.js";import"./useAuthState-Chcbfem2.js";import"./colorManipulator-DXmmM2jC.js";import"./ListNoResults-BHi6V5m8.js";import"./debounce-0x2xWYwC.js";import"./CardContent-C5u1opi3.js";import"./ResourceContextProvider-_t2ysSg2.js";import"./ListBase-CEqRUlEo.js";import"./Datagrid-BK2vyqjN.js";import"./getFieldLabelTranslationArgs-DwcCC9dO.js";import"./ExpandMore-Bu7ZqolT.js";import"./createSvgIcon-BeVLBbd8.js";import"./TopToolbar-BqW7kXvQ.js";import"./Toolbar-C8uTbHq-.js";import"./Confirm-BXDL5GEC.js";import"./Modal-CloRq8hE.js";import"./useMutation-DBpLFNEy.js";import"./undoableEventEmitter-DTIdLI-s.js";import"./useRefresh-BVYjI9Ho.js";import"./ReferenceField-BimPKO3B.js";import"./Clear-2k3OxyE6.js";import"./useReference-jPRH6tHJ.js";const Fr={title:"Fields/DateField",component:e,parameters:{layout:"centered"},decorators:[...f],args:{source:"date"},argTypes:{locales:{control:"text"},options:{control:"text"},showTime:{control:"boolean"},showDate:{control:"boolean"},transform:{control:"text"}}},r={render:({source:m,...t})=>l.jsx(e,{source:u("date"),...t})},o={render:({showTime:m,locales:t,source:x,...d})=>l.jsx(e,{source:u("date"),showTime:m,locales:t,...d}),args:{showTime:!0,locales:"en-US"},argTypes:{locales:{options:["fr-FR","en-US"],control:{type:"select"}}}};var p,i,s;r.parameters={...r.parameters,docs:{...(p=r.parameters)==null?void 0:p.docs,source:{originalSource:`{
  render: ({
    source,
    ...props
  }) => {
    return <DateField source={attributeName("date")} {...props} />;
  }
}`,...(s=(i=r.parameters)==null?void 0:i.docs)==null?void 0:s.source}}};var a,n,c;o.parameters={...o.parameters,docs:{...(a=o.parameters)==null?void 0:a.docs,source:{originalSource:`{
  render: ({
    showTime,
    locales,
    source,
    ...props
  }) => {
    return <DateField source={attributeName("date")} showTime={showTime} locales={locales} {...props} />;
  },
  args: {
    showTime: true,
    locales: "en-US"
  },
  argTypes: {
    locales: {
      options: ["fr-FR", "en-US"],
      control: {
        type: "select"
      }
    }
  }
}`,...(c=(n=o.parameters)==null?void 0:n.docs)==null?void 0:c.source}}};const yr=["Default","Custom"];export{o as Custom,r as Default,yr as __namedExportsOrder,Fr as default};
