1b530629e9e4f9e3f8b122bb253e2d43.json
3.77 KB
{"ast":null,"code":"\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setTwoToneColor = setTwoToneColor;\nexports.getTwoToneColor = getTwoToneColor;\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _IconBase = _interopRequireDefault(require(\"./IconBase\"));\n\nvar _utils = require(\"../utils\");\n\nfunction setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = (0, _utils.normalizeTwoToneColors)(twoToneColor),\n _normalizeTwoToneColo2 = (0, _slicedToArray2.default)(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n\n return _IconBase.default.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\n\nfunction getTwoToneColor() {\n var colors = _IconBase.default.getTwoToneColors();\n\n if (!colors.calculated) {\n return colors.primaryColor;\n }\n\n return [colors.primaryColor, colors.secondaryColor];\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/@ant-design/icons/lib/components/twoTonePrimaryColor.js"],"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","setTwoToneColor","getTwoToneColor","_slicedToArray2","_IconBase","_utils","twoToneColor","_normalizeTwoToneColo","normalizeTwoToneColors","_normalizeTwoToneColo2","default","primaryColor","secondaryColor","setTwoToneColors","colors","getTwoToneColors","calculated"],"mappings":"AAAA;;AAEA,IAAIA,sBAAsB,GAAGC,OAAO,CAAC,8CAAD,CAApC;;AAEAC,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAC3CC,EAAAA,KAAK,EAAE;AADoC,CAA7C;AAGAD,OAAO,CAACE,eAAR,GAA0BA,eAA1B;AACAF,OAAO,CAACG,eAAR,GAA0BA,eAA1B;;AAEA,IAAIC,eAAe,GAAGR,sBAAsB,CAACC,OAAO,CAAC,sCAAD,CAAR,CAA5C;;AAEA,IAAIQ,SAAS,GAAGT,sBAAsB,CAACC,OAAO,CAAC,YAAD,CAAR,CAAtC;;AAEA,IAAIS,MAAM,GAAGT,OAAO,CAAC,UAAD,CAApB;;AAEA,SAASK,eAAT,CAAyBK,YAAzB,EAAuC;AACrC,MAAIC,qBAAqB,GAAG,CAAC,GAAGF,MAAM,CAACG,sBAAX,EAAmCF,YAAnC,CAA5B;AAAA,MACIG,sBAAsB,GAAG,CAAC,GAAGN,eAAe,CAACO,OAApB,EAA6BH,qBAA7B,EAAoD,CAApD,CAD7B;AAAA,MAEII,YAAY,GAAGF,sBAAsB,CAAC,CAAD,CAFzC;AAAA,MAGIG,cAAc,GAAGH,sBAAsB,CAAC,CAAD,CAH3C;;AAKA,SAAOL,SAAS,CAACM,OAAV,CAAkBG,gBAAlB,CAAmC;AACxCF,IAAAA,YAAY,EAAEA,YAD0B;AAExCC,IAAAA,cAAc,EAAEA;AAFwB,GAAnC,CAAP;AAID;;AAED,SAASV,eAAT,GAA2B;AACzB,MAAIY,MAAM,GAAGV,SAAS,CAACM,OAAV,CAAkBK,gBAAlB,EAAb;;AAEA,MAAI,CAACD,MAAM,CAACE,UAAZ,EAAwB;AACtB,WAAOF,MAAM,CAACH,YAAd;AACD;;AAED,SAAO,CAACG,MAAM,CAACH,YAAR,EAAsBG,MAAM,CAACF,cAA7B,CAAP;AACD","sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setTwoToneColor = setTwoToneColor;\nexports.getTwoToneColor = getTwoToneColor;\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _IconBase = _interopRequireDefault(require(\"./IconBase\"));\n\nvar _utils = require(\"../utils\");\n\nfunction setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = (0, _utils.normalizeTwoToneColors)(twoToneColor),\n _normalizeTwoToneColo2 = (0, _slicedToArray2.default)(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n\n return _IconBase.default.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\n\nfunction getTwoToneColor() {\n var colors = _IconBase.default.getTwoToneColors();\n\n if (!colors.calculated) {\n return colors.primaryColor;\n }\n\n return [colors.primaryColor, colors.secondaryColor];\n}"]},"metadata":{},"sourceType":"script"}