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

web-interface.assets.57e33c6c-84.11b9f72925818240e61d.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"sources":["webpack:///./src/components/authentication/BackendCreate/ServiceSelect.tsx","webpack:///./src/components/authentication/BackendCreate/GettingStarted.tsx","webpack:///./src/pages/AuthenticationCreatePage.tsx"],"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","undefined","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","AuthenticationCreatePage","useActiveBackend","finishedLoading","activeBackend","subactions","BackendActionLinks","DocumentationLink","page","DocsHelper","PAGES","USERS_ROLES","text","AuthenticationOverviewLinks"],"mappings":"sTA4BMA,EAAoBC,UAAOC,IAAV,mFAAGD,CAAH,gDAMjBE,EAAaF,kBAAOG,QAAV,4EAAGH,CAAH,iCAKVI,EAAYJ,UAAOC,IAAV,2EAAGD,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,CAAExB,qBAAiByB,KAC5D,gBAAGC,EAAH,EAAGA,aAAcC,E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Content":["/*\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 */\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