{"version":3,"file":"createSpacing.mjs","sources":["../../../../../../../../../node_modules/@mui/system/esm/createTheme/createSpacing.js"],"sourcesContent":["import { createUnarySpacing } from \"../spacing/index.js\";\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8,\n// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n// Smaller components, such as icons, can align to a 4dp grid.\n// https://m2.material.io/design/layout/understanding-layout.html\ntransform = createUnarySpacing({\n  spacing: spacingInput\n})) {\n  // Already transformed.\n  if (spacingInput.mui) {\n    return spacingInput;\n  }\n  const spacing = (...argsInput) => {\n    if (process.env.NODE_ENV !== 'production') {\n      if (!(argsInput.length <= 4)) {\n        console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n      }\n    }\n    const args = argsInput.length === 0 ? [1] : argsInput;\n    return args.map(argument => {\n      const output = transform(argument);\n      return typeof output === 'number' ? `${output}px` : output;\n    }).join(' ');\n  };\n  spacing.mui = true;\n  return spacing;\n}"],"names":[],"mappings":";;AAEA;AACA;;AAEe,SAAS,aAAa,CAAC,YAAY,GAAG,CAAC;AACtD;AACA;AACA;AACA,SAAS,GAAG,kBAAkB,CAAC;AAC/B,EAAE,OAAO,EAAE;AACX,CAAC,CAAC,EAAE;AACJ;AACA,EAAE,IAAI,YAAY,CAAC,GAAG,EAAE;AACxB,IAAI,OAAO,YAAY;AACvB,EAAE;AACF,EAAE,MAAM,OAAO,GAAG,CAAC,GAAG,SAAS,KAAK;AACpC,IAA+C;AAC/C,MAAM,IAAI,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC,EAAE;AACpC,QAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,gEAAgE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5G,MAAM;AACN,IAAI;AACJ,IAAI,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS;AACzD,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,IAAI;AAChC,MAAM,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC;AACxC,MAAM,OAAO,OAAO,MAAM,KAAK,QAAQ,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM;AAChE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AAChB,EAAE,CAAC;AACH,EAAE,OAAO,CAAC,GAAG,GAAG,IAAI;AACpB,EAAE,OAAO,OAAO;AAChB;;;;","x_google_ignoreList":[0]}