{"ast":null,"code":"import { renderSVG } from './utils/render.js';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.js';\nimport { makeUseVisualState } from '../../motion/utils/use-visual-state.js';\nimport { createSvgRenderState } from './utils/create-render-state.js';\nimport { buildSVGAttrs } from './utils/build-attrs.js';\nvar svgMotionConfig = {\n  useVisualState: makeUseVisualState({\n    scrapeMotionValuesFromProps: scrapeMotionValuesFromProps,\n    createRenderState: createSvgRenderState,\n    onMount: function onMount(props, instance, _a) {\n      var renderState = _a.renderState,\n        latestValues = _a.latestValues;\n      try {\n        renderState.dimensions = typeof instance.getBBox === \"function\" ? instance.getBBox() : instance.getBoundingClientRect();\n      } catch (e) {\n        // Most likely trying to measure an unrendered element under Firefox\n        renderState.dimensions = {\n          x: 0,\n          y: 0,\n          width: 0,\n          height: 0\n        };\n      }\n      if (isPath(instance)) {\n        renderState.totalPathLength = instance.getTotalLength();\n      }\n      buildSVGAttrs(renderState, latestValues, undefined, undefined, {\n        enableHardwareAcceleration: false\n      }, props.transformTemplate);\n      // TODO: Replace with direct assignment\n      renderSVG(instance, renderState);\n    }\n  })\n};\nfunction isPath(element) {\n  return element.tagName === \"path\";\n}\nexport { svgMotionConfig };","map":{"version":3,"names":["renderSVG","scrapeMotionValuesFromProps","makeUseVisualState","createSvgRenderState","buildSVGAttrs","svgMotionConfig","useVisualState","createRenderState","onMount","props","instance","_a","renderState","latestValues","dimensions","getBBox","getBoundingClientRect","e","x","y","width","height","isPath","totalPathLength","getTotalLength","undefined","enableHardwareAcceleration","transformTemplate","element","tagName"],"sources":["D:/DSP_Management/node_modules/framer-motion/dist/es/render/svg/config-motion.js"],"sourcesContent":["import { renderSVG } from './utils/render.js';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.js';\nimport { makeUseVisualState } from '../../motion/utils/use-visual-state.js';\nimport { createSvgRenderState } from './utils/create-render-state.js';\nimport { buildSVGAttrs } from './utils/build-attrs.js';\n\nvar svgMotionConfig = {\n    useVisualState: makeUseVisualState({\n        scrapeMotionValuesFromProps: scrapeMotionValuesFromProps,\n        createRenderState: createSvgRenderState,\n        onMount: function (props, instance, _a) {\n            var renderState = _a.renderState, latestValues = _a.latestValues;\n            try {\n                renderState.dimensions =\n                    typeof instance.getBBox ===\n                        \"function\"\n                        ? instance.getBBox()\n                        : instance.getBoundingClientRect();\n            }\n            catch (e) {\n                // Most likely trying to measure an unrendered element under Firefox\n                renderState.dimensions = {\n                    x: 0,\n                    y: 0,\n                    width: 0,\n                    height: 0,\n                };\n            }\n            if (isPath(instance)) {\n                renderState.totalPathLength = instance.getTotalLength();\n            }\n            buildSVGAttrs(renderState, latestValues, undefined, undefined, { enableHardwareAcceleration: false }, props.transformTemplate);\n            // TODO: Replace with direct assignment\n            renderSVG(instance, renderState);\n        },\n    }),\n};\nfunction isPath(element) {\n    return element.tagName === \"path\";\n}\n\nexport { svgMotionConfig };\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,2BAA2B,QAAQ,iCAAiC;AAC7E,SAASC,kBAAkB,QAAQ,wCAAwC;AAC3E,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,aAAa,QAAQ,wBAAwB;AAEtD,IAAIC,eAAe,GAAG;EAClBC,cAAc,EAAEJ,kBAAkB,CAAC;IAC/BD,2BAA2B,EAAEA,2BAA2B;IACxDM,iBAAiB,EAAEJ,oBAAoB;IACvCK,OAAO,EAAE,SAATA,OAAOA,CAAYC,KAAK,EAAEC,QAAQ,EAAEC,EAAE,EAAE;MACpC,IAAIC,WAAW,GAAGD,EAAE,CAACC,WAAW;QAAEC,YAAY,GAAGF,EAAE,CAACE,YAAY;MAChE,IAAI;QACAD,WAAW,CAACE,UAAU,GAClB,OAAOJ,QAAQ,CAACK,OAAO,KACnB,UAAU,GACRL,QAAQ,CAACK,OAAO,CAAC,CAAC,GAClBL,QAAQ,CAACM,qBAAqB,CAAC,CAAC;MAC9C,CAAC,CACD,OAAOC,CAAC,EAAE;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