mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
1 line
3.6 KiB
JSON
1 line
3.6 KiB
JSON
|
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport React, { Component } from 'react';\nimport Alert from './Alert';\n\nvar UncontrolledAlert = /*#__PURE__*/function (_Component) {\n _inheritsLoose(UncontrolledAlert, _Component);\n\n function UncontrolledAlert(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n _this.state = {\n isOpen: true\n };\n _this.toggle = _this.toggle.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n var _proto = UncontrolledAlert.prototype;\n\n _proto.toggle = function toggle() {\n this.setState({\n isOpen: !this.state.isOpen\n });\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(Alert, _extends({\n isOpen: this.state.isOpen,\n toggle: this.toggle\n }, this.props));\n };\n\n return UncontrolledAlert;\n}(Component);\n\nexport default UncontrolledAlert;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/UncontrolledAlert.js"],"names":["_extends","_assertThisInitialized","_inheritsLoose","React","Component","Alert","UncontrolledAlert","_Component","props","_this","call","state","isOpen","toggle","bind","_proto","prototype","setState","render","createElement"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,sBAAP,MAAmC,kDAAnC;AACA,OAAOC,cAAP,MAA2B,0CAA3B;AACA,OAAOC,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,KAAP,MAAkB,SAAlB;;AAEA,IAAIC,iBAAiB,GAAG,aAAa,UAAUC,UAAV,EAAsB;AACzDL,EAAAA,cAAc,CAACI,iBAAD,EAAoBC,UAApB,CAAd;;AAEA,WAASD,iBAAT,CAA2BE,KAA3B,EAAkC;AAChC,QAAIC,KAAJ;;AAEAA,IAAAA,KAAK,GAAGF,UAAU,CAACG,IAAX,CAAgB,IAAhB,EAAsBF,KAAtB,KAAgC,IAAxC;AACAC,IAAAA,KAAK,CAACE,KAAN,GAAc;AACZC,MAAAA,MAAM,EAAE;AADI,KAAd;AAGAH,IAAAA,KAAK,CAACI,MAAN,GAAeJ,KAAK,CAACI,MAAN,CAAaC,IAAb,CAAkBb,sBAAsB,CAACQ,KAAD,CAAxC,CAAf;AACA,WAAOA,KAAP;AACD;;AAED,MAAIM,MAAM,GAAGT,iBAAiB,CAACU,SAA/B;;AAEAD,EAAAA,MAAM,CAACF,MAAP,GAAgB,SAASA,MAAT,GAAkB;AAChC,SAAKI,QAAL,CAAc;AACZL,MAAAA,MAAM,EAAE,CAAC,KAAKD,KAAL,CAAWC;AADR,KAAd;AAGD,GAJD;;AAMAG,EAAAA,MAAM,CAACG,MAAP,GAAgB,SAASA,MAAT,GAAkB;AAChC,WAAO,aAAaf,KAAK,CAACgB,aAAN,CAAoBd,KAApB,EAA2BL,QAAQ,CAAC;AACtDY,MAAAA,MAAM,EAAE,KAAKD,KAAL,CAAWC,MADmC;AAEtDC,MAAAA,MAAM,EAAE,KAAKA;AAFyC,KAAD,EAGpD,KAAKL,KAH+C,CAAnC,CAApB;AAID,GALD;;AAOA,SAAOF,iBAAP;AACD,CA9BoC,CA8BnCF,SA9BmC,CAArC;;AAgCA,eAAeE,iBAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport React, { Component } from 'react';\nimport Alert from './Alert';\n\nvar UncontrolledAlert = /*#__PURE__*/function (_Component) {\n _inheritsLoose(UncontrolledAlert, _Component);\n\n function UncontrolledAlert(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n _this.state = {\n isOpen: true\n };\n _this.toggle = _this.toggle.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n var _proto = UncontrolledAlert.prototype;\n\n _proto.toggle = function toggle() {\n this.setState({\n isOpen: !this.state.isOpen\n });\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(Alert, _extends({\n isOpen: this.state.isOpen,\n toggle: this.toggle\n }, this.props));\n };\n\n return UncontrolledAlert;\n}(Component);\n\nexport default UncontrolledAlert;"]},"metadata":{},"sourceType":"module"}
|