{"ast":null,"code":"import { useEvent } from 'rc-util';\nimport { isSame } from \"../../utils/dateUtil\";\n/**\n * Merge `disabledDate` with `minDate` & `maxDate`.\n */\nexport default function useDisabledBoundary(generateConfig, locale, disabledDate, minDate, maxDate) {\n var mergedDisabledDate = useEvent(function (date, info) {\n if (disabledDate && disabledDate(date, info)) {\n return true;\n }\n if (minDate && generateConfig.isAfter(minDate, date) && !isSame(generateConfig, locale, minDate, date, info.type)) {\n return true;\n }\n if (maxDate && generateConfig.isAfter(date, maxDate) && !isSame(generateConfig, locale, maxDate, date, info.type)) {\n return true;\n }\n return false;\n });\n return mergedDisabledDate;\n}","map":{"version":3,"names":["useEvent","isSame","useDisabledBoundary","generateConfig","locale","disabledDate","minDate","maxDate","mergedDisabledDate","date","info","isAfter","type"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-picker/es/PickerInput/hooks/useDisabledBoundary.js"],"sourcesContent":["import { useEvent } from 'rc-util';\nimport { isSame } from \"../../utils/dateUtil\";\n/**\n * Merge `disabledDate` with `minDate` & `maxDate`.\n */\nexport default function useDisabledBoundary(generateConfig, locale, disabledDate, minDate, maxDate) {\n var mergedDisabledDate = useEvent(function (date, info) {\n if (disabledDate && disabledDate(date, info)) {\n return true;\n }\n if (minDate && generateConfig.isAfter(minDate, date) && !isSame(generateConfig, locale, minDate, date, info.type)) {\n return true;\n }\n if (maxDate && generateConfig.isAfter(date, maxDate) && !isSame(generateConfig, locale, maxDate, date, info.type)) {\n return true;\n }\n return false;\n });\n return mergedDisabledDate;\n}"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,SAAS;AAClC,SAASC,MAAM,QAAQ,sBAAsB;AAC7C;AACA;AACA;AACA,eAAe,SAASC,mBAAmBA,CAACC,cAAc,EAAEC,MAAM,EAAEC,YAAY,EAAEC,OAAO,EAAEC,OAAO,EAAE;EAClG,IAAIC,kBAAkB,GAAGR,QAAQ,CAAC,UAAUS,IAAI,EAAEC,IAAI,EAAE;IACtD,IAAIL,YAAY,IAAIA,YAAY,CAACI,IAAI,EAAEC,IAAI,CAAC,EAAE;MAC5C,OAAO,IAAI;IACb;IACA,IAAIJ,OAAO,IAAIH,cAAc,CAACQ,OAAO,CAACL,OAAO,EAAEG,IAAI,CAAC,IAAI,CAACR,MAAM,CAACE,cAAc,EAAEC,MAAM,EAAEE,OAAO,EAAEG,IAAI,EAAEC,IAAI,CAACE,IAAI,CAAC,EAAE;MACjH,OAAO,IAAI;IACb;IACA,IAAIL,OAAO,IAAIJ,cAAc,CAACQ,OAAO,CAACF,IAAI,EAAEF,OAAO,CAAC,IAAI,CAACN,MAAM,CAACE,cAAc,EAAEC,MAAM,EAAEG,OAAO,EAAEE,IAAI,EAAEC,IAAI,CAACE,IAAI,CAAC,EAAE;MACjH,OAAO,IAAI;IACb;IACA,OAAO,KAAK;EACd,CAAC,CAAC;EACF,OAAOJ,kBAAkB;AAC3B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}