All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.b6c24c3d-84.3bfbc2b154025cf53e35.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.5
Show newest version
{"version":3,"sources":["webpack:///./src/components/authentication/BackendCreate/ServiceSelect.jsx","webpack:///./src/components/authentication/BackendCreate/GettingStarted.jsx","webpack:///./src/pages/AuthenticationCreatePage.jsx"],"names":["ElementsContainer","styled","div","StyledForm","Form","FormGroup","_onSubmit","authServiceType","createRoute","Routes","SYSTEM","AUTHENTICATION","BACKENDS","createBackend","history","push","BackendCreateSelect","authServicesOptions","PluginStore","exports","sort","s1","s2","defaultCompare","displayName","map","service","label","value","name","onSubmit","initialValues","isSubmitting","isValid","className","validate","validateField","required","field","onChange","error","meta","clearable","inputProps","authService","target","options","placeholder","bsStyle","disabled","type","GettingStarted","title","md","mdOffset","ServiceSelect","defaultProps","undefined","AuthenticationCreatePage","useActiveBackend","finishedLoading","activeBackend","subactions","BackendActionLinks","DocumentationLink","page","DocsHelper","PAGES","USERS_ROLES","text","AuthenticationOverviewLinks"],"mappings":"wTA6BMA,EAAoBC,UAAOC,IAAV,uFAAGD,CAAH,gDAMjBE,EAAaF,kBAAOG,QAAV,gFAAGH,CAAH,iCAKVI,EAAYJ,UAAOC,IAAV,+EAAGD,CAAH,aAITK,EAAY,SAAC,GAAwB,IAAtBC,EAAsB,EAAtBA,gBACbC,EAAcC,IAAOC,OAAOC,eAAeC,SAASC,cAAcN,GACxEO,IAAQC,KAAKP,IAyCAQ,EAtCa,WAC1B,IAEMC,EAFeC,cAAYC,QAAQ,2BACDC,MAAK,SAACC,EAAIC,GAAL,OAAYC,YAAeF,EAAGG,YAAaF,EAAGE,gBAC5CC,KAAI,SAACC,GAAD,MAAc,CAAEC,MAAOD,EAAQF,YAAaI,MAAOF,EAAQG,SAE9G,OACE,gBAAC,SAAD,CAAQC,SAAUxB,EAAWyB,cAAe,KACzC,gBAAGC,EAAH,EAAGA,aAAcC,EAAjB,EAAiBA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n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\n// @flow strict\nimport * as React from 'react';\nimport { Formik, Form, Field } from 'formik';\nimport { PluginStore } from 'graylog-web-plugin/plugin';\nimport styled from 'styled-components';\n\nimport Routes from 'routing/Routes';\nimport { validateField } from 'util/FormsUtils';\nimport history from 'util/History';\nimport { defaultCompare } from 'views/logic/DefaultCompare';\nimport { Select, InputDescription } from 'components/common';\nimport { Button } from 'components/graylog';\n\nconst ElementsContainer = styled.div`\n  display: flex;\n  align-items: start;\n  width: 100%;\n`;\n\nconst StyledForm = styled(Form)`\n  max-width: 360px;\n  width: 100%;\n`;\n\nconst FormGroup = styled.div`\n  flex: 1;\n`;\n\nconst _onSubmit = ({ authServiceType }) => {\n  const createRoute = Routes.SYSTEM.AUTHENTICATION.BACKENDS.createBackend(authServiceType);\n  history.push(createRoute);\n};\n\nconst BackendCreateSelect = () => {\n  const authServices = PluginStore.exports('authentication.services');\n  const sortedAuthServices = authServices.sort((s1, s2) => defaultCompare(s1.displayName, s2.displayName));\n  const authServicesOptions = sortedAuthServices.map((service) => ({ label: service.displayName, value: service.name }));\n\n  return (\n    \n      {({ isSubmitting, isValid }) => (\n        \n          \n            \n              \n                {({ field: { name, value, onChange }, meta: { error } }) => (\n                  <>\n