"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _style = require("../../style"); var _internal = require("../../theme/internal"); const genQRCodeStyle = token => { const { componentCls } = token; return { [componentCls]: Object.assign(Object.assign({}, (0, _style.resetComponent)(token)), { display: 'flex', justifyContent: 'center', alignItems: 'center', padding: token.paddingSM, backgroundColor: token.colorWhite, borderRadius: token.borderRadiusLG, border: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`, position: 'relative', width: '100%', height: '100%', overflow: 'hidden', [`& > ${componentCls}-mask`]: { position: 'absolute', insetBlockStart: 0, insetInlineStart: 0, zIndex: 10, display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', width: '100%', height: '100%', color: token.colorText, lineHeight: token.lineHeight, background: token.QRCodeMaskBackgroundColor, textAlign: 'center', [`& > ${componentCls}-expired`]: { color: token.QRCodeExpiredTextColor } }, '&-icon': { marginBlockEnd: token.marginXS, fontSize: token.controlHeight } }), [`${componentCls}-borderless`]: { borderColor: 'transparent' } }; }; var _default = exports.default = (0, _internal.genComponentStyleHook)('QRCode', token => genQRCodeStyle((0, _internal.mergeToken)(token, { QRCodeExpiredTextColor: 'rgba(0, 0, 0, 0.88)', QRCodeMaskBackgroundColor: 'rgba(255, 255, 255, 0.96)' })));