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

web-interface.assets.1255d548-8440.761d7b075cdd5266e24f.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"1255d548-8440.761d7b075cdd5266e24f.js","mappings":"qbAkCA,MAAMA,EAAoB,UAAO;AAAA;AAAA;AAAA;AAAA,EAM3BC,KAAa,WAAO,MAAI;AAAA;AAAA;AAAA,EAKxBC,EAAY,UAAO;AAAA;AAAA,EAMnBC,EAAY,CAACC,EAA0B,CAAE,gBAAAC,CAAgB,IAAiB,CAC9E,MAAMC,EAAcC,EAAA,GAAO,OAAO,eAAe,SAAS,cAAcF,CAAe,EACvFD,EAAQ,KAAKE,CAAW,CAC1B,EA6DA,EA3D4B,IAAM,CAGhC,MAAME,EAFe,IAAY,QAAQ,yBAAyB,EAC1B,KAAK,CAACC,EAAIC,OAAO,KAAeD,EAAG,YAAaC,EAAG,WAAW,CAAC,EACxD,IAAKC,IAAa,CAAE,MAAOA,EAAQ,YAAa,MAAOA,EAAQ,IAAK,EAAE,EAC/GP,KAAUQ,EAAA,GAAW,EACrB,CAAE,SAAAC,CAAS,KAAIC,EAAA,GAAY,EAC3BC,KAAgBC,EAAA,GAAiB,EAEjCC,KAAW,eAAaC,GAAyB,CACrDH,EAAc,IAAqB,eAAe,gBAAiB,CACjE,gBAAc,MAAqBF,CAAQ,EAC3C,YAAa,WACb,iBAAkB,qBACpB,CAAC,EAEDV,EAAUC,EAASc,CAAS,CAC9B,EAAG,CAACd,EAASS,EAAUE,CAAa,CAAC,EAErC,OACE,gBAAC,SAAM,CAAC,SAAAE,EAAoB,cAAe,CAAE,gBAAiB,MAAU,GACrE,CAAC,CAAE,aAAAE,EAAc,QAAAC,CAAQ,IACxB,gBAACnB,EAAA,KACC,gBAACD,EAAA,KACC,gBAACE,EAAA,CAAU,UAAU,cACnB,gBAAC,QAAK,CAAC,KAAK,kBAAkB,YAAU,MAAc,CAAE,SAAU,EAAK,CAAC,GACrE,CAA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AM,mCAAoC,EAC5D,CAEJ,C","sources":["webpack://graylog-web-interface/./src/components/authentication/BackendCreate/ServiceSelect.tsx","webpack://graylog-web-interface/./src/components/authentication/BackendCreate/GettingStarted.tsx","webpack://graylog-web-interface/./src/pages/AuthenticationCreatePage.tsx"],"sourcesContent":["/*\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 { useCallback } 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 { defaultCompare } from 'logic/DefaultCompare';\nimport { Select, InputDescription } from 'components/common';\nimport { Button } from 'components/bootstrap';\nimport type { HistoryFunction } from 'routing/useHistory';\nimport useHistory from 'routing/useHistory';\nimport { getPathnameWithoutId } from 'util/URLUtils';\nimport useSendTelemetry from 'logic/telemetry/useSendTelemetry';\nimport useLocation from 'routing/useLocation';\nimport { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants';\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\ntype FormState = { authServiceType: string };\n\nconst _onSubmit = (history: HistoryFunction, { authServiceType }: FormState) => {\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  const history = useHistory();\n  const { pathname } = useLocation();\n  const sendTelemetry = useSendTelemetry();\n\n  const onSubmit = useCallback((formState: FormState) => {\n    sendTelemetry(TELEMETRY_EVENT_TYPE.AUTHENTICATION.SERVICE_CREATED, {\n      app_pathname: getPathnameWithoutId(pathname),\n      app_section: 'services',\n      app_action_value: 'create-service-form',\n    });\n\n    _onSubmit(history, formState);\n  }, [history, pathname, sendTelemetry]);\n\n  return (\n    \n      {({ isSubmitting, isValid }) => (\n        \n          \n            \n              \n                {({ field: { name, value, onChange }, meta: { error } }) => (\n                  <>\n