{"ast":null,"code":"import _formatMuiErrorMessage from \"./formatMuiErrorMessage\"; // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\n\nexport default function capitalize(string) {\n  if (typeof string !== 'string') {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: `capitalize(string)` expects a string argument.\" : _formatMuiErrorMessage(7));\n  }\n\n  return string.charAt(0).toUpperCase() + string.slice(1);\n}","map":{"version":3,"sources":["C:/laragon/www/iot.mksolusi/DriverOPCDA/frontend/node_modules/@material-ui/data-grid/node_modules/@material-ui/utils/esm/capitalize.js"],"names":["_formatMuiErrorMessage","capitalize","string","Error","process","env","NODE_ENV","charAt","toUpperCase","slice"],"mappings":"AAAA,OAAOA,sBAAP,MAAmC,yBAAnC,C,CACA;AACA;AACA;AACA;;AACA,eAAe,SAASC,UAAT,CAAoBC,MAApB,EAA4B;AACzC,MAAI,OAAOA,MAAP,KAAkB,QAAtB,EAAgC;AAC9B,UAAM,IAAIC,KAAJ,CAAUC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,oEAA2GN,sBAAsB,CAAC,CAAD,CAA3I,CAAN;AACD;;AAED,SAAOE,MAAM,CAACK,MAAP,CAAc,CAAd,EAAiBC,WAAjB,KAAiCN,MAAM,CAACO,KAAP,CAAa,CAAb,CAAxC;AACD","sourcesContent":["import _formatMuiErrorMessage from \"./formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n  if (typeof string !== 'string') {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? `Material-UI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n  }\n\n  return string.charAt(0).toUpperCase() + string.slice(1);\n}"]},"metadata":{},"sourceType":"module"}