web-interface.assets.1255d548-9582.70b9e481fe7e785ba0a4.js.map Maven / Gradle / Ivy
{"version":3,"file":"1255d548-9582.70b9e481fe7e785ba0a4.js","mappings":"uSAmCA,MAAMA,EAAgC,CAAC,CAAE,OAAQ,CAAE,UAAAC,CAAU,EAAG,SAAU,CAAE,MAAO,CAAE,eAAAC,CAAe,CAAE,CAAE,IAAa,CACnH,KAAM,CAACC,EAAaC,CAAc,KAAI,YAA4C,EAMlF,MAJA,aAAU,IAAM,CACd,IAAqB,KAAKH,CAAS,EAAE,KAAMI,GAAaD,EAAeC,EAAS,OAAO,CAAC,CAC1F,EAAG,CAACJ,CAAS,CAAC,EAEV,CAACE,EACH,OAAO,gBAAC,KAAO,IAAC,EAGlB,MAAMG,KAAc,MAAqBH,EAAY,OAAO,IAAI,EAEhE,GAAI,CAACG,EACH,OAAO,gCAAG,oDAAoDH,EAAY,OAAO,IAAI,GAAI,EAG3F,KAAM,CAAE,cAAeI,CAAY,EAAID,EAEvC,OAAO,gBAACC,EAAA,CAAY,sBAAuBJ,EAAa,eAAAD,CAAA,CAA0C,CACpG,EAEA,KAAe,QAAW,KAAaF,CAA6B,CAAC,C,0ECzBrE,QANiDQ,GAAgGC,GAAU,CACzJ,MAAMC,KAAS,aAAU,EAEzB,OAAO,gBAACF,EAAA,CAAW,GAAGC,EAAgB,OAAAC,CAAA,CAAgB,CACxD,C","sources":["webpack://graylog-web-interface/./src/pages/AuthenticationBackendEditPage.tsx","webpack://graylog-web-interface/./src/routing/withParams.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 { useState, useEffect } from 'react';\n\nimport withParams from 'routing/withParams';\nimport type { Location } from 'routing/withLocation';\nimport withLocation from 'routing/withLocation';\nimport 'components/authentication/bindings'; // Bind all authentication plugins\nimport { getAuthServicePlugin } from 'util/AuthenticationService';\nimport { Spinner } from 'components/common';\nimport AuthenticationDomain from 'domainActions/authentication/AuthenticationDomain';\nimport type AuthenticationBackend from 'logic/authentication/AuthenticationBackend';\n\ntype Props = {\n params: {\n backendId: string,\n },\n location: Location,\n};\n\nconst AuthenticationBackendEditPage = ({ params: { backendId }, location: { query: { initialStepKey } } }: Props) => {\n const [authBackend, setAuthBackend] = useState();\n\n useEffect(() => {\n AuthenticationDomain.load(backendId).then((response) => setAuthBackend(response.backend));\n }, [backendId]);\n\n if (!authBackend) {\n return ;\n }\n\n const authService = getAuthServicePlugin(authBackend.config.type);\n\n if (!authService) {\n return <>{`No authentication service plugin configured for \"${authBackend.config.type}\"`}>;\n }\n\n const { editComponent: BackendEdit } = authService;\n\n return ;\n};\n\nexport default withParams(withLocation(AuthenticationBackendEditPage));\n","/*\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 { useParams } from 'react-router-dom';\nimport type { Subtract } from 'utility-types';\n\ntype ParamsContext = {\n params: {\n [key: string]: string | null | undefined;\n };\n};\n\nconst withParams = (Component: React.ComponentType): React.ComponentType> => (props) => {\n const params = useParams();\n\n return ;\n};\n\nexport default withParams;\n"],"names":["AuthenticationBackendEditPage","backendId","initialStepKey","authBackend","setAuthBackend","response","authService","BackendEdit","Component","props","params"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy