{"ast":null,"code":"const genPresetsStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    colorTextQuaternary,\n    paddingXXS,\n    colorPickerPresetColorSize,\n    fontSizeSM,\n    colorText,\n    lineHeightSM,\n    lineWidth,\n    borderRadius,\n    colorFill,\n    colorWhite,\n    marginXXS,\n    paddingXS\n  } = token;\n  return {\n    [`${componentCls}-presets`]: {\n      [`${antCls}-collapse-item > ${antCls}-collapse-header`]: {\n        padding: 0,\n        [`${antCls}-collapse-expand-icon`]: {\n          height: fontSizeSM * lineHeightSM,\n          color: colorTextQuaternary,\n          paddingInlineEnd: paddingXXS\n        }\n      },\n      [`${antCls}-collapse`]: {\n        display: 'flex',\n        flexDirection: 'column',\n        gap: marginXXS\n      },\n      [`${antCls}-collapse-item > ${antCls}-collapse-content > ${antCls}-collapse-content-box`]: {\n        padding: `${paddingXS}px 0`\n      },\n      '&-label': {\n        fontSize: fontSizeSM,\n        color: colorText,\n        lineHeight: lineHeightSM\n      },\n      '&-items': {\n        display: 'flex',\n        flexWrap: 'wrap',\n        gap: marginXXS * 1.5,\n        [`${componentCls}-presets-color`]: {\n          position: 'relative',\n          cursor: 'pointer',\n          width: colorPickerPresetColorSize,\n          height: colorPickerPresetColorSize,\n          '&::before': {\n            content: '\"\"',\n            pointerEvents: 'none',\n            width: colorPickerPresetColorSize + 4 * lineWidth,\n            height: colorPickerPresetColorSize + 4 * lineWidth,\n            position: 'absolute',\n            top: -2 * lineWidth,\n            insetInlineStart: -2 * lineWidth,\n            borderRadius,\n            border: `${lineWidth}px solid transparent`,\n            transition: `border-color ${token.motionDurationMid} ${token.motionEaseInBack}`\n          },\n          '&:hover::before': {\n            borderColor: colorFill\n          },\n          '&::after': {\n            boxSizing: 'border-box',\n            position: 'absolute',\n            top: '50%',\n            insetInlineStart: '21.5%',\n            display: 'table',\n            width: colorPickerPresetColorSize / 13 * 5,\n            height: colorPickerPresetColorSize / 13 * 8,\n            border: `${token.lineWidthBold}px solid ${token.colorWhite}`,\n            borderTop: 0,\n            borderInlineStart: 0,\n            transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',\n            opacity: 0,\n            content: '\"\"',\n            transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`\n          },\n          [`&${componentCls}-presets-color-checked`]: {\n            '&::after': {\n              opacity: 1,\n              borderColor: colorWhite,\n              transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',\n              transition: `transform ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`\n            },\n            [`&${componentCls}-presets-color-bright`]: {\n              '&::after': {\n                borderColor: 'rgba(0, 0, 0, 0.45)'\n              }\n            }\n          }\n        }\n      },\n      '&-empty': {\n        fontSize: fontSizeSM,\n        color: colorTextQuaternary\n      }\n    }\n  };\n};\nexport default genPresetsStyle;","map":{"version":3,"names":["genPresetsStyle","token","componentCls","antCls","colorTextQuaternary","paddingXXS","colorPickerPresetColorSize","fontSizeSM","colorText","lineHeightSM","lineWidth","borderRadius","colorFill","colorWhite","marginXXS","paddingXS","padding","height","color","paddingInlineEnd","display","flexDirection","gap","fontSize","lineHeight","flexWrap","position","cursor","width","content","pointerEvents","top","insetInlineStart","border","transition","motionDurationMid","motionEaseInBack","borderColor","boxSizing","lineWidthBold","borderTop","borderInlineStart","transform","opacity","motionDurationFast","motionEaseOutBack"],"sources":["/var/www/gavt/node_modules/antd/es/color-picker/style/presets.js"],"sourcesContent":["const genPresetsStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    colorTextQuaternary,\n    paddingXXS,\n    colorPickerPresetColorSize,\n    fontSizeSM,\n    colorText,\n    lineHeightSM,\n    lineWidth,\n    borderRadius,\n    colorFill,\n    colorWhite,\n    marginXXS,\n    paddingXS\n  } = token;\n  return {\n    [`${componentCls}-presets`]: {\n      [`${antCls}-collapse-item > ${antCls}-collapse-header`]: {\n        padding: 0,\n        [`${antCls}-collapse-expand-icon`]: {\n          height: fontSizeSM * lineHeightSM,\n          color: colorTextQuaternary,\n          paddingInlineEnd: paddingXXS\n        }\n      },\n      [`${antCls}-collapse`]: {\n        display: 'flex',\n        flexDirection: 'column',\n        gap: marginXXS\n      },\n      [`${antCls}-collapse-item > ${antCls}-collapse-content > ${antCls}-collapse-content-box`]: {\n        padding: `${paddingXS}px 0`\n      },\n      '&-label': {\n        fontSize: fontSizeSM,\n        color: colorText,\n        lineHeight: lineHeightSM\n      },\n      '&-items': {\n        display: 'flex',\n        flexWrap: 'wrap',\n        gap: marginXXS * 1.5,\n        [`${componentCls}-presets-color`]: {\n          position: 'relative',\n          cursor: 'pointer',\n          width: colorPickerPresetColorSize,\n          height: colorPickerPresetColorSize,\n          '&::before': {\n            content: '\"\"',\n            pointerEvents: 'none',\n            width: colorPickerPresetColorSize + 4 * lineWidth,\n            height: colorPickerPresetColorSize + 4 * lineWidth,\n            position: 'absolute',\n            top: -2 * lineWidth,\n            insetInlineStart: -2 * lineWidth,\n            borderRadius,\n            border: `${lineWidth}px solid transparent`,\n            transition: `border-color ${token.motionDurationMid} ${token.motionEaseInBack}`\n          },\n          '&:hover::before': {\n            borderColor: colorFill\n          },\n          '&::after': {\n            boxSizing: 'border-box',\n            position: 'absolute',\n            top: '50%',\n            insetInlineStart: '21.5%',\n            display: 'table',\n            width: colorPickerPresetColorSize / 13 * 5,\n            height: colorPickerPresetColorSize / 13 * 8,\n            border: `${token.lineWidthBold}px solid ${token.colorWhite}`,\n            borderTop: 0,\n            borderInlineStart: 0,\n            transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',\n            opacity: 0,\n            content: '\"\"',\n            transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`\n          },\n          [`&${componentCls}-presets-color-checked`]: {\n            '&::after': {\n              opacity: 1,\n              borderColor: colorWhite,\n              transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',\n              transition: `transform ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`\n            },\n            [`&${componentCls}-presets-color-bright`]: {\n              '&::after': {\n                borderColor: 'rgba(0, 0, 0, 0.45)'\n              }\n            }\n          }\n        }\n      },\n      '&-empty': {\n        fontSize: fontSizeSM,\n        color: colorTextQuaternary\n      }\n    }\n  };\n};\nexport default genPresetsStyle;"],"mappings":"AAAA,MAAMA,eAAe,GAAGC,KAAK,IAAI;EAC/B,MAAM;IACJC,YAAY;IACZC,MAAM;IACNC,mBAAmB;IACnBC,UAAU;IACVC,0BAA0B;IAC1BC,UAAU;IACVC,SAAS;IACTC,YAAY;IACZC,SAAS;IACTC,YAAY;IACZC,SAAS;IACTC,UAAU;IACVC,SAAS;IACTC;EACF,CAAC,GAAGd,KAAK;EACT,OAAO;IACL,CAAE,GAAEC,YAAa,UAAS,GAAG;MAC3B,CAAE,GAAEC,MAAO,oBAAmBA,MAAO,kBAAiB,GAAG;QACvDa,OAAO,EAAE,CAAC;QACV,CAAE,GAAEb,MAAO,uBAAsB,GAAG;UAClCc,MAAM,EAAEV,UAAU,GAAGE,YAAY;UACjCS,KAAK,EAAEd,mBAAmB;UAC1Be,gBAAgB,EAAEd;QACpB;MACF,CAAC;MACD,CAAE,GAAEF,MAAO,WAAU,GAAG;QACtBiB,OAAO,EAAE,MAAM;QACfC,aAAa,EAAE,QAAQ;QACvBC,GAAG,EAAER;MACP,CAAC;MACD,CAAE,GAAEX,MAAO,oBAAmBA,MAAO,uBAAsBA,MAAO,uBAAsB,GAAG;QACzFa,OAAO,EAAG,GAAED,SAAU;MACxB,CAAC;MACD,SAAS,EAAE;QACTQ,QAAQ,EAAEhB,UAAU;QACpBW,KAAK,EAAEV,SAAS;QAChBgB,UAAU,EAAEf;MACd,CAAC;MACD,SAAS,EAAE;QACTW,OAAO,EAAE,MAAM;QACfK,QAAQ,EAAE,MAAM;QAChBH,GAAG,EAAER,SAAS,GAAG,GAAG;QACpB,CAAE,GAAEZ,YAAa,gBAAe,GAAG;UACjCwB,QAAQ,EAAE,UAAU;UACpBC,MAAM,EAAE,SAAS;UACjBC,KAAK,EAAEt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