{"ast":null,"code":"import _defineProperty from \"/Users/dhrumil1/Documents/Tethy/online-verification/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\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__*/_jsx(Card, {\n    children: /*#__PURE__*/_jsxs(Form, _objectSpread(_objectSpread({}, layout), {}, {\n      name: \"basic\",\n      initialValues: {\n        remember: true\n      },\n      onFinish: onLogIn,\n      children: [/*#__PURE__*/_jsx(Form.Item, {\n        label: \"Username\",\n        name: \"username\",\n        rules: [{\n          required: true,\n          message: 'Please input your username!'\n        }],\n        children: /*#__PURE__*/_jsx(Input, {})\n      }), /*#__PURE__*/_jsx(Form.Item, {\n        label: \"Password\",\n        name: \"password\",\n        rules: [{\n          required: true,\n          message: 'Please input your password!'\n        }],\n        children: /*#__PURE__*/_jsx(Input.Password, {})\n      }), /*#__PURE__*/_jsx(Form.Item, {\n        children: /*#__PURE__*/_jsxs(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__*/_jsx(LoginOutlined, {})]\n        })\n      })]\n    }))\n  });\n};\n\nexport default LogInComponent;","map":null,"metadata":{},"sourceType":"module"}