e2572d9c9049475ddd8927785e61233a.json
4.24 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport RcImage from 'rc-image';\nimport PreviewGroup from './PreviewGroup';\nimport { ConfigContext } from '../config-provider';\n\nvar Image = function Image(_a) {\n var customizePrefixCls = _a.prefixCls,\n otherProps = __rest(_a, [\"prefixCls\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('image', customizePrefixCls);\n return /*#__PURE__*/React.createElement(RcImage, _extends({\n prefixCls: prefixCls\n }, otherProps));\n};\n\nImage.PreviewGroup = PreviewGroup;\nexport default Image;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/image/index.js"],"names":["_extends","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","RcImage","PreviewGroup","ConfigContext","Image","_a","customizePrefixCls","prefixCls","otherProps","_React$useContext","useContext","getPrefixCls","createElement"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;;AAEA,IAAIC,MAAM,GAAG,QAAQ,KAAKA,MAAb,IAAuB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;AAClD,MAAIC,CAAC,GAAG,EAAR;;AAEA,OAAK,IAAIC,CAAT,IAAcH,CAAd,EAAiB;AACf,QAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAh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AA5B;AACA,SAAO,aAAaN,KAAK,CAACY,aAAN,CAAoBX,OAApB,EAA6BhB,QAAQ,CAAC;AACxDsB,IAAAA,SAAS,EAAEA;AAD6C,GAAD,EAEtDC,UAFsD,CAArC,CAApB;AAGD,CAXD;;AAaAJ,KAAK,CAACF,YAAN,GAAqBA,YAArB;AACA,eAAeE,KAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport RcImage from 'rc-image';\nimport PreviewGroup from './PreviewGroup';\nimport { ConfigContext } from '../config-provider';\n\nvar Image = function Image(_a) {\n var customizePrefixCls = _a.prefixCls,\n otherProps = __rest(_a, [\"prefixCls\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('image', customizePrefixCls);\n return /*#__PURE__*/React.createElement(RcImage, _extends({\n prefixCls: prefixCls\n }, otherProps));\n};\n\nImage.PreviewGroup = PreviewGroup;\nexport default Image;"]},"metadata":{},"sourceType":"module"}