{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport withWidth, { isWidthDown } from '../withWidth';\n/**\n * Dialog will responsively be full screen *at or below* the given breakpoint\n * (defaults to 'sm' for mobile devices).\n * Notice that this Higher-order Component is incompatible with server-side rendering.\n */\n\nvar withMobileDialog = function withMobileDialog() {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  return function (Component) {\n    var _options$breakpoint = options.breakpoint,\n        breakpoint = _options$breakpoint === void 0 ? 'sm' : _options$breakpoint;\n\n    function WithMobileDialog(props) {\n      return /*#__PURE__*/React.createElement(Component, _extends({\n        fullScreen: isWidthDown(breakpoint, props.width)\n      }, props));\n    }\n\n    process.env.NODE_ENV !== \"production\" ? WithMobileDialog.propTypes = {\n      width: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired\n    } : void 0;\n    return withWidth()(WithMobileDialog);\n  };\n};\n\nexport default withMobileDialog;","map":{"version":3,"sources":["C:/laragon/www/iot.mksolusi/DriverOPCDA/frontend/node_modules/@material-ui/core/esm/withMobileDialog/withMobileDialog.js"],"names":["_extends","React","PropTypes","withWidth","isWidthDown","withMobileDialog","options","arguments","length","undefined","Component","_options$breakpoint","breakpoint","WithMobileDialog","props","createElement","fullScreen","width","process","env","NODE_ENV","propTypes","oneOf","isRequired"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,SAAP,IAAoBC,WAApB,QAAuC,cAAvC;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAIC,gBAAgB,GAAG,SAASA,gBAAT,GAA4B;AACjD,MAAIC,OAAO,GAAGC,SAAS,CAACC,MAAV,GAAmB,CAAnB,IAAwBD,SAAS,CAAC,CAAD,CAAT,KAAiBE,SAAzC,GAAqDF,SAAS,CAAC,CAAD,CAA9D,GAAoE,EAAlF;AACA,SAAO,UAAUG,SAAV,EAAqB;AAC1B,QAAIC,mBAAmB,GAAGL,OAAO,CAACM,UAAlC;AAAA,QACIA,UAAU,GAAGD,mBAAmB,KAAK,KAAK,CAA7B,GAAiC,IAAjC,GAAwCA,mBADzD;;AAGA,aAASE,gBAAT,CAA0BC,KAA1B,EAAiC;AAC/B,aAAO,aAAab,KAAK,CAACc,aAAN,CAAoBL,SAApB,EAA+BV,QAAQ,CAAC;AAC1DgB,QAAAA,UAAU,EAAEZ,WAAW,CAACQ,UAAD,EAAaE,KAAK,CAACG,KAAnB;AADmC,OAAD,EAExDH,KAFwD,CAAvC,CAApB;AAGD;;AAEDI,IAAAA,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GAAwCP,gBAAgB,CAACQ,SAAjB,GAA6B;AACnEJ,MAAAA,KAAK,EAAEf,SAAS,CAACoB,KAAV,CAAgB,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,EAAyB,IAAzB,CAAhB,EAAgDC;AADY,KAArE,GAEI,KAAK,CAFT;AAGA,WAAOpB,SAAS,GAAGU,gBAAH,CAAhB;AACD,GAdD;AAeD,CAjBD;;AAmBA,eAAeR,gBAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport withWidth, { isWidthDown } from '../withWidth';\n/**\n * Dialog will responsively be full screen *at or below* the given breakpoint\n * (defaults to 'sm' for mobile devices).\n * Notice that this Higher-order Component is incompatible with server-side rendering.\n */\n\nvar withMobileDialog = function withMobileDialog() {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  return function (Component) {\n    var _options$breakpoint = options.breakpoint,\n        breakpoint = _options$breakpoint === void 0 ? 'sm' : _options$breakpoint;\n\n    function WithMobileDialog(props) {\n      return /*#__PURE__*/React.createElement(Component, _extends({\n        fullScreen: isWidthDown(breakpoint, props.width)\n      }, props));\n    }\n\n    process.env.NODE_ENV !== \"production\" ? WithMobileDialog.propTypes = {\n      width: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired\n    } : void 0;\n    return withWidth()(WithMobileDialog);\n  };\n};\n\nexport default withMobileDialog;"]},"metadata":{},"sourceType":"module"}