{"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":["/var/www/gavt/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"},"metadata":{},"sourceType":"module","externalDependencies":[]}