{"ast":null,"code":"import _defineProperty from \"/Users/dhrumil1/Documents/Tethy/online-verification/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nvar _jsxFileName = \"/Users/dhrumil1/Documents/Tethy/online-verification/components/LogInForm/logInComponent.js\",\n    _this = this;\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport React, { useState } from 'react';\nimport { Card, Form, Input, Button, Modal, Alert, Affix, Divider } from 'antd';\nimport { LoginOutlined, UserOutlined } from '@ant-design/icons';\n\nvar LogInComponent = function LogInComponent(_ref) {\n  var onLogIn = _ref.onLogIn,\n      loading = _ref.loading;\n  var layout = {\n    labelCol: {\n      span: 24\n    },\n    wrapperCol: {\n      span: 24\n    }\n  };\n  return /*#__PURE__*/_jsxDEV(Card, {\n    children: /*#__PURE__*/_jsxDEV(Form, _objectSpread(_objectSpread({}, layout), {}, {\n      name: \"basic\",\n      initialValues: {\n        remember: true\n      },\n      onFinish: onLogIn,\n      children: [/*#__PURE__*/_jsxDEV(Form.Item, {\n        label: \"Username\",\n        name: \"username\",\n        rules: [{\n          required: true,\n          message: 'Please input your username!'\n        }],\n        children: /*#__PURE__*/_jsxDEV(Input, {}, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 24,\n          columnNumber: 11\n        }, _this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 19,\n        columnNumber: 9\n      }, _this), /*#__PURE__*/_jsxDEV(Form.Item, {\n        label: \"Password\",\n        name: \"password\",\n        rules: [{\n          required: true,\n          message: 'Please input your password!'\n        }],\n        children: /*#__PURE__*/_jsxDEV(Input.Password, {}, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 32,\n          columnNumber: 11\n        }, _this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 27,\n        columnNumber: 9\n      }, _this), /*#__PURE__*/_jsxDEV(Form.Item, {\n        children: /*#__PURE__*/_jsxDEV(Button, {\n          loading: loading,\n          type: \"primary\",\n          block: true,\n          htmlType: \"submit\",\n          className: \"margin-top-3x-desktop margin-top-2x-mobile margin-right-3x-desktop  margin-right-2x-mobile\",\n          children: [\"LogIn\", /*#__PURE__*/_jsxDEV(LoginOutlined, {}, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 44,\n            columnNumber: 17\n          }, _this)]\n        }, void 0, true, {\n          fileName: _jsxFileName,\n          lineNumber: 36,\n          columnNumber: 11\n        }, _this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 35,\n        columnNumber: 9\n      }, _this)]\n    }), void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 18,\n      columnNumber: 7\n    }, _this)\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 17,\n    columnNumber: 5\n  }, _this);\n};\n\n_c = LogInComponent;\nexport default LogInComponent;\n\nvar _c;\n\n$RefreshReg$(_c, \"LogInComponent\");","map":{"version":3,"sources":["/Users/dhrumil1/Documents/Tethy/online-verification/components/LogInForm/logInComponent.js"],"names":["React","useState","Card","Form","Input","Button","Modal","Alert","Affix","Divider","LoginOutlined","UserOutlined","LogInComponent","onLogIn","loading","layout","labelCol","span","wrapperCol","remember","required","message"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAP,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AAAA;AALF;AAAA;AAAA;AAAA;AAAA,eATF,eAiBE,QAAC,IAAD,CAAM,IAAN;AAAA,+BACE,QAAC,MAAD;AACE,UAAA,OAAO,EAAEP,OADX;AAEE,UAAA,IAAI,EAAC,SAFP;AAGE,UAAA,KAAK,MAHP;AAIE,UAAA,QAAQ,EAAC,QAJX;AAKE,UAAA,SAAS,EAAC,4FALZ;AAAA,2CAQM,QAAC,aAAD;AAAA;AAAA;AAAA;AAAA,mBARN;AAAA;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA,eAjBF;AAAA;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA,WADF;AAkCD,CA1CD;;KAAMF,c;AA4CN,eAAeA,cAAf","sourcesContent":["import React, { useState } from 'react';\nimport { Card, Form, Input, Button, Modal, Alert, Affix, Divider } from 'antd';\nimport { LoginOutlined, UserOutlined } from '@ant-design/icons';\n\n\n\n\nconst LogInComponent = ({ onLogIn, loading }) => {\n\n\n  const layout = {\n    labelCol: { span: 24 },\n    wrapperCol: { span: 24 },\n  };\n\n  return (\n    <Card>\n      <Form {...layout} name=\"basic\" initialValues={{ remember: true }} onFinish={onLogIn}>\n        <Form.Item\n          label=\"Username\"\n          name=\"username\"\n          rules={[{ required: true, message: 'Please input your username!' }]}\n        >\n          <Input />\n        </Form.Item>\n\n        <Form.Item\n          label=\"Password\"\n          name=\"password\"\n          rules={[{ required: true, message: 'Please input your password!' }]}\n        >\n          <Input.Password />\n        </Form.Item>\n\n        <Form.Item>\n          <Button\n            loading={loading}\n            type=\"primary\"\n            block\n            htmlType=\"submit\"\n            className=\"margin-top-3x-desktop margin-top-2x-mobile margin-right-3x-desktop  margin-right-2x-mobile\"\n          >\n            LogIn\n                <LoginOutlined />\n          </Button>\n        </Form.Item>\n      </Form>\n    </Card>\n  );\n};\n\nexport default LogInComponent;\n"]},"metadata":{},"sourceType":"module"}