import{j as u}from"./assertThisInitialized-ClXgY4BW.js";import{a as l}from"./ideExtension-Duoj5XVI.js";import{i as b}from"./inputDecorators-Mc1L5s5f.js";import{B as o}from"./ReferenceInput-DMhWsfVF.js";import"./index-BP8_t0zE.js";import"./index-BCKAMao3.js";import"./utils-CkyKHvS2.js";import"./defaultI18nProvider-C_r1y4tu.js";import"./dataProvider-BSMCbdJg.js";import"./useResourceDefinitionContext-mEDLreK0.js";import"./Create-DhH8wTBS.js";import"./Title-Db_cbkJo.js";import"./Button-C3j8Wgdd.js";import"./createSvgIcon-BeVLBbd8.js";import"./createSvgIcon-C1LdFc73.js";import"./PreferencesEditorContext-oPOmBo-a.js";import"./TextField-z9WrHgJg.js";import"./useFormControl-D0zEVldg.js";import"./Modal-CloRq8hE.js";import"./colorManipulator-DXmmM2jC.js";import"./useRecordContext-CmNI-aHo.js";import"./warning-3oRADCZr.js";import"./Card-Cv9uZOGS.js";import"./checkMinimumRequiredProps-BCJG0Ked.js";import"./pick-BQz50zYv.js";import"./hasIn-BUTlUeuZ.js";import"./_isIterateeCall-D0xvKagp.js";import"./identity-B2iMGpmP.js";import"./useCreate-CQ5Hl1r5.js";import"./useMutation-DBpLFNEy.js";import"./useLogout-DAYYFX4P.js";import"./useDataProvider-BTi1EEZL.js";import"./useAuthenticated-CxLvTTH7.js";import"./useAuthState-Chcbfem2.js";import"./useQuery-DJhJ3Hj4.js";import"./useResourceContext-BI9mATY-.js";import"./DateInput-Cata5nxE.js";import"./DeleteButton-BNKEwqMZ.js";import"./Confirm-BXDL5GEC.js";import"./Typography-E7d16C50.js";import"./useRemoveFromStore-DvPdj666.js";import"./useRedirect-BE8GZC2N.js";import"./undoableEventEmitter-DTIdLI-s.js";import"./SimpleForm-DxY-i_Qk.js";import"./Clear-2k3OxyE6.js";import"./FormGroupsProvider-B1X-6k0S.js";import"./getFieldLabelTranslationArgs-DwcCC9dO.js";import"./CircularProgress-CoZCnRya.js";import"./Toolbar-C8uTbHq-.js";import"./Stack-BmeOikgJ.js";import"./CardContent-C5u1opi3.js";import"./merge-2TaxnYbe.js";import"./_copyObject-Dr_k0OJK.js";import"./isArrayLikeObject-WBq23Ido.js";import"./OptionalRecordContextProvider-ChL7EZ8k.js";import"./ResourceContextProvider-_t2ysSg2.js";import"./NumberInput-D5bldgKh.js";import"./SelectInput-vp6FLJto.js";import"./hooks-kyAPvxe4.js";import"./MenuItem-CP3dxiK8.js";import"./listItemTextClasses-C7xWMLDP.js";import"./useGetRecordRepresentation-DwGaoA_n.js";import"./SwitchBase-GsdOADyY.js";import"./_baseUniq-BtunyI9N.js";import"./debounce-0x2xWYwC.js";import"./Chip-4IhPI0f3.js";import"./useGetList-Dit6Yzrj.js";import"./usePaginationState-CSxOqUBu.js";import"./useReference-jPRH6tHJ.js";const yr={title:"Inputs/BooleanInput",component:o,parameters:{},decorators:[...b],args:{source:"active"},argTypes:{label:{control:"text"}}},r={render:({source:p,...m})=>u.jsx(o,{source:l("active"),...m})},t={render:({label:p,source:m,...d})=>u.jsx(o,{source:l("active"),label:p,...d}),args:{label:"User is active"}};var i,e,a;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
  render: ({
    source,
    ...props
  }) => {
    return <BooleanInput source={attributeName("active")} {...props} />;
  }
}`,...(a=(e=r.parameters)==null?void 0:e.docs)==null?void 0:a.source}}};var s,n,c;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{
  render: ({
    label,
    source,
    ...props
  }) => {
    return <BooleanInput source={attributeName("active")} label={label} {...props} />;
  },
  args: {
    label: "User is active"
  }
}`,...(c=(n=t.parameters)==null?void 0:n.docs)==null?void 0:c.source}}};const Or=["Default","CustomLabel"];export{t as CustomLabel,r as Default,Or as __namedExportsOrder,yr as default};
