{"ast":null,"code":"import { useStyleRegister } from '@ant-design/cssinjs';\nimport { resetIcon } from '../../style';\nimport useToken from '../useToken';\nconst useResetIconStyle = (iconPrefixCls, csp) => {\n  const [theme, token] = useToken();\n  // Generate style for icons\n  return useStyleRegister({\n    theme,\n    token,\n    hashId: '',\n    path: ['ant-design-icons', iconPrefixCls],\n    nonce: () => csp === null || csp === void 0 ? void 0 : csp.nonce\n  }, () => [{\n    [`.${iconPrefixCls}`]: Object.assign(Object.assign({}, resetIcon()), {\n      [`.${iconPrefixCls} .${iconPrefixCls}-icon`]: {\n        display: 'block'\n      }\n    })\n  }]);\n};\nexport default useResetIconStyle;","map":{"version":3,"names":["useStyleRegister","resetIcon","useToken","useResetIconStyle","iconPrefixCls","csp","theme","token","hashId","path","nonce","Object","assign","display"],"sources":["/var/www/gavt/node_modules/antd/es/theme/util/useResetIconStyle.js"],"sourcesContent":["import { useStyleRegister } from '@ant-design/cssinjs';\nimport { resetIcon } from '../../style';\nimport useToken from '../useToken';\nconst useResetIconStyle = (iconPrefixCls, csp) => {\n  const [theme, token] = useToken();\n  // Generate style for icons\n  return useStyleRegister({\n    theme,\n    token,\n    hashId: '',\n    path: ['ant-design-icons', iconPrefixCls],\n    nonce: () => csp === null || csp === void 0 ? void 0 : csp.nonce\n  }, () => [{\n    [`.${iconPrefixCls}`]: Object.assign(Object.assign({}, resetIcon()), {\n      [`.${iconPrefixCls} .${iconPrefixCls}-icon`]: {\n        display: 'block'\n      }\n    })\n  }]);\n};\nexport default useResetIconStyle;"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,qBAAqB;AACtD,SAASC,SAAS,QAAQ,aAAa;AACvC,OAAOC,QAAQ,MAAM,aAAa;AAClC,MAAMC,iBAAiB,GAAGA,CAACC,aAAa,EAAEC,GAAG,KAAK;EAChD,MAAM,CAACC,KAAK,EAAEC,KAAK,CAAC,GAAGL,QAAQ,CAAC,CAAC;EACjC;EACA,OAAOF,gBAAgB,CAAC;IACtBM,KAAK;IACLC,KAAK;IACLC,MAAM,EAAE,EAAE;IACVC,IAAI,EAAE,CAAC,kBAAkB,EAAEL,aAAa,CAAC;IACzCM,KAAK,EAAEA,CAAA,KAAML,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,GAAG,CAACK;EAC7D,CAAC,EAAE,MAAM,CAAC;IACR,CAAE,IAAGN,aAAc,EAAC,GAAGO,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEX,SAAS,CAAC,CAAC,CAAC,EAAE;MACnE,CAAE,IAAGG,aAAc,KAAIA,aAAc,OAAM,GAAG;QAC5CS,OAAO,EAAE;MACX;IACF,CAAC;EACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,eAAeV,iBAAiB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}