fc0d5d39b644cd9c3ea33faf8b8adb95.json
2.66 KB
{"ast":null,"code":"import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport ReactIcon from './IconBase';\nimport { normalizeTwoToneColors } from '../utils';\nexport function setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n\n return ReactIcon.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\nexport function getTwoToneColor() {\n var colors = ReactIcon.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/es/components/twoTonePrimaryColor.js"],"names":["_slicedToArray","ReactIcon","normalizeTwoToneColors","setTwoToneColor","twoToneColor","_normalizeTwoToneColo","_normalizeTwoToneColo2","primaryColor","secondaryColor","setTwoToneColors","getTwoToneColor","colors","getTwoToneColors","calculated"],"mappings":"AAAA,OAAOA,cAAP,MAA2B,0CAA3B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,sBAAT,QAAuC,UAAvC;AACA,OAAO,SAASC,eAAT,CAAyBC,YAAzB,EAAuC;AAC5C,MAAIC,qBAAqB,GAAGH,sBAAsB,CAACE,YAAD,CAAlD;AAAA,MACIE,sBAAsB,GAAGN,cAAc,CAACK,qBAAD,EAAwB,CAAxB,CAD3C;AAAA,MAEIE,YAAY,GAAGD,sBAAsB,CAAC,CAAD,CAFzC;AAAA,MAGIE,cAAc,GAAGF,sBAAsB,CAAC,CAAD,CAH3C;;AAKA,SAAOL,SAAS,CAACQ,gBAAV,CAA2B;AAChCF,IAAAA,YAAY,EAAEA,YADkB;AAEhCC,IAAAA,cAAc,EAAEA;AAFgB,GAA3B,CAAP;AAID;AACD,OAAO,SAASE,eAAT,GAA2B;AAChC,MAAIC,MAAM,GAAGV,SAAS,CAACW,gBAAV,EAAb;;AAEA,MAAI,CAACD,MAAM,CAACE,UAAZ,EAAwB;AACtB,WAAOF,MAAM,CAACJ,YAAd;AACD;;AAED,SAAO,CAACI,MAAM,CAACJ,YAAR,EAAsBI,MAAM,CAACH,cAA7B,CAAP;AACD","sourcesContent":["import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport ReactIcon from './IconBase';\nimport { normalizeTwoToneColors } from '../utils';\nexport function setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n\n return ReactIcon.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\nexport function getTwoToneColor() {\n var colors = ReactIcon.getTwoToneColors();\n\n if (!colors.calculated) {\n return colors.primaryColor;\n }\n\n return [colors.primaryColor, colors.secondaryColor];\n}"]},"metadata":{},"sourceType":"module"}