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

1 line
7.2 KiB
JSON

{"ast":null,"code":"'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport useTheme from '../useTheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction wrapGlobalLayer(styles) {\n const serialized = serializeStyles(styles);\n if (styles !== serialized && serialized.styles) {\n if (!serialized.styles.match(/^@layer\\s+[^{]*$/)) {\n // If the styles are not already wrapped in a layer, wrap them in a global layer.\n serialized.styles = `@layer global{${serialized.styles}}`;\n }\n return serialized;\n }\n return styles;\n}\nfunction GlobalStyles({\n styles,\n themeId,\n defaultTheme = {}\n}) {\n const upperTheme = useTheme(defaultTheme);\n const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n let globalStyles = typeof styles === 'function' ? styles(resolvedTheme) : styles;\n if (resolvedTheme.modularCssLayers) {\n if (Array.isArray(globalStyles)) {\n globalStyles = globalStyles.map(styleArg => {\n if (typeof styleArg === 'function') {\n return wrapGlobalLayer(styleArg(resolvedTheme));\n }\n return wrapGlobalLayer(styleArg);\n });\n } else {\n globalStyles = wrapGlobalLayer(globalStyles);\n }\n }\n return /*#__PURE__*/_jsx(MuiGlobalStyles, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n defaultTheme: PropTypes.object,\n /**\n * @ignore\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n /**\n * @ignore\n */\n themeId: PropTypes.string\n} : void 0;\nexport default GlobalStyles;","map":{"version":3,"names":["React","PropTypes","GlobalStyles","MuiGlobalStyles","internal_serializeStyles","serializeStyles","useTheme","jsx","_jsx","wrapGlobalLayer","styles","serialized","match","themeId","defaultTheme","upperTheme","resolvedTheme","globalStyles","modularCssLayers","Array","isArray","map","styleArg","process","env","NODE_ENV","propTypes","object","oneOfType","array","func","number","string","bool"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport useTheme from '../useTheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction wrapGlobalLayer(styles) {\n const serialized = serializeStyles(styles);\n if (styles !== serialized && serialized.styles) {\n if (!serialized.styles.match(/^@layer\\s+[^{]*$/)) {\n // If the styles are not already wrapped in a layer, wrap them in a global layer.\n serialized.styles = `@layer global{${serialized.styles}}`;\n }\n return serialized;\n }\n return styles;\n}\nfunction GlobalStyles({\n styles,\n themeId,\n defaultTheme = {}\n}) {\n const upperTheme = useTheme(defaultTheme);\n const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n let globalStyles = typeof styles === 'function' ? styles(resolvedTheme) : styles;\n if (resolvedTheme.modularCssLayers) {\n if (Array.isArray(globalStyles)) {\n globalStyles = globalStyles.map(styleArg => {\n if (typeof styleArg === 'function') {\n return wrapGlobalLayer(styleArg(resolvedTheme));\n }\n return wrapGlobalLayer(styleArg);\n });\n } else {\n globalStyles = wrapGlobalLayer(globalStyles);\n }\n }\n return /*#__PURE__*/_jsx(MuiGlobalStyles, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n defaultTheme: PropTypes.object,\n /**\n * @ignore\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n /**\n * @ignore\n */\n themeId: PropTypes.string\n} : void 0;\nexport default GlobalStyles;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,YAAY,IAAIC,eAAe,EAAEC,wBAAwB,IAAIC,eAAe,QAAQ,oBAAoB;AACjH,OAAOC,QAAQ,MAAM,aAAa;AAClC,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,SAASC,eAAeA,CAACC,MAAM,EAAE;EAC/B,MAAMC,UAAU,GAAGN,eAAe,CAACK,MAAM,CAAC;EAC1C,IAAIA,MAAM,KAAKC,UAAU,IAAIA,UAAU,CAACD,MAAM,EAAE;IAC9C,IAAI,CAACC,UAAU,CAACD,MAAM,CAACE,KAAK,CAAC,kBAAkB,CAAC,EAAE;MAChD;MACAD,UAAU,CAACD,MAAM,GAAG,iBAAiBC,UAAU,CAACD,MAAM,GAAG;IAC3D;IACA,OAAOC,UAAU;EACnB;EACA,OAAOD,MAAM;AACf;AACA,SAASR,YAAYA,CAAC;EACpBQ,MAAM;EACNG,OAAO;EACPC,YAAY,GAAG,CAAC;AAClB,CAAC,EAAE;EACD,MAAMC,UAAU,GAAGT,QAAQ,CAACQ,YAAY,CAAC;EACzC,MAAME,aAAa,GAAGH,OAAO,GAAGE,UAAU,CAACF,OAAO,CAAC,IAAIE,UAAU,GAAGA,UAAU;EAC9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