PromoCursed/node_modules/.cache/babel-loader/d1d21127f2b690bea19d93e530f714b95e901b84a4425dbf1db8c96fa8613130.json

1 line
1.5 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"export default function useShowNow(picker, mode, showNow, showToday, rangePicker) {\n if (mode !== 'date' && mode !== 'time') {\n return false;\n }\n if (showNow !== undefined) {\n return showNow;\n }\n\n // Compatible with old version `showToday`\n if (showToday !== undefined) {\n return showToday;\n }\n return !rangePicker && (picker === 'date' || picker === 'time');\n}","map":{"version":3,"names":["useShowNow","picker","mode","showNow","showToday","rangePicker","undefined"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-picker/es/PickerInput/hooks/useShowNow.js"],"sourcesContent":["export default function useShowNow(picker, mode, showNow, showToday, rangePicker) {\n if (mode !== 'date' && mode !== 'time') {\n return false;\n }\n if (showNow !== undefined) {\n return showNow;\n }\n\n // Compatible with old version `showToday`\n if (showToday !== undefined) {\n return showToday;\n }\n return !rangePicker && (picker === 'date' || picker === 'time');\n}"],"mappings":"AAAA,eAAe,SAASA,UAAUA,CAACC,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,SAAS,EAAEC,WAAW,EAAE;EAChF,IAAIH,IAAI,KAAK,MAAM,IAAIA,IAAI,KAAK,MAAM,EAAE;IACtC,OAAO,KAAK;EACd;EACA,IAAIC,OAAO,KAAKG,SAAS,EAAE;IACzB,OAAOH,OAAO;EAChB;;EAEA;EACA,IAAIC,SAAS,KAAKE,SAAS,EAAE;IAC3B,OAAOF,SAAS;EAClB;EACA,OAAO,CAACC,WAAW,KAAKJ,MAAM,KAAK,MAAM,IAAIA,MAAM,KAAK,MAAM,CAAC;AACjE","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}