{"ast":null,"code":"import { unit } from '@ant-design/cssinjs';\nimport { getTransBg } from './color-block';\nconst genPickerStyle = token => {\n  const {\n    componentCls,\n    controlHeightLG,\n    borderRadiusSM,\n    colorPickerInsetShadow,\n    marginSM,\n    colorBgElevated,\n    colorFillSecondary,\n    lineWidthBold,\n    colorPickerHandlerSize,\n    colorPickerHandlerSizeSM,\n    colorPickerSliderHeight\n  } = token;\n  return {\n    [`${componentCls}-select`]: {\n      [`${componentCls}-palette`]: {\n        minHeight: token.calc(controlHeightLG).mul(4).equal(),\n        overflow: 'hidden',\n        borderRadius: borderRadiusSM\n      },\n      [`${componentCls}-saturation`]: {\n        position: 'absolute',\n        borderRadius: 'inherit',\n        boxShadow: colorPickerInsetShadow,\n        inset: 0\n      },\n      marginBottom: marginSM\n    },\n    [`${componentCls}-handler`]: {\n      width: colorPickerHandlerSize,\n      height: colorPickerHandlerSize,\n      border: `${unit(lineWidthBold)} solid ${colorBgElevated}`,\n      position: 'relative',\n      borderRadius: '50%',\n      cursor: 'pointer',\n      boxShadow: `${colorPickerInsetShadow}, 0 0 0 1px ${colorFillSecondary}`,\n      '&-sm': {\n        width: colorPickerHandlerSizeSM,\n        height: colorPickerHandlerSizeSM\n      }\n    },\n    [`${componentCls}-slider`]: {\n      borderRadius: token.calc(colorPickerSliderHeight).div(2).equal(),\n      [`${componentCls}-palette`]: {\n        height: colorPickerSliderHeight\n      },\n      [`${componentCls}-gradient`]: {\n        borderRadius: token.calc(colorPickerSliderHeight).div(2).equal(),\n        boxShadow: colorPickerInsetShadow\n      },\n      '&-alpha': getTransBg(`${unit(colorPickerSliderHeight)}`, token.colorFillSecondary),\n      '&-hue': {\n        marginBottom: marginSM\n      }\n    },\n    [`${componentCls}-slider-container`]: {\n      display: 'flex',\n      gap: marginSM,\n      marginBottom: marginSM,\n      [`${componentCls}-slider-group`]: {\n        flex: 1,\n        '&-disabled-alpha': {\n          display: 'flex',\n          alignItems: 'center',\n          [`${componentCls}-slider`]: {\n            flex: 1,\n            marginBottom: 0\n          }\n        }\n      }\n    }\n  };\n};\nexport default genPickerStyle;","map":{"version":3,"names":["unit","getTransBg","genPickerStyle","token","componentCls","controlHeightLG","borderRadiusSM","colorPickerInsetShadow","marginSM","colorBgElevated","colorFillSecondary","lineWidthBold","colorPickerHandlerSize","colorPickerHandlerSizeSM","colorPickerSliderHeight","minHeight","calc","mul","equal","overflow","borderRadius","position","boxShadow","inset","marginBottom","width","height","border","cursor","div","display","gap","flex","alignItems"],"sources":["/var/www/gavt/node_modules/antd/es/color-picker/style/picker.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { getTransBg } from './color-block';\nconst genPickerStyle = token => {\n  const {\n    componentCls,\n    controlHeightLG,\n    borderRadiusSM,\n    colorPickerInsetShadow,\n    marginSM,\n    colorBgElevated,\n    colorFillSecondary,\n    lineWidthBold,\n    colorPickerHandlerSize,\n    colorPickerHandlerSizeSM,\n    colorPickerSliderHeight\n  } = token;\n  return {\n    [`${componentCls}-select`]: {\n      [`${componentCls}-palette`]: {\n        minHeight: token.calc(controlHeightLG).mul(4).equal(),\n        overflow: 'hidden',\n        borderRadius: borderRadiusSM\n      },\n      [`${componentCls}-saturation`]: {\n        position: 'absolute',\n        borderRadius: 'inherit',\n        boxShadow: colorPickerInsetShadow,\n        inset: 0\n      },\n      marginBottom: marginSM\n    },\n    [`${componentCls}-handler`]: {\n      width: colorPickerHandlerSize,\n      height: colorPickerHandlerSize,\n      border: `${unit(lineWidthBold)} solid ${colorBgElevated}`,\n      position: 'relative',\n      borderRadius: '50%',\n      cursor: 'pointer',\n      boxShadow: `${colorPickerInsetShadow}, 0 0 0 1px ${colorFillSecondary}`,\n      '&-sm': {\n        width: colorPickerHandlerSizeSM,\n        height: colorPickerHandlerSizeSM\n      }\n    },\n    [`${componentCls}-slider`]: {\n      borderRadius: token.calc(colorPickerSliderHeight).div(2).equal(),\n      [`${componentCls}-palette`]: {\n        height: colorPickerSliderHeight\n      },\n      [`${componentCls}-gradient`]: {\n        borderRadius: token.calc(colorPickerSliderHeight).div(2).equal(),\n        boxShadow: colorPickerInsetShadow\n      },\n      '&-alpha': getTransBg(`${unit(colorPickerSliderHeight)}`, token.colorFillSecondary),\n      '&-hue': {\n        marginBottom: marginSM\n      }\n    },\n    [`${componentCls}-slider-container`]: {\n      display: 'flex',\n      gap: marginSM,\n      marginBottom: marginSM,\n      [`${componentCls}-slider-group`]: {\n        flex: 1,\n        '&-disabled-alpha': {\n          display: 'flex',\n          alignItems: 'center',\n          [`${componentCls}-slider`]: {\n            flex: 1,\n            marginBottom: 0\n          }\n        }\n      }\n    }\n  };\n};\nexport default genPickerStyle;"],"mappings":"AAAA,SAASA,IAAI,QAAQ,qBAAqB;AAC1C,SAASC,UAAU,QAAQ,eAAe;AAC1C,MAAMC,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,YAAY;IACZC,eAAe;IACfC,cAAc;IACdC,sBAAsB;IACtBC,QAAQ;IACRC,eAAe;IACfC,kBAAkB;IAClBC,aAAa;IACbC,sBAAsB;IACtBC,wBAAwB;IACxBC;EACF,CAAC,GAAGX,KAAK;EACT,OAAO;IACL,CAAE,GAAEC,YAAa,SAAQ,GAAG;MAC1B,CAAE,GAAEA,YAAa,UAAS,GAAG;QAC3BW,SAAS,EAAEZ,KAAK,CAACa,IAAI,CAACX,eAAe,CAAC,CAACY,GAAG,CAAC,CAAC,CAAC,CAACC,KAAK,CAAC,CAAC;QACrDC,QAAQ,EAAE,QAAQ;QAClBC,YAAY,EAAEd;MAChB,CAAC;MACD,CAAE,GAAEF,YAAa,aAAY,GAAG;QAC9BiB,QAAQ,EAAE,UAAU;QACpBD,YAAY,EAAE,SAAS;QACvBE,SAAS,EAAEf,sBAAsB;QACjCgB,KAAK,EAAE;MACT,CAAC;MACDC,YAAY,EAAEhB;IAChB,CAAC;IACD,CAAE,GAAEJ,YAAa,UAAS,GAAG;MAC3BqB,KAAK,EAAEb,sBAAsB;MAC7Bc,MAAM,EAAEd,sB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