You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Scripted/website/node_modules/.cache/babel-loader/5d8632bfdd694a21141773c84f7...

1 line
3.8 KiB

{"ast":null,"code":"import PropTypes from 'prop-types';\nimport { DEFAULT_BREAKPOINTS, DEFAULT_MIN_BREAKPOINT } from './ThemeProvider';\nexport function responsivePropType(propType) {\n return PropTypes.oneOfType([propType, PropTypes.shape({\n xs: propType,\n sm: propType,\n md: propType,\n lg: propType,\n xl: propType,\n xxl: propType\n })]);\n}\nexport default function createUtilityClassName(utilityValues) {\n let breakpoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_BREAKPOINTS;\n let minBreakpoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_MIN_BREAKPOINT;\n const classes = [];\n Object.entries(utilityValues).forEach(_ref => {\n let [utilName, utilValue] = _ref;\n if (utilValue != null) {\n if (typeof utilValue === 'object') {\n breakpoints.forEach(brkPoint => {\n const bpValue = utilValue[brkPoint];\n if (bpValue != null) {\n const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';\n classes.push(`${utilName}${infix}-${bpValue}`);\n }\n });\n } else {\n classes.push(`${utilName}-${utilValue}`);\n }\n }\n });\n return classes;\n}","map":{"version":3,"names":["PropTypes","DEFAULT_BREAKPOINTS","DEFAULT_MIN_BREAKPOINT","responsivePropType","propType","oneOfType","shape","xs","sm","md","lg","xl","xxl","createUtilityClassName","utilityValues","breakpoints","minBreakpoint","classes","Object","entries","forEach","utilName","utilValue","brkPoint","bpValue","infix","push"],"sources":["C:/Cours/SAE/SAE-3.01/Scripted/Scripted/website/node_modules/react-bootstrap/esm/createUtilityClasses.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { DEFAULT_BREAKPOINTS, DEFAULT_MIN_BREAKPOINT } from './ThemeProvider';\nexport function responsivePropType(propType) {\n return PropTypes.oneOfType([propType, PropTypes.shape({\n xs: propType,\n sm: propType,\n md: propType,\n lg: propType,\n xl: propType,\n xxl: propType\n })]);\n}\nexport default function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS, minBreakpoint = DEFAULT_MIN_BREAKPOINT) {\n const classes = [];\n Object.entries(utilityValues).forEach(([utilName, utilValue]) => {\n if (utilValue != null) {\n if (typeof utilValue === 'object') {\n breakpoints.forEach(brkPoint => {\n const bpValue = utilValue[brkPoint];\n\n if (bpValue != null) {\n const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';\n classes.push(`${utilName}${infix}-${bpValue}`);\n }\n });\n } else {\n classes.push(`${utilName}-${utilValue}`);\n }\n }\n });\n return classes;\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,SAASC,mBAAmB,EAAEC,sBAAsB,QAAQ,iBAAiB;AAC7E,OAAO,SAASC,kBAAkB,CAACC,QAAQ,EAAE;EAC3C,OAAOJ,SAAS,CAACK,SAAS,CAAC,CAACD,QAAQ,EAAEJ,SAAS,CAACM,KAAK,CAAC;IACpDC,EAAE,EAAEH,QAAQ;IACZI,EAAE,EAAEJ,QAAQ;IACZK,EAAE,EAAEL,QAAQ;IACZM,EAAE,EAAEN,QAAQ;IACZO,EAAE,EAAEP,QAAQ;IACZQ,GAAG,EAAER;EACP,CAAC,CAAC,CAAC,CAAC;AACN;AACA,eAAe,SAASS,sBAAsB,CAACC,aAAa,EAA6E;EAAA,IAA3EC,WAAW,uEAAGd,mBAAmB;EAAA,IAAEe,aAAa,uEAAGd,sBAAsB;EACrI,MAAMe,OAAO,GAAG,EAAE;EAClBC,MAAM,CAACC,OAAO,CAACL,aAAa,CAAC,CAACM,OAAO,CAAC,QAA2B;IAAA,IAA1B,CAACC,QAAQ,EAAEC,SAAS,CAAC;IAC1D,IAAIA,SAAS,IAAI,IAAI,EAAE;MACrB,IAAI,OAAOA,SAAS,KAAK,QAAQ,EAAE;QACjCP,WAAW,CAACK,OAAO,CAACG,QAAQ,IAAI;UAC9B,MAAMC,OAAO,GAAGF,SA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