{"version":3,"file":"useFormAccommodationWithDiscounts.kXKd8HVb.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-forms/components/inputs/accommodation/hooks/useFormAccommodationWithDiscounts.js"],"sourcesContent":["import { useInput } from '../../../../hooks/useInput/index.js';\n\nconst useFormAccommodationWithDiscounts = (props)=>{\n const { isHiddenRequired: _isHiddenRequired, ...rest } = props;\n const { field, label, error, hasError } = useInput(props);\n const { field: discountField, error: discountError, hasError: discountHasError } = useInput(props.discount);\n const { field: residentField, error: residentError, hasError: residentHasError } = useInput(props.resident);\n return {\n ...rest,\n ...field,\n discount: discountField,\n resident: residentField,\n label: label,\n hasError: hasError || discountHasError || residentHasError,\n error: error ?? discountError ?? residentError\n };\n};\n\nexport { useFormAccommodationWithDiscounts as default };\n//# sourceMappingURL=useFormAccommodationWithDiscounts.js.map\n"],"names":["useFormAccommodationWithDiscounts","props","_isHiddenRequired","rest","field","label","error","hasError","useInput","discountField","discountError","discountHasError","residentField","residentError","residentHasError"],"mappings":"yCAEK,MAACA,EAAqCC,GAAQ,CAC/C,KAAM,CAAE,iBAAkBC,EAAmB,GAAGC,CAAM,EAAGF,EACnD,CAAE,MAAAG,EAAO,MAAAC,EAAO,MAAAC,EAAO,SAAAC,CAAU,EAAGC,EAASP,CAAK,EAClD,CAAE,MAAOQ,EAAe,MAAOC,EAAe,SAAUC,GAAqBH,EAASP,EAAM,QAAQ,EACpG,CAAE,MAAOW,EAAe,MAAOC,EAAe,SAAUC,GAAqBN,EAASP,EAAM,QAAQ,EAC1G,MAAO,CACH,GAAGE,EACH,GAAGC,EACH,SAAUK,EACV,SAAUG,EACV,MAAOP,EACP,SAAUE,GAAYI,GAAoBG,EAC1C,MAAOR,GAASI,GAAiBG,CACpC,CACL","x_google_ignoreList":[0]}