PromoCursed/node_modules/.cache/babel-loader/0794fee99d3c598b474d0439d758c7707ba27f02a35747730b8dc50e3bfb5da0.json

1 line
2.2 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport { Provider as MotionProvider } from 'rc-motion';\nimport { useToken } from '../theme/internal';\nexport default function MotionWrapper(props) {\n const {\n children\n } = props;\n const [, token] = useToken();\n const {\n motion\n } = token;\n const needWrapMotionProviderRef = React.useRef(false);\n needWrapMotionProviderRef.current = needWrapMotionProviderRef.current || motion === false;\n if (needWrapMotionProviderRef.current) {\n return /*#__PURE__*/React.createElement(MotionProvider, {\n motion: motion\n }, children);\n }\n return children;\n}","map":{"version":3,"names":["React","Provider","MotionProvider","useToken","MotionWrapper","props","children","token","motion","needWrapMotionProviderRef","useRef","current","createElement"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/config-provider/MotionWrapper.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { Provider as MotionProvider } from 'rc-motion';\nimport { useToken } from '../theme/internal';\nexport default function MotionWrapper(props) {\n const {\n children\n } = props;\n const [, token] = useToken();\n const {\n motion\n } = token;\n const needWrapMotionProviderRef = React.useRef(false);\n needWrapMotionProviderRef.current = needWrapMotionProviderRef.current || motion === false;\n if (needWrapMotionProviderRef.current) {\n return /*#__PURE__*/React.createElement(MotionProvider, {\n motion: motion\n }, children);\n }\n return children;\n}"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,IAAIC,cAAc,QAAQ,WAAW;AACtD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,eAAe,SAASC,aAAaA,CAACC,KAAK,EAAE;EAC3C,MAAM;IACJC;EACF,CAAC,GAAGD,KAAK;EACT,MAAM,GAAGE,KAAK,CAAC,GAAGJ,QAAQ,CAAC,CAAC;EAC5B,MAAM;IACJK;EACF,CAAC,GAAGD,KAAK;EACT,MAAME,yBAAyB,GAAGT,KAAK,CAACU,MAAM,CAAC,KAAK,CAAC;EACrDD,yBAAyB,CAACE,OAAO,GAAGF,yBAAyB,CAACE,OAAO,IAAIH,MAAM,KAAK,KAAK;EACzF,IAAIC,yBAAyB,CAACE,OAAO,EAAE;IACrC,OAAO,aAAaX,KAAK,CAACY,aAAa,CAACV,cAAc,EAAE;MACtDM,MAAM,EAAEA;IACV,CAAC,EAAEF,QAAQ,CAAC;EACd;EACA,OAAOA,QAAQ;AACjB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}