{"version":3,"file":"static/js/4179.3654c096.chunk.js","mappings":"6HAEAA,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,kBAAoBF,EAAQG,uBAAyBH,EAAiB,aAAI,EAClF,IAEII,EAAqB,WACvB,MAAO,CACLC,OAAQ,EACRC,QAAS,EAEb,EACIC,EAAgB,SAAuBC,GAEzC,MAAO,CACLH,OAFiBG,EAAKC,aAGtBH,QAAS,EAEb,EAMII,EAAwB,SAA+BC,EAAGC,GAC5D,OAA0E,KAAxD,OAAVA,QAA4B,IAAVA,OAAmB,EAASA,EAAMC,WAA6C,WAAvBD,EAAME,YAC1F,EACIC,EAAiB,CACnBC,WAAY,sBACZC,cAAeb,EACfc,aAAcd,EACde,eAAgBZ,EAChBa,cAAeb,EACfc,aAdqB,SAA0Bb,GAC/C,MAAO,CACLH,OAAQG,EAAOA,EAAKc,aAAe,EAEvC,EAWEC,cAAenB,EACfoB,YAAad,EACbe,WAAYf,EACZgB,WAAYhB,EACZiB,eAAgB,MAEK,EApCXC,EAAQ,OAoCaC,OAAO,aAAc,cAAe,UAAW,YAOhF7B,EAAQG,uBANqB,SAAgC2B,GAC3D,YAAkBC,IAAdD,GAA0C,YAAdA,GAAyC,aAAdA,EAGpD,WAFE,YAGX,EAQA9B,EAAQE,kBANgB,SAA2B8B,EAAeC,EAAQC,GACxE,YAAuBH,IAAnBG,EACKA,EAEF,GAAGC,OAAOH,EAAe,KAAKG,OAAOF,EAC9C,EAEA,IAAIG,EAAWrB,EACff,EAAiB,QAAIoC,C","sources":["../node_modules/antd/lib/_util/motion.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getTransitionName = exports.getTransitionDirection = exports[\"default\"] = void 0;\nvar _type = require(\"./type\");\n// ================== Collapse Motion ==================\nvar getCollapsedHeight = function getCollapsedHeight() {\n return {\n height: 0,\n opacity: 0\n };\n};\nvar getRealHeight = function getRealHeight(node) {\n var scrollHeight = node.scrollHeight;\n return {\n height: scrollHeight,\n opacity: 1\n };\n};\nvar getCurrentHeight = function getCurrentHeight(node) {\n return {\n height: node ? node.offsetHeight : 0\n };\n};\nvar skipOpacityTransition = function skipOpacityTransition(_, event) {\n return (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';\n};\nvar collapseMotion = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500\n};\nvar SelectPlacements = (0, _type.tuple)('bottomLeft', 'bottomRight', 'topLeft', 'topRight');\nvar getTransitionDirection = function getTransitionDirection(placement) {\n if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {\n return \"slide-down\";\n }\n return \"slide-up\";\n};\nexports.getTransitionDirection = getTransitionDirection;\nvar getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) {\n if (transitionName !== undefined) {\n return transitionName;\n }\n return \"\".concat(rootPrefixCls, \"-\").concat(motion);\n};\nexports.getTransitionName = getTransitionName;\nvar _default = collapseMotion;\nexports[\"default\"] = _default;"],"names":["Object","defineProperty","exports","value","getTransitionName","getTransitionDirection","getCollapsedHeight","height","opacity","getRealHeight","node","scrollHeight","skipOpacityTransition","_","event","deadline","propertyName","collapseMotion","motionName","onAppearStart","onEnterStart","onAppearActive","onEnterActive","onLeaveStart","offsetHeight","onLeaveActive","onAppearEnd","onEnterEnd","onLeaveEnd","motionDeadline","require","tuple","placement","undefined","rootPrefixCls","motion","transitionName","concat","_default"],"sourceRoot":""}