PromoCursed/node_modules/.cache/babel-loader/42278c2b8e91ce4d63bacd08647334f2dd0fe689461ad80e2e4130f668ce7d93.json
2024-08-20 23:25:37 +04:00

1 line
2.5 KiB
JSON

{"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 layer: {\n name: 'antd'\n }\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","layer","name","Object","assign","display"],"sources":["C:/Users/Аришина)/Desktop/promo/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 layer: {\n name: 'antd'\n }\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,KAAK;IAChEC,KAAK,EAAE;MACLC,IAAI,EAAE;IACR;EACF,CAAC,EAAE,MAAM,CAAC;IACR,CAAC,IAAIR,aAAa,EAAE,GAAGS,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEb,SAAS,CAAC,CAAC,CAAC,EAAE;MACnE,CAAC,IAAIG,aAAa,KAAKA,aAAa,OAAO,GAAG;QAC5CW,OAAO,EAAE;MACX;IACF,CAAC;EACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,eAAeZ,iBAAiB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}