PromoCursed/node_modules/.cache/babel-loader/87859979bc80ca7871d4ab1ecaab229f414a17e45622b65b051f9889b348ddaf.json

1 line
3.2 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"import { getTransitionName } from '../../_util/motion';\nconst motion = {\n motionAppear: false,\n motionEnter: true,\n motionLeave: true\n};\nexport default function useAnimateConfig(prefixCls) {\n let animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n inkBar: true,\n tabPane: false\n };\n let mergedAnimated;\n if (animated === false) {\n mergedAnimated = {\n inkBar: false,\n tabPane: false\n };\n } else if (animated === true) {\n mergedAnimated = {\n inkBar: true,\n tabPane: true\n };\n } else {\n mergedAnimated = Object.assign({\n inkBar: true\n }, typeof animated === 'object' ? animated : {});\n }\n if (mergedAnimated.tabPane) {\n mergedAnimated.tabPaneMotion = Object.assign(Object.assign({}, motion), {\n motionName: getTransitionName(prefixCls, 'switch')\n });\n }\n return mergedAnimated;\n}","map":{"version":3,"names":["getTransitionName","motion","motionAppear","motionEnter","motionLeave","useAnimateConfig","prefixCls","animated","arguments","length","undefined","inkBar","tabPane","mergedAnimated","Object","assign","tabPaneMotion","motionName"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/tabs/hooks/useAnimateConfig.js"],"sourcesContent":["import { getTransitionName } from '../../_util/motion';\nconst motion = {\n motionAppear: false,\n motionEnter: true,\n motionLeave: true\n};\nexport default function useAnimateConfig(prefixCls) {\n let animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n inkBar: true,\n tabPane: false\n };\n let mergedAnimated;\n if (animated === false) {\n mergedAnimated = {\n inkBar: false,\n tabPane: false\n };\n } else if (animated === true) {\n mergedAnimated = {\n inkBar: true,\n tabPane: true\n };\n } else {\n mergedAnimated = Object.assign({\n inkBar: true\n }, typeof animated === 'object' ? animated : {});\n }\n if (mergedAnimated.tabPane) {\n mergedAnimated.tabPaneMotion = Object.assign(Object.assign({}, motion), {\n motionName: getTransitionName(prefixCls, 'switch')\n });\n }\n return mergedAnimated;\n}"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,oBAAoB;AACtD,MAAMC,MAAM,GAAG;EACbC,YAAY,EAAE,KAAK;EACnBC,WAAW,EAAE,IAAI;EACjBC,WAAW,EAAE;AACf,CAAC;AACD,eAAe,SAASC,gBAAgBA,CAACC,SAAS,EAAE;EAClD,IAAIC,QAAQ,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAKE,SAAS,GAAGF,SAAS,CAAC,CAAC,CAAC,GAAG;IACjFG,MAAM,EAAE,IAAI;IACZC,OAAO,EAAE;EACX,CAAC;EACD,IAAIC,cAAc;EAClB,IAAIN,QAAQ,KAAK,KAAK,EAAE;IACtBM,cAAc,GAAG;MACfF,MAAM,EAAE,KAAK;MACbC,OAAO,EAAE;IACX,CAAC;EACH,CAAC,MAAM,IAAIL,QAAQ,KAAK,IAAI,EAAE;IAC5BM,cAAc,GAAG;MACfF,MAAM,EAAE,IAAI;MACZC,OAAO,EAAE;IACX,CAAC;EACH,CAAC,MAAM;IACLC,cAAc,GAAGC,MAAM,CAACC,MAAM,CAAC;MAC7BJ,MAAM,EAAE;IACV,CAAC,EAAE,OAAOJ,QAAQ,KAAK,QAAQ,GAAGA,QAAQ,GAAG,CAAC,CAAC,CAAC;EAClD;EACA,IAAIM,cAAc,CAACD,OAAO,EAAE;IAC1BC,cAAc,CAACG,aAAa,GAAGF,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEd,MAAM,CAAC,EAAE;MACtEgB,UAAU,EAAEjB,iBAAiB,CAACM,SAAS,EAAE,QAAQ;IACnD,CAAC,CAAC;EACJ;EACA,OAAOO,cAAc;AACvB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}