{"ast":null,"code":"/**\n * @private Internal usage only\n */\nexport const getTransBg = (size, colorFill) => ({\n  backgroundImage: `conic-gradient(${colorFill} 0 25%, transparent 0 50%, ${colorFill} 0 75%, transparent 0)`,\n  backgroundSize: `${size} ${size}`\n});\nconst genColorBlockStyle = (token, size) => {\n  const {\n    componentCls,\n    borderRadiusSM,\n    colorPickerInsetShadow,\n    lineWidth,\n    colorFillSecondary\n  } = token;\n  return {\n    [`${componentCls}-color-block`]: Object.assign(Object.assign({\n      position: 'relative',\n      borderRadius: borderRadiusSM,\n      width: size,\n      height: size,\n      boxShadow: colorPickerInsetShadow\n    }, getTransBg('50%', token.colorFillSecondary)), {\n      [`${componentCls}-color-block-inner`]: {\n        width: '100%',\n        height: '100%',\n        border: `${lineWidth}px solid ${colorFillSecondary}`,\n        borderRadius: 'inherit'\n      }\n    })\n  };\n};\nexport default genColorBlockStyle;","map":{"version":3,"names":["getTransBg","size","colorFill","backgroundImage","backgroundSize","genColorBlockStyle","token","componentCls","borderRadiusSM","colorPickerInsetShadow","lineWidth","colorFillSecondary","Object","assign","position","borderRadius","width","height","boxShadow","border"],"sources":["/var/www/gavt/node_modules/antd/es/color-picker/style/color-block.js"],"sourcesContent":["/**\n * @private Internal usage only\n */\nexport const getTransBg = (size, colorFill) => ({\n  backgroundImage: `conic-gradient(${colorFill} 0 25%, transparent 0 50%, ${colorFill} 0 75%, transparent 0)`,\n  backgroundSize: `${size} ${size}`\n});\nconst genColorBlockStyle = (token, size) => {\n  const {\n    componentCls,\n    borderRadiusSM,\n    colorPickerInsetShadow,\n    lineWidth,\n    colorFillSecondary\n  } = token;\n  return {\n    [`${componentCls}-color-block`]: Object.assign(Object.assign({\n      position: 'relative',\n      borderRadius: borderRadiusSM,\n      width: size,\n      height: size,\n      boxShadow: colorPickerInsetShadow\n    }, getTransBg('50%', token.colorFillSecondary)), {\n      [`${componentCls}-color-block-inner`]: {\n        width: '100%',\n        height: '100%',\n        border: `${lineWidth}px solid ${colorFillSecondary}`,\n        borderRadius: 'inherit'\n      }\n    })\n  };\n};\nexport default genColorBlockStyle;"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAGA,CAACC,IAAI,EAAEC,SAAS,MAAM;EAC9CC,eAAe,EAAG,kBAAiBD,SAAU,8BAA6BA,SAAU,wBAAuB;EAC3GE,cAAc,EAAG,GAAEH,IAAK,IAAGA,IAAK;AAClC,CAAC,CAAC;AACF,MAAMI,kBAAkB,GAAGA,CAACC,KAAK,EAAEL,IAAI,KAAK;EAC1C,MAAM;IACJM,YAAY;IACZC,cAAc;IACdC,sBAAsB;IACtBC,SAAS;IACTC;EACF,CAAC,GAAGL,KAAK;EACT,OAAO;IACL,CAAE,GAAEC,YAAa,cAAa,GAAGK,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC;MAC3DC,QAAQ,EAAE,UAAU;MACpBC,YAAY,EAAEP,cAAc;MAC5BQ,KAAK,EAAEf,IAAI;MACXgB,MAAM,EAAEhB,IAAI;MACZiB,SAAS,EAAET;IACb,CAAC,EAAET,UAAU,CAAC,KAAK,EAAEM,KAAK,CAACK,kBAAkB,CAAC,CAAC,EAAE;MAC/C,CAAE,GAAEJ,YAAa,oBAAmB,GAAG;QACrCS,KAAK,EAAE,MAAM;QACbC,MAAM,EAAE,MAAM;QACdE,MAAM,EAAG,GAAET,SAAU,YAAWC,kBAAmB,EAAC;QACpDI,YAAY,EAAE;MAChB;IACF,CAAC;EACH,CAAC;AACH,CAAC;AACD,eAAeV,kBAAkB"},"metadata":{},"sourceType":"module","externalDependencies":[]}