PromoCursed/node_modules/.cache/babel-loader/03ae08d6e03d07a5c5f987c549f281d94bb89d480545f1a77e221e43f7ca1477.json

1 line
4.1 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"import { generate } from '@ant-design/colors';\nimport defaultAlgorithm from '../default';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nconst derivative = (token, mapToken) => {\n const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {\n const colors = generate(token[colorKey], {\n theme: 'dark'\n });\n return new Array(10).fill(1).reduce((prev, _, i) => {\n prev[`${colorKey}-${i + 1}`] = colors[i];\n prev[`${colorKey}${i + 1}`] = colors[i];\n return prev;\n }, {});\n }).reduce((prev, cur) => {\n // biome-ignore lint/style/noParameterAssign: it is a reduce\n prev = Object.assign(Object.assign({}, prev), cur);\n return prev;\n }, {});\n const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);\n return Object.assign(Object.assign(Object.assign({}, mergedMapToken), colorPalettes), genColorMapToken(token, {\n generateColorPalettes,\n generateNeutralColorPalettes\n }));\n};\nexport default derivative;","map":{"version":3,"names":["generate","defaultAlgorithm","defaultPresetColors","genColorMapToken","generateColorPalettes","generateNeutralColorPalettes","derivative","token","mapToken","colorPalettes","Object","keys","map","colorKey","colors","theme","Array","fill","reduce","prev","_","i","cur","assign","mergedMapToken"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/theme/themes/dark/index.js"],"sourcesContent":["import { generate } from '@ant-design/colors';\nimport defaultAlgorithm from '../default';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nconst derivative = (token, mapToken) => {\n const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {\n const colors = generate(token[colorKey], {\n theme: 'dark'\n });\n return new Array(10).fill(1).reduce((prev, _, i) => {\n prev[`${colorKey}-${i + 1}`] = colors[i];\n prev[`${colorKey}${i + 1}`] = colors[i];\n return prev;\n }, {});\n }).reduce((prev, cur) => {\n // biome-ignore lint/style/noParameterAssign: it is a reduce\n prev = Object.assign(Object.assign({}, prev), cur);\n return prev;\n }, {});\n const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);\n return Object.assign(Object.assign(Object.assign({}, mergedMapToken), colorPalettes), genColorMapToken(token, {\n generateColorPalettes,\n generateNeutralColorPalettes\n }));\n};\nexport default derivative;"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,oBAAoB;AAC7C,OAAOC,gBAAgB,MAAM,YAAY;AACzC,SAASC,mBAAmB,QAAQ,SAAS;AAC7C,OAAOC,gBAAgB,MAAM,4BAA4B;AACzD,SAASC,qBAAqB,EAAEC,4BAA4B,QAAQ,UAAU;AAC9E,MAAMC,UAAU,GAAGA,CAACC,KAAK,EAAEC,QAAQ,KAAK;EACtC,MAAMC,aAAa,GAAGC,MAAM,CAACC,IAAI,CAACT,mBAAmB,CAAC,CAACU,GAAG,CAACC,QAAQ,IAAI;IACrE,MAAMC,MAAM,GAAGd,QAAQ,CAACO,KAAK,CAACM,QAAQ,CAAC,EAAE;MACvCE,KAAK,EAAE;IACT,CAAC,CAAC;IACF,OAAO,IAAIC,KAAK,CAAC,EAAE,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAAC,CAACC,IAAI,EAAEC,CAAC,EAAEC,CAAC,KAAK;MAClDF,IAAI,CAAC,GAAGN,QAAQ,IAAIQ,CAAC,GAAG,CAAC,EAAE,CAAC,GAAGP,MAAM,CAACO,CAAC,CAAC;MACxCF,IAAI,CAAC,GAAGN,QAAQ,GAAGQ,CAAC,GAAG,CAAC,EAAE,CAAC,GAAGP,MAAM,CAACO,CAAC,CAAC;MACvC,OAAOF,IAAI;IACb,CAAC,EAAE,CAAC,CAAC,CAAC;EACR,CAAC,CAAC,C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