1486e4deda64ab7575c5c6142a07be34.json
4.17 KB
{"ast":null,"code":"import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport { getMotion } from '../utils/legacyUtil';\nexport default function Mask(props) {\n var prefixCls = props.prefixCls,\n visible = props.visible,\n zIndex = props.zIndex,\n mask = props.mask,\n maskMotion = props.maskMotion,\n maskAnimation = props.maskAnimation,\n maskTransitionName = props.maskTransitionName;\n\n if (!mask) {\n return null;\n }\n\n var motion = {};\n\n if (maskMotion || maskTransitionName || maskAnimation) {\n motion = _objectSpread({\n motionAppear: true\n }, getMotion({\n motion: maskMotion,\n prefixCls: prefixCls,\n transitionName: maskTransitionName,\n animation: maskAnimation\n }));\n }\n\n return React.createElement(CSSMotion, Object.assign({}, motion, {\n visible: visible,\n removeOnLeave: true\n }), function (_ref) {\n var className = _ref.className;\n return React.createElement(\"div\", {\n style: {\n zIndex: zIndex\n },\n className: classNames(\"\".concat(prefixCls, \"-mask\"), className)\n });\n });\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-trigger/es/Popup/Mask.js"],"names":["_objectSpread","React","classNames","CSSMotion","getMotion","Mask","props","prefixCls","visible","zIndex","mask","maskMotion","maskAnimation","maskTransitionName","motion","motionAppear","transitionName","animation","createElement","Object","assign","removeOnLeave","_ref","className","style","concat"],"mappings":"AAAA,OAAOA,aAAP,MAA0B,0CAA1B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,WAAtB;AACA,SAASC,SAAT,QAA0B,qBAA1B;AACA,eAAe,SAASC,IAAT,CAAcC,KAAd,EAAqB;AAClC,MAAIC,SAAS,GAAGD,KAAK,CAACC,SAAtB;AAAA,MACIC,OAAO,GAAGF,KAAK,CAACE,OADpB;AAAA,MAEIC,MAAM,GAAGH,KAAK,CAACG,MAFnB;AAAA,MAGIC,IAAI,GAAGJ,KAAK,CAACI,IAHjB;AAAA,MAIIC,UAAU,GAAGL,KAAK,CAACK,UAJvB;AAAA,MAKIC,aAAa,GAAGN,KAAK,CAACM,aAL1B;AAAA,MAMIC,kBAAkB,GAAGP,KAAK,CAACO,kBAN/B;;AAQA,MAAI,CAACH,IAAL,EAAW;AACT,WAAO,IAAP;AACD;;AAED,MAAII,MAAM,GAAG,EAAb;;AAEA,MAAIH,UAAU,IAAIE,kBAAd,IAAoCD,aAAxC,EAAuD;AACrDE,IAAAA,MAAM,GAAGd,aAAa,CAAC;AACrBe,MAAAA,YAAY,EAAE;AADO,KAAD,EAEnBX,SAAS,CAAC;AACXU,MAAAA,MAAM,EAAEH,UADG;AAEXJ,MAAAA,SAAS,EAAEA,SAFA;AAGXS,MAAAA,cAAc,EAAEH,kBAHL;AAIXI,MAAAA,SAAS,EAAEL;AAJA,KAAD,CAFU,CAAtB;AAQD;;AAED,SAAOX,KAAK,CAACiB,aAAN,CAAoBf,SAApB,EAA+BgB,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBN,MAAlB,EAA0B;AAC9DN,IAAAA,OAAO,EAAEA,OADqD;AAE9Da,IAAAA,aAAa,EAAE;AAF+C,GAA1B,CAA/B,EAGH,UAAUC,IAAV,EAAgB;AAClB,QAAIC,SAAS,GAAGD,IAAI,CAACC,SAArB;AACA,WAAOtB,KAAK,CAACiB,aAAN,CAAoB,KAApB,EAA2B;AAChCM,MAAAA,KAAK,EAAE;AACLf,QAAAA,MAAM,EAAEA;AADH,OADyB;AAIhCc,MAAAA,SAAS,EAAErB,UAAU,CAAC,GAAGuB,MAAH,CAAUlB,SAAV,EAAqB,OAArB,CAAD,EAAgCgB,SAAhC;AAJW,KAA3B,CAAP;AAMD,GAXM,CAAP;AAYD","sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport { getMotion } from '../utils/legacyUtil';\nexport default function Mask(props) {\n var prefixCls = props.prefixCls,\n visible = props.visible,\n zIndex = props.zIndex,\n mask = props.mask,\n maskMotion = props.maskMotion,\n maskAnimation = props.maskAnimation,\n maskTransitionName = props.maskTransitionName;\n\n if (!mask) {\n return null;\n }\n\n var motion = {};\n\n if (maskMotion || maskTransitionName || maskAnimation) {\n motion = _objectSpread({\n motionAppear: true\n }, getMotion({\n motion: maskMotion,\n prefixCls: prefixCls,\n transitionName: maskTransitionName,\n animation: maskAnimation\n }));\n }\n\n return React.createElement(CSSMotion, Object.assign({}, motion, {\n visible: visible,\n removeOnLeave: true\n }), function (_ref) {\n var className = _ref.className;\n return React.createElement(\"div\", {\n style: {\n zIndex: zIndex\n },\n className: classNames(\"\".concat(prefixCls, \"-mask\"), className)\n });\n });\n}"]},"metadata":{},"sourceType":"module"}