Files
ETB/ETB-FrontEnd/node_modules/.cache/babel-loader/c1cf78e9d99e573ac31da9af3b035001b3dae028493fdff627fa30143835b212.json
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

1 line
3.0 KiB
JSON

{"ast":null,"code":"import { useMemo } from 'react';\nimport { copyRawValuesOnly } from '../html/use-props.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\nfunction useSVGProps(props, visualState, _isStatic, Component) {\n const visualProps = useMemo(() => {\n const state = createSvgRenderState();\n buildSVGAttrs(state, visualState, isSVGTag(Component), props.transformTemplate, props.style);\n return {\n ...state.attrs,\n style: {\n ...state.style\n }\n };\n }, [visualState]);\n if (props.style) {\n const rawStyles = {};\n copyRawValuesOnly(rawStyles, props.style, props);\n visualProps.style = {\n ...rawStyles,\n ...visualProps.style\n };\n }\n return visualProps;\n}\nexport { useSVGProps };","map":{"version":3,"names":["useMemo","copyRawValuesOnly","buildSVGAttrs","createSvgRenderState","isSVGTag","useSVGProps","props","visualState","_isStatic","Component","visualProps","state","transformTemplate","style","attrs","rawStyles"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/framer-motion/dist/es/render/svg/use-props.mjs"],"sourcesContent":["import { useMemo } from 'react';\nimport { copyRawValuesOnly } from '../html/use-props.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\n\nfunction useSVGProps(props, visualState, _isStatic, Component) {\n const visualProps = useMemo(() => {\n const state = createSvgRenderState();\n buildSVGAttrs(state, visualState, isSVGTag(Component), props.transformTemplate, props.style);\n return {\n ...state.attrs,\n style: { ...state.style },\n };\n }, [visualState]);\n if (props.style) {\n const rawStyles = {};\n copyRawValuesOnly(rawStyles, props.style, props);\n visualProps.style = { ...rawStyles, ...visualProps.style };\n }\n return visualProps;\n}\n\nexport { useSVGProps };\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,iBAAiB,QAAQ,uBAAuB;AACzD,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,oBAAoB,QAAQ,iCAAiC;AACtE,SAASC,QAAQ,QAAQ,wBAAwB;AAEjD,SAASC,WAAWA,CAACC,KAAK,EAAEC,WAAW,EAAEC,SAAS,EAAEC,SAAS,EAAE;EAC3D,MAAMC,WAAW,GAAGV,OAAO,CAAC,MAAM;IAC9B,MAAMW,KAAK,GAAGR,oBAAoB,CAAC,CAAC;IACpCD,aAAa,CAACS,KAAK,EAAEJ,WAAW,EAAEH,QAAQ,CAACK,SAAS,CAAC,EAAEH,KAAK,CAACM,iBAAiB,EAAEN,KAAK,CAACO,KAAK,CAAC;IAC5F,OAAO;MACH,GAAGF,KAAK,CAACG,KAAK;MACdD,KAAK,EAAE;QAAE,GAAGF,KAAK,CAACE;MAAM;IAC5B,CAAC;EACL,CAAC,EAAE,CAACN,WAAW,CAAC,CAAC;EACjB,IAAID,KAAK,CAACO,KAAK,EAAE;IACb,MAAME,SAAS,GAAG,CAAC,CAAC;IACpBd,iBAAiB,CAACc,SAAS,EAAET,KAAK,CAACO,KAAK,EAAEP,KAAK,CAAC;IAChDI,WAAW,CAACG,KAAK,GAAG;MAAE,GAAGE,SAAS;MAAE,GAAGL,WAAW,CAACG;IAAM,CAAC;EAC9D;EACA,OAAOH,WAAW;AACtB;AAEA,SAASL,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}