id
stringlengths
1
6
tokens
sequence
labels
sequence
300
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "Path", ",", "StyledPreloader", "}", "from", "'./style'", ";", "export", "interface", "Props", "{", "style", "?", ":", "any", ";", "color", "?", ":", "string", ";", "thickness", "?", ":", "number", ";", "size", "?", ":", "number", ";", "}", "export", "const", "Preloader", "=", "(", "{", "style", ",", "color", ",", "size", ",", "thickness", "}", ")", "=>", "{", "return", "(", "<", "div", "style", "=", "{", "style", "}", ">", "<", "StyledPreloader", "size", "=", "{", "size", "}", ">", "<", "svg", "viewBox", "=", "\"25 25 50 50\"", ">", "<", "Path", "cx", "=", "\"50\"", "cy", "=", "\"50\"", "r", "=", "\"20\"", "fill", "=", "\"none\"", "strokeMiterlimit", "=", "\"10\"", "color", "=", "{", "color", "}", "thickness", "=", "{", "thickness", "}", "/", ">", "<", "/svg>", "<", "/StyledPreloader>", "<", "/div>);", "}", ";", "Preloader", ".", "defaultProps", "=", "{", "thickness", ":", "4", ",", "size", ":", "48", ",", "color", ":", "'#3F51B5'", ",", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 6, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
301
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "selectableItem", "}", "from", "'rectangle-selection'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "IFile", "}", "from", "'~/interfaces'", ";", "import", "{", "StyledFile", ",", "Label", ",", "Icon", ",", "Input", "}", "from", "'./style'", ";", "import", "{", "resizeTextarea", ",", "selectFileName", "}", "from", "'../../utils/input'", ";", "interface", "Props", "{", "data", ":", "IFile", ";", "}", "const", "onMouseDown", "=", "(", "data", ")", "=>", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "if", "(", "e", ".", "button", "===", "0", ")", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "const", "{", "selected", "}", "=", "data", ";", "if", "(", "e", ".", "ctrlKey", ")", "{", "data", ".", "selected", "=", "!", "selected", ";", "}", "else", "if", "(", "e", ".", "shiftKey", ")", "{", "page", ".", "selectGroup", "(", "page", ".", "files", ".", "indexOf", "(", "data", ")", ",", "page", ".", "files", ".", "indexOf", "(", "page", ".", "focusedFile", ")", ")", ";", "}", "else", "if", "(", "!", "data", ".", "selected", ")", "{", "page", ".", "unselectFiles", "(", "data", ")", ";", "}", "if", "(", "!", "e", ".", "shiftKey", ")", "{", "page", ".", "focusedFile", "=", "data", ";", "}", "store", ".", "drag", ".", "active", "=", "true", ";", "store", ".", "drag", ".", "startPos", "=", "{", "top", ":", "e", ".", "pageY", ",", "left", ":", "e", ".", "pageX", ",", "}", ";", "}", "store", ".", "contextMenu", ".", "visible", "=", "false", ";", "}", ";", "const", "onDoubleClick", "=", "(", "data", ")", "=>", "(", ")", "=>", "{", "if", "(", "data", ".", "type", "===", "'folder'", ")", "{", "store", ".", "pages", ".", "current", ".", "path", ".", "pushRelative", "(", "data", ".", "name", ")", ";", "}", "}", ";", "const", "onMouseEnter", "=", "(", "data", ")", "=>", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "hoveredFile", "=", "data", ";", "}", ";", "const", "onMouseLeave", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "hoveredFile", "=", "null", ";", "}", ";", "const", "onClick", "=", "(", "data", ")", "=>", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "store", ".", "drag", ".", "hide", "(", ")", ";", "if", "(", "!", "e", ".", "shiftKey", "&&", "!", "e", ".", "ctrlKey", ")", "{", "store", ".", "pages", ".", "current", ".", "unselectFiles", "(", "data", ")", ";", "}", "}", ";", "const", "onContextMenu", "=", "(", "data", ")", "=>", "(", "e", ")", "=>", "{", "e", ".", "stopPropagation", "(", ")", ";", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "const", "selectedFiles", "=", "page", ".", "selectedFiles", ";", "if", "(", "selectedFiles", ".", "indexOf", "(", "data", ")", "===", "-", "1", ")", "{", "page", ".", "unselectFiles", "(", "data", ")", ";", "}", "page", ".", "focusedFile", "=", "data", ";", "store", ".", "contextMenu", ".", "show", "(", "'file'", ")", ";", "}", ";", "const", "onInputKeyDown", "=", "(", "data", ")", "=>", "(", "e", ")", "=>", "{", "const", "input", "=", "e", ".", "target", "as", "HTMLTextAreaElement", ";", "if", "(", "e", ".", "key", "===", "'Enter'", ")", "{", "e", ".", "stopPropagation", "(", ")", ";", "e", ".", "preventDefault", "(", ")", ";", "store", ".", "pages", ".", "current", ".", "rename", "(", "data", ",", "input", ".", "value", ")", ";", "}", "else", "{", "resizeTextarea", "(", "input", ")", ";", "}", "}", ";", "const", "onInputBlur", "=", "(", "data", ")", "=>", "(", "e", ")", "=>", "{", "if", "(", "data", ".", "renamed", ")", "{", "store", ".", "pages", ".", "current", ".", "rename", "(", "data", ",", "e", ".", "target", ".", "value", ")", ";", "data", ".", "renamed", "=", "false", ";", "}", "}", ";", "export", "const", "File", "=", "selectableItem", "<", "Props", ">", "(", "observer", "(", "(", "{", "data", "}", ")", "=>", "{", "const", "inputRef", "=", "React", ".", "useRef", "<", "HTMLTextAreaElement", ">", "(", ")", ";", "const", "{", "name", ",", "selected", ",", "renamed", ",", "cut", "}", "=", "data", ";", "const", "{", "icon", ",", "opacity", "}", "=", "store", ".", "icons", ".", "getIcon", "(", "data", ")", ";", "React", ".", "useEffect", "(", "(", ")", "=>", "{", "if", "(", "renamed", ")", "{", "const", "input", "=", "inputRef", ".", "current", ";", "input", ".", "value", "=", "name", ";", "input", ".", "focus", "(", ")", ";", "selectFileName", "(", "input", ")", ";", "resizeTextarea", "(", "input", ")", ";", "}", "}", ",", "[", "renamed", "]", ")", ";", "return", "(", "<", "StyledFile", "onMouseEnter", "=", "{", "onMouseEnter", "(", "data", ")", "}", "onMouseLeave", "=", "{", "onMouseLeave", "}", "onMouseDown", "=", "{", "onMouseDown", "(", "data", ")", "}", "onClick", "=", "{", "onClick", "(", "data", ")", "}", "onDoubleClick", "=", "{", "onDoubleClick", "(", "data", ")", "}", "onContextMenu", "=", "{", "onContextMenu", "(", "data", ")", "}", "selected", "=", "{", "selected", "}", "cut", "=", "{", "cut", "}", ">", "<", "Icon", "icon", "=", "{", "icon", "}", "style", "=", "{", "{", "opacity", "}", "}", "/>", "<", "Label", ">", "{", "name", "}", "<", "/Label>", "<", "Input", "ref", "=", "{", "inputRef", "}", "visible", "=", "{", "renamed", "}", "onKeyDown", "=", "{", "onInputKeyDown", "(", "data", ")", "}", "onMouseDown", "=", "{", "e", "=>", "e", ".", "stopPropagation", "(", ")", "}", "onDoubleClick", "=", "{", "e", "=>", "e", ".", "stopPropagation", "(", ")", "}", "onBlur", "=", "{", "onInputBlur", "(", "data", ")", "}", "/", ">", "<", "/StyledFile>);", "}", ")", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 1312, null, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 1312, null, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 1312, null, null, null, 103, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 1312, null, null, null, 287, null, null, null, null, 730, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 1312, null, null, null, 949, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 525, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
302
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "SelectableGroup", "}", "from", "'rectangle-selection'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "Preloader", "}", "from", "'~/renderer/components/Preloader'", ";", "import", "{", "File", "}", "from", "'../File'", ";", "import", "{", "StyledPage", ",", "PreloaderContainer", "}", "from", "'./style'", ";", "const", "onSelect", "=", "(", "items", ")", "=>", "{", "if", "(", "!", "items", ".", "length", ")", "return", ";", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "page", ".", "files", ".", "forEach", "(", "item", "=>", "{", "const", "selected", "=", "items", ".", "indexOf", "(", "item", ".", "name", ")", "!==", "-", "1", ";", "if", "(", "item", ".", "selected", "!==", "selected", ")", "{", "item", ".", "selected", "=", "selected", ";", "}", "}", ")", ";", "}", ";", "const", "onMouseDown", "=", "(", "e", ")", "=>", "{", "if", "(", "!", "e", ".", "ctrlKey", "&&", "!", "e", ".", "shiftKey", "&&", "!", "store", ".", "drag", ".", "active", ")", "{", "store", ".", "pages", ".", "current", ".", "unselectFiles", "(", ")", ";", "}", "}", ";", "export", "const", "Page", "=", "observer", "(", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "if", "(", "!", "page", ")", "return", "null", ";", "return", "(", "<", "StyledPage", ">", "<", "SelectableGroup", "onSelect", "=", "{", "onSelect", "}", "onMouseDown", "=", "{", "onMouseDown", "}", "onContextMenu", "=", "{", "(", ")", "=>", "store", ".", "contextMenu", ".", "show", "(", "'page'", ")", "}", "style", "=", "{", "{", "opacity", ":", "page", ".", "loading", "?", "0", ":", "1", ",", "pointerEvents", ":", "page", ".", "loading", "?", "'none'", ":", "'auto'", ",", "}", "}", ">", "{", "page", ".", "files", ".", "map", "(", "file", "=>", "(", "<", "File", "key", "=", "{", "file", ".", "name", "}", "itemKey", "=", "{", "file", ".", "name", "}", "data", "=", "{", "file", "}", "/", ">", ")", ")", "}", "<", "/SelectableGroup>", "<", "PreloaderContainer", "visible", "=", "{", "page", ".", "loading", "}", ">", "<", "Preloader", "/>", "<", "/PreloaderContainer>", "<", "/StyledPage>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, 1312, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
303
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "StyledProgressbar", ",", "Line", ",", "Track", "}", "from", "'./style'", ";", "export", "const", "Progressbar", "=", "(", "{", "value", ",", "style", ",", "}", ")", "=>", "{", "return", "(", "<", "StyledProgressbar", "style", "=", "{", "style", "}", ">", "<", "Line", "/>", "<", "Track", "style", "=", "{", "{", "width", ":", "`${", "value", "}%`", "}", "}", "/>", "<", "/StyledProgressbar>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
304
[ "import", "{", "shell", "}", "from", "'electron'", ";", "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "ITransferItem", "}", "from", "'qusly-core'", ";", "import", "{", "basename", "}", "from", "'path'", ";", "import", "*", "as", "prettyByte", "from", "'pretty-bytes'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "Button", "}", "from", "'~/renderer/components/Button'", ";", "import", "{", "Progressbar", "}", "from", "'~/renderer/components/Progressbar'", ";", "import", "{", "StyledItem", ",", "Icon", ",", "Container", ",", "Name", ",", "Label", ",", "Buttons", ",", "Close", ",", "Show", ",", "}", "from", "'./style'", ";", "const", "showInFolder", "=", "(", "data", ")", "=>", "(", ")", "=>", "{", "const", "{", "localPath", "}", "=", "data", ".", "info", ";", "shell", ".", "showItemInFolder", "(", "localPath", ")", ";", "}", ";", "const", "onClose", "=", "(", "id", ")", "=>", "(", ")", "=>", "{", "store", ".", "transfer", ".", "remove", "(", "id", ")", ";", "}", ";", "const", "TransferDetails", "=", "observer", "(", "(", "{", "data", "}", ")", "=>", "{", "const", "{", "info", "}", "=", "data", ";", "const", "speed", "=", "prettyByte", "(", "info", ".", "speed", ")", ";", "const", "buffered", "=", "prettyByte", "(", "info", ".", "buffered", ")", ";", "const", "size", "=", "prettyByte", "(", "info", ".", "size", ")", ";", "return", "(", "<", ">", "<", "Label", "style", "=", "{", "{", "marginTop", ":", "16", "}", "}", ">", "{", "speed", "}", "/", "s", "-", "{", "buffered", "}", "of", "{", "size", "}", ",", "{", "info", ".", "eta", "}", "s", "left", "<", "/Label>", "<", "Progressbar", "value", "=", "{", "info", ".", "percent", "}", "style", "=", "{", "{", "width", ":", "'100%'", ",", "marginTop", ":", "8", "}", "}", "/>", "<", "Buttons", ">", "<", "Button", "label", "=", "\"Pause\"", "type", "=", "\"outlined\"", "color", "=", "\"#2196F3\"", "/", ">", "<", "Button", "label", "=", "\"Cancel\"", "type", "=", "\"outlined\"", "color", "=", "\"#2196F3\"", "/", ">", "<", "/Buttons>", "<", "/>);", "}", ")", ";", "export", "const", "Item", "=", "observer", "(", "(", "{", "data", "}", ")", "=>", "{", "const", "{", "id", ",", "status", ",", "info", "}", "=", "data", ";", "const", "{", "remotePath", "}", "=", "info", ";", "const", "{", "icon", ",", "opacity", "}", "=", "store", ".", "icons", ".", "getPathIcon", "(", "remotePath", ")", ";", "const", "filename", "=", "basename", "(", "remotePath", ")", ";", "return", "(", "<", "StyledItem", ">", "<", "Icon", "icon", "=", "{", "icon", "}", "opacity", "=", "{", "opacity", "}", "/", ">", "<", "Container", ">", "<", "Name", ">", "{", "filename", "}", "<", "/Name>", "<", "Label", ">", "{", "remotePath", "}", "<", "/Label>", "{", "status", "===", "'transfering'", "&&", "<", "TransferDetails", "data", "=", "{", "data", "}", "/>}", "{", "status", "===", "'finished'", "&&", "(", "<", ">", "<", "Show", "onClick", "=", "{", "showInFolder", "(", "data", ")", "}", ">", "Show", "in", "folder", "<", "/Show>", "<", "Close", "onClick", "=", "{", "onClose", "(", "id", ")", "}", "/", ">", "<", "/>)}", "<", "/Container>", "<", "/StyledItem>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 35095, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
305
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "ITransferSection", "}", "from", "'~/interfaces'", ";", "import", "{", "Item", "}", "from", "'../Item'", ";", "import", "{", "StyledSection", ",", "Title", "}", "from", "'./style'", ";", "export", "const", "Section", "=", "(", "{", "data", "}", ")", "=>", "{", "const", "{", "title", ",", "items", ",", "transfered", "}", "=", "data", ";", "return", "(", "<", "StyledSection", ">", "<", "Title", ">", "{", "title", "}", "-", "{", "transfered", "}", "of", "{", "items", ".", "length", "}", "<", "/Title>", "{", "items", ".", "map", "(", "r", "=>", "(", "<", "Item", "key", "=", "{", "r", ".", "id", "}", "data", "=", "{", "r", "}", "/", ">", ")", ")", "}", "<", "/StyledSection>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
306
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "Section", "}", "from", "'./Section'", ";", "import", "{", "StyledTransfer", "}", "from", "'./style'", ";", "export", "const", "TransferOverlay", "=", "observer", "(", "(", ")", "=>", "{", "if", "(", "store", ".", "activitybar", ".", "content", "!==", "'transfer'", ")", "return", "null", ";", "return", "(", "<", "StyledTransfer", ">", "{", "store", ".", "transfer", ".", "sections", ".", "map", "(", "r", "=>", "(", "<", "Section", "key", "=", "{", "r", ".", "_id", "}", "data", "=", "{", "r", "}", "/", ">", ")", ")", "}", "<", "/StyledTransfer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
307
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "Appbar", "}", "from", "'../Appbar'", ";", "import", "{", "Page", "}", "from", "'../Page'", ";", "import", "{", "TransferOverlay", "}", "from", "'../TransferOverlay'", ";", "import", "{", "StyledContent", "}", "from", "'./style'", ";", "export", "const", "Content", "=", "(", ")", "=>", "{", "return", "(", "<", "StyledContent", ">", "<", "Appbar", "/>", "<", "Page", "/", ">", "<", "TransferOverlay", "/>", "<", "/StyledContent>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
308
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "MenuContainer", ",", "MenuItem", "}", "from", "'..'", ";", "import", "{", "MenuDivider", "}", "from", "'../style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "onOpen", "=", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "page", ".", "path", ".", "pushRelative", "(", "page", ".", "focusedFile", ".", "name", ")", ";", "}", ";", "const", "onOpenInNewTab", "=", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "const", "{", "site", "}", "=", "page", ".", "session", ";", "for", "(", "const", "file", "of", "page", ".", "selectedFiles", ")", "{", "store", ".", "tabs", ".", "addTab", "(", "{", "active", ":", "true", ",", "path", ":", "page", ".", "path", ".", "relative", "(", "file", ".", "name", ")", ",", "site", ",", "}", ")", ";", "}", "}", ";", "const", "onCut", "=", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "page", ".", "cut", "(", "page", ".", "selectedFiles", ")", ";", "}", ";", "const", "onPaste", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "paste", "(", ")", ";", "}", ";", "const", "onRename", "=", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "page", ".", "focusedFile", ".", "renamed", "=", "true", ";", "}", ";", "const", "onDelete", "=", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "page", ".", "delete", "(", "page", ".", "selectedFiles", ")", ";", "}", ";", "const", "onDownload", "=", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "const", "paths", "=", "page", ".", "selectedFiles", ".", "map", "(", "r", "=>", "page", ".", "path", ".", "relative", "(", "r", ".", "name", ")", ")", ";", "page", ".", "session", ".", "download", "(", "...", "paths", ")", ";", "}", ";", "export", "const", "FileMenu", "=", "observer", "(", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "if", "(", "!", "page", ")", "return", "null", ";", "const", "containsFile", "=", "!", "!", "page", ".", "selectedFiles", ".", "find", "(", "e", "=>", "e", ".", "type", "!==", "'folder'", ")", ";", "const", "multiple", "=", "page", ".", "selectedFiles", ".", "length", ">", "1", ";", "return", "(", "<", "MenuContainer", "content", "=", "\"file\"", ">", "<", "MenuItem", "onClick", "=", "{", "onOpen", "}", "icon", "=", "{", "icons", ".", "folderOutline", "}", "hidden", "=", "{", "multiple", "||", "containsFile", "}", ">", "Open", "<", "/MenuItem>", "<", "MenuItem", "onClick", "=", "{", "onOpenInNewTab", "}", "icon", "=", "{", "icons", ".", "openInNew", "}", "iconSize", "=", "{", "18", "}", "hidden", "=", "{", "containsFile", "}", ">", "Open", "in", "new", "tab", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "apps", "}", "iconSize", "=", "{", "18", "}", "hidden", "=", "{", "multiple", "||", "!", "containsFile", "}", "disabled", ">", "Open", "with", "<", "/MenuItem>", "{", "(", "multiple", "!==", "containsFile", "||", "!", "containsFile", ")", "&&", "<", "MenuDivider", "/>}", "<", "MenuItem", "icon", "=", "{", "icons", ".", "cut", "}", "iconSize", "=", "{", "16", "}", "onClick", "=", "{", "onCut", "}", "accelerator", "=", "{", "'Ctrl+X'", "}", ">", "Cut", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "paste", "}", "iconSize", "=", "{", "18", "}", "onClick", "=", "{", "onPaste", "}", "hidden", "=", "{", "!", "page", ".", "cutFiles", ".", "length", "||", "containsFile", "}", "accelerator", "=", "{", "'Ctrl+V'", "}", ">", "Paste", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "edit", "}", "onClick", "=", "{", "onRename", "}", "hidden", "=", "{", "multiple", "}", "accelerator", "=", "{", "'F2'", "}", ">", "Rename", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "delete", "}", "iconSize", "=", "{", "20", "}", "onClick", "=", "{", "onDelete", "}", "accelerator", "=", "{", "'Del'", "}", ">", "Delete", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "downloadOutline", "}", "hidden", "=", "{", "!", "containsFile", "}", "onClick", "=", "{", "onDownload", "}", ">", "Download", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "zip", "}", "iconSize", "=", "{", "18", "}", "hidden", "=", "{", "!", "containsFile", "}", "disabled", ">", "Archive", "<", "/MenuItem>", "{", "containsFile", "&&", "<", "MenuDivider", "/>}", "<", "MenuItem", "icon", "=", "{", "icons", ".", "details", "}", "iconSize", "=", "{", "18", "}", "disabled", ">", "Details", "<", "/MenuItem>", "<", "/MenuContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
309
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "MenuContainer", ",", "MenuItem", "}", "from", "'..'", ";", "import", "{", "MenuDivider", "}", "from", "'../style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "onRefresh", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "fetchFiles", "(", ")", ";", "}", ";", "const", "onNewFolder", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "createBlank", "(", "'folder'", ")", ";", "}", ";", "const", "onNewFile", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "createBlank", "(", "'file'", ")", ";", "}", ";", "const", "onPaste", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "paste", "(", "true", ")", ";", "}", ";", "export", "const", "PageMenu", "=", "observer", "(", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "if", "(", "!", "page", ")", "return", "null", ";", "return", "(", "<", "MenuContainer", "content", "=", "\"page\"", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "refresh", "}", "onClick", "=", "{", "onRefresh", "}", "accelerator", "=", "{", "'Ctrl+R'", "}", ">", "Refresh", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "folderAdd", "}", "onClick", "=", "{", "onNewFolder", "}", "accelerator", "=", "{", "'Ctrl+Shift+N'", "}", ">", "New", "folder", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "fileAdd", "}", "onClick", "=", "{", "onNewFile", "}", ">", "New", "file", "<", "/MenuItem>", "{", "!", "!", "page", ".", "cutFiles", ".", "length", "&&", "(", "<", ">", "<", "MenuDivider", "/>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "paste", "}", "iconSize", "=", "{", "18", "}", "onClick", "=", "{", "onPaste", "}", ">", "Paste", "<", "/MenuItem>", "<", "/>)}", "<", "/MenuContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
310
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "MenuContainer", ",", "MenuItem", "}", "from", "'..'", ";", "import", "{", "MenuDivider", "}", "from", "'../style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "onClose", "=", "(", ")", "=>", "{", "store", ".", "contextMenu", ".", "focusedTab", ".", "close", "(", ")", ";", "}", ";", "const", "onCloseOthers", "=", "(", ")", "=>", "{", "const", "pageId", "=", "store", ".", "contextMenu", ".", "focusedTab", ".", "pageId", ";", "for", "(", "const", "tab", "of", "store", ".", "tabs", ".", "list", ")", "{", "if", "(", "tab", ".", "pageId", "!==", "pageId", ")", "{", "tab", ".", "close", "(", ")", ";", "}", "}", "}", ";", "const", "onCloseLeft", "=", "(", ")", "=>", "{", "const", "tabIndex", "=", "store", ".", "tabs", ".", "list", ".", "indexOf", "(", "store", ".", "contextMenu", ".", "focusedTab", ")", ";", "for", "(", "let", "i", "=", "0", ";", "i", "<", "tabIndex", ";", "i", "++", ")", "{", "store", ".", "tabs", ".", "list", "[", "i", "]", ".", "close", "(", ")", ";", "}", "}", ";", "const", "onCloseRight", "=", "(", ")", "=>", "{", "const", "tabIndex", "=", "store", ".", "tabs", ".", "list", ".", "indexOf", "(", "store", ".", "contextMenu", ".", "focusedTab", ")", ";", "for", "(", "let", "i", "=", "tabIndex", "+", "1", ";", "i", "<", "store", ".", "tabs", ".", "list", ".", "length", ";", "i", "++", ")", "{", "store", ".", "tabs", ".", "list", "[", "i", "]", ".", "close", "(", ")", ";", "}", "}", ";", "const", "onCloseAll", "=", "(", ")", "=>", "{", "for", "(", "const", "tab", "of", "store", ".", "tabs", ".", "list", ")", "{", "tab", ".", "close", "(", ")", ";", "}", "}", ";", "const", "onRefresh", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "fetchFiles", "(", ")", ";", "}", ";", "const", "onCopyPath", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "path", ".", "copyToClipboard", "(", ")", ";", "}", ";", "export", "const", "TabMenu", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", "MenuContainer", "content", "=", "\"tab\"", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "close", "}", "onClick", "=", "{", "onClose", "}", ">", "Close", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "' '", "}", "onClick", "=", "{", "onCloseOthers", "}", ">", "Close", "others", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "' '", "}", "onClick", "=", "{", "onCloseRight", "}", ">", "Close", "to", "the", "right", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "' '", "}", "onClick", "=", "{", "onCloseLeft", "}", ">", "Close", "to", "the", "left", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "' '", "}", "onClick", "=", "{", "onCloseAll", "}", ">", "Close", "all", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "refresh", "}", "onClick", "=", "{", "onRefresh", "}", ">", "Refresh", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "copy", "}", "onClick", "=", "{", "onCopyPath", "}", ">", "Copy", "path", "<", "/MenuItem>", "<", "/MenuContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, 388, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
311
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "MenuContainer", ",", "MenuItem", "}", "from", "'..'", ";", "import", "{", "MenuDivider", "}", "from", "'../style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "onCopyPath", "=", "(", ")", "=>", "{", "store", ".", "pages", ".", "current", ".", "path", ".", "copyToClipboard", "(", ")", ";", "}", ";", "const", "onEdit", "=", "(", ")", "=>", "{", "store", ".", "pathView", ".", "show", "(", ")", ";", "}", ";", "export", "const", "PathMenu", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", "MenuContainer", "content", "=", "\"path\"", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "copy", "}", "onClick", "=", "{", "onCopyPath", "}", ">", "Copy", "path", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "edit", "}", "onClick", "=", "{", "onEdit", "}", ">", "Edit", "path", "<", "/MenuItem>", "<", "/MenuContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
312
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "MenuContainer", ",", "MenuItem", "}", "from", "'..'", ";", "import", "{", "MenuDivider", "}", "from", "'../style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "onOpen", "=", "(", ")", "=>", "{", "const", "{", "path", "}", "=", "store", ".", "contextMenu", ".", "focusedExplorerItem", ";", "store", ".", "pages", ".", "current", ".", "path", ".", "push", "(", "path", ")", ";", "}", ";", "const", "onOpenInNewTab", "=", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "const", "{", "path", "}", "=", "store", ".", "contextMenu", ".", "focusedExplorerItem", ";", "store", ".", "tabs", ".", "addTab", "(", "{", "active", ":", "true", ",", "site", ":", "page", ".", "session", ".", "site", ",", "path", ",", "}", ")", ";", "}", ";", "export", "const", "ExplorerMenu", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", "MenuContainer", "content", "=", "\"explorer\"", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "folderOutline", "}", "onClick", "=", "{", "onOpen", "}", ">", "Open", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "openInNew", "}", "onClick", "=", "{", "onOpenInNewTab", "}", ">", "Open", "in", "new", "tab", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "downloadOutline", "}", "disabled", ">", "Download", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "details", "}", "iconSize", "=", "{", "18", "}", "disabled", ">", "Details", "<", "/MenuItem>", "<", "/MenuContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
313
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "getPassword", "}", "from", "'~/utils/credentials'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "MenuContainer", ",", "MenuItem", "}", "from", "'..'", ";", "import", "{", "MenuDivider", "}", "from", "'../style'", ";", "import", "{", "icons", "}", "from", "'~/renderer/constants/icons'", ";", "const", "onConnect", "=", "(", ")", "=>", "{", "const", "site", "=", "store", ".", "contextMenu", ".", "focusedSite", ";", "store", ".", "sites", ".", "openInTab", "(", "site", ")", ";", "}", ";", "const", "onEdit", "=", "async", "(", ")", "=>", "{", "const", "site", "=", "store", ".", "contextMenu", ".", "focusedSite", ";", "site", ".", "password", "=", "await", "getPassword", "(", "site", ".", "_id", ")", ";", "store", ".", "dialog", ".", "show", "(", "'edit-site'", ")", ";", "}", ";", "const", "onDelete", "=", "(", ")", "=>", "{", "store", ".", "dialog", ".", "show", "(", "'delete-site'", ")", ";", "}", ";", "export", "const", "SiteMenu", "=", "(", ")", "=>", "{", "return", "(", "<", "MenuContainer", "content", "=", "\"site\"", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "connect", "}", "iconSize", "=", "{", "18", "}", "onClick", "=", "{", "onConnect", "}", ">", "Connect", "<", "/MenuItem>", "<", "MenuDivider", "/", ">", "<", "MenuItem", "icon", "=", "{", "icons", ".", "edit", "}", "onClick", "=", "{", "onEdit", "}", ">", "Edit", "<", "/MenuItem>", "<", "MenuItem", "icon", "=", "{", "icons", ".", "delete", "}", "iconSize", "=", "{", "20", "}", "onClick", "=", "{", "onDelete", "}", ">", "Delete", "<", "/MenuItem>", "<", "/MenuContainer>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
314
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "ContextMenuContent", "}", "from", "'~/renderer/app/store/context-menu'", ";", "import", "{", "FileMenu", "}", "from", "'./File'", ";", "import", "{", "PageMenu", "}", "from", "'./Page'", ";", "import", "{", "TabMenu", "}", "from", "'./Tab'", ";", "import", "{", "PathMenu", "}", "from", "'./Path'", ";", "import", "{", "ExplorerMenu", "}", "from", "'./Explorer'", ";", "import", "{", "SiteMenu", "}", "from", "'./Site'", ";", "import", "{", "StyledContextMenu", ",", "StyledItem", ",", "Accelerator", ",", "Text", ",", "Icon", ",", "Items", ",", "}", "from", "'./style'", ";", "interface", "ItemProps", "{", "onClick", "?", ":", "(", "e", ":", "React", ".", "MouseEvent", ")", "=>", "void", ";", "icon", "?", ":", "string", ";", "disabled", "?", ":", "boolean", ";", "iconSize", "?", ":", "number", ";", "hidden", "?", ":", "boolean", ";", "children", ":", "any", ";", "accelerator", "?", ":", "string", ";", "}", "export", "const", "MenuItem", "=", "(", "{", "icon", ",", "onClick", ",", "children", ",", "disabled", ",", "iconSize", ",", "hidden", ",", "accelerator", ",", "}", ")", "=>", "{", "const", "onItemClick", "=", "(", "e", ")", "=>", "{", "store", ".", "contextMenu", ".", "visible", "=", "false", ";", "if", "(", "onClick", ")", "onClick", "(", "e", ")", ";", "}", ";", "return", "(", "<", "StyledItem", "onMouseDown", "=", "{", "e", "=>", "e", ".", "stopPropagation", "(", ")", "}", "onClick", "=", "{", "onItemClick", "}", "disabled", "=", "{", "disabled", "}", "hidden", "=", "{", "hidden", "}", ">", "<", "td", "style", "=", "{", "{", "paddingLeft", ":", "10", "}", "}", ">", "<", "/td>", "<", "Icon", "disabled", "=", "{", "disabled", "}", "iconSize", "=", "{", "iconSize", "}", "icon", "=", "{", "icon", "}", ">", "<", "/Icon>", "<", "Text", ">", "{", "children", "}", "<", "/Text>", "<", "Accelerator", ">", "{", "accelerator", "}", "<", "/Accelerator>", "<", "/StyledItem>);", "}", ";", "export", "const", "MenuContainer", "=", "observer", "(", "(", "{", "content", ",", "children", "}", ")", "=>", "{", "const", "selected", "=", "store", ".", "contextMenu", ".", "content", "===", "content", ";", "return", "selected", "&&", "children", ";", "}", ")", ";", "export", "const", "ContextMenu", "=", "observer", "(", "(", ")", "=>", "{", "const", "{", "top", ",", "left", "}", "=", "store", ".", "contextMenu", ".", "pos", ";", "return", "(", "<", "StyledContextMenu", "ref", "=", "{", "store", ".", "contextMenu", ".", "ref", "}", "visible", "=", "{", "store", ".", "contextMenu", ".", "visible", "}", "style", "=", "{", "{", "top", ",", "left", "}", "}", ">", "<", "Items", ">", "<", "FileMenu", "/>", "<", "PageMenu", "/", ">", "<", "TabMenu", "/>", "<", "PathMenu", "/", ">", "<", "ExplorerMenu", "/>", "<", "SiteMenu", "/", ">", "<", "/Items>", "<", "/StyledContextMenu>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
315
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "StyledThumb", ",", "Icon", ",", "Title", ",", "Count", "}", "from", "'./style'", ";", "export", "const", "DragThumb", "=", "observer", "(", "(", ")", "=>", "{", "const", "page", "=", "store", ".", "pages", ".", "current", ";", "if", "(", "!", "page", ")", "return", "null", ";", "const", "file", "=", "page", ".", "focusedFile", ";", "const", "{", "icon", ",", "opacity", "}", "=", "store", ".", "icons", ".", "getIcon", "(", "file", ")", ";", "const", "selected", "=", "page", ".", "selectedFiles", ";", "return", "(", "<", "StyledThumb", "ref", "=", "{", "store", ".", "drag", ".", "ref", "}", "visible", "=", "{", "store", ".", "drag", ".", "visible", "}", ">", "<", "Icon", "icon", "=", "{", "icon", "}", "opacity", "=", "{", "opacity", "}", "/", ">", "<", "Title", ">", "{", "file", "&&", "file", ".", "name", "}", "<", "/Title>", "{", "selected", ".", "length", ">", "1", "&&", "<", "Count", ">", "{", "selected", ".", "length", "}", "<", "/Count>}", "<", "/StyledThumb>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, 203, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1312, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
316
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "IProtocol", "}", "from", "'qusly-core'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "ISite", "}", "from", "'~/interfaces'", ";", "import", "{", "Dropdown", ",", "DropdownItem", "}", "from", "'~/renderer/components/Dropdown'", ";", "import", "{", "CloseButton", ",", "DialogContainer", "}", "from", "'..'", ";", "import", "{", "Title", ",", "Content", ",", "Buttons", ",", "DialogButton", "}", "from", "'../style'", ";", "import", "{", "Input", ",", "Row", "}", "from", "'./style'", ";", "import", "{", "ensureValue", ",", "getValues", ",", "setValues", ",", "clearValues", ",", "}", "from", "'~/renderer/app/utils/input'", ";", "export", "const", "SiteDialog", "=", "observer", "(", "(", ")", "=>", "{", "const", "content", "=", "store", ".", "dialog", ".", "content", ";", "const", "titleRef", "=", "React", ".", "useRef", "<", "HTMLInputElement", ">", "(", ")", ";", "const", "protocolRef", "=", "React", ".", "useRef", "<", "Dropdown", ">", "(", ")", ";", "const", "portRef", "=", "React", ".", "useRef", "<", "HTMLInputElement", ">", "(", ")", ";", "const", "hostnameRef", "=", "React", ".", "useRef", "<", "HTMLInputElement", ">", "(", ")", ";", "const", "userRef", "=", "React", ".", "useRef", "<", "HTMLInputElement", ">", "(", ")", ";", "const", "passwordRef", "=", "React", ".", "useRef", "<", "HTMLInputElement", ">", "(", ")", ";", "const", "[", "disabled", ",", "setDisabled", "]", "=", "React", ".", "useState", "(", "true", ")", ";", "const", "onInput", "=", "React", ".", "useCallback", "(", "(", ")", "=>", "{", "const", "hasValue", "=", "ensureValue", "(", "hostnameRef", ",", "userRef", ",", "passwordRef", ")", ";", "setDisabled", "(", "!", "hasValue", ")", ";", "}", ",", "[", "]", ")", ";", "const", "onSave", "=", "React", ".", "useCallback", "(", "(", ")", "=>", "{", "const", "[", "title", ",", "port", ",", "host", ",", "user", ",", "password", "]", "=", "getValues", "(", "titleRef", ",", "portRef", ",", "hostnameRef", ",", "userRef", ",", "passwordRef", ")", ";", "const", "defaultPort", "=", "protocolRef", ".", "current", ".", "value", "===", "'sftp'", "?", "22", ":", "21", ";", "const", "site", "=", "{", "title", ":", "title", "||", "host", ",", "port", ":", "port", ".", "length", "?", "parseInt", "(", "port", ",", "10", ")", ":", "defaultPort", ",", "protocol", ":", "protocolRef", ".", "current", ".", "value", "as", "IProtocol", ",", "host", ",", "user", ",", "password", ",", "}", ";", "if", "(", "store", ".", "dialog", ".", "content", "===", "'add-site'", ")", "{", "store", ".", "sites", ".", "add", "(", "site", ")", ";", "}", "else", "{", "const", "{", "_id", "}", "=", "store", ".", "contextMenu", ".", "focusedSite", ";", "store", ".", "sites", ".", "update", "(", "_id", ",", "site", ")", ";", "}", "store", ".", "dialog", ".", "visible", "=", "false", ";", "}", ",", "[", "]", ")", ";", "React", ".", "useEffect", "(", "(", ")", "=>", "{", "if", "(", "content", "===", "'edit-site'", ")", "{", "const", "{", "title", ",", "protocol", ",", "port", ",", "host", ",", "user", ",", "password", ",", "}", "=", "store", ".", "contextMenu", ".", "focusedSite", ";", "setValues", "(", "[", "titleRef", ",", "title", "]", ",", "[", "protocolRef", ",", "protocol", "]", ",", "[", "portRef", ",", "port", "]", ",", "[", "hostnameRef", ",", "host", "]", ",", "[", "userRef", ",", "user", "]", ",", "[", "passwordRef", ",", "password", "]", ")", ";", "setDisabled", "(", "false", ")", ";", "}", "else", "if", "(", "content", "===", "'add-site'", ")", "{", "protocolRef", ".", "current", ".", "value", "=", "'sftp'", ";", "clearValues", "(", "titleRef", ",", "portRef", ",", "hostnameRef", ",", "userRef", ",", "passwordRef", ")", ";", "setDisabled", "(", "true", ")", ";", "}", "}", ",", "[", "content", "]", ")", ";", "return", "(", "<", "DialogContainer", "content", "=", "{", "[", "'add-site'", ",", "'edit-site'", "]", "}", ">", "<", "Title", ">", "{", "content", "===", "'edit-site'", "?", "'Edit'", ":", "'New'", "}", "site", "<", "/Title>", "<", "Content", ">", "<", "Input", "ref", "=", "{", "titleRef", "}", "placeholder", "=", "\"Title (optional)\"", "/", ">", "<", "Row", ">", "<", "Dropdown", "ref", "=", "{", "protocolRef", "}", "defaultValue", "=", "\"sftp\"", "style", "=", "{", "{", "width", ":", "'100%'", "}", "}", ">", "<", "DropdownItem", "value", "=", "\"ftp\"", ">", "FTP", "<", "/DropdownItem>", "<", "DropdownItem", "value", "=", "\"ftps\"", ">", "FTPS", "<", "/DropdownItem>", "<", "DropdownItem", "value", "=", "\"sftp\"", ">", "SFTP", "<", "/DropdownItem>", "<", "/Dropdown>", "<", "Input", "ref", "=", "{", "portRef", "}", "placeholder", "=", "\"Port (optional)\"", "type", "=", "\"number\"", "style", "=", "{", "{", "marginLeft", ":", "16", ",", "marginTop", ":", "0", "}", "}", "/>", "<", "/Row>", "<", "Input", "ref", "=", "{", "hostnameRef", "}", "placeholder", "=", "\"Hostname\"", "onInput", "=", "{", "onInput", "}", "/", ">", "<", "Input", "ref", "=", "{", "userRef", "}", "placeholder", "=", "\"User\"", "onInput", "=", "{", "onInput", "}", "/", ">", "<", "Input", "ref", "=", "{", "passwordRef", "}", "placeholder", "=", "\"Password\"", "onInput", "=", "{", "onInput", "}", "/", ">", "<", "/Content>", "<", "Buttons", ">", "<", "CloseButton", "/>", "<", "DialogButton", "label", "=", "\"Save\"", "disabled", "=", "{", "disabled", "}", "onClick", "=", "{", "onSave", "}", "/", ">", "<", "/Buttons>", "<", "/DialogContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 19654, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
317
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "DialogContainer", ",", "SecondaryButton", ",", "onDialogClose", "}", "from", "'..'", ";", "import", "{", "Title", ",", "Content", ",", "Buttons", ",", "DialogButton", "}", "from", "'../style'", ";", "const", "onDelete", "=", "(", ")", "=>", "{", "const", "{", "_id", "}", "=", "store", ".", "contextMenu", ".", "focusedSite", ";", "store", ".", "sites", ".", "remove", "(", "_id", ")", ";", "store", ".", "dialog", ".", "visible", "=", "false", ";", "}", ";", "export", "const", "DeleteSiteDialog", "=", "(", ")", "=>", "{", "return", "(", "<", "DialogContainer", "content", "=", "\"delete-site\"", ">", "<", "Title", ">", "Confirm", "<", "/Title>", "<", "Content", ">", "Are", "you", "sure", "you", "want", "to", "delete", "this", "bookmark", "?", "<", "/Content>", "<", "Buttons", ">", "<", "SecondaryButton", "label", "=", "\"Delete\"", "onClick", "=", "{", "onDelete", "}", "/", ">", "<", "DialogButton", "label", "=", "\"Cancel\"", "onClick", "=", "{", "onDialogClose", "}", "/", ">", "<", "/Buttons>", "<", "/DialogContainer>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
318
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "store", "from", "'~/renderer/app/store'", ";", "import", "{", "DialogContent", "}", "from", "'~/renderer/app/store/dialog'", ";", "import", "{", "SiteDialog", "}", "from", "'./Site'", ";", "import", "{", "DeleteSiteDialog", "}", "from", "'./DeleteSite'", ";", "import", "{", "IButtonProps", "}", "from", "'~/renderer/components/Button'", ";", "import", "{", "StyledDialog", ",", "DialogButton", ",", "Dark", ",", "Container", "}", "from", "'./style'", ";", "export", "const", "onDialogClose", "=", "(", ")", "=>", "{", "store", ".", "dialog", ".", "visible", "=", "false", ";", "}", ";", "export", "const", "DialogContainer", "=", "observer", "(", "(", "{", "content", ",", "children", ",", "}", ")", "=>", "{", "const", "current", "=", "store", ".", "dialog", ".", "content", ";", "const", "contentVisible", "=", "React", ".", "useMemo", "(", "(", ")", "=>", "{", "return", "content", "instanceof", "Array", "?", "content", ".", "indexOf", "(", "current", ")", "!==", "-", "1", ":", "content", "===", "current", ";", "}", ",", "[", "current", "]", ")", ";", "return", "(", "<", "Container", "visible", "=", "{", "store", ".", "dialog", ".", "visible", "&&", "contentVisible", "}", ">", "{", "children", "}", "<", "/Container>);", "}", ")", ";", "export", "const", "CloseButton", "=", "(", ")", "=>", "{", "return", "<", "SecondaryButton", "label", "=", "\"Cancel\"", "onClick", "=", "{", "onDialogClose", "}", "/", ">", ";", "}", ";", "export", "const", "SecondaryButton", "=", "(", "props", ")", "=>", "{", "return", "(", "<", "DialogButton", "background", "=", "\"rgba(0, 0, 0, 0.08)\"", "color", "=", "\"#000\"", "{", "...", "props", "}", "/>);", "}", ";", "export", "const", "Dialog", "=", "observer", "(", "(", ")", "=>", "{", "return", "(", "<", "StyledDialog", "visible", "=", "{", "store", ".", "dialog", ".", "visible", "}", ">", "<", "Dark", "visible", "=", "{", "store", ".", "dialog", ".", "visible", "}", "onClick", "=", "{", "onDialogClose", "}", "/", ">", "<", "SiteDialog", "/>", "<", "DeleteSiteDialog", "/", ">", "<", "/StyledDialog>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
319
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "hot", "}", "from", "'react-hot-loader/root'", ";", "import", "{", "createGlobalStyle", "}", "from", "'styled-components'", ";", "import", "{", "Titlebar", "}", "from", "'../Titlebar'", ";", "import", "{", "Activitybar", "}", "from", "'../Activitybar'", ";", "import", "{", "Sidebar", "}", "from", "'../Sidebar'", ";", "import", "{", "Content", "}", "from", "'../Content'", ";", "import", "{", "ContextMenu", "}", "from", "'../ContextMenu'", ";", "import", "{", "DragThumb", "}", "from", "'../DragThumb'", ";", "import", "{", "Dialog", "}", "from", "'../Dialog'", ";", "import", "{", "Style", "}", "from", "'../../style'", ";", "import", "{", "StyledApp", ",", "Container", "}", "from", "'./style'", ";", "const", "GlobalStyle", "=", "createGlobalStyle", "`${", "Style", "}`", ";", "const", "App", "=", "(", ")", "=>", "{", "return", "(", "<", "StyledApp", ">", "<", "GlobalStyle", "/>", "<", "Titlebar", "/", ">", "<", "Container", ">", "<", "Activitybar", "/>", "<", "Sidebar", "/", ">", "<", "Content", "/>", "<", "DragThumb", "/", ">", "<", "/Container>", "<", "ContextMenu", "/", ">", "<", "Dialog", "/>", "<", "/StyledApp>);", "}", ";", "export", "default", "hot", "(", "App", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1654, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
320
[ "import", "{", "ipcRenderer", "}", "from", "'electron'", ";", "import", "*", "as", "React", "from", "'react'", ";", "import", "*", "as", "ReactDOM", "from", "'react-dom'", ";", "import", "App", "from", "'./components/App'", ";", "import", "{", "fonts", "}", "from", "'../constants/fonts'", ";", "ipcRenderer", ".", "setMaxListeners", "(", "0", ")", ";", "const", "styleElement", "=", "document", ".", "createElement", "(", "'style'", ")", ";", "styleElement", ".", "textContent", "=", "`\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 300;\n src: url(${", "fonts", ".", "robotoLight", "}) format('woff2');\n}\n\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n src: url(${", "fonts", ".", "robotoRegular", "}) format('woff2');\n}\n\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 500;\n src: url(${", "fonts", ".", "robotoMedium", "}) format('woff2');\n}\n`", ";", "document", ".", "head", ".", "appendChild", "(", "styleElement", ")", ";", "ReactDOM", ".", "render", "(", "<", "App", "/>, document.getElementById('app'));" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 509, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
321
[ "import", "*", "as", "React", "from", "'react'", ";", "import", "{", "Root", ",", "StyledRipple", "}", "from", "'./style'", ";", "export", "interface", "IProps", "{", "className", "?", ":", "string", ";", "style", "?", ":", "{", "}", ";", "fadeOutTime", "?", ":", "number", ";", "rippleTime", "?", ":", "number", ";", "opacity", "?", ":", "number", ";", "color", "?", ":", "string", ";", "}", "export", "interface", "IRipple", "{", "x", ":", "number", ";", "y", ":", "number", ";", "id", ":", "number", ";", "isRemoving", ":", "boolean", ";", "}", "export", "interface", "IState", "{", "rippleX", ":", "number", ";", "rippleY", ":", "number", ";", "rippleSize", ":", "number", ";", "rippleOpacity", ":", "number", ";", "opacityTransition", ":", "boolean", ";", "sizeTransition", ":", "boolean", ";", "}", "const", "easing", "=", "'cubic-bezier(0.215, 0.61, 0.355, 1)'", ";", "const", "getSize", "=", "(", "x", ",", "y", ",", "width", ",", "height", ")", "=>", "{", "if", "(", "width", "===", "0", "||", "height", "===", "0", ")", "{", "return", "0", ";", "}", "const", "newX", "=", "x", "-", "width", "/", "2", ";", "const", "newY", "=", "y", "-", "height", "/", "2", ";", "let", "result", "=", "2", "*", "Math", ".", "abs", "(", "newY", ")", "+", "Math", ".", "abs", "(", "newX", ")", ";", "if", "(", "Math", ".", "abs", "(", "newX", ")", ">", "Math", ".", "abs", "(", "newY", ")", ")", "{", "result", "=", "2", "*", "Math", ".", "abs", "(", "newX", ")", "+", "Math", ".", "abs", "(", "newY", ")", ";", "}", "return", "Math", ".", "max", "(", "width", ",", "height", ")", "+", "result", "+", "10", ";", "}", ";", "export", "default", "class", "Ripple", "extends", "React", ".", "PureComponent", "<", "IProps", ",", "IState", ">", "{", "public", "static", "defaultProps", ":", "IProps", "=", "{", "fadeOutTime", ":", "0.6", ",", "opacity", ":", "0.2", ",", "color", ":", "'#000'", ",", "rippleTime", ":", "0.6", ",", "}", ";", "public", "state", ":", "IState", "=", "{", "rippleX", ":", "0", ",", "rippleY", ":", "0", ",", "rippleSize", ":", "0", ",", "rippleOpacity", ":", "0", ",", "opacityTransition", ":", "false", ",", "sizeTransition", ":", "false", ",", "}", ";", "private", "root", "=", "React", ".", "createRef", "<", "HTMLDivElement", ">", "(", ")", ";", "public", "onMouseUp", "=", "(", ")", "=>", "{", "this", ".", "fadeOut", "(", ")", ";", "window", ".", "removeEventListener", "(", "'mouseup'", ",", "this", ".", "onMouseUp", ")", ";", "}", ";", "public", "fadeOut", "=", "(", ")", "=>", "{", "this", ".", "setState", "(", "{", "rippleOpacity", ":", "0", ",", "opacityTransition", ":", "true", ",", "}", ")", ";", "}", ";", "public", "onMouseDown", "=", "(", "e", ")", "=>", "{", "this", ".", "makeRipple", "(", "e", ".", "pageX", ",", "e", ".", "pageY", ")", ";", "}", ";", "public", "onMouseLeave", "=", "(", ")", "=>", "{", "this", ".", "onMouseUp", "(", ")", ";", "}", ";", "public", "makeRipple", "(", "mouseX", ",", "mouseY", ")", "{", "const", "{", "opacity", "}", "=", "this", ".", "props", ";", "const", "{", "left", ",", "top", ",", "width", ",", "height", ",", "}", "=", "this", ".", "root", ".", "current", ".", "getBoundingClientRect", "(", ")", ";", "window", ".", "addEventListener", "(", "'mouseup'", ",", "this", ".", "onMouseUp", ")", ";", "const", "x", "=", "mouseX", "-", "left", ";", "const", "y", "=", "mouseY", "-", "top", ";", "const", "size", "=", "getSize", "(", "x", ",", "y", ",", "width", ",", "height", ")", ";", "this", ".", "setState", "(", "{", "rippleSize", ":", "0", ",", "opacityTransition", ":", "false", ",", "sizeTransition", ":", "false", ",", "}", ")", ";", "requestAnimationFrame", "(", "(", ")", "=>", "{", "this", ".", "setState", "(", "{", "rippleX", ":", "Math", ".", "min", "(", "x", ",", "width", ")", ",", "rippleY", ":", "y", ",", "rippleSize", ":", "size", ",", "rippleOpacity", ":", "opacity", ",", "sizeTransition", ":", "true", ",", "}", ")", ";", "}", ")", ";", "}", "public", "render", "(", ")", "{", "const", "{", "color", ",", "fadeOutTime", ",", "rippleTime", ",", "style", "}", "=", "this", ".", "props", ";", "const", "{", "rippleX", ",", "rippleY", ",", "rippleSize", ",", "rippleOpacity", ",", "opacityTransition", ",", "sizeTransition", ",", "}", "=", "this", ".", "state", ";", "return", "(", "<", "Root", "onMouseLeave", "=", "{", "this", ".", "onMouseLeave", "}", "onMouseDown", "=", "{", "this", ".", "onMouseDown", "}", "ref", "=", "{", "this", ".", "root", "}", "style", "=", "{", "style", "}", ">", "<", "StyledRipple", "style", "=", "{", "{", "transform", ":", "`translate3d(calc(-50.1% + ${", "rippleX", "}px), calc(-50.1% + ${", "rippleY", "}px), 0)`", ",", "width", ":", "rippleSize", ",", "height", ":", "rippleSize", ",", "transition", ":", "`0.3s background-color\n ${", "sizeTransition", "?", "`, ${", "rippleTime", "}s width ${", "easing", "}, ${", "rippleTime", "}s height ${", "easing", "}`", ":", "''", "}\n ${", "opacityTransition", "?", "`, ${", "fadeOutTime", "}s opacity`", ":", "''", "}`", ",", "backgroundColor", ":", "color", ",", "opacity", ":", "rippleOpacity", ",", "}", "}", "/>", "<", "/Root>);", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, 3, null, null, 3, null, 3, null, 3, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 103, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 3, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 3, null, null, null, null, null, null, 3, null, null, null, null, null, null, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
322
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", "from", "'reshadow'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "Group", ",", "GroupTitle", ",", "InputField", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "ServerConfigInput", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "interface", "Props", "{", "serverConfig", ":", "ServerConfigInput", ";", "}", "export", "const", "ServerConfigurationAdminForm", "=", "observer", "<", "Props", ">", "(", "function", "ServerConfigurationAdminForm", "(", "{", "serverConfig", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "style", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ")", ";", "return", "styled", "(", "style", ")", "(", "<", "Group", "form", "gap", "medium", ">", "<", "GroupTitle", ">", "{", "translate", "(", "'administration_configuration_wizard_configuration_admin'", ")", "}", "<", "/GroupTitle>", "<", "InputField", "type", "=", "\"text\"", "name", "=", "\"adminName\"", "state", "=", "{", "serverConfig", "}", "minLength", "=", "{", "6", "}", "mod", "=", "'surface'", "required", "tiny", ">", "{", "translate", "(", "'administration_configuration_wizard_configuration_admin_name'", ")", "}", "<", "/InputField>", "<", "InputField", "type", "=", "\"password\"", "name", "=", "\"adminPassword\"", "state", "=", "{", "serverConfig", "}", "autoComplete", "=", "'new-password'", "mod", "=", "'surface'", "required", "tiny", ">", "{", "translate", "(", "'administration_configuration_wizard_configuration_admin_password'", ")", "}", "<", "/InputField>", "<", "/Group>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
323
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "React", ",", "{", "useContext", "}", "from", "'react'", ";", "import", "styled", "from", "'reshadow'", ";", "import", "{", "AuthProviderService", ",", "AuthProvidersResource", ",", "AUTH_PROVIDER_LOCAL_ID", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "FormContext", ",", "Group", ",", "GroupTitle", ",", "Loader", ",", "PlaceholderComponent", ",", "Switch", ",", "useExecutor", ",", "useMapResource", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "CachedMapAllKey", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "type", "{", "IConfigurationPlaceholderProps", "}", "from", "'@cloudbeaver/plugin-administration'", ";", "import", "{", "ServerConfigurationAdminForm", "}", "from", "'./ServerConfigurationAdminForm'", ";", "export", "const", "AuthenticationProviders", "=", "observer", "(", "function", "AuthenticationProviders", "(", "{", "state", ":", "{", "serverConfig", "}", ",", "configurationWizard", ",", "}", ")", "{", "const", "authProviderService", "=", "useService", "(", "AuthProviderService", ")", ";", "const", "providers", "=", "useMapResource", "(", "AuthenticationProviders", ",", "AuthProvidersResource", ",", "CachedMapAllKey", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "styles", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ")", ";", "const", "formContext", "=", "useContext", "(", "FormContext", ")", ";", "if", "(", "formContext", "===", "null", ")", "{", "throw", "new", "Error", "(", "'Form state should be provided'", ")", ";", "}", "const", "providerList", "=", "providers", ".", "resource", ".", "values", ".", "filter", "(", "provider", "=>", "{", "if", "(", "configurationWizard", "&&", "provider", "?.", "configurable", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}", ")", ";", "const", "localProvider", "=", "providers", ".", "resource", ".", "get", "(", "AUTH_PROVIDER_LOCAL_ID", ")", ";", "const", "primaryProvider", "=", "providers", ".", "resource", ".", "get", "(", "providers", ".", "resource", ".", "getPrimary", "(", ")", ")", ";", "const", "externalAuthentication", "=", "localProvider", "===", "undefined", "&&", "providerList", ".", "length", "===", "1", ";", "const", "authenticationDisabled", "=", "serverConfig", ".", "enabledAuthProviders", "?.", "length", "===", "0", ";", "useExecutor", "(", "{", "executor", ":", "formContext", ".", "changeExecutor", ",", "handlers", ":", "[", "function", "switchControls", "(", ")", "{", "if", "(", "serverConfig", ".", "enabledAuthProviders", "?.", "length", "===", "0", ")", "{", "if", "(", "localProvider", ")", "{", "serverConfig", ".", "anonymousAccessEnabled", "=", "true", ";", "}", "else", "if", "(", "primaryProvider", ")", "{", "serverConfig", ".", "enabledAuthProviders", ".", "push", "(", "primaryProvider", ".", "id", ")", ";", "}", "}", "if", "(", "serverConfig", ".", "enabledAuthProviders", "?.", "length", ")", "{", "serverConfig", ".", "enabledAuthProviders", "=", "serverConfig", ".", "enabledAuthProviders", ".", "filter", "(", "providerId", "=>", "{", "const", "provider", "=", "providers", ".", "resource", ".", "get", "(", "providerId", ")", "!", ";", "return", "!", "provider", ".", "requiredFeatures", ".", "some", "(", "feat", "=>", "!", "serverConfig", ".", "enabledFeatures", "?.", "includes", "(", "feat", ")", ")", ";", "}", ")", ";", "}", "}", "]", ",", "}", ")", ";", "if", "(", "externalAuthentication", ")", "{", "return", "null", ";", "}", "return", "styled", "(", "styles", ")", "(", "<", "React", ".", "Fragment", ">", "<", "Group", "key", "=", "'authentication'", "form", "gap", ">", "<", "GroupTitle", ">", "{", "translate", "(", "'administration_configuration_wizard_configuration_authentication_group'", ")", "}", "<", "/GroupTitle>", "{", "localProvider", "&&", "(", "<", ">", "<", "Switch", "name", "=", "\"anonymousAccessEnabled\"", "state", "=", "{", "serverConfig", "}", "description", "=", "{", "translate", "(", "'administration_configuration_wizard_configuration_anonymous_access_description'", ")", "}", "mod", "=", "{", "[", "'primary'", "]", "}", "disabled", "=", "{", "authenticationDisabled", "}", "small", "autoHide", ">", "{", "translate", "(", "'administration_configuration_wizard_configuration_anonymous_access'", ")", "}", "<", "/Switch>", "<", "/>)}", "<", "Loader", "state", "=", "{", "providers", "}", "inline", ">", "{", "(", ")", "=>", "styled", "(", "styles", ")", "(", "<", ">", "{", "providerList", ".", "map", "(", "provider", "=>", "{", "const", "links", "=", "authProviderService", ".", "getServiceDescriptionLinks", "(", "provider", ")", ";", "let", "disabled", "=", "provider", ".", "requiredFeatures", ".", "some", "(", "feat", "=>", "!", "serverConfig", ".", "enabledFeatures", "?.", "includes", "(", "feat", ")", ")", ";", "const", "tooltip", "=", "disabled", "?", "`Following services need to be enabled: \"${", "provider", ".", "requiredFeatures", ".", "join", "(", "', '", ")", "}\"`", ":", "''", ";", "if", "(", "!", "localProvider", "&&", "primaryProvider", "?.", "id", "===", "provider", ".", "id", "&&", "serverConfig", ".", "enabledAuthProviders", "?.", "length", "===", "1", "&&", "serverConfig", ".", "enabledAuthProviders", ".", "includes", "(", "provider", ".", "id", ")", ")", "{", "disabled", "=", "true", ";", "}", "if", "(", "configurationWizard", "&&", "(", "disabled", "||", "provider", ".", "id", "!==", "AUTH_PROVIDER_LOCAL_ID", ")", ")", "{", "return", "null", ";", "}", "return", "(", "<", "Switch", "key", "=", "{", "provider", ".", "id", "}", "id", "=", "{", "`authProvider_${", "provider", ".", "id", "}`", "}", "title", "=", "{", "tooltip", "}", "value", "=", "{", "provider", ".", "id", "}", "name", "=", "\"enabledAuthProviders\"", "state", "=", "{", "serverConfig", "}", "description", "=", "{", "(", "<", ">", "{", "provider", ".", "description", "}", "{", "links", ".", "map", "(", "link", "=>", "{", "const", "Description", "=", "link", ".", "description", "(", ")", ";", "return", "<", "Description", "key", "=", "{", "link", ".", "id", "}", "configurationWizard", "=", "{", "configurationWizard", "}", "/", ">", ";", "}", ")", "}", "<", "/>)} mod={['primary']} disabled={disabled} small autoHide>", "{", "provider", ".", "label", "}", "<", "/Switch>);", "}", ")", "}", "<", "/>)}", "<", "/Loader>", "<", "/Group>", "{", "configurationWizard", "&&", "localProvider", "&&", "(", "<", "ServerConfigurationAdminForm", "serverConfig", "=", "{", "serverConfig", "}", "/>)}", "<", "/React.Fragment>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 24280, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
324
[ "import", "{", "injectable", ",", "Bootstrap", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "ServerConfigurationAdministrationNavService", ",", "ServerConfigurationService", "}", "from", "'@cloudbeaver/plugin-administration'", ";", "import", "{", "AuthenticationService", "}", "from", "'@cloudbeaver/plugin-authentication'", ";", "import", "{", "AuthConfigurationsAdministrationNavService", "}", "from", "'./Administration/IdentityProviders/AuthConfigurationsAdministrationNavService'", ";", "import", "{", "AuthenticationProviders", "}", "from", "'./Administration/ServerConfiguration/AuthenticationProviders'", ";", "@", "injectable", "(", ")", "export", "class", "PluginBootstrap", "extends", "Bootstrap", "{", "constructor", "(", "private", "readonly", "serverConfigurationService", ",", "private", "readonly", "serverConfigurationAdministrationNavService", ",", "private", "readonly", "authConfigurationsAdministrationNavService", ",", "private", "readonly", "authenticationService", ")", "{", "super", "(", ")", ";", "}", "register", "(", ")", "{", "this", ".", "serverConfigurationService", ".", "configurationContainer", ".", "add", "(", "AuthenticationProviders", ",", "0", ")", ";", "this", ".", "authenticationService", ".", "setConfigureAuthProvider", "(", "(", ")", "=>", "this", ".", "serverConfigurationAdministrationNavService", ".", "navToSettings", "(", ")", ")", ";", "this", ".", "authenticationService", ".", "setConfigureIdentityProvider", "(", "(", ")", "=>", "this", ".", "authConfigurationsAdministrationNavService", ".", "navToCreate", "(", ")", ")", ";", "}", "load", "(", ")", "{", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, 0, null, null, null, 1835, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
325
[ "import", "{", "TabsContainer", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "PlaceholderContainer", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "ENotificationType", ",", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "ExecutorHandlersCollection", ",", "ExecutorInterrupter", ",", "IExecutorHandler", ",", "IExecutorHandlersCollection", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "{", "AuthConfigurationFormBaseActions", "}", "from", "'./AuthConfigurationFormBaseActions'", ";", "import", "type", "{", "IAuthConfigurationFormFillConfigData", ",", "IAuthConfigurationFormProps", ",", "IAuthConfigurationFormSubmitData", ",", "IAuthConfigurationFormState", "}", "from", "'./IAuthConfigurationFormProps'", ";", "export", "interface", "IConfigurationFormValidation", "{", "valid", ":", "boolean", ";", "messages", ":", "string", "[", "]", ";", "info", ":", "(", "message", ":", "string", ")", "=>", "void", ";", "error", ":", "(", "message", ":", "string", ")", "=>", "void", ";", "}", "export", "interface", "IConfigurationFormStatus", "{", "saved", ":", "boolean", ";", "messages", ":", "string", "[", "]", ";", "exception", ":", "Error", "|", "null", ";", "info", ":", "(", "message", ":", "string", ")", "=>", "void", ";", "error", ":", "(", "message", ":", "string", ",", "exception", "?", ":", "Error", ")", "=>", "void", ";", "}", "@", "injectable", "(", ")", "export", "class", "AuthConfigurationFormService", "{", "readonly", "tabsContainer", ":", "TabsContainer", "<", "IAuthConfigurationFormProps", ">", ";", "readonly", "actionsContainer", ":", "PlaceholderContainer", "<", "IAuthConfigurationFormProps", ">", ";", "readonly", "configureTask", ":", "IExecutorHandlersCollection", "<", "IAuthConfigurationFormState", ">", ";", "readonly", "fillConfigTask", ":", "IExecutorHandlersCollection", "<", "IAuthConfigurationFormFillConfigData", ">", ";", "readonly", "prepareConfigTask", ":", "IExecutorHandlersCollection", "<", "IAuthConfigurationFormSubmitData", ">", ";", "readonly", "formValidationTask", ":", "IExecutorHandlersCollection", "<", "IAuthConfigurationFormSubmitData", ">", ";", "readonly", "formSubmittingTask", ":", "IExecutorHandlersCollection", "<", "IAuthConfigurationFormSubmitData", ">", ";", "readonly", "formStateTask", ":", "IExecutorHandlersCollection", "<", "IAuthConfigurationFormState", ">", ";", "constructor", "(", "private", "readonly", "notificationService", ")", "{", "this", ".", "tabsContainer", "=", "new", "TabsContainer", "(", ")", ";", "this", ".", "actionsContainer", "=", "new", "PlaceholderContainer", "(", ")", ";", "this", ".", "configureTask", "=", "new", "ExecutorHandlersCollection", "(", ")", ";", "this", ".", "fillConfigTask", "=", "new", "ExecutorHandlersCollection", "(", ")", ";", "this", ".", "prepareConfigTask", "=", "new", "ExecutorHandlersCollection", "(", ")", ";", "this", ".", "formSubmittingTask", "=", "new", "ExecutorHandlersCollection", "(", ")", ";", "this", ".", "formValidationTask", "=", "new", "ExecutorHandlersCollection", "(", ")", ";", "this", ".", "formStateTask", "=", "new", "ExecutorHandlersCollection", "(", ")", ";", "this", ".", "formSubmittingTask", ".", "before", "(", "this", ".", "formValidationTask", ")", ".", "before", "(", "this", ".", "prepareConfigTask", ")", ";", "this", ".", "formStateTask", ".", "before", "<", "IAuthConfigurationFormSubmitData", ">", "(", "this", ".", "prepareConfigTask", ",", "state", "=>", "(", "{", "state", ",", "submitType", ":", "'submit'", "}", ")", ")", ";", "this", ".", "formSubmittingTask", ".", "addPostHandler", "(", "this", ".", "showSubmittingStatusMessage", ")", ";", "this", ".", "formValidationTask", ".", "addPostHandler", "(", "this", ".", "ensureValidation", ")", ";", "this", ".", "actionsContainer", ".", "add", "(", "AuthConfigurationFormBaseActions", ")", ";", "}", "configurationValidationContext", "=", "(", ")", ":", "IConfigurationFormValidation", "=>", "(", "{", "valid", ":", "true", ",", "messages", ":", "[", "]", ",", "info", "(", "message", ")", "{", "this", ".", "messages", ".", "push", "(", "message", ")", ";", "}", ",", "error", "(", "message", ")", "{", "this", ".", "messages", ".", "push", "(", "message", ")", ";", "this", ".", "valid", "=", "false", ";", "}", ",", "}", ")", ";", "configurationStatusContext", "=", "(", ")", ":", "IConfigurationFormStatus", "=>", "(", "{", "saved", ":", "true", ",", "messages", ":", "[", "]", ",", "exception", ":", "null", ",", "info", "(", "message", ")", "{", "this", ".", "messages", ".", "push", "(", "message", ")", ";", "}", ",", "error", "(", "message", ",", "exception", "=", "null", ")", "{", "this", ".", "messages", ".", "push", "(", "message", ")", ";", "this", ".", "saved", "=", "false", ";", "this", ".", "exception", "=", "exception", ";", "}", ",", "}", ")", ";", "private", "showSubmittingStatusMessage", ":", "IExecutorHandler", "<", "IAuthConfigurationFormSubmitData", ">", "=", "(", "data", ",", "contexts", ")", "=>", "{", "const", "status", "=", "contexts", ".", "getContext", "(", "this", ".", "configurationStatusContext", ")", ";", "if", "(", "!", "status", ".", "saved", ")", "{", "ExecutorInterrupter", ".", "interrupt", "(", "contexts", ")", ";", "}", "if", "(", "status", ".", "messages", ".", "length", ">", "0", ")", "{", "if", "(", "status", ".", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "status", ".", "exception", ",", "status", ".", "messages", "[", "0", "]", ",", "status", ".", "messages", ".", "slice", "(", "1", ")", ".", "join", "(", "'\\n'", ")", ")", ";", "}", "else", "{", "this", ".", "notificationService", ".", "notify", "(", "{", "title", ":", "status", ".", "messages", "[", "0", "]", ",", "message", ":", "status", ".", "messages", ".", "slice", "(", "1", ")", ".", "join", "(", "'\\n'", ")", ",", "}", ",", "status", ".", "saved", "?", "ENotificationType", ".", "Success", ":", "ENotificationType", ".", "Error", ")", ";", "}", "}", "}", ";", "private", "ensureValidation", ":", "IExecutorHandler", "<", "IAuthConfigurationFormSubmitData", ">", "=", "(", "data", ",", "contexts", ")", "=>", "{", "const", "validation", "=", "contexts", ".", "getContext", "(", "this", ".", "configurationValidationContext", ")", ";", "if", "(", "!", "validation", ".", "valid", ")", "{", "ExecutorInterrupter", ".", "interrupt", "(", "contexts", ")", ";", "}", "if", "(", "validation", ".", "messages", ".", "length", ">", "0", ")", "{", "this", ".", "notificationService", ".", "notify", "(", "{", "title", ":", "data", ".", "state", ".", "mode", "===", "'edit'", "?", "'administration_identity_providers_provider_save_error'", ":", "'administration_identity_providers_provider_create_error'", ",", "message", ":", "validation", ".", "messages", ".", "join", "(", "'\\n'", ")", ",", "}", ",", "validation", ".", "valid", "?", "ENotificationType", ".", "Info", ":", "ENotificationType", ".", "Error", ")", ";", "}", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 950, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 2, null, 25, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
326
[ "import", "type", "{", "AdminAuthProviderConfiguration", "}", "from", "'@cloudbeaver/core-sdk'", ";", "export", "function", "authConfigurationContext", "(", ")", "{", "return", "{", "id", ":", "''", ",", "providerId", ":", "''", ",", "displayName", ":", "''", ",", "disabled", ":", "false", ",", "parameters", ":", "{", "}", ",", "description", ":", "''", ",", "iconURL", ":", "''", ",", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
327
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useEffect", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "TabsState", ",", "TabList", ",", "UNDERLINE_TAB_STYLES", ",", "TabPanelList", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "Placeholder", ",", "useObjectRef", ",", "useExecutor", ",", "BASE_CONTAINERS_STYLES", ",", "IconOrImage", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "AdminAuthProviderConfiguration", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "AuthConfigurationFormService", "}", "from", "'./AuthConfigurationFormService'", ";", "import", "{", "authConfigurationContext", "}", "from", "'./Contexts/authConfigurationContext'", ";", "import", "type", "{", "IAuthConfigurationFormState", "}", "from", "'./IAuthConfigurationFormProps'", ";", "const", "tabsStyles", "=", "css", "`\n TabList {\n position: relative;\n flex-shrink: 0;\n align-items: center;\n }\n Tab {\n height: 46px!important;\n text-transform: uppercase;\n font-weight: 500 !important;\n }\n`", ";", "const", "topBarStyles", "=", "composes", "(", "css", "`\n configuration-top-bar {\n composes: theme-border-color-background theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n configuration-top-bar {\n position: relative;\n display: flex;\n padding-top: 16px;\n\n &:before {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n border-bottom: solid 2px;\n border-color: inherit;\n }\n }\n configuration-top-bar-tabs {\n flex: 1;\n }\n\n configuration-top-bar-actions {\n display: flex;\n align-items: center;\n padding: 0 24px;\n gap: 16px;\n }\n\n configuration-status-message {\n composes: theme-typography--caption from global;\n height: 24px;\n padding: 0 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n\n & IconOrImage {\n height: 24px;\n width: 24px;\n }\n }\n `", ")", ";", "const", "formStyles", "=", "composes", "(", "css", "`\n box {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n\n content-box {\n composes: theme-background-secondary theme-border-color-background from global;\n }\n `", ",", "css", "`\n box {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n overflow: auto;\n }\n content-box {\n position: relative;\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: auto;\n }\n `", ")", ";", "interface", "Props", "{", "state", ":", "IAuthConfigurationFormState", ";", "onCancel", "?", ":", "(", ")", "=>", "void", ";", "onSave", "?", ":", "(", "configuration", ":", "AdminAuthProviderConfiguration", ")", "=>", "void", ";", "className", "?", ":", "string", ";", "}", "export", "const", "AuthConfigurationForm", "=", "observer", "<", "Props", ">", "(", "function", "AuthConfigurationForm", "(", "{", "state", ",", "onCancel", ",", "onSave", "=", "(", ")", "=>", "{", "}", ",", "className", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "props", "=", "useObjectRef", "(", "{", "onSave", "}", ")", ";", "const", "style", "=", "[", "tabsStyles", ",", "UNDERLINE_TAB_STYLES", "]", ";", "const", "styles", "=", "useStyles", "(", "style", ",", "BASE_CONTAINERS_STYLES", ",", "topBarStyles", ",", "formStyles", ")", ";", "const", "service", "=", "useService", "(", "AuthConfigurationFormService", ")", ";", "useExecutor", "(", "{", "executor", ":", "state", ".", "submittingTask", ",", "postHandlers", ":", "[", "function", "save", "(", "data", ",", "contexts", ")", "{", "const", "validation", "=", "contexts", ".", "getContext", "(", "service", ".", "configurationValidationContext", ")", ";", "const", "state", "=", "contexts", ".", "getContext", "(", "service", ".", "configurationStatusContext", ")", ";", "const", "config", "=", "contexts", ".", "getContext", "(", "authConfigurationContext", ")", ";", "if", "(", "validation", ".", "valid", "&&", "state", ".", "saved", ")", "{", "props", ".", "onSave", "(", "config", ")", ";", "}", "}", "]", ",", "}", ")", ";", "useEffect", "(", "(", ")", "=>", "{", "state", ".", "loadConfigurationInfo", "(", ")", ";", "}", ",", "[", "]", ")", ";", "return", "styled", "(", "styles", ")", "(", "<", "TabsState", "container", "=", "{", "service", ".", "tabsContainer", "}", "state", "=", "{", "state", "}", "onCancel", "=", "{", "onCancel", "}", ">", "<", "box", "className", "=", "{", "className", "}", ">", "<", "configuration", "-", "top", "-", "bar", ">", "<", "configuration", "-", "top", "-", "bar", "-", "tabs", ">", "<", "configuration", "-", "status", "-", "message", ">", "{", "state", ".", "statusMessage", "&&", "(", "<", ">", "<", "IconOrImage", "icon", "=", "'/icons/info_icon.svg'", "/>", "{", "translate", "(", "state", ".", "statusMessage", ")", "}", "<", "/>)}", "<", "/configuration-status-message>", "<", "TabList", "style", "=", "{", "style", "}", "disabled", "=", "{", "false", "}", "/", ">", "<", "/configuration-top-bar-tabs>", "<", "configuration", "-", "top", "-", "bar", "-", "actions", ">", "<", "Placeholder", "container", "=", "{", "service", ".", "actionsContainer", "}", "state", "=", "{", "state", "}", "onCancel", "=", "{", "onCancel", "}", "/", ">", "<", "/configuration-top-bar-actions>", "<", "/configuration-top-bar>", "<", "content", "-", "box", ">", "<", "TabPanelList", "style", "=", "{", "style", "}", "/", ">", "<", "/content-box>", "<", "/box>", "<", "/TabsState>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
328
[ "import", "type", "{", "IExecutionContextProvider", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "type", "{", "AdminAuthProviderConfiguration", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "type", "{", "IAuthConfigurationFormState", "}", "from", "'../IAuthConfigurationFormProps'", ";", "export", "interface", "IAuthConfigurationFormConfigureContext", "{", "readonly", "providerId", ":", "string", "|", "undefined", ";", "readonly", "info", ":", "AdminAuthProviderConfiguration", "|", "undefined", ";", "}", "export", "function", "authConfigurationFormConfigureContext", "(", "contexts", ",", "state", ")", "{", "return", "{", "info", ":", "state", ".", "info", ",", "providerId", ":", "state", ".", "config", ".", "providerId", ",", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, 5681, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
329
[ "import", "{", "computed", ",", "makeObservable", ",", "observable", "}", "from", "'mobx'", ";", "import", "{", "Executor", ",", "IExecutionContextProvider", ",", "IExecutor", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "type", "{", "AdminAuthProviderConfiguration", ",", "CachedMapResource", ",", "GetAuthProviderConfigurationsQueryVariables", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "type", "{", "AuthConfigurationFormService", "}", "from", "'./AuthConfigurationFormService'", ";", "import", "{", "authConfigurationFormConfigureContext", "}", "from", "'./Contexts/authConfigurationFormConfigureContext'", ";", "import", "{", "authConfigurationFormStateContext", ",", "IAuthConfigurationFormStateInfo", "}", "from", "'./Contexts/authConfigurationFormStateContext'", ";", "import", "type", "{", "AuthConfigurationFormMode", ",", "IAuthConfigurationFormState", ",", "IAuthConfigurationFormSubmitData", "}", "from", "'./IAuthConfigurationFormProps'", ";", "export", "class", "AuthConfigurationFormState", "implements", "IAuthConfigurationFormState", "{", "mode", ":", "AuthConfigurationFormMode", ";", "config", ":", "AdminAuthProviderConfiguration", ";", "statusMessage", ":", "string", "|", "null", ";", "configured", ":", "boolean", ";", "get", "info", "(", ")", ":", "AdminAuthProviderConfiguration", "|", "undefined", "{", "if", "(", "!", "this", ".", "config", ".", "id", ")", "{", "return", "undefined", ";", "}", "return", "this", ".", "resource", ".", "get", "(", "this", ".", "config", ".", "id", ")", ";", "}", "get", "loading", "(", ")", ":", "boolean", "{", "return", "this", ".", "loadConfigurationTask", ".", "executing", "||", "this", ".", "submittingTask", ".", "executing", ";", "}", "get", "disabled", "(", ")", ":", "boolean", "{", "return", "this", ".", "loading", "||", "!", "!", "this", ".", "stateInfo", "?.", "disabled", "||", "this", ".", "loadConfigurationTask", ".", "executing", ";", "}", "get", "readonly", "(", ")", ":", "boolean", "{", "return", "false", ";", "}", "readonly", "resource", ":", "CachedMapResource", "<", "string", ",", "AdminAuthProviderConfiguration", ",", "GetAuthProviderConfigurationsQueryVariables", ">", ";", "readonly", "service", ":", "AuthConfigurationFormService", ";", "readonly", "submittingTask", ":", "IExecutor", "<", "IAuthConfigurationFormSubmitData", ">", ";", "private", "stateInfo", ":", "IAuthConfigurationFormStateInfo", "|", "null", ";", "private", "loadConfigurationTask", ":", "IExecutor", "<", "IAuthConfigurationFormState", ">", ";", "private", "formStateTask", ":", "IExecutor", "<", "IAuthConfigurationFormState", ">", ";", "constructor", "(", "service", ",", "resource", ")", "{", "this", ".", "resource", "=", "resource", ";", "this", ".", "config", "=", "{", "displayName", ":", "''", ",", "id", ":", "''", ",", "disabled", ":", "false", ",", "parameters", ":", "{", "}", ",", "providerId", ":", "''", ",", "description", ":", "''", ",", "iconURL", ":", "''", ",", "}", ";", "this", ".", "stateInfo", "=", "null", ";", "this", ".", "service", "=", "service", ";", "this", ".", "formStateTask", "=", "new", "Executor", "<", "IAuthConfigurationFormState", ">", "(", "this", ",", "(", ")", "=>", "true", ")", ";", "this", ".", "loadConfigurationTask", "=", "new", "Executor", "<", "IAuthConfigurationFormState", ">", "(", "this", ",", "(", ")", "=>", "true", ")", ";", "this", ".", "submittingTask", "=", "new", "Executor", "(", ")", ";", "this", ".", "statusMessage", "=", "null", ";", "this", ".", "configured", "=", "false", ";", "this", ".", "mode", "=", "'create'", ";", "makeObservable", "<", "IAuthConfigurationFormState", ">", "(", "this", ",", "{", "mode", ":", "observable", ",", "config", ":", "observable", ",", "statusMessage", ":", "observable", ",", "info", ":", "computed", ",", "readonly", ":", "computed", ",", "}", ")", ";", "this", ".", "save", "=", "this", ".", "save", ".", "bind", "(", "this", ")", ";", "this", ".", "loadInfo", "=", "this", ".", "loadInfo", ".", "bind", "(", "this", ")", ";", "this", ".", "updateFormState", "=", "this", ".", "updateFormState", ".", "bind", "(", "this", ")", ";", "this", ".", "formStateTask", ".", "addCollection", "(", "service", ".", "formStateTask", ")", ".", "addPostHandler", "(", "this", ".", "updateFormState", ")", ";", "this", ".", "loadConfigurationTask", ".", "before", "(", "service", ".", "configureTask", ")", ".", "addPostHandler", "(", "this", ".", "loadInfo", ")", ".", "next", "(", "service", ".", "fillConfigTask", ",", "(", "state", ",", "contexts", ")", "=>", "{", "const", "configuration", "=", "contexts", ".", "getContext", "(", "authConfigurationFormConfigureContext", ")", ";", "return", "{", "state", ",", "updated", ":", "state", ".", "info", "!==", "configuration", ".", "info", "||", "state", ".", "config", ".", "providerId", "!==", "configuration", ".", "providerId", "||", "!", "this", ".", "configured", ",", "}", ";", "}", ")", ".", "next", "(", "this", ".", "formStateTask", ")", ";", "}", "async", "load", "(", ")", "{", "}", "async", "loadConfigurationInfo", "(", ")", "{", "await", "this", ".", "loadConfigurationTask", ".", "execute", "(", "this", ")", ";", "return", "this", ".", "info", ";", "}", "setOptions", "(", "mode", ")", "{", "this", ".", "mode", "=", "mode", ";", "return", "this", ";", "}", "setConfig", "(", "config", ")", "{", "this", ".", "config", "=", "config", ";", "return", "this", ";", "}", "async", "save", "(", ")", "{", "await", "this", ".", "submittingTask", ".", "executeScope", "(", "{", "state", ":", "this", ",", "}", ",", "this", ".", "service", ".", "formSubmittingTask", ")", ";", "}", "private", "updateFormState", "(", "data", ",", "contexts", ")", "{", "const", "context", "=", "contexts", ".", "getContext", "(", "authConfigurationFormStateContext", ")", ";", "this", ".", "statusMessage", "=", "context", ".", "statusMessage", ";", "this", ".", "stateInfo", "=", "context", ";", "this", ".", "configured", "=", "true", ";", "}", "private", "async", "loadInfo", "(", "data", ",", "contexts", ")", "{", "if", "(", "!", "data", ".", "config", ".", "id", ")", "{", "return", ";", "}", "if", "(", "!", "this", ".", "resource", ".", "has", "(", "data", ".", "config", ".", "id", ")", ")", "{", "return", ";", "}", "await", "this", ".", "resource", ".", "load", "(", "data", ".", "config", ".", "id", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 0, null, 5681, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 0, null, 5681, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
330
[ "import", "{", "useState", "}", "from", "'react'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "type", "{", "AdminAuthProviderConfiguration", ",", "CachedMapResource", ",", "GetAuthProviderConfigurationsQueryVariables", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "AuthConfigurationFormService", "}", "from", "'./AuthConfigurationFormService'", ";", "import", "{", "AuthConfigurationFormState", "}", "from", "'./AuthConfigurationFormState'", ";", "import", "type", "{", "IAuthConfigurationFormState", "}", "from", "'./IAuthConfigurationFormProps'", ";", "export", "function", "useAuthConfigurationFormState", "(", "resource", ",", "configure", "?", ")", "{", "const", "service", "=", "useService", "(", "AuthConfigurationFormService", ")", ";", "const", "[", "state", "]", "=", "useState", "<", "IAuthConfigurationFormState", ">", "(", "(", ")", "=>", "{", "const", "state", "=", "new", "AuthConfigurationFormState", "(", "service", ",", "resource", ")", ";", "configure", "?.", "(", "state", ")", ";", "state", ".", "load", "(", ")", ";", "return", "state", ";", "}", ")", ";", "return", "state", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
331
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useRef", ",", "useEffect", ",", "useContext", ",", "useCallback", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "AuthConfigurationsResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TableContext", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "AuthConfigurationForm", "}", "from", "'../AuthConfigurationForm'", ";", "import", "{", "useAuthConfigurationFormState", "}", "from", "'../useAuthConfigurationFormState'", ";", "const", "styles", "=", "composes", "(", "css", "`\n box {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n box {\n box-sizing: border-box;\n padding-bottom: 24px;\n display: flex;\n flex-direction: column;\n height: 664px;\n }\n `", ")", ";", "interface", "Props", "{", "item", ":", "string", ";", "}", "export", "const", "AuthConfigurationEdit", "=", "observer", "<", "Props", ">", "(", "function", "AuthConfigurationEdit", "(", "{", "item", ",", "}", ")", "{", "const", "resource", "=", "useService", "(", "AuthConfigurationsResource", ")", ";", "const", "boxRef", "=", "useRef", "<", "HTMLDivElement", ">", "(", "null", ")", ";", "const", "tableContext", "=", "useContext", "(", "TableContext", ")", ";", "const", "collapse", "=", "useCallback", "(", "(", ")", "=>", "{", "tableContext", "?.", "setItemExpand", "(", "item", ",", "false", ")", ";", "}", ",", "[", "tableContext", ",", "item", "]", ")", ";", "useEffect", "(", "(", ")", "=>", "{", "boxRef", ".", "current", "?.", "scrollIntoView", "(", "{", "behavior", ":", "'smooth'", ",", "block", ":", "'nearest'", ",", "}", ")", ";", "}", ",", "[", "]", ")", ";", "const", "data", "=", "useAuthConfigurationFormState", "(", "resource", ",", "state", "=>", "state", ".", "setOptions", "(", "'edit'", ")", ")", ";", "data", ".", "config", ".", "id", "=", "item", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "box", "ref", "=", "{", "boxRef", "}", "as", "=", "'div'", ">", "<", "AuthConfigurationForm", "state", "=", "{", "data", "}", "onCancel", "=", "{", "collapse", "}", "/", ">", "<", "/box>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
332
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "{", "AuthProvidersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TableItem", ",", "TableColumnValue", ",", "TableItemSelect", ",", "TableItemExpand", ",", "Placeholder", ",", "StaticImage", ",", "useMapResource", ",", "FieldCheckbox", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "type", "{", "AdminAuthProviderConfiguration", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "AuthConfigurationsAdministrationService", "}", "from", "'../AuthConfigurationsAdministrationService'", ";", "import", "{", "AuthConfigurationEdit", "}", "from", "'./AuthConfigurationEdit'", ";", "const", "styles", "=", "css", "`\n StaticImage {\n display: flex;\n width: 24px;\n\n &:not(:last-child) {\n margin-right: 16px;\n }\n }\n TableColumnValue[expand] {\n cursor: pointer;\n }\n TableColumnValue[|gap] {\n gap: 16px;\n }\n`", ";", "interface", "Props", "{", "configuration", ":", "AdminAuthProviderConfiguration", ";", "}", "export", "const", "AuthConfiguration", "=", "observer", "<", "Props", ">", "(", "function", "AuthConfiguration", "(", "{", "configuration", "}", ")", "{", "const", "service", "=", "useService", "(", "AuthConfigurationsAdministrationService", ")", ";", "const", "resource", "=", "useMapResource", "(", "AuthConfiguration", ",", "AuthProvidersResource", ",", "configuration", ".", "providerId", ")", ";", "const", "icon", "=", "configuration", ".", "iconURL", "||", "resource", ".", "data", "?.", "icon", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "TableItem", "item", "=", "{", "configuration", ".", "id", "}", "expandElement", "=", "{", "AuthConfigurationEdit", "}", ">", "<", "TableColumnValue", "centerContent", "flex", ">", "<", "TableItemSelect", "/>", "<", "/TableColumnValue>", "<", "TableColumnValue", "centerContent", "flex", "expand", ">", "<", "TableItemExpand", "/>", "<", "/TableColumnValue>", "<", "TableColumnValue", "centerContent", "flex", "expand", ">", "<", "StaticImage", "icon", "=", "{", "icon", "}", "title", "=", "{", "`${", "configuration", ".", "displayName", "} icon`", "}", "/", ">", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "configuration", ".", "displayName", "}", "expand", "ellipsis", ">", "{", "configuration", ".", "displayName", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", ">", "{", "configuration", ".", "providerId", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "configuration", ".", "description", "}", "ellipsis", ">", "{", "configuration", ".", "description", "||", "''", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", ">", "<", "FieldCheckbox", "checked", "=", "{", "configuration", ".", "disabled", "}", "disabled", "/", ">", "<", "/TableColumnValue>", "<", "TableColumnValue", "flex", "{", "...", "use", "(", "{", "gap", ":", "true", "}", ")", "}", ">", "<", "Placeholder", "container", "=", "{", "service", ".", "configurationDetailsPlaceholder", "}", "configuration", "=", "{", "configuration", "}", "/", ">", "<", "/TableColumnValue>", "<", "/TableItem>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
333
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "{", "Table", ",", "TableHeader", ",", "TableColumnHeader", ",", "TableBody", ",", "TableSelect", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "AdminAuthProviderConfiguration", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "AuthConfiguration", "}", "from", "'./AuthConfiguration'", ";", "const", "styles", "=", "css", "`\n Table {\n width: 100%;\n }\n`", ";", "interface", "Props", "{", "configurations", ":", "AdminAuthProviderConfiguration", "[", "]", ";", "selectedItems", ":", "Map", "<", "string", ",", "boolean", ">", ";", "expandedItems", ":", "Map", "<", "string", ",", "boolean", ">", ";", "}", "export", "const", "AuthConfigurationsTable", "=", "observer", "<", "Props", ">", "(", "function", "AuthConfigurationsTable", "(", "{", "configurations", ",", "selectedItems", ",", "expandedItems", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "keys", "=", "configurations", ".", "map", "(", "configuration", "=>", "configuration", ".", "id", ")", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "Table", "keys", "=", "{", "keys", "}", "selectedItems", "=", "{", "selectedItems", "}", "expandedItems", "=", "{", "expandedItems", "}", "{", "...", "use", "(", "{", "size", ":", "'big'", "}", ")", "}", ">", "<", "TableHeader", ">", "<", "TableColumnHeader", "min", "flex", "centerContent", ">", "<", "TableSelect", "/>", "<", "/TableColumnHeader>", "<", "TableColumnHeader", "min", "/", ">", "<", "TableColumnHeader", "min", "/", ">", "<", "TableColumnHeader", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_name'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'administration_identity_providers_provider'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_description'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_disabled'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", "/", ">", "<", "/TableHeader>", "<", "TableBody", ">", "{", "configurations", ".", "map", "(", "configuration", "=>", "(", "<", "AuthConfiguration", "key", "=", "{", "configuration", ".", "id", "}", "configuration", "=", "{", "configuration", "}", "/", ">", ")", ")", "}", "<", "/TableBody>", "<", "/Table>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
334
[ "import", "{", "computed", ",", "observable", "}", "from", "'mobx'", ";", "import", "{", "AuthConfigurationsResource", ",", "compareAuthConfigurations", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TableState", ",", "useObservableRef", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "CommonDialogService", ",", "ConfirmationDialogDelete", ",", "DialogueStateResult", "}", "from", "'@cloudbeaver/core-dialogs'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "AdminAuthProviderConfiguration", ",", "resourceKeyList", "}", "from", "'@cloudbeaver/core-sdk'", ";", "interface", "State", "{", "tableState", ":", "TableState", ";", "processing", ":", "boolean", ";", "configurations", ":", "AdminAuthProviderConfiguration", "[", "]", ";", "update", ":", "(", ")", "=>", "Promise", "<", "void", ">", ";", "delete", ":", "(", ")", "=>", "Promise", "<", "void", ">", ";", "}", "export", "function", "useConfigurationsTable", "(", ")", "{", "const", "notificationService", "=", "useService", "(", "NotificationService", ")", ";", "const", "dialogService", "=", "useService", "(", "CommonDialogService", ")", ";", "const", "resource", "=", "useService", "(", "AuthConfigurationsResource", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "return", "useObservableRef", "<", "State", ">", "(", "(", ")", "=>", "(", "{", "tableState", ":", "new", "TableState", "(", ")", ",", "processing", ":", "false", ",", "get", "configurations", "(", ")", "{", "return", "resource", ".", "values", ".", "slice", "(", ")", ".", "sort", "(", "compareAuthConfigurations", ")", ";", "}", ",", "async", "update", "(", ")", "{", "if", "(", "this", ".", "processing", ")", "{", "return", ";", "}", "try", "{", "this", ".", "processing", "=", "true", ";", "await", "resource", ".", "refreshAll", "(", ")", ";", "notificationService", ".", "logSuccess", "(", "{", "title", ":", "'administration_identity_providers_configuration_list_update_success'", "}", ")", ";", "}", "catch", "(", "exception", ")", "{", "notificationService", ".", "logException", "(", "exception", ",", "'administration_identity_providers_configuration_list_update_fail'", ")", ";", "}", "finally", "{", "this", ".", "processing", "=", "false", ";", "}", "}", ",", "async", "delete", "(", ")", "{", "if", "(", "this", ".", "processing", ")", "{", "return", ";", "}", "const", "deletionList", "=", "this", ".", "tableState", ".", "selectedList", ";", "if", "(", "deletionList", ".", "length", "===", "0", ")", "{", "return", ";", "}", "const", "configurationNames", "=", "deletionList", ".", "map", "(", "id", "=>", "resource", ".", "get", "(", "id", ")", "?.", "displayName", ")", ".", "filter", "(", "Boolean", ")", ";", "const", "nameList", "=", "configurationNames", ".", "map", "(", "name", "=>", "`\"${", "name", "}\"`", ")", ".", "join", "(", "', '", ")", ";", "const", "message", "=", "`${", "translate", "(", "'administration_identity_providers_delete_confirmation'", ")", "}${", "nameList", "}. ${", "translate", "(", "'ui_are_you_sure'", ")", "}`", ";", "const", "result", "=", "await", "dialogService", ".", "open", "(", "ConfirmationDialogDelete", ",", "{", "title", ":", "'ui_data_delete_confirmation'", ",", "message", ",", "confirmActionText", ":", "'ui_delete'", ",", "}", ")", ";", "if", "(", "result", "===", "DialogueStateResult", ".", "Rejected", ")", "{", "return", ";", "}", "try", "{", "this", ".", "processing", "=", "true", ";", "await", "resource", ".", "deleteConfiguration", "(", "resourceKeyList", "(", "deletionList", ")", ")", ";", "this", ".", "tableState", ".", "unselect", "(", ")", ";", "this", ".", "tableState", ".", "unexpand", "(", "deletionList", ")", ";", "}", "catch", "(", "exception", ")", "{", "notificationService", ".", "logException", "(", "exception", ",", "'Configurations delete failed'", ")", ";", "}", "finally", "{", "this", ".", "processing", "=", "false", ";", "}", "}", ",", "}", ")", ",", "{", "processing", ":", "observable", ".", "ref", ",", "configurations", ":", "computed", ",", "}", ",", "false", ",", "[", "'update'", ",", "'delete'", "]", ")", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 51, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
335
[ "import", "{", "observable", ",", "makeObservable", "}", "from", "'mobx'", ";", "import", "{", "AuthConfigurationsResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "AuthConfigurationFormService", "}", "from", "'./AuthConfigurationFormService'", ";", "import", "{", "AuthConfigurationFormState", "}", "from", "'./AuthConfigurationFormState'", ";", "import", "{", "AuthConfigurationsAdministrationNavService", "}", "from", "'./AuthConfigurationsAdministrationNavService'", ";", "import", "type", "{", "IAuthConfigurationFormState", "}", "from", "'./IAuthConfigurationFormProps'", ";", "@", "injectable", "(", ")", "export", "class", "CreateAuthConfigurationService", "{", "disabled", "=", "false", ";", "data", ":", "IAuthConfigurationFormState", "|", "null", ";", "constructor", "(", "private", "readonly", "authConfigurationsAdministrationNavService", ",", "private", "readonly", "authConfigurationFormService", ",", "private", "readonly", "authConfigurationsResource", ")", "{", "this", ".", "data", "=", "null", ";", "this", ".", "cancelCreate", "=", "this", ".", "cancelCreate", ".", "bind", "(", "this", ")", ";", "this", ".", "create", "=", "this", ".", "create", ".", "bind", "(", "this", ")", ";", "makeObservable", "(", "this", ",", "{", "data", ":", "observable", ",", "disabled", ":", "observable", ",", "}", ")", ";", "}", "cancelCreate", "(", ")", "{", "this", ".", "authConfigurationsAdministrationNavService", ".", "navToRoot", "(", ")", ";", "}", "fillData", "(", ")", "{", "this", ".", "data", "=", "new", "AuthConfigurationFormState", "(", "this", ".", "authConfigurationFormService", ",", "this", ".", "authConfigurationsResource", ")", ";", "}", "create", "(", ")", "{", "this", ".", "authConfigurationsAdministrationNavService", ".", "navToCreate", "(", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null ]
336
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "IconButton", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "Translate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "AuthConfigurationForm", "}", "from", "'./AuthConfigurationForm'", ";", "import", "{", "CreateAuthConfigurationService", "}", "from", "'./CreateAuthConfigurationService'", ";", "const", "styles", "=", "composes", "(", "css", "`\n title-bar {\n composes: theme-border-color-background from global;\n }\n\n configuration-create-content {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n configuration-create {\n display: flex;\n flex-direction: column;\n height: 660px;\n overflow: hidden;\n }\n\n title-bar {\n composes: theme-typography--headline6 from global;\n box-sizing: border-box;\n padding: 16px 24px;\n align-items: center;\n display: flex;\n font-weight: 400;\n flex: auto 0 0;\n }\n\n configuration-create-content {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n\n fill {\n flex: 1;\n }\n `", ")", ";", "export", "const", "CreateAuthConfiguration", "=", "observer", "(", "function", "CreateAuthConfiguration", "(", ")", "{", "const", "style", "=", "useStyles", "(", "styles", ")", ";", "const", "service", "=", "useService", "(", "CreateAuthConfigurationService", ")", ";", "if", "(", "!", "service", ".", "data", ")", "{", "return", "null", ";", "}", "return", "styled", "(", "style", ")", "(", "<", "configuration", "-", "create", ">", "<", "title", "-", "bar", ">", "<", "Translate", "token", "=", "'administration_identity_providers_configuration_add'", "/", ">", "<", "fill", "/>", "<", "IconButton", "name", "=", "\"cross\"", "viewBox", "=", "\"0 0 16 16\"", "onClick", "=", "{", "service", ".", "cancelCreate", "}", "/", ">", "<", "/title-bar>", "<", "configuration", "-", "create", "-", "content", ">", "<", "AuthConfigurationForm", "state", "=", "{", "service", ".", "data", "}", "onCancel", "=", "{", "service", ".", "cancelCreate", "}", "onSave", "=", "{", "service", ".", "cancelCreate", "}", "/", ">", "<", "/configuration-create-content>", "<", "/configuration-create>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 28, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
337
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "{", "AdministrationItemContentComponent", ",", "ADMINISTRATION_TOOLS_PANEL_STYLES", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ToolsAction", ",", "Loader", ",", "ToolsPanel", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "composes", ",", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "AuthConfigurationsTable", "}", "from", "'./AuthConfigurationsTable/AuthConfigurationsTable'", ";", "import", "{", "useConfigurationsTable", "}", "from", "'./AuthConfigurationsTable/useConfigurationsTable'", ";", "import", "{", "CreateAuthConfiguration", "}", "from", "'./CreateAuthConfiguration'", ";", "import", "{", "CreateAuthConfigurationService", "}", "from", "'./CreateAuthConfigurationService'", ";", "const", "styles", "=", "composes", "(", "css", "`\n layout-grid-cell {\n composes: theme-background-surface theme-text-on-surface from global;\n }\n layout-grid-cell {\n composes: theme-border-color-background from global;\n }\n \n`", ",", "css", "` \n layout-grid {\n width: 100%;\n overflow: auto;\n }\n layout-grid-inner {\n min-height: 100%;\n }\n layout-grid-cell {\n position: relative;\n border: solid 1px;\n }\n`", ")", ";", "export", "const", "AuthConfigurationsAdministration", "=", "observer", "(", "function", "AuthConfigurationsAdministration", "(", "{", "sub", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "style", "=", "useStyles", "(", "styles", ",", "ADMINISTRATION_TOOLS_PANEL_STYLES", ",", "BASE_CONTAINERS_STYLES", ")", ";", "const", "service", "=", "useService", "(", "CreateAuthConfigurationService", ")", ";", "const", "table", "=", "useConfigurationsTable", "(", ")", ";", "return", "styled", "(", "style", ")", "(", "<", ">", "<", "ToolsPanel", ">", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'administration_identity_providers_add_tooltip'", ")", "}", "icon", "=", "\"add\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "!", "!", "sub", "||", "table", ".", "processing", "}", "onClick", "=", "{", "service", ".", "create", "}", ">", "{", "translate", "(", "'ui_add'", ")", "}", "<", "/ToolsAction>", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'administration_identity_providers_refresh_tooltip'", ")", "}", "icon", "=", "\"refresh\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "table", ".", "processing", "}", "onClick", "=", "{", "table", ".", "update", "}", ">", "{", "translate", "(", "'ui_refresh'", ")", "}", "<", "/ToolsAction>", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'administration_identity_providers_delete_tooltip'", ")", "}", "icon", "=", "\"trash\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "!", "table", ".", "tableState", ".", "itemsSelected", "||", "table", ".", "processing", "}", "onClick", "=", "{", "table", ".", "delete", "}", ">", "{", "translate", "(", "'ui_delete'", ")", "}", "<", "/ToolsAction>", "<", "/ToolsPanel>", "<", "layout", "-", "grid", ">", "<", "layout", "-", "grid", "-", "inner", ">", "{", "sub", "&&", "(", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "CreateAuthConfiguration", "/>", "<", "/layout-grid-cell>)}", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "AuthConfigurationsTable", "configurations", "=", "{", "table", ".", "configurations", "}", "selectedItems", "=", "{", "table", ".", "tableState", ".", "selected", "}", "expandedItems", "=", "{", "table", ".", "tableState", ".", "expanded", "}", "/", ">", "<", "Loader", "loading", "=", "{", "table", ".", "processing", "}", "overlay", "/", ">", "<", "/layout-grid-cell>", "<", "/layout-grid-inner>", "<", "/layout-grid>", "<", "/>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
338
[ "import", "type", "{", "ServiceDescriptionComponent", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Link", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "Translate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "AuthConfigurationsAdministrationNavService", "}", "from", "'./AuthConfigurationsAdministrationNavService'", ";", "export", "const", "IdentityProvidersServiceLink", "=", "function", "IdentityProvidersServiceLink", "(", "{", "configurationWizard", ",", "}", ")", "{", "const", "authConfigurationsAdministrationNavService", "=", "useService", "(", "AuthConfigurationsAdministrationNavService", ")", ";", "if", "(", "configurationWizard", ")", "{", "return", "null", ";", "}", "return", "(", "<", "Link", "onClick", "=", "{", "(", ")", "=>", "authConfigurationsAdministrationNavService", ".", "navToRoot", "(", ")", "}", ">", "<", "Translate", "token", "=", "\"administration_identity_providers_service_link\"", "/", ">", "<", "/Link>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
339
[ "import", "{", "AdministrationItemService", ",", "AdministrationItemType", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "AuthConfigurationsResource", ",", "AuthProviderService", ",", "AuthProvidersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "PlaceholderContainer", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "injectable", ",", "Bootstrap", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "AdminAuthProviderConfiguration", ",", "CachedMapAllKey", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "AuthConfigurationsAdministration", "}", "from", "'./AuthConfigurationsAdministration'", ";", "import", "{", "AuthConfigurationsDrawerItem", "}", "from", "'./AuthConfigurationsDrawerItem'", ";", "import", "{", "CreateAuthConfigurationService", "}", "from", "'./CreateAuthConfigurationService'", ";", "import", "{", "IdentityProvidersServiceLink", "}", "from", "'./IdentityProvidersServiceLink'", ";", "export", "interface", "IAuthConfigurationDetailsPlaceholderProps", "{", "configuration", ":", "AdminAuthProviderConfiguration", ";", "}", "@", "injectable", "(", ")", "export", "class", "AuthConfigurationsAdministrationService", "extends", "Bootstrap", "{", "readonly", "configurationDetailsPlaceholder", "=", "new", "PlaceholderContainer", "<", "IAuthConfigurationDetailsPlaceholderProps", ">", "(", ")", ";", "constructor", "(", "private", "readonly", "administrationItemService", ",", "private", "readonly", "notificationService", ",", "private", "readonly", "authProvidersResource", ",", "private", "readonly", "authConfigurationsResource", ",", "private", "readonly", "createConfigurationService", ",", "private", "readonly", "authProviderService", ")", "{", "super", "(", ")", ";", "}", "register", "(", ")", "{", "this", ".", "authProviderService", ".", "addServiceDescriptionLink", "(", "{", "isSupported", ":", "provider", "=>", "provider", ".", "configurable", ",", "description", ":", "(", ")", "=>", "IdentityProvidersServiceLink", ",", "}", ")", ";", "this", ".", "administrationItemService", ".", "create", "(", "{", "name", ":", "'auth-configurations'", ",", "type", ":", "AdministrationItemType", ".", "Administration", ",", "order", ":", "5", ",", "configurationWizardOptions", ":", "{", "description", ":", "'administration_identity_providers_wizard_description'", ",", "}", ",", "sub", ":", "[", "{", "name", ":", "'create'", ",", "onActivate", ":", "(", ")", "=>", "this", ".", "createConfigurationService", ".", "fillData", "(", ")", ",", "}", ",", "]", ",", "isHidden", ":", "(", ")", "=>", "!", "this", ".", "authProvidersResource", ".", "values", ".", "some", "(", "provider", "=>", "provider", ".", "configurable", ")", ",", "getContentComponent", ":", "(", ")", "=>", "AuthConfigurationsAdministration", ",", "getDrawerComponent", ":", "(", ")", "=>", "AuthConfigurationsDrawerItem", ",", "onActivate", ":", "this", ".", "loadConfigurations", ".", "bind", "(", "this", ")", ",", "onDeActivate", ":", "(", "configurationWizard", ",", "outside", ")", "=>", "{", "if", "(", "outside", ")", "{", "this", ".", "authConfigurationsResource", ".", "cleanNewFlags", "(", ")", ";", "}", "}", ",", "}", ")", ";", "}", "load", "(", ")", "{", "}", "private", "async", "loadConfigurations", "(", ")", "{", "try", "{", "await", "this", ".", "authConfigurationsResource", ".", "load", "(", "CachedMapAllKey", ")", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "'Error occurred while loading configurations'", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 950, null, null, null, 0, null, null, null, 0, null, null, null, 0, null, null, null, 0, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
340
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useCallback", ",", "useRef", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "AuthConfigurationParametersResource", ",", "AuthProvidersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "type", "{", "TabContainerPanelComponent", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ColoredContainer", ",", "Combobox", ",", "FieldCheckbox", ",", "Group", ",", "GroupTitle", ",", "InputField", ",", "Link", ",", "ObjectPropertyInfoForm", ",", "SubmittingForm", ",", "Textarea", ",", "useClipboard", ",", "useMapResource", ",", "useObjectPropertyCategories", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "AuthProviderConfigurationParametersFragment", ",", "CachedMapAllKey", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "type", "{", "IAuthConfigurationFormProps", "}", "from", "'../IAuthConfigurationFormProps'", ";", "const", "styles", "=", "css", "`\n SubmittingForm {\n flex: 1;\n overflow: auto;\n }\n`", ";", "const", "emptyArray", "=", "[", "]", ";", "export", "const", "AuthConfigurationOptions", "=", "observer", "(", "function", "AuthConfigurationOptions", "(", "{", "state", ",", "}", ")", "{", "const", "formRef", "=", "useRef", "<", "HTMLFormElement", ">", "(", "null", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "copy", "=", "useClipboard", "(", ")", ";", "const", "style", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ",", "styles", ")", ";", "const", "providers", "=", "useMapResource", "(", "AuthConfigurationOptions", ",", "AuthProvidersResource", ",", "CachedMapAllKey", ")", ";", "const", "parameters", "=", "useMapResource", "(", "AuthConfigurationOptions", ",", "AuthConfigurationParametersResource", ",", "state", ".", "config", ".", "providerId", "||", "null", ")", ";", "const", "{", "categories", ",", "isUncategorizedExists", "}", "=", "useObjectPropertyCategories", "(", "parameters", ".", "data", "??", "emptyArray", ")", ";", "const", "edit", "=", "state", ".", "mode", "===", "'edit'", ";", "const", "handleProviderSelect", "=", "useCallback", "(", "(", ")", "=>", "{", "state", ".", "config", ".", "parameters", "=", "{", "}", ";", "}", ",", "[", "state", "]", ")", ";", "return", "styled", "(", "style", ")", "(", "<", "SubmittingForm", "ref", "=", "{", "formRef", "}", ">", "<", "ColoredContainer", "parent", "gap", "overflow", ">", "<", "Group", "small", "gap", ">", "<", "Combobox", "name", "=", "'providerId'", "state", "=", "{", "state", ".", "config", "}", "items", "=", "{", "providers", ".", "resource", ".", "configurable", "}", "keySelector", "=", "{", "provider", "=>", "provider", ".", "id", "}", "valueSelector", "=", "{", "provider", "=>", "provider", ".", "label", "}", "iconSelector", "=", "{", "provider", "=>", "provider", ".", "icon", "}", "titleSelector", "=", "{", "provider", "=>", "provider", ".", "description", "}", "placeholder", "=", "{", "translate", "(", "'administration_identity_providers_choose_provider_placeholder'", ")", "}", "readOnly", "=", "{", "state", ".", "readonly", "||", "edit", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "required", "tiny", "fill", "onSelect", "=", "{", "handleProviderSelect", "}", ">", "{", "translate", "(", "'administration_identity_providers_provider'", ")", "}", "<", "/Combobox>", "<", "InputField", "name", "=", "'id'", "state", "=", "{", "state", ".", "config", "}", "readOnly", "=", "{", "state", ".", "readonly", "||", "edit", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "required", "tiny", "fill", ">", "{", "translate", "(", "'administration_identity_providers_provider_id'", ")", "}", "<", "/InputField>", "<", "InputField", "name", "=", "'displayName'", "state", "=", "{", "state", ".", "config", "}", "minLength", "=", "{", "1", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", "required", "tiny", "fill", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_name'", ")", "}", "<", "/InputField>", "<", "Textarea", "name", "=", "'description'", "state", "=", "{", "state", ".", "config", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_description'", ")", "}", "<", "/Textarea>", "<", "InputField", "name", "=", "'iconURL'", "state", "=", "{", "state", ".", "config", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_icon_url'", ")", "}", "<", "/InputField>", "<", "FieldCheckbox", "id", "=", "{", "edit", "?", "state", ".", "config", ".", "id", ":", "'AuthConfigurationDisabled'", "}", "name", "=", "'disabled'", "state", "=", "{", "state", ".", "config", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_disabled'", ")", "}", "<", "/FieldCheckbox>", "<", "/Group>", "{", "parameters", ".", "isLoaded", "(", ")", "&&", "parameters", ".", "data", "&&", "(", "<", ">", "{", "isUncategorizedExists", "&&", "(", "<", "Group", "small", "gap", "vertical", ">", "<", "GroupTitle", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_parameters'", ")", "}", "<", "/GroupTitle>", "<", "ObjectPropertyInfoForm", "state", "=", "{", "state", ".", "config", ".", "parameters", "}", "properties", "=", "{", "parameters", ".", "data", "}", "category", "=", "{", "null", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", "/", ">", "<", "/Group>)}", "{", "categories", ".", "map", "(", "category", "=>", "(", "<", "Group", "key", "=", "{", "category", "}", "small", "gap", "vertical", ">", "<", "GroupTitle", "keepSize", ">", "{", "category", "}", "<", "/GroupTitle>", "<", "ObjectPropertyInfoForm", "state", "=", "{", "state", ".", "config", ".", "parameters", "}", "properties", "=", "{", "parameters", ".", "data", "!", "}", "category", "=", "{", "category", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", "keepSize", "/", ">", "<", "/Group>))}", "<", "/>)}", "{", "(", "state", ".", "config", ".", "metadataLink", "||", "state", ".", "config", ".", "signInLink", "||", "state", ".", "config", ".", "signOutLink", ")", "&&", "(", "<", "Group", "small", "gap", ">", "<", "GroupTitle", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_links'", ")", "}", "<", "/GroupTitle>", "<", "InputField", "name", "=", "'signInLink'", "state", "=", "{", "state", ".", "config", "}", "title", "=", "{", "state", ".", "config", ".", "signInLink", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "autoHide", "readOnly", "onCustomCopy", "=", "{", "(", ")", "=>", "copy", "(", "state", ".", "config", ".", "signInLink", "!", ",", "true", ")", "}", ">", "Sign", "in", "<", "/InputField>", "<", "InputField", "name", "=", "'signOutLink'", "state", "=", "{", "state", ".", "config", "}", "title", "=", "{", "state", ".", "config", ".", "signOutLink", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "autoHide", "readOnly", "onCustomCopy", "=", "{", "(", ")", "=>", "copy", "(", "state", ".", "config", ".", "signOutLink", "!", ",", "true", ")", "}", ">", "Sign", "out", "<", "/InputField>", "{", "state", ".", "config", ".", "metadataLink", "&&", "(", "<", "Link", "href", "=", "{", "state", ".", "config", ".", "metadataLink", "}", "target", "=", "'_blank'", "rel", "=", "'noopener noreferrer'", ">", "{", "translate", "(", "'administration_identity_providers_provider_configuration_links_metadata'", ")", "}", "<", "/Link>)}", "<", "/Group>)}", "<", "/ColoredContainer>", "<", "/SubmittingForm>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, 5, null, null, null, null, null, null, 18788, null, null, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
341
[ "import", "{", "AuthConfigurationsResource", ",", "AuthProvidersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Bootstrap", ",", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "type", "{", "IExecutionContextProvider", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "{", "getUniqueName", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "{", "AuthConfigurationFormService", "}", "from", "'../AuthConfigurationFormService'", ";", "import", "{", "authConfigurationContext", "}", "from", "'../Contexts/authConfigurationContext'", ";", "import", "type", "{", "IAuthConfigurationFormFillConfigData", ",", "IAuthConfigurationFormState", ",", "IAuthConfigurationFormSubmitData", "}", "from", "'../IAuthConfigurationFormProps'", ";", "import", "{", "AuthConfigurationOptions", "}", "from", "'./AuthConfigurationOptions'", ";", "@", "injectable", "(", ")", "export", "class", "AuthConfigurationOptionsTabService", "extends", "Bootstrap", "{", "constructor", "(", "private", "readonly", "authConfigurationFormService", ",", "private", "readonly", "authConfigurationsResource", ",", "private", "readonly", "authProvidersResource", ")", "{", "super", "(", ")", ";", "}", "register", "(", ")", "{", "this", ".", "authConfigurationFormService", ".", "tabsContainer", ".", "add", "(", "{", "key", ":", "'options'", ",", "name", ":", "'ui_options'", ",", "order", ":", "1", ",", "panel", ":", "(", ")", "=>", "AuthConfigurationOptions", ",", "}", ")", ";", "this", ".", "authConfigurationFormService", ".", "prepareConfigTask", ".", "addHandler", "(", "this", ".", "prepareConfig", ".", "bind", "(", "this", ")", ")", ";", "this", ".", "authConfigurationFormService", ".", "formValidationTask", ".", "addHandler", "(", "this", ".", "validate", ".", "bind", "(", "this", ")", ")", ";", "this", ".", "authConfigurationFormService", ".", "formSubmittingTask", ".", "addHandler", "(", "this", ".", "save", ".", "bind", "(", "this", ")", ")", ";", "this", ".", "authConfigurationFormService", ".", "fillConfigTask", ".", "addHandler", "(", "this", ".", "fillConfig", ".", "bind", "(", "this", ")", ")", ";", "}", "load", "(", ")", "{", "}", "private", "async", "prepareConfig", "(", "{", "state", ",", "}", ",", "contexts", ")", "{", "const", "config", "=", "contexts", ".", "getContext", "(", "authConfigurationContext", ")", ";", "config", ".", "id", "=", "state", ".", "config", ".", "id", ";", "config", ".", "providerId", "=", "state", ".", "config", ".", "providerId", ";", "config", ".", "disabled", "=", "state", ".", "config", ".", "disabled", ";", "config", ".", "displayName", "=", "state", ".", "config", ".", "displayName", ".", "trim", "(", ")", ";", "if", "(", "state", ".", "mode", "===", "'create'", ")", "{", "const", "configurationNames", "=", "this", ".", "authConfigurationsResource", ".", "values", ".", "map", "(", "configuration", "=>", "configuration", ".", "displayName", ")", ";", "config", ".", "displayName", "=", "getUniqueName", "(", "config", ".", "displayName", ",", "configurationNames", ")", ";", "}", "if", "(", "Object", ".", "keys", "(", "state", ".", "config", ".", "parameters", ")", ".", "length", ")", "{", "config", ".", "parameters", "=", "state", ".", "config", ".", "parameters", ";", "}", "if", "(", "state", ".", "config", ".", "description", ")", "{", "config", ".", "description", "=", "state", ".", "config", ".", "description", ";", "}", "if", "(", "state", ".", "config", ".", "iconURL", ")", "{", "config", ".", "iconURL", "=", "state", ".", "config", ".", "iconURL", ";", "}", "}", "private", "async", "validate", "(", "{", "state", ",", "}", ",", "contexts", ")", "{", "const", "validation", "=", "contexts", ".", "getContext", "(", "this", ".", "authConfigurationFormService", ".", "configurationValidationContext", ")", ";", "if", "(", "!", "state", ".", "config", ".", "displayName", ".", "trim", "(", ")", ")", "{", "validation", ".", "error", "(", "\"Field 'Name' can't be empty\"", ")", ";", "}", "if", "(", "state", ".", "mode", "===", "'create'", ")", "{", "if", "(", "!", "state", ".", "config", ".", "providerId", ")", "{", "validation", ".", "error", "(", "\"Field 'Provider' can't be empty\"", ")", ";", "}", "if", "(", "!", "state", ".", "config", ".", "id", ".", "trim", "(", ")", ")", "{", "validation", ".", "error", "(", "\"Field 'ID' can't be empty\"", ")", ";", "}", "if", "(", "this", ".", "authConfigurationsResource", ".", "has", "(", "state", ".", "config", ".", "id", ")", ")", "{", "validation", ".", "error", "(", "`A configuration with ID \"${", "state", ".", "config", ".", "id", "}\" already exists`", ")", ";", "}", "}", "}", "private", "async", "save", "(", "{", "state", ",", "}", ",", "contexts", ")", "{", "const", "status", "=", "contexts", ".", "getContext", "(", "this", ".", "authConfigurationFormService", ".", "configurationStatusContext", ")", ";", "const", "config", "=", "contexts", ".", "getContext", "(", "authConfigurationContext", ")", ";", "try", "{", "const", "configuration", "=", "await", "this", ".", "authConfigurationsResource", ".", "saveConfiguration", "(", "config", ")", ";", "if", "(", "state", ".", "mode", "===", "'create'", ")", "{", "status", ".", "info", "(", "'Configuration created'", ")", ";", "status", ".", "info", "(", "configuration", ".", "displayName", ")", ";", "}", "else", "{", "status", ".", "info", "(", "'Configuration updated'", ")", ";", "status", ".", "info", "(", "configuration", ".", "displayName", ")", ";", "}", "}", "catch", "(", "exception", ")", "{", "status", ".", "error", "(", "'connections_connection_create_fail'", ",", "exception", ")", ";", "}", "}", "private", "async", "setDefaults", "(", "state", ")", "{", "if", "(", "state", ".", "mode", "===", "'create'", ")", "{", "await", "this", ".", "authProvidersResource", ".", "loadAll", "(", ")", ";", "if", "(", "this", ".", "authProvidersResource", ".", "configurable", ".", "length", ">", "0", "&&", "!", "state", ".", "config", ".", "providerId", ")", "{", "state", ".", "config", ".", "providerId", "=", "this", ".", "authProvidersResource", ".", "configurable", "[", "0", "]", ".", "id", ";", "}", "}", "}", "private", "async", "fillConfig", "(", "{", "state", ",", "updated", "}", ",", "contexts", ")", "{", "if", "(", "!", "updated", ")", "{", "return", ";", "}", "if", "(", "!", "state", ".", "info", ")", "{", "await", "this", ".", "setDefaults", "(", "state", ")", ";", "return", ";", "}", "if", "(", "state", ".", "info", ".", "id", ")", "{", "state", ".", "config", ".", "id", "=", "state", ".", "info", ".", "id", ";", "}", "if", "(", "state", ".", "info", ".", "providerId", ")", "{", "state", ".", "config", ".", "providerId", "=", "state", ".", "info", ".", "providerId", ";", "}", "if", "(", "state", ".", "info", ".", "displayName", ")", "{", "state", ".", "config", ".", "displayName", "=", "state", ".", "info", ".", "displayName", ";", "}", "if", "(", "state", ".", "info", ".", "disabled", "!==", "undefined", ")", "{", "state", ".", "config", ".", "disabled", "=", "state", ".", "info", ".", "disabled", ";", "}", "if", "(", "state", ".", "info", ".", "iconURL", ")", "{", "state", ".", "config", ".", "iconURL", "=", "state", ".", "info", ".", "iconURL", ";", "}", "if", "(", "state", ".", "info", ".", "description", ")", "{", "state", ".", "config", ".", "description", "=", "state", ".", "info", ".", "description", ";", "}", "if", "(", "state", ".", "info", ".", "metadataLink", ")", "{", "state", ".", "config", ".", "metadataLink", "=", "state", ".", "info", ".", "metadataLink", ";", "}", "if", "(", "state", ".", "info", ".", "signInLink", ")", "{", "state", ".", "config", ".", "signInLink", "=", "state", ".", "info", ".", "signInLink", ";", "}", "if", "(", "state", ".", "info", ".", "signOutLink", ")", "{", "state", ".", "config", ".", "signOutLink", "=", "state", ".", "info", ".", "signOutLink", ";", "}", "if", "(", "state", ".", "info", ".", "parameters", ")", "{", "state", ".", "config", ".", "parameters", "=", "{", "...", "state", ".", "info", ".", "parameters", "}", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, 0, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
342
[ "import", "{", "AuthProvidersResource", ",", "AUTH_PROVIDER_LOCAL_ID", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Bootstrap", ",", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "ExecutorInterrupter", ",", "IExecutorHandler", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "{", "ServerConfigResource", "}", "from", "'@cloudbeaver/core-root'", ";", "import", "{", "ILoadConfigData", ",", "IServerConfigSaveData", ",", "ServerConfigurationService", ",", "serverConfigValidationContext", "}", "from", "'@cloudbeaver/plugin-administration'", ";", "@", "injectable", "(", ")", "export", "class", "ServerConfigurationAuthenticationBootstrap", "extends", "Bootstrap", "{", "constructor", "(", "private", "readonly", "serverConfigurationService", ",", "private", "readonly", "authProvidersResource", ",", "private", "readonly", "serverConfigResource", ",", "private", "readonly", "notificationService", ")", "{", "super", "(", ")", ";", "}", "register", "(", ")", "{", "this", ".", "serverConfigurationService", ".", "validationTask", ".", "addHandler", "(", "this", ".", "validateForm", ")", ";", "this", ".", "serverConfigurationService", ".", "loadConfigTask", ".", "addHandler", "(", "this", ".", "loadServerConfig", ")", ";", "}", "load", "(", ")", "{", "}", "private", "loadServerConfig", ":", "IExecutorHandler", "<", "ILoadConfigData", ">", "=", "async", "(", "data", ",", "contexts", ")", "=>", "{", "if", "(", "!", "data", ".", "reset", ")", "{", "return", ";", "}", "try", "{", "await", "this", ".", "authProvidersResource", ".", "loadAll", "(", ")", ";", "const", "config", "=", "await", "this", ".", "serverConfigResource", ".", "load", "(", ")", ";", "if", "(", "!", "config", ")", "{", "return", ";", "}", "if", "(", "config", ".", "configurationMode", ")", "{", "if", "(", "this", ".", "authProvidersResource", ".", "has", "(", "AUTH_PROVIDER_LOCAL_ID", ")", ")", "{", "data", ".", "state", ".", "serverConfig", ".", "adminName", "=", "'cbadmin'", ";", "data", ".", "state", ".", "serverConfig", ".", "adminPassword", "=", "''", ";", "}", "}", "else", "{", "data", ".", "state", ".", "serverConfig", ".", "adminName", "=", "undefined", ";", "data", ".", "state", ".", "serverConfig", ".", "adminPassword", "=", "undefined", ";", "}", "data", ".", "state", ".", "serverConfig", ".", "anonymousAccessEnabled", "=", "config", ".", "anonymousAccessEnabled", ";", "data", ".", "state", ".", "serverConfig", ".", "enabledAuthProviders", "=", "[", "...", "config", ".", "enabledAuthProviders", "]", ";", "data", ".", "state", ".", "serverConfig", ".", "enabledFeatures", "=", "[", "...", "config", ".", "enabledFeatures", "]", ";", "}", "catch", "(", "exception", ")", "{", "ExecutorInterrupter", ".", "interrupt", "(", "contexts", ")", ";", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "'Can\\'t load server configuration'", ")", ";", "}", "}", ";", "private", "validateForm", ":", "IExecutorHandler", "<", "IServerConfigSaveData", ">", "=", "async", "(", "data", ",", "contexts", ")", "=>", "{", "await", "this", ".", "authProvidersResource", ".", "loadAll", "(", ")", ";", "const", "administratorPresented", "=", "data", ".", "configurationWizard", "&&", "this", ".", "authProvidersResource", ".", "has", "(", "AUTH_PROVIDER_LOCAL_ID", ")", ";", "if", "(", "!", "administratorPresented", ")", "{", "return", ";", "}", "const", "validation", "=", "contexts", ".", "getContext", "(", "serverConfigValidationContext", ")", ";", "if", "(", "!", "data", ".", "state", ".", "serverConfig", ".", "adminName", "||", "data", ".", "state", ".", "serverConfig", ".", "adminName", ".", "length", "<", "6", "||", "!", "data", ".", "state", ".", "serverConfig", ".", "adminPassword", ")", "{", "validation", ".", "invalidate", "(", ")", ";", "}", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, 24281, null, null, null, 950, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
343
[ "import", "{", "AdministrationScreenService", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "export", "enum", "EUsersAdministrationSub", "{", "Users", "=", "'users'", ",", "Roles", "=", "'roles'", ",", "MetaProperties", "=", "'metaProperties'", "}", "@", "injectable", "(", ")", "export", "class", "UsersAdministrationNavigationService", "{", "static", "ItemName", "=", "'users'", ";", "constructor", "(", "private", "administrationScreenService", ")", "{", "}", "navToRoot", "(", ")", "{", "this", ".", "administrationScreenService", ".", "navigateToItem", "(", "UsersAdministrationNavigationService", ".", "ItemName", ")", ";", "}", "navToCreate", "(", ")", "{", "this", ".", "navToSub", "(", "EUsersAdministrationSub", ".", "Users", ",", "'create'", ")", ";", "}", "navToSub", "(", "sub", ",", "param", "?", ")", "{", "this", ".", "administrationScreenService", ".", "navigateToItemSub", "(", "UsersAdministrationNavigationService", ".", "ItemName", ",", "sub", ",", "param", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 31900, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 0, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
344
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "Button", ",", "PlaceholderComponent", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "IRoleFormProps", "}", "from", "'./IRoleFormProps'", ";", "export", "const", "RoleFormBaseActions", "=", "observer", "(", "function", "RoleFormBaseActions", "(", "{", "state", ",", "onCancel", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "return", "(", "<", ">", "{", "onCancel", "&&", "(", "<", "Button", "type", "=", "\"button\"", "disabled", "=", "{", "state", ".", "disabled", "}", "mod", "=", "{", "[", "'outlined'", "]", "}", "onClick", "=", "{", "onCancel", "}", ">", "{", "translate", "(", "'ui_processing_cancel'", ")", "}", "<", "/Button>)}", "<", "Button", "type", "=", "\"button\"", "disabled", "=", "{", "state", ".", "disabled", "||", "state", ".", "readonly", "}", "mod", "=", "{", "[", "'unelevated'", "]", "}", "loader", "onClick", "=", "{", "state", ".", "save", "}", ">", "{", "translate", "(", "state", ".", "mode", "===", "'edit'", "?", "'ui_processing_save'", ":", "'ui_processing_create'", ")", "}", "<", "/Button>", "<", "/>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 24280, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
345
[ "import", "type", "{", "RoleInfo", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "type", "{", "IExecutionContextProvider", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "type", "{", "IRoleFormState", "}", "from", "'../IRoleFormProps'", ";", "export", "interface", "IRoleFormConfigureContext", "{", "readonly", "info", ":", "RoleInfo", "|", "undefined", ";", "}", "export", "function", "roleFormConfigureContext", "(", "contexts", ",", "state", ")", "{", "return", "{", "info", ":", "state", ".", "info", ",", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, 5681, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null ]
346
[ "export", "interface", "IRoleFormStateInfo", "{", "edited", ":", "boolean", ";", "disabled", ":", "boolean", ";", "readonly", ":", "boolean", ";", "statusMessage", ":", "string", "|", "null", ";", "}", "export", "interface", "IRoleFormStateContext", "extends", "IRoleFormStateInfo", "{", "setStatusMessage", ":", "(", "message", ":", "string", "|", "null", ")", "=>", "void", ";", "}", "export", "function", "roleFormStateContext", "(", ")", "{", "return", "{", "edited", ":", "false", ",", "disabled", ":", "false", ",", "readonly", ":", "false", ",", "statusMessage", ":", "null", ",", "setStatusMessage", "(", "message", ")", "{", "this", ".", "statusMessage", "=", "message", ";", "}", ",", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null ]
347
[ "import", "{", "computed", ",", "makeObservable", ",", "observable", "}", "from", "'mobx'", ";", "import", "type", "{", "RoleInfo", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Executor", ",", "IExecutionContextProvider", ",", "IExecutor", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "type", "{", "CachedMapResource", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "MetadataMap", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "{", "roleFormConfigureContext", "}", "from", "'./Contexts/roleFormConfigureContext'", ";", "import", "{", "IRoleFormStateInfo", ",", "roleFormStateContext", "}", "from", "'./Contexts/roleFormStateContext'", ";", "import", "type", "{", "IRoleFormState", ",", "IRoleFormSubmitData", ",", "RoleFormMode", "}", "from", "'./IRoleFormProps'", ";", "import", "type", "{", "RoleFormService", "}", "from", "'./RoleFormService'", ";", "export", "class", "RoleFormState", "implements", "IRoleFormState", "{", "mode", ":", "RoleFormMode", ";", "config", ":", "RoleInfo", ";", "statusMessage", ":", "string", "|", "null", ";", "configured", ":", "boolean", ";", "partsState", ":", "MetadataMap", "<", "string", ",", "any", ">", ";", "get", "info", "(", ")", ":", "RoleInfo", "|", "undefined", "{", "if", "(", "!", "this", ".", "config", ".", "roleId", ")", "{", "return", "undefined", ";", "}", "return", "this", ".", "resource", ".", "get", "(", "this", ".", "config", ".", "roleId", ")", ";", "}", "get", "loading", "(", ")", ":", "boolean", "{", "return", "this", ".", "loadRoleTask", ".", "executing", "||", "this", ".", "submittingTask", ".", "executing", ";", "}", "get", "disabled", "(", ")", ":", "boolean", "{", "return", "this", ".", "loading", "||", "!", "!", "this", ".", "stateInfo", "?.", "disabled", "||", "this", ".", "loadRoleTask", ".", "executing", ";", "}", "get", "readonly", "(", ")", ":", "boolean", "{", "return", "false", ";", "}", "readonly", "resource", ":", "CachedMapResource", "<", "string", ",", "RoleInfo", ">", ";", "readonly", "service", ":", "RoleFormService", ";", "readonly", "submittingTask", ":", "IExecutor", "<", "IRoleFormSubmitData", ">", ";", "private", "stateInfo", ":", "IRoleFormStateInfo", "|", "null", ";", "private", "loadRoleTask", ":", "IExecutor", "<", "IRoleFormState", ">", ";", "private", "formStateTask", ":", "IExecutor", "<", "IRoleFormState", ">", ";", "constructor", "(", "service", ",", "resource", ")", "{", "this", ".", "resource", "=", "resource", ";", "this", ".", "config", "=", "{", "roleId", ":", "''", ",", "}", ";", "this", ".", "stateInfo", "=", "null", ";", "this", ".", "service", "=", "service", ";", "this", ".", "formStateTask", "=", "new", "Executor", "<", "IRoleFormState", ">", "(", "this", ",", "(", ")", "=>", "true", ")", ";", "this", ".", "loadRoleTask", "=", "new", "Executor", "<", "IRoleFormState", ">", "(", "this", ",", "(", ")", "=>", "true", ")", ";", "this", ".", "submittingTask", "=", "new", "Executor", "(", ")", ";", "this", ".", "statusMessage", "=", "null", ";", "this", ".", "configured", "=", "false", ";", "this", ".", "partsState", "=", "new", "MetadataMap", "(", ")", ";", "this", ".", "mode", "=", "'create'", ";", "makeObservable", "<", "IRoleFormState", ">", "(", "this", ",", "{", "mode", ":", "observable", ",", "config", ":", "observable", ",", "statusMessage", ":", "observable", ",", "info", ":", "computed", ",", "readonly", ":", "computed", ",", "}", ")", ";", "this", ".", "save", "=", "this", ".", "save", ".", "bind", "(", "this", ")", ";", "this", ".", "loadInfo", "=", "this", ".", "loadInfo", ".", "bind", "(", "this", ")", ";", "this", ".", "updateFormState", "=", "this", ".", "updateFormState", ".", "bind", "(", "this", ")", ";", "this", ".", "formStateTask", ".", "addCollection", "(", "service", ".", "formStateTask", ")", ".", "addPostHandler", "(", "this", ".", "updateFormState", ")", ";", "this", ".", "loadRoleTask", ".", "before", "(", "service", ".", "configureTask", ")", ".", "addPostHandler", "(", "this", ".", "loadInfo", ")", ".", "next", "(", "service", ".", "fillConfigTask", ",", "(", "state", ",", "contexts", ")", "=>", "{", "const", "configuration", "=", "contexts", ".", "getContext", "(", "roleFormConfigureContext", ")", ";", "return", "{", "state", ",", "updated", ":", "state", ".", "info", "!==", "configuration", ".", "info", "||", "!", "this", ".", "configured", ",", "}", ";", "}", ")", ".", "next", "(", "this", ".", "formStateTask", ")", ";", "}", "async", "load", "(", ")", "{", "}", "async", "loadRoleInfo", "(", ")", "{", "await", "this", ".", "loadRoleTask", ".", "execute", "(", "this", ")", ";", "return", "this", ".", "info", ";", "}", "setOptions", "(", "mode", ")", "{", "this", ".", "mode", "=", "mode", ";", "return", "this", ";", "}", "setConfig", "(", "config", ")", "{", "this", ".", "config", "=", "config", ";", "return", "this", ";", "}", "async", "save", "(", ")", "{", "await", "this", ".", "submittingTask", ".", "executeScope", "(", "{", "state", ":", "this", ",", "}", ",", "this", ".", "service", ".", "formSubmittingTask", ")", ";", "}", "private", "updateFormState", "(", "data", ",", "contexts", ")", "{", "const", "context", "=", "contexts", ".", "getContext", "(", "roleFormStateContext", ")", ";", "this", ".", "statusMessage", "=", "context", ".", "statusMessage", ";", "this", ".", "stateInfo", "=", "context", ";", "this", ".", "configured", "=", "true", ";", "}", "private", "async", "loadInfo", "(", "data", ",", "contexts", ")", "{", "if", "(", "!", "data", ".", "config", ".", "roleId", ")", "{", "return", ";", "}", "if", "(", "!", "this", ".", "resource", ".", "has", "(", "data", ".", "config", ".", "roleId", ")", ")", "{", "return", ";", "}", "await", "this", ".", "resource", ".", "load", "(", "data", ".", "config", ".", "roleId", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 0, null, 5681, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 0, null, 5681, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
348
[ "import", "{", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "EUsersAdministrationSub", ",", "UsersAdministrationNavigationService", "}", "from", "'../UsersAdministrationNavigationService'", ";", "@", "injectable", "(", ")", "export", "class", "RolesAdministrationNavService", "{", "constructor", "(", "private", "usersAdministrationNavigationService", ")", "{", "}", "navToRoot", "(", ")", "{", "this", ".", "usersAdministrationNavigationService", ".", "navToSub", "(", "EUsersAdministrationSub", ".", "Roles", ")", ";", "}", "navToCreate", "(", ")", "{", "this", ".", "usersAdministrationNavigationService", ".", "navToSub", "(", "EUsersAdministrationSub", ".", "Roles", ",", "'create'", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
349
[ "import", "{", "observable", ",", "makeObservable", "}", "from", "'mobx'", ";", "import", "{", "RolesResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "type", "{", "IRoleFormState", "}", "from", "'./IRoleFormProps'", ";", "import", "{", "RoleFormService", "}", "from", "'./RoleFormService'", ";", "import", "{", "RoleFormState", "}", "from", "'./RoleFormState'", ";", "import", "{", "RolesAdministrationNavService", "}", "from", "'./RolesAdministrationNavService'", ";", "@", "injectable", "(", ")", "export", "class", "CreateRoleService", "{", "disabled", "=", "false", ";", "data", ":", "IRoleFormState", "|", "null", ";", "constructor", "(", "private", "readonly", "rolesAdministrationNavService", ",", "private", "readonly", "roleFormService", ",", "private", "readonly", "rolesResource", ")", "{", "this", ".", "data", "=", "null", ";", "this", ".", "cancelCreate", "=", "this", ".", "cancelCreate", ".", "bind", "(", "this", ")", ";", "this", ".", "create", "=", "this", ".", "create", ".", "bind", "(", "this", ")", ";", "makeObservable", "(", "this", ",", "{", "data", ":", "observable", ",", "disabled", ":", "observable", ",", "}", ")", ";", "}", "cancelCreate", "(", ")", "{", "this", ".", "rolesAdministrationNavService", ".", "navToRoot", "(", ")", ";", "}", "fillData", "(", ")", "{", "this", ".", "data", "=", "new", "RoleFormState", "(", "this", ".", "roleFormService", ",", "this", ".", "rolesResource", ")", ";", "}", "create", "(", ")", "{", "this", ".", "rolesAdministrationNavService", ".", "navToCreate", "(", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null ]
350
[ "import", "type", "{", "RoleInfo", "}", "from", "'@cloudbeaver/core-authentication'", ";", "export", "function", "roleContext", "(", ")", "{", "return", "{", "roleId", ":", "''", ",", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null ]
351
[ "import", "{", "isCloudConnection", "}", "from", "'@cloudbeaver/core-connections'", ";", "import", "type", "{", "DatabaseConnectionFragment", "}", "from", "'@cloudbeaver/core-sdk'", ";", "param", "{", "DatabaseConnectionFragment", "[", "]", "}", "connections", "param", "{", "string", "}", "filter", "export", "function", "getFilteredConnections", "(", "connections", ",", "filter", ")", "{", "return", "connections", ".", "filter", "(", "connection", "=>", "connection", ".", "name", ".", "toLowerCase", "(", ")", ".", "includes", "(", "filter", ".", "toLowerCase", "(", ")", ")", "&&", "!", "isCloudConnection", "(", "connection", ")", ")", ".", "sort", "(", "(", "a", ",", "b", ")", "=>", "(", "a", ".", "name", ")", ".", "localeCompare", "(", "b", ".", "name", ")", ")", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, 5, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
352
[ "import", "{", "observable", "}", "from", "'mobx'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useCallback", ",", "useState", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "Table", ",", "TableBody", ",", "TableItem", ",", "TableColumnValue", ",", "BASE_CONTAINERS_STYLES", ",", "Group", ",", "Button", ",", "useObjectRef", ",", "getSelectedItems", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "getComputed", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "DBDriverResource", "}", "from", "'@cloudbeaver/core-connections'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "TLocalizationToken", ",", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "DatabaseConnectionFragment", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "getFilteredConnections", "}", "from", "'./getFilteredConnections'", ";", "import", "{", "GrantedConnectionsTableHeader", ",", "IFilterState", "}", "from", "'./GrantedConnectionsTableHeader/GrantedConnectionsTableHeader'", ";", "import", "{", "GrantedConnectionsTableInnerHeader", "}", "from", "'./GrantedConnectionsTableHeader/GrantedConnectionsTableInnerHeader'", ";", "import", "{", "GrantedConnectionsTableItem", "}", "from", "'./GrantedConnectionsTableItem'", ";", "const", "styles", "=", "composes", "(", "css", "`\n Table {\n composes: theme-background-surface theme-text-on-surface from global;\n }\n `", ",", "css", "`\n Group {\n position: relative;\n }\n Group, container, table-container {\n height: 100%;\n }\n container {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n GrantedConnectionsTableHeader {\n flex: 0 0 auto;\n }\n table-container {\n overflow: auto;\n }\n `", ")", ";", "interface", "Props", "{", "grantedConnections", ":", "DatabaseConnectionFragment", "[", "]", ";", "disabled", ":", "boolean", ";", "onRevoke", ":", "(", "subjectIds", ":", "string", "[", "]", ")", "=>", "void", ";", "onEdit", ":", "(", ")", "=>", "void", ";", "}", "export", "const", "GrantedConnectionList", "=", "observer", "<", "Props", ">", "(", "function", "GrantedConnectionList", "(", "{", "grantedConnections", ",", "disabled", ",", "onRevoke", ",", "onEdit", ",", "}", ")", "{", "const", "props", "=", "useObjectRef", "(", "{", "onRevoke", ",", "onEdit", "}", ")", ";", "const", "style", "=", "useStyles", "(", "styles", ",", "BASE_CONTAINERS_STYLES", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "driversResource", "=", "useService", "(", "DBDriverResource", ")", ";", "const", "[", "selectedSubjects", "]", "=", "useState", "<", "Map", "<", "any", ",", "boolean", ">", ">", "(", "(", ")", "=>", "observable", "(", "new", "Map", "(", ")", ")", ")", ";", "const", "[", "filterState", "]", "=", "useState", "<", "IFilterState", ">", "(", "(", ")", "=>", "observable", "(", "{", "filterValue", ":", "''", "}", ")", ")", ";", "const", "connections", "=", "getFilteredConnections", "(", "grantedConnections", ",", "filterState", ".", "filterValue", ")", ";", "const", "keys", "=", "connections", ".", "map", "(", "connection", "=>", "connection", ".", "id", ")", ";", "const", "selected", "=", "getComputed", "(", "(", ")", "=>", "Array", ".", "from", "(", "selectedSubjects", ".", "values", "(", ")", ")", ".", "some", "(", "v", "=>", "v", ")", ")", ";", "const", "revoke", "=", "useCallback", "(", "(", ")", "=>", "{", "props", ".", "onRevoke", "(", "getSelectedItems", "(", "selectedSubjects", ")", ")", ";", "selectedSubjects", ".", "clear", "(", ")", ";", "}", ",", "[", "]", ")", ";", "let", "tableInfoText", "=", "null", ";", "if", "(", "!", "connections", ".", "length", ")", "{", "if", "(", "filterState", ".", "filterValue", ")", "{", "tableInfoText", "=", "'ui_search_no_result_placeholder'", ";", "}", "else", "{", "tableInfoText", "=", "'ui_no_items_placeholder'", ";", "}", "}", "return", "styled", "(", "style", ")", "(", "<", "Group", "box", "medium", "overflow", ">", "<", "container", ">", "<", "GrantedConnectionsTableHeader", "filterState", "=", "{", "filterState", "}", "disabled", "=", "{", "disabled", "}", ">", "<", "Button", "disabled", "=", "{", "disabled", "||", "!", "selected", "}", "mod", "=", "{", "[", "'outlined'", "]", "}", "onClick", "=", "{", "revoke", "}", ">", "{", "translate", "(", "'ui_delete'", ")", "}", "<", "/Button>", "<", "Button", "disabled", "=", "{", "disabled", "}", "mod", "=", "{", "[", "'unelevated'", "]", "}", "onClick", "=", "{", "props", ".", "onEdit", "}", ">", "{", "translate", "(", "'ui_edit'", ")", "}", "<", "/Button>", "<", "/GrantedConnectionsTableHeader>", "<", "table", "-", "container", ">", "<", "Table", "keys", "=", "{", "keys", "}", "selectedItems", "=", "{", "selectedSubjects", "}", ">", "<", "GrantedConnectionsTableInnerHeader", "disabled", "=", "{", "disabled", "}", "/", ">", "<", "TableBody", ">", "<", "TableItem", "item", "=", "'tableInfo'", "selectDisabled", ">", "{", "tableInfoText", "&&", "(", "<", "TableColumnValue", "colSpan", "=", "{", "5", "}", ">", "{", "translate", "(", "tableInfoText", ")", "}", "<", "/TableColumnValue>)}", "<", "/TableItem>", "{", "connections", ".", "map", "(", "connection", "=>", "{", "const", "driver", "=", "driversResource", ".", "get", "(", "connection", ".", "driverId", ")", ";", "return", "(", "<", "GrantedConnectionsTableItem", "key", "=", "{", "connection", ".", "id", "}", "id", "=", "{", "connection", ".", "id", "}", "name", "=", "{", "connection", ".", "name", "}", "tooltip", "=", "{", "connection", ".", "name", "}", "host", "=", "{", "`${", "connection", ".", "host", "||", "''", "}${", "connection", ".", "port", "?", "':'", "+", "connection", ".", "port", ":", "''", "}`", "}", "icon", "=", "{", "driver", "?.", "icon", "}", "disabled", "=", "{", "disabled", "}", "/", ">", ")", ";", "}", ")", "}", "<", "/TableBody>", "<", "/Table>", "<", "/table-container>", "<", "/container>", "<", "/Group>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
353
[ "import", "{", "computed", "}", "from", "'mobx'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useEffect", ",", "useMemo", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "TabContainerPanelComponent", ",", "useTab", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ColoredContainer", ",", "Container", ",", "Group", ",", "InfoItem", ",", "Loader", ",", "TextPlaceholder", ",", "useMapResource", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "DBDriverResource", ",", "isCloudConnection", "}", "from", "'@cloudbeaver/core-connections'", ";", "import", "{", "TLocalizationToken", ",", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "CachedMapAllKey", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "ConnectionsResource", "}", "from", "'@cloudbeaver/plugin-connections-administration'", ";", "import", "type", "{", "IRoleFormProps", "}", "from", "'../IRoleFormProps'", ";", "import", "{", "ConnectionList", "}", "from", "'./ConnectionList'", ";", "import", "{", "GrantedConnectionList", "}", "from", "'./GrantedConnectionsList'", ";", "import", "{", "useGrantedConnections", "}", "from", "'./useGrantedConnections'", ";", "const", "styles", "=", "css", "`\n ColoredContainer {\n flex: 1;\n height: 100%;\n box-sizing: border-box;\n }\n Group {\n max-height: 100%;\n position: relative;\n overflow: auto !important;\n }\n Loader {\n z-index: 2;\n }\n`", ";", "export", "const", "GrantedConnections", "=", "observer", "(", "function", "GrantedConnections", "(", "{", "tabId", ",", "state", ":", "formState", ",", "}", ")", "{", "const", "style", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ",", "styles", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "state", "=", "useGrantedConnections", "(", "formState", ".", "config", ",", "formState", ".", "mode", ")", ";", "const", "{", "selected", "}", "=", "useTab", "(", "tabId", ")", ";", "const", "dbDriverResource", "=", "useMapResource", "(", "GrantedConnections", ",", "DBDriverResource", ",", "CachedMapAllKey", ",", "{", "isActive", ":", "(", ")", "=>", "selected", "}", ")", ";", "const", "connections", "=", "useMapResource", "(", "GrantedConnections", ",", "ConnectionsResource", ",", "CachedMapAllKey", ",", "{", "isActive", ":", "(", ")", "=>", "selected", "}", ")", ";", "const", "grantedConnections", "=", "useMemo", "(", "(", ")", "=>", "computed", "(", "(", ")", "=>", "connections", ".", "resource", ".", "values", ".", "filter", "(", "connection", "=>", "state", ".", "state", ".", "grantedSubjects", ".", "includes", "(", "connection", ".", "id", ")", ")", ")", ",", "[", "state", ".", "state", ".", "grantedSubjects", ",", "connections", ".", "resource", "]", ")", ";", "useEffect", "(", "(", ")", "=>", "{", "if", "(", "selected", "&&", "!", "state", ".", "state", ".", "loaded", ")", "{", "state", ".", "load", "(", ")", ";", "}", "}", ",", "[", "selected", ",", "state", ".", "state", ".", "loaded", "]", ")", ";", "if", "(", "!", "selected", ")", "{", "return", "null", ";", "}", "let", "info", "=", "null", ";", "const", "cloudExists", "=", "connections", ".", "resource", ".", "values", ".", "some", "(", "isCloudConnection", ")", ";", "if", "(", "cloudExists", ")", "{", "info", "=", "'cloud_connections_access_placeholder'", ";", "}", "if", "(", "formState", ".", "mode", "===", "'edit'", "&&", "state", ".", "changed", ")", "{", "info", "=", "'ui_save_reminder'", ";", "}", "return", "styled", "(", "style", ")", "(", "<", "Loader", "state", "=", "{", "[", "connections", ",", "dbDriverResource", ",", "state", ".", "state", "]", "}", ">", "{", "(", ")", "=>", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", "gap", "vertical", ">", "{", "!", "connections", ".", "resource", ".", "values", ".", "length", "?", "(", "<", "Group", "large", ">", "<", "TextPlaceholder", ">", "{", "translate", "(", "'administration_roles_role_granted_connections_empty'", ")", "}", "<", "/TextPlaceholder>", "<", "/Group>) : (<>", "{", "info", "&&", "<", "InfoItem", "info", "=", "{", "info", "}", "/", ">", "}", "<", "Container", "gap", "overflow", ">", "<", "GrantedConnectionList", "grantedConnections", "=", "{", "grantedConnections", ".", "get", "(", ")", "}", "disabled", "=", "{", "formState", ".", "disabled", "}", "onEdit", "=", "{", "state", ".", "edit", "}", "onRevoke", "=", "{", "state", ".", "revoke", "}", "/", ">", "{", "state", ".", "state", ".", "editing", "&&", "(", "<", "ConnectionList", "connectionList", "=", "{", "connections", ".", "resource", ".", "values", "}", "grantedSubjects", "=", "{", "state", ".", "state", ".", "grantedSubjects", "}", "disabled", "=", "{", "formState", ".", "disabled", "}", "onGrant", "=", "{", "state", ".", "grant", "}", "/", ">", ")", "}", "<", "/Container>", "<", "/>)}", "<", "/ColoredContainer>)}", "<", "/Loader>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, 18788, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 13909, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
354
[ "import", "{", "RolesResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Bootstrap", ",", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "type", "{", "IExecutionContextProvider", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "{", "GraphQLService", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "isArraysEqual", ",", "MetadataValueGetter", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "{", "roleContext", "}", "from", "'../Contexts/roleContext'", ";", "import", "type", "{", "IRoleFormProps", ",", "IRoleFormSubmitData", "}", "from", "'../IRoleFormProps'", ";", "import", "{", "RoleFormService", "}", "from", "'../RoleFormService'", ";", "import", "{", "GrantedConnections", "}", "from", "'./GrantedConnections'", ";", "import", "type", "{", "IGrantedConnectionsTabState", "}", "from", "'./IGrantedConnectionsTabState'", ";", "@", "injectable", "(", ")", "export", "class", "GrantedConnectionsTabService", "extends", "Bootstrap", "{", "private", "key", ":", "string", ";", "constructor", "(", "private", "readonly", "roleFormService", ",", "private", "readonly", "rolesResource", ",", "private", "readonly", "graphQLService", ",", "private", "readonly", "notificationService", ")", "{", "super", "(", ")", ";", "this", ".", "key", "=", "'granted-connections'", ";", "}", "register", "(", ")", "{", "this", ".", "roleFormService", ".", "tabsContainer", ".", "add", "(", "{", "key", ":", "this", ".", "key", ",", "name", ":", "'administration_roles_role_granted_connections_tab_title'", ",", "title", ":", "'administration_roles_role_granted_connections_tab_title'", ",", "order", ":", "3", ",", "stateGetter", ":", "context", "=>", "this", ".", "stateGetter", "(", "context", ")", ",", "panel", ":", "(", ")", "=>", "GrantedConnections", ",", "}", ")", ";", "this", ".", "roleFormService", ".", "formSubmittingTask", ".", "addHandler", "(", "this", ".", "save", ".", "bind", "(", "this", ")", ")", ";", "}", "load", "(", ")", "{", "}", "private", "stateGetter", "(", "context", ")", "{", "return", "(", ")", "=>", "(", "{", "loading", ":", "false", ",", "loaded", ":", "false", ",", "editing", ":", "false", ",", "grantedSubjects", ":", "[", "]", ",", "initialGrantedSubjects", ":", "[", "]", ",", "}", ")", ";", "}", "private", "async", "save", "(", "data", ",", "contexts", ")", "{", "const", "config", "=", "contexts", ".", "getContext", "(", "roleContext", ")", ";", "const", "status", "=", "contexts", ".", "getContext", "(", "this", ".", "roleFormService", ".", "configurationStatusContext", ")", ";", "if", "(", "!", "status", ".", "saved", ")", "{", "return", ";", "}", "const", "state", "=", "this", ".", "roleFormService", ".", "tabsContainer", ".", "getTabState", "<", "IGrantedConnectionsTabState", ">", "(", "data", ".", "state", ".", "partsState", ",", "this", ".", "key", ",", "{", "state", ":", "data", ".", "state", "}", ")", ";", "if", "(", "!", "config", ".", "roleId", "||", "!", "state", ".", "loaded", ")", "{", "return", ";", "}", "const", "grantInfo", "=", "await", "this", ".", "rolesResource", ".", "getSubjectConnectionAccess", "(", "config", ".", "roleId", ")", ";", "const", "initial", "=", "grantInfo", ".", "map", "(", "info", "=>", "info", ".", "connectionId", ")", ";", "const", "changed", "=", "!", "isArraysEqual", "(", "initial", ",", "state", ".", "grantedSubjects", ")", ";", "if", "(", "!", "changed", ")", "{", "return", ";", "}", "try", "{", "await", "this", ".", "graphQLService", ".", "sdk", ".", "setSubjectConnectionAccess", "(", "{", "subjectId", ":", "config", ".", "roleId", ",", "connections", ":", "state", ".", "grantedSubjects", ",", "}", ")", ";", "state", ".", "loaded", "=", "false", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, 8926, null, null, null, 950, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 0, null, 5681, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
355
[ "import", "type", "{", "AdminUserInfoFragment", "}", "from", "'@cloudbeaver/core-sdk'", ";", "param", "{", "AdminUserInfoFragment", "[", "]", "}", "users", "param", "{", "string", "}", "filter", "export", "function", "getFilteredUsers", "(", "users", ",", "filter", ")", "{", "return", "users", ".", "filter", "(", "user", "=>", "user", ".", "userId", ".", "toLowerCase", "(", ")", ".", "includes", "(", "filter", ".", "toLowerCase", "(", ")", ")", ")", ".", "sort", "(", "(", "a", ",", "b", ")", "=>", "(", "a", ".", "userId", ")", ".", "localeCompare", "(", "b", ".", "userId", ")", ")", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, 5, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
356
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "StaticImage", ",", "TableColumnValue", ",", "TableItem", ",", "TableItemSelect", "}", "from", "'@cloudbeaver/core-blocks'", ";", "interface", "Props", "{", "id", ":", "any", ";", "name", ":", "string", ";", "icon", ":", "string", ";", "disabled", ":", "boolean", ";", "iconTooltip", "?", ":", "string", ";", "tooltip", "?", ":", "string", ";", "className", "?", ":", "string", ";", "}", "const", "style", "=", "css", "`\n StaticImage {\n display: flex;\n width: 24px;\n }\n`", ";", "export", "const", "GrantedUsersTableItem", "=", "observer", "<", "Props", ">", "(", "function", "GrantedUsersTableItem", "(", "{", "id", ",", "name", ",", "icon", ",", "iconTooltip", ",", "tooltip", ",", "disabled", ",", "className", ",", "}", ")", "{", "return", "styled", "(", "style", ")", "(", "<", "TableItem", "item", "=", "{", "id", "}", "title", "=", "{", "tooltip", "}", "disabled", "=", "{", "disabled", "}", "selectDisabled", "=", "{", "disabled", "}", "className", "=", "{", "className", "}", ">", "<", "TableColumnValue", "centerContent", "flex", ">", "<", "TableItemSelect", "disabled", "=", "{", "disabled", "}", "/", ">", "<", "/TableColumnValue>", "<", "TableColumnValue", ">", "<", "StaticImage", "icon", "=", "{", "icon", "}", "title", "=", "{", "iconTooltip", "}", "/", ">", "<", "/TableColumnValue>", "<", "TableColumnValue", ">", "{", "name", "}", "<", "/TableColumnValue>", "<", "/TableItem>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
357
[ "import", "{", "observable", "}", "from", "'mobx'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useCallback", ",", "useState", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Table", ",", "TableBody", ",", "TableItem", ",", "TableColumnValue", ",", "BASE_CONTAINERS_STYLES", ",", "Group", ",", "Button", ",", "useObjectRef", ",", "getComputed", ",", "getSelectedItems", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "TLocalizationToken", ",", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "AdminUserInfoFragment", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "getFilteredUsers", "}", "from", "'./getFilteredUsers'", ";", "import", "{", "GrantedUsersTableHeader", ",", "IFilterState", "}", "from", "'./GrantedUsersTableHeader/GrantedUsersTableHeader'", ";", "import", "{", "GrantedUsersTableInnerHeader", "}", "from", "'./GrantedUsersTableHeader/GrantedUsersTableInnerHeader'", ";", "import", "{", "GrantedUsersTableItem", "}", "from", "'./GrantedUsersTableItem'", ";", "const", "styles", "=", "composes", "(", "css", "`\n Table {\n composes: theme-background-surface theme-text-on-surface from global;\n }\n `", ",", "css", "`\n Group {\n position: relative;\n }\n Group, container, table-container {\n height: 100%;\n }\n container {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n GrantedUsersTableHeader {\n flex: 0 0 auto;\n }\n table-container {\n overflow: auto;\n }\n `", ")", ";", "interface", "Props", "{", "grantedUsers", ":", "AdminUserInfoFragment", "[", "]", ";", "disabled", ":", "boolean", ";", "onRevoke", ":", "(", "subjectIds", ":", "string", "[", "]", ")", "=>", "void", ";", "onEdit", ":", "(", ")", "=>", "void", ";", "}", "export", "const", "GrantedUserList", "=", "observer", "<", "Props", ">", "(", "function", "GrantedUserList", "(", "{", "grantedUsers", ",", "disabled", ",", "onRevoke", ",", "onEdit", ",", "}", ")", "{", "const", "props", "=", "useObjectRef", "(", "{", "onRevoke", ",", "onEdit", "}", ")", ";", "const", "style", "=", "useStyles", "(", "styles", ",", "BASE_CONTAINERS_STYLES", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "usersResource", "=", "useService", "(", "UsersResource", ")", ";", "const", "[", "selectedSubjects", "]", "=", "useState", "<", "Map", "<", "any", ",", "boolean", ">", ">", "(", "(", ")", "=>", "observable", "(", "new", "Map", "(", ")", ")", ")", ";", "const", "[", "filterState", "]", "=", "useState", "<", "IFilterState", ">", "(", "(", ")", "=>", "observable", "(", "{", "filterValue", ":", "''", "}", ")", ")", ";", "const", "selected", "=", "getComputed", "(", "(", ")", "=>", "Array", ".", "from", "(", "selectedSubjects", ".", "values", "(", ")", ")", ".", "some", "(", "v", "=>", "v", ")", ")", ";", "const", "users", "=", "getFilteredUsers", "(", "grantedUsers", ",", "filterState", ".", "filterValue", ")", ";", "const", "keys", "=", "users", ".", "map", "(", "user", "=>", "user", ".", "userId", ")", ";", "const", "revoke", "=", "useCallback", "(", "(", ")", "=>", "{", "props", ".", "onRevoke", "(", "getSelectedItems", "(", "selectedSubjects", ")", ")", ";", "selectedSubjects", ".", "clear", "(", ")", ";", "}", ",", "[", "]", ")", ";", "let", "tableInfoText", "=", "null", ";", "if", "(", "!", "users", ".", "length", ")", "{", "if", "(", "filterState", ".", "filterValue", ")", "{", "tableInfoText", "=", "'ui_search_no_result_placeholder'", ";", "}", "else", "{", "tableInfoText", "=", "'ui_no_items_placeholder'", ";", "}", "}", "return", "styled", "(", "style", ")", "(", "<", "Group", "box", "medium", "overflow", ">", "<", "container", ">", "<", "GrantedUsersTableHeader", "filterState", "=", "{", "filterState", "}", "disabled", "=", "{", "disabled", "}", ">", "<", "Button", "disabled", "=", "{", "disabled", "||", "!", "selected", "}", "mod", "=", "{", "[", "'outlined'", "]", "}", "onClick", "=", "{", "revoke", "}", ">", "{", "translate", "(", "'ui_delete'", ")", "}", "<", "/Button>", "<", "Button", "disabled", "=", "{", "disabled", "}", "mod", "=", "{", "[", "'unelevated'", "]", "}", "onClick", "=", "{", "props", ".", "onEdit", "}", ">", "{", "translate", "(", "'ui_edit'", ")", "}", "<", "/Button>", "<", "/GrantedUsersTableHeader>", "<", "table", "-", "container", ">", "<", "Table", "keys", "=", "{", "keys", "}", "selectedItems", "=", "{", "selectedSubjects", "}", "isItemSelectable", "=", "{", "item", "=>", "!", "usersResource", ".", "isActiveUser", "(", "item", ")", "}", ">", "<", "GrantedUsersTableInnerHeader", "disabled", "=", "{", "disabled", "}", "/>", "<", "TableBody", ">", "<", "TableItem", "item", "=", "'tableInfo'", "selectDisabled", ">", "{", "tableInfoText", "&&", "(", "<", "TableColumnValue", "colSpan", "=", "{", "5", "}", ">", "{", "translate", "(", "tableInfoText", ")", "}", "<", "/TableColumnValue>)}", "<", "/TableItem>", "{", "users", ".", "map", "(", "user", "=>", "{", "const", "activeUser", "=", "usersResource", ".", "isActiveUser", "(", "user", ".", "userId", ")", ";", "return", "(", "<", "GrantedUsersTableItem", "key", "=", "{", "user", ".", "userId", "}", "id", "=", "{", "user", ".", "userId", "}", "name", "=", "{", "`${", "user", ".", "userId", "}${", "activeUser", "?", "' (you)'", ":", "''", "}`", "}", "tooltip", "=", "{", "activeUser", "?", "translate", "(", "'administration_roles_role_granted_users_permission_denied'", ")", ":", "user", ".", "userId", "}", "icon", "=", "'/icons/user.svg'", "iconTooltip", "=", "{", "translate", "(", "'authentication_user_icon_tooltip'", ")", "}", "disabled", "=", "{", "disabled", "}", "/", ">", ")", ";", "}", ")", "}", "<", "/TableBody>", "<", "/Table>", "<", "/table-container>", "<", "/container>", "<", "/Group>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
358
[ "import", "{", "action", ",", "computed", ",", "observable", "}", "from", "'mobx'", ";", "import", "{", "RoleInfo", ",", "RolesResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "useTabState", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "useObservableRef", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "isArraysEqual", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "type", "{", "RoleFormMode", "}", "from", "'../IRoleFormProps'", ";", "import", "type", "{", "IGrantedUsersTabState", "}", "from", "'./IGrantedUsersTabState'", ";", "interface", "State", "{", "state", ":", "IGrantedUsersTabState", ";", "changed", ":", "boolean", ";", "edit", ":", "(", ")", "=>", "void", ";", "revoke", ":", "(", "subjectIds", ":", "string", "[", "]", ")", "=>", "void", ";", "grant", ":", "(", "subjectIds", ":", "string", "[", "]", ")", "=>", "void", ";", "load", ":", "(", ")", "=>", "Promise", "<", "void", ">", ";", "}", "export", "function", "useGrantedUsers", "(", "role", ",", "mode", ")", "{", "const", "resource", "=", "useService", "(", "RolesResource", ")", ";", "const", "notificationService", "=", "useService", "(", "NotificationService", ")", ";", "const", "state", "=", "useTabState", "<", "IGrantedUsersTabState", ">", "(", ")", ";", "return", "useObservableRef", "(", "(", ")", "=>", "(", "{", "get", "changed", "(", ")", "{", "return", "!", "isArraysEqual", "(", "this", ".", "state", ".", "initialGrantedUsers", ",", "this", ".", "state", ".", "grantedUsers", ")", ";", "}", ",", "edit", "(", ")", "{", "this", ".", "state", ".", "editing", "=", "!", "this", ".", "state", ".", "editing", ";", "}", ",", "revoke", "(", "subjectIds", ")", "{", "this", ".", "state", ".", "grantedUsers", "=", "this", ".", "state", ".", "grantedUsers", ".", "filter", "(", "subject", "=>", "!", "subjectIds", ".", "includes", "(", "subject", ")", ")", ";", "}", ",", "grant", "(", "subjectIds", ")", "{", "this", ".", "state", ".", "grantedUsers", ".", "push", "(", "...", "subjectIds", ")", ";", "}", ",", "async", "load", "(", ")", "{", "if", "(", "this", ".", "state", ".", "loaded", "||", "this", ".", "state", ".", "loading", ")", "{", "return", ";", "}", "try", "{", "this", ".", "state", ".", "loading", "=", "true", ";", "if", "(", "this", ".", "mode", "===", "'edit'", ")", "{", "const", "grantedUsers", "=", "await", "this", ".", "resource", ".", "loadGrantedUsers", "(", "this", ".", "role", ".", "roleId", ")", ";", "this", ".", "state", ".", "grantedUsers", "=", "grantedUsers", ";", "this", ".", "state", ".", "initialGrantedUsers", "=", "this", ".", "state", ".", "grantedUsers", ".", "slice", "(", ")", ";", "}", "this", ".", "state", ".", "loaded", "=", "true", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "\"Can't load users info\"", ")", ";", "}", "finally", "{", "this", ".", "state", ".", "loading", "=", "false", ";", "}", "}", ",", "}", ")", ",", "{", "state", ":", "observable", ".", "ref", ",", "changed", ":", "computed", ",", "edit", ":", "action", ".", "bound", ",", "revoke", ":", "action", ".", "bound", ",", "grant", ":", "action", ".", "bound", "}", ",", "{", "state", ",", "role", ",", "mode", ",", "resource", ",", "notificationService", "}", ",", "[", "'load'", "]", ")", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 51, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
359
[ "import", "{", "computed", "}", "from", "'mobx'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useEffect", ",", "useMemo", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TabContainerPanelComponent", ",", "useTab", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ColoredContainer", ",", "Container", ",", "Group", ",", "InfoItem", ",", "Loader", ",", "TextPlaceholder", ",", "useMapResource", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "CachedMapAllKey", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "type", "{", "IRoleFormProps", "}", "from", "'../IRoleFormProps'", ";", "import", "{", "GrantedUserList", "}", "from", "'./GrantedUserList'", ";", "import", "{", "useGrantedUsers", "}", "from", "'./useGrantedUsers'", ";", "import", "{", "UserList", "}", "from", "'./UserList'", ";", "const", "styles", "=", "css", "`\n ColoredContainer {\n flex: 1;\n height: 100%;\n box-sizing: border-box;\n }\n Group {\n max-height: 100%;\n position: relative;\n overflow: auto !important;\n }\n Loader {\n z-index: 2;\n }\n`", ";", "export", "const", "GrantedUsers", "=", "observer", "(", "function", "GrantedUsers", "(", "{", "tabId", ",", "state", ":", "formState", ",", "}", ")", "{", "const", "style", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ",", "styles", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "state", "=", "useGrantedUsers", "(", "formState", ".", "config", ",", "formState", ".", "mode", ")", ";", "const", "{", "selected", "}", "=", "useTab", "(", "tabId", ")", ";", "const", "users", "=", "useMapResource", "(", "GrantedUsers", ",", "UsersResource", ",", "selected", "?", "CachedMapAllKey", ":", "null", ")", ";", "const", "grantedUsers", "=", "useMemo", "(", "(", ")", "=>", "computed", "(", "(", ")", "=>", "users", ".", "resource", ".", "values", ".", "filter", "(", "user", "=>", "state", ".", "state", ".", "grantedUsers", ".", "includes", "(", "user", ".", "userId", ")", ")", ")", ",", "[", "state", ".", "state", ".", "grantedUsers", ",", "users", ".", "resource", "]", ")", ";", "useEffect", "(", "(", ")", "=>", "{", "if", "(", "selected", "&&", "!", "state", ".", "state", ".", "loaded", ")", "{", "state", ".", "load", "(", ")", ";", "}", "}", ",", "[", "selected", ",", "state", ".", "state", ".", "loaded", "]", ")", ";", "if", "(", "!", "selected", ")", "{", "return", "null", ";", "}", "return", "styled", "(", "style", ")", "(", "<", "Loader", "state", "=", "{", "[", "users", ",", "state", ".", "state", "]", "}", ">", "{", "(", ")", "=>", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", "gap", "vertical", ">", "{", "!", "users", ".", "resource", ".", "values", ".", "length", "?", "(", "<", "Group", "keepSize", "large", ">", "<", "TextPlaceholder", ">", "{", "translate", "(", "'administration_roles_role_granted_users_empty'", ")", "}", "<", "/TextPlaceholder>", "<", "/Group>) : (<>", "{", "formState", ".", "mode", "===", "'edit'", "&&", "state", ".", "changed", "&&", "<", "InfoItem", "info", "=", "'ui_save_reminder'", "/>}", "<", "Container", "gap", "overflow", ">", "<", "GrantedUserList", "grantedUsers", "=", "{", "grantedUsers", ".", "get", "(", ")", "}", "disabled", "=", "{", "formState", ".", "disabled", "}", "onEdit", "=", "{", "state", ".", "edit", "}", "onRevoke", "=", "{", "state", ".", "revoke", "}", "/", ">", "{", "state", ".", "state", ".", "editing", "&&", "(", "<", "UserList", "userList", "=", "{", "users", ".", "resource", ".", "values", "}", "grantedUsers", "=", "{", "state", ".", "state", ".", "grantedUsers", "}", "disabled", "=", "{", "formState", ".", "disabled", "}", "onGrant", "=", "{", "state", ".", "grant", "}", "/", ">", ")", "}", "<", "/Container>", "<", "/>)}", "<", "/ColoredContainer>)}", "<", "/Loader>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, 18788, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 13909, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
360
[ "import", "{", "RolesResource", ",", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Bootstrap", ",", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "type", "{", "IExecutionContextProvider", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "{", "isArraysEqual", ",", "MetadataValueGetter", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "{", "roleContext", "}", "from", "'../Contexts/roleContext'", ";", "import", "type", "{", "IRoleFormProps", ",", "IRoleFormSubmitData", "}", "from", "'../IRoleFormProps'", ";", "import", "{", "RoleFormService", "}", "from", "'../RoleFormService'", ";", "import", "{", "GrantedUsers", "}", "from", "'./GrantedUsers'", ";", "import", "type", "{", "IGrantedUsersTabState", "}", "from", "'./IGrantedUsersTabState'", ";", "@", "injectable", "(", ")", "export", "class", "GrantedUsersTabService", "extends", "Bootstrap", "{", "private", "key", ":", "string", ";", "constructor", "(", "private", "readonly", "roleFormService", ",", "private", "readonly", "usersResource", ",", "private", "readonly", "rolesResource", ",", "private", "readonly", "notificationService", ")", "{", "super", "(", ")", ";", "this", ".", "key", "=", "'granted-users'", ";", "}", "register", "(", ")", "{", "this", ".", "roleFormService", ".", "tabsContainer", ".", "add", "(", "{", "key", ":", "this", ".", "key", ",", "name", ":", "'administration_roles_role_granted_users_tab_title'", ",", "title", ":", "'administration_roles_role_granted_users_tab_title'", ",", "order", ":", "2", ",", "stateGetter", ":", "context", "=>", "this", ".", "stateGetter", "(", "context", ")", ",", "panel", ":", "(", ")", "=>", "GrantedUsers", ",", "}", ")", ";", "this", ".", "roleFormService", ".", "formSubmittingTask", ".", "addHandler", "(", "this", ".", "save", ".", "bind", "(", "this", ")", ")", ";", "}", "load", "(", ")", "{", "}", "private", "stateGetter", "(", "context", ")", "{", "return", "(", ")", "=>", "(", "{", "loading", ":", "false", ",", "loaded", ":", "false", ",", "editing", ":", "false", ",", "grantedUsers", ":", "[", "]", ",", "initialGrantedUsers", ":", "[", "]", ",", "}", ")", ";", "}", "private", "async", "save", "(", "data", ",", "contexts", ")", "{", "const", "config", "=", "contexts", ".", "getContext", "(", "roleContext", ")", ";", "const", "status", "=", "contexts", ".", "getContext", "(", "this", ".", "roleFormService", ".", "configurationStatusContext", ")", ";", "if", "(", "!", "status", ".", "saved", ")", "{", "return", ";", "}", "const", "state", "=", "this", ".", "roleFormService", ".", "tabsContainer", ".", "getTabState", "<", "IGrantedUsersTabState", ">", "(", "data", ".", "state", ".", "partsState", ",", "this", ".", "key", ",", "{", "state", ":", "data", ".", "state", "}", ")", ";", "if", "(", "!", "config", ".", "roleId", "||", "!", "state", ".", "loaded", ")", "{", "return", ";", "}", "const", "initial", "=", "await", "this", ".", "rolesResource", ".", "loadGrantedUsers", "(", "config", ".", "roleId", ")", ";", "const", "changed", "=", "!", "isArraysEqual", "(", "initial", ",", "state", ".", "grantedUsers", ")", ";", "if", "(", "!", "changed", ")", "{", "return", ";", "}", "const", "granted", "=", "[", "]", ";", "const", "revoked", "=", "[", "]", ";", "const", "revokedUsers", "=", "initial", ".", "filter", "(", "user", "=>", "!", "state", ".", "grantedUsers", ".", "includes", "(", "user", ")", ")", ";", "try", "{", "for", "(", "const", "user", "of", "revokedUsers", ")", "{", "await", "this", ".", "usersResource", ".", "revokeRole", "(", "user", ",", "config", ".", "roleId", ")", ";", "revoked", ".", "push", "(", "user", ")", ";", "}", "for", "(", "const", "user", "of", "state", ".", "grantedUsers", ")", "{", "if", "(", "!", "initial", ".", "includes", "(", "user", ")", ")", "{", "await", "this", ".", "usersResource", ".", "grantRole", "(", "user", ",", "config", ".", "roleId", ")", ";", "granted", ".", "push", "(", "user", ")", ";", "}", "}", "state", ".", "loaded", "=", "false", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ")", ";", "}", "if", "(", "granted", ".", "length", ")", "{", "status", ".", "info", "(", "`Added users: \"${", "granted", ".", "join", "(", "', '", ")", "}\"`", ")", ";", "}", "if", "(", "revoked", ".", "length", ")", "{", "status", ".", "info", "(", "`Deleted users: \"${", "revoked", ".", "join", "(", "', '", ")", "}\"`", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, 0, null, null, null, 950, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 0, null, 5681, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
361
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useRef", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "type", "{", "TabContainerPanelComponent", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ColoredContainer", ",", "Group", ",", "InputField", ",", "SubmittingForm", ",", "Textarea", ",", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "type", "{", "IRoleFormProps", "}", "from", "'../IRoleFormProps'", ";", "const", "styles", "=", "css", "`\n SubmittingForm {\n flex: 1;\n overflow: auto;\n }\n`", ";", "export", "const", "RoleOptions", "=", "observer", "(", "function", "RoleOptions", "(", "{", "state", ",", "}", ")", "{", "const", "formRef", "=", "useRef", "<", "HTMLFormElement", ">", "(", "null", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "style", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ",", "styles", ")", ";", "const", "edit", "=", "state", ".", "mode", "===", "'edit'", ";", "return", "styled", "(", "style", ")", "(", "<", "SubmittingForm", "ref", "=", "{", "formRef", "}", ">", "<", "ColoredContainer", "parent", "gap", "overflow", ">", "<", "Group", "small", "gap", ">", "<", "InputField", "name", "=", "'roleId'", "state", "=", "{", "state", ".", "config", "}", "readOnly", "=", "{", "state", ".", "readonly", "||", "edit", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "required", "tiny", "fill", ">", "{", "translate", "(", "'administration_roles_role_id'", ")", "}", "<", "/InputField>", "<", "InputField", "name", "=", "'roleName'", "state", "=", "{", "state", ".", "config", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "tiny", "fill", ">", "{", "translate", "(", "'administration_roles_role_name'", ")", "}", "<", "/InputField>", "<", "Textarea", "name", "=", "'description'", "state", "=", "{", "state", ".", "config", "}", "readOnly", "=", "{", "state", ".", "readonly", "}", "disabled", "=", "{", "state", ".", "disabled", "}", "tiny", "fill", ">", "{", "translate", "(", "'administration_roles_role_description'", ")", "}", "<", "/Textarea>", "<", "/Group>", "<", "/ColoredContainer>", "<", "/SubmittingForm>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, 18788, null, null, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
362
[ "import", "{", "RolesResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Bootstrap", ",", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "type", "{", "IExecutionContextProvider", "}", "from", "'@cloudbeaver/core-executor'", ";", "import", "{", "getUniqueName", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "{", "roleContext", "}", "from", "'../Contexts/roleContext'", ";", "import", "type", "{", "IRoleFormFillConfigData", ",", "IRoleFormSubmitData", "}", "from", "'../IRoleFormProps'", ";", "import", "{", "RoleFormService", "}", "from", "'../RoleFormService'", ";", "import", "{", "RoleOptions", "}", "from", "'./RoleOptions'", ";", "@", "injectable", "(", ")", "export", "class", "RoleOptionsTabService", "extends", "Bootstrap", "{", "constructor", "(", "private", "readonly", "roleFormService", ",", "private", "readonly", "roleResource", ")", "{", "super", "(", ")", ";", "}", "register", "(", ")", "{", "this", ".", "roleFormService", ".", "tabsContainer", ".", "add", "(", "{", "key", ":", "'options'", ",", "name", ":", "'ui_options'", ",", "order", ":", "1", ",", "panel", ":", "(", ")", "=>", "RoleOptions", ",", "}", ")", ";", "this", ".", "roleFormService", ".", "prepareConfigTask", ".", "addHandler", "(", "this", ".", "prepareConfig", ".", "bind", "(", "this", ")", ")", ";", "this", ".", "roleFormService", ".", "formValidationTask", ".", "addHandler", "(", "this", ".", "validate", ".", "bind", "(", "this", ")", ")", ";", "this", ".", "roleFormService", ".", "formSubmittingTask", ".", "addHandler", "(", "this", ".", "save", ".", "bind", "(", "this", ")", ")", ";", "this", ".", "roleFormService", ".", "fillConfigTask", ".", "addHandler", "(", "this", ".", "fillConfig", ".", "bind", "(", "this", ")", ")", ";", "}", "load", "(", ")", "{", "}", "private", "async", "prepareConfig", "(", "{", "state", ",", "}", ",", "contexts", ")", "{", "const", "config", "=", "contexts", ".", "getContext", "(", "roleContext", ")", ";", "config", ".", "roleId", "=", "state", ".", "config", ".", "roleId", ";", "if", "(", "state", ".", "config", ".", "roleName", ")", "{", "config", ".", "roleName", "=", "state", ".", "config", ".", "roleName", ".", "trim", "(", ")", ";", "if", "(", "state", ".", "mode", "===", "'create'", ")", "{", "const", "roleNames", "=", "this", ".", "roleResource", ".", "values", ".", "map", "(", "role", "=>", "role", ".", "roleName", ")", ".", "filter", "(", "Boolean", ")", "as", "string", "[", "]", ";", "config", ".", "roleName", "=", "getUniqueName", "(", "config", ".", "roleName", ",", "roleNames", ")", ";", "}", "}", "if", "(", "state", ".", "config", ".", "description", ")", "{", "config", ".", "description", "=", "state", ".", "config", ".", "description", ";", "}", "}", "private", "async", "validate", "(", "{", "state", ",", "}", ",", "contexts", ")", "{", "const", "validation", "=", "contexts", ".", "getContext", "(", "this", ".", "roleFormService", ".", "configurationValidationContext", ")", ";", "if", "(", "state", ".", "mode", "===", "'create'", ")", "{", "if", "(", "!", "state", ".", "config", ".", "roleId", ".", "trim", "(", ")", ")", "{", "validation", ".", "error", "(", "\"Field 'Role ID' can't be empty\"", ")", ";", "}", "if", "(", "this", ".", "roleResource", ".", "has", "(", "state", ".", "config", ".", "roleId", ")", ")", "{", "validation", ".", "error", "(", "`A role with ID \"${", "state", ".", "config", ".", "roleId", "}\" already exists`", ")", ";", "}", "}", "}", "private", "async", "save", "(", "{", "state", ",", "}", ",", "contexts", ")", "{", "const", "status", "=", "contexts", ".", "getContext", "(", "this", ".", "roleFormService", ".", "configurationStatusContext", ")", ";", "const", "config", "=", "contexts", ".", "getContext", "(", "roleContext", ")", ";", "const", "create", "=", "state", ".", "mode", "===", "'create'", ";", "try", "{", "if", "(", "create", ")", "{", "const", "role", "=", "await", "this", ".", "roleResource", ".", "createRole", "(", "config", ")", ";", "status", ".", "info", "(", "'Role created'", ")", ";", "status", ".", "info", "(", "role", ".", "roleId", ")", ";", "}", "else", "{", "const", "role", "=", "await", "this", ".", "roleResource", ".", "updateRole", "(", "config", ")", ";", "status", ".", "info", "(", "'Role updated'", ")", ";", "status", ".", "info", "(", "role", ".", "roleId", ")", ";", "}", "}", "catch", "(", "exception", ")", "{", "if", "(", "create", ")", "{", "status", ".", "error", "(", "'administration_roles_role_create_error'", ",", "exception", ")", ";", "}", "else", "{", "status", ".", "error", "(", "'administration_roles_role_save_error'", ",", "exception", ")", ";", "}", "}", "}", "private", "fillConfig", "(", "{", "state", ",", "updated", "}", ",", "contexts", ")", "{", "if", "(", "!", "updated", ")", "{", "return", ";", "}", "if", "(", "!", "state", ".", "info", ")", "{", "return", ";", "}", "if", "(", "state", ".", "info", ".", "roleId", ")", "{", "state", ".", "config", ".", "roleId", "=", "state", ".", "info", ".", "roleId", ";", "}", "if", "(", "state", ".", "info", ".", "roleName", ")", "{", "state", ".", "config", ".", "roleName", "=", "state", ".", "info", ".", "roleName", ";", "}", "if", "(", "state", ".", "info", ".", "description", ")", "{", "state", ".", "config", ".", "description", "=", "state", ".", "info", ".", "description", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
363
[ "import", "{", "observable", ",", "computed", ",", "makeObservable", "}", "from", "'mobx'", ";", "import", "{", "compareRoles", ",", "isLocalUser", ",", "RoleInfo", ",", "RolesResource", ",", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "DatabaseConnection", ",", "DBDriverResource", "}", "from", "'@cloudbeaver/core-connections'", ";", "import", "{", "injectable", ",", "IInitializableController", ",", "IDestructibleController", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "CommonDialogService", "}", "from", "'@cloudbeaver/core-dialogs'", ";", "import", "{", "ENotificationType", ",", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "type", "{", "TLocalizationToken", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "ErrorDetailsDialog", "}", "from", "'@cloudbeaver/core-notifications'", ";", "import", "{", "GQLErrorCatcher", ",", "AdminConnectionGrantInfo", ",", "AdminSubjectType", ",", "AdminUserInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "ConnectionsResource", "}", "from", "'@cloudbeaver/plugin-connections-administration'", ";", "interface", "IStatusMessage", "{", "status", ":", "ENotificationType", ";", "message", ":", "TLocalizationToken", ";", "}", "interface", "IUserCredentials", "{", "login", ":", "string", ";", "password", ":", "string", ";", "passwordRepeat", ":", "string", ";", "metaParameters", ":", "Record", "<", "string", ",", "any", ">", ";", "roles", ":", "Map", "<", "string", ",", "boolean", ">", ";", "}", "@", "injectable", "(", ")", "export", "class", "UserFormController", "implements", "IInitializableController", ",", "IDestructibleController", "{", "readonly", "selectedConnections", ":", "Map", "<", "string", ",", "boolean", ">", ";", "grantedConnections", ":", "AdminConnectionGrantInfo", "[", "]", ";", "isSaving", ":", "boolean", ";", "isLoading", ":", "boolean", ";", "credentials", ":", "IUserCredentials", ";", "statusMessage", ":", "IStatusMessage", "|", "null", ";", "get", "connections", "(", ")", ":", "DatabaseConnection", "[", "]", "{", "return", "Array", ".", "from", "(", "this", ".", "connectionsResource", ".", "data", ".", "values", "(", ")", ")", ";", "}", "get", "roles", "(", ")", ":", "RoleInfo", "[", "]", "{", "return", "Array", ".", "from", "(", "this", ".", "rolesResource", ".", "data", ".", "values", "(", ")", ")", ".", "sort", "(", "compareRoles", ")", ";", "}", "get", "local", "(", ")", ":", "boolean", "{", "return", "isLocalUser", "(", "this", ".", "user", ")", ";", "}", "user", "!", ":", "AdminUserInfo", ";", "readonly", "error", ":", "GQLErrorCatcher", ";", "private", "isDestructed", ":", "boolean", ";", "private", "connectionAccessChanged", ":", "boolean", ";", "private", "connectionAccessLoaded", ":", "boolean", ";", "private", "collapse", "!", ":", "(", ")", "=>", "void", ";", "private", "editing", "!", ":", "boolean", ";", "constructor", "(", "private", "notificationService", ",", "private", "commonDialogService", ",", "private", "rolesResource", ",", "private", "usersResource", ",", "private", "connectionsResource", ",", "private", "dbDriverResource", ")", "{", "makeObservable", "(", "this", ",", "{", "selectedConnections", ":", "observable", ",", "grantedConnections", ":", "observable", ",", "isSaving", ":", "observable", ",", "isLoading", ":", "observable", ",", "credentials", ":", "observable", ",", "statusMessage", ":", "observable", ",", "connections", ":", "computed", ",", "roles", ":", "computed", ",", "}", ")", ";", "this", ".", "selectedConnections", "=", "new", "Map", "(", ")", ";", "this", ".", "grantedConnections", "=", "[", "]", ";", "this", ".", "isSaving", "=", "false", ";", "this", ".", "isLoading", "=", "false", ";", "this", ".", "credentials", "=", "{", "login", ":", "''", ",", "password", ":", "''", ",", "passwordRepeat", ":", "''", ",", "metaParameters", ":", "{", "}", ",", "roles", ":", "new", "Map", "(", ")", ",", "}", ";", "this", ".", "error", "=", "new", "GQLErrorCatcher", "(", ")", ";", "this", ".", "isDestructed", "=", "false", ";", "this", ".", "connectionAccessChanged", "=", "false", ";", "this", ".", "connectionAccessLoaded", "=", "false", ";", "this", ".", "statusMessage", "=", "null", ";", "}", "init", "(", ")", "{", "}", "update", "(", "user", ",", "editing", ",", "collapse", ")", "{", "const", "prevUser", "=", "this", ".", "user", ";", "this", ".", "user", "=", "user", ";", "this", ".", "editing", "=", "editing", ";", "this", ".", "collapse", "=", "collapse", ";", "if", "(", "prevUser", "!==", "this", ".", "user", ")", "{", "this", ".", "loadRoles", "(", ")", ";", "}", "}", "destruct", "(", ")", "{", "this", ".", "isDestructed", "=", "true", ";", "}", "save", "=", "async", "(", ")", "=>", "{", "if", "(", "this", ".", "isSaving", ")", "{", "return", ";", "}", "if", "(", "!", "this", ".", "validate", "(", ")", ")", "{", "return", ";", "}", "this", ".", "isSaving", "=", "true", ";", "try", "{", "if", "(", "!", "this", ".", "editing", ")", "{", "await", "this", ".", "usersResource", ".", "create", "(", "{", "userId", ":", "this", ".", "credentials", ".", "login", ",", "credentials", ":", "{", "profile", ":", "'0'", ",", "credentials", ":", "{", "password", ":", "this", ".", "credentials", ".", "password", "}", ",", "}", ",", "roles", ":", "this", ".", "getGrantedRoles", "(", ")", ",", "metaParameters", ":", "this", ".", "credentials", ".", "metaParameters", ",", "grantedConnections", ":", "this", ".", "getGrantedConnections", "(", ")", ",", "}", ")", ";", "this", ".", "collapse", "(", ")", ";", "this", ".", "notificationService", ".", "logSuccess", "(", "{", "title", ":", "'authentication_administration_user_created'", "}", ")", ";", "}", "else", "{", "if", "(", "this", ".", "credentials", ".", "password", ")", "{", "await", "this", ".", "usersResource", ".", "updateCredentials", "(", "this", ".", "user", ".", "userId", ",", "{", "profile", ":", "'0'", ",", "credentials", ":", "{", "password", ":", "this", ".", "credentials", ".", "password", "}", ",", "}", ")", ";", "}", "await", "this", ".", "updateRoles", "(", ")", ";", "await", "this", ".", "saveConnectionPermissions", "(", ")", ";", "await", "this", ".", "saveMetaParameters", "(", ")", ";", "await", "this", ".", "usersResource", ".", "refresh", "(", "this", ".", "user", ".", "userId", ")", ";", "this", ".", "notificationService", ".", "logSuccess", "(", "{", "title", ":", "'authentication_administration_user_updated'", "}", ")", ";", "}", "this", ".", "error", ".", "clear", "(", ")", ";", "this", ".", "statusMessage", "=", "null", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "error", ".", "catch", "(", "exception", ")", ";", "const", "title", "=", "this", ".", "editing", "?", "'authentication_administration_user_update_failed'", ":", "'authentication_administration_user_create_failed'", ";", "if", "(", "this", ".", "isDestructed", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "title", ")", ";", "return", ";", "}", "this", ".", "setStatusMessage", "(", "this", ".", "error", ".", "responseMessage", "||", "exception", ".", "message", "||", "title", ",", "ENotificationType", ".", "Error", ")", ";", "}", "finally", "{", "this", ".", "isSaving", "=", "false", ";", "}", "}", ";", "showDetails", "=", "(", ")", "=>", "{", "if", "(", "this", ".", "error", ".", "exception", ")", "{", "this", ".", "commonDialogService", ".", "open", "(", "ErrorDetailsDialog", ",", "this", ".", "error", ".", "exception", ")", ";", "}", "}", ";", "handleConnectionsAccessChange", "=", "(", ")", "=>", "{", "this", ".", "connectionAccessChanged", "=", "true", ";", "}", ";", "loadConnectionsAccess", "=", "async", "(", ")", "=>", "{", "if", "(", "this", ".", "isLoading", "||", "this", ".", "connectionAccessLoaded", ")", "{", "return", ";", "}", "this", ".", "isLoading", "=", "true", ";", "try", "{", "if", "(", "this", ".", "editing", ")", "{", "this", ".", "grantedConnections", "=", "await", "this", ".", "usersResource", ".", "loadConnections", "(", "this", ".", "user", ".", "userId", ")", ";", "this", ".", "selectedConnections", ".", "clear", "(", ")", ";", "for", "(", "const", "connection", "of", "this", ".", "grantedConnections", ")", "{", "if", "(", "connection", ".", "subjectType", "!==", "AdminSubjectType", ".", "Role", ")", "{", "this", ".", "selectedConnections", ".", "set", "(", "connection", ".", "connectionId", ",", "true", ")", ";", "}", "}", "}", "this", ".", "connectionAccessLoaded", "=", "true", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_administration_user_connections_access_load_fail'", ",", "ENotificationType", ".", "Error", ")", ";", "}", "await", "this", ".", "loadConnections", "(", ")", ";", "this", ".", "isLoading", "=", "false", ";", "}", ";", "private", "setStatusMessage", "(", "message", ",", "status", ")", "{", "this", ".", "statusMessage", "=", "{", "message", ",", "status", ",", "}", ";", "}", "private", "validate", "(", ")", "{", "if", "(", "!", "this", ".", "editing", ")", "{", "if", "(", "!", "this", ".", "credentials", ".", "login", ".", "trim", "(", ")", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_user_login_not_set'", ",", "ENotificationType", ".", "Error", ")", ";", "return", ";", "}", "if", "(", "this", ".", "rolesResource", ".", "has", "(", "this", ".", "credentials", ".", "login", ")", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_user_login_cant_be_used'", ",", "ENotificationType", ".", "Error", ")", ";", "return", ";", "}", "if", "(", "this", ".", "usersResource", ".", "has", "(", "this", ".", "credentials", ".", "login", ")", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_user_login_already_exists'", ",", "ENotificationType", ".", "Error", ")", ";", "return", ";", "}", "}", "if", "(", "!", "this", ".", "isRoleSelected", "(", ")", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_user_role_not_set'", ",", "ENotificationType", ".", "Error", ")", ";", "return", ";", "}", "if", "(", "!", "this", ".", "credentials", ".", "password", "&&", "!", "this", ".", "editing", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_user_password_not_set'", ",", "ENotificationType", ".", "Error", ")", ";", "return", ";", "}", "if", "(", "this", ".", "credentials", ".", "password", "!==", "this", ".", "credentials", ".", "passwordRepeat", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_user_passwords_not_match'", ",", "ENotificationType", ".", "Error", ")", ";", "return", ";", "}", "return", "true", ";", "}", "private", "isRoleSelected", "(", ")", "{", "return", "Array", ".", "from", "(", "this", ".", "credentials", ".", "roles", ".", "values", "(", ")", ")", ".", "some", "(", "Boolean", ")", ";", "}", "private", "async", "updateRoles", "(", ")", "{", "for", "(", "const", "[", "roleId", ",", "checked", "]", "of", "this", ".", "credentials", ".", "roles", ")", "{", "if", "(", "checked", ")", "{", "if", "(", "!", "this", ".", "user", ".", "grantedRoles", ".", "includes", "(", "roleId", ")", ")", "{", "await", "this", ".", "usersResource", ".", "grantRole", "(", "this", ".", "user", ".", "userId", ",", "roleId", ",", "true", ")", ";", "}", "}", "else", "{", "await", "this", ".", "usersResource", ".", "revokeRole", "(", "this", ".", "user", ".", "userId", ",", "roleId", ",", "true", ")", ";", "}", "}", "}", "private", "getGrantedRoles", "(", ")", "{", "return", "Array", ".", "from", "(", "this", ".", "credentials", ".", "roles", ".", "keys", "(", ")", ")", ".", "filter", "(", "roleId", "=>", "this", ".", "credentials", ".", "roles", ".", "get", "(", "roleId", ")", ")", ";", "}", "private", "getGrantedConnections", "(", ")", "{", "return", "Array", ".", "from", "(", "this", ".", "selectedConnections", ".", "keys", "(", ")", ")", ".", "filter", "(", "connectionId", "=>", "{", "const", "connectionPermission", "=", "this", ".", "grantedConnections", ".", "find", "(", "connectionPermission", "=>", "connectionPermission", ".", "connectionId", "===", "connectionId", ")", ";", "return", "this", ".", "selectedConnections", ".", "get", "(", "connectionId", ")", "&&", "connectionPermission", "?.", "subjectType", "!==", "AdminSubjectType", ".", "Role", ";", "}", ")", ";", "}", "private", "async", "saveMetaParameters", "(", ")", "{", "await", "this", ".", "usersResource", ".", "setMetaParameters", "(", "this", ".", "user", ".", "userId", ",", "this", ".", "credentials", ".", "metaParameters", ")", ";", "}", "private", "async", "saveConnectionPermissions", "(", ")", "{", "if", "(", "!", "this", ".", "connectionAccessChanged", ")", "{", "return", ";", "}", "await", "this", ".", "usersResource", ".", "setConnections", "(", "this", ".", "user", ".", "userId", ",", "this", ".", "getGrantedConnections", "(", ")", ")", ";", "this", ".", "connectionAccessChanged", "=", "false", ";", "this", ".", "connectionAccessLoaded", "=", "false", ";", "await", "this", ".", "loadConnectionsAccess", "(", ")", ";", "}", "private", "async", "loadRoles", "(", ")", "{", "try", "{", "await", "this", ".", "rolesResource", ".", "loadAll", "(", ")", ";", "await", "this", ".", "loadUser", "(", ")", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "'Can\\'t load roles'", ")", ";", "}", "finally", "{", "this", ".", "isLoading", "=", "false", ";", "}", "}", "private", "async", "loadUser", "(", ")", "{", "try", "{", "this", ".", "credentials", ".", "metaParameters", "=", "this", ".", "user", ".", "metaParameters", ";", "this", ".", "credentials", ".", "login", "=", "this", ".", "user", ".", "userId", ";", "this", ".", "credentials", ".", "roles", "=", "new", "Map", "(", "this", ".", "user", ".", "grantedRoles", ".", "map", "(", "roleId", "=>", "(", "[", "roleId", ",", "true", "]", ")", ")", ")", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "'Can\\'t load user'", ")", ";", "}", "}", "private", "async", "loadConnections", "(", ")", "{", "try", "{", "await", "this", ".", "dbDriverResource", ".", "loadAll", "(", ")", ";", "await", "this", ".", "connectionsResource", ".", "loadAll", "(", ")", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "setStatusMessage", "(", "'authentication_administration_user_connections_access_connections_load_fail'", ",", "ENotificationType", ".", "Error", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 950, null, null, 12620, null, null, 0, null, null, 0, null, null, 0, null, null, 25945, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, 4, null, 0, null, 8, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
364
[ "import", "{", "computed", "}", "from", "'mobx'", ";", "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useCallback", ",", "useMemo", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "Table", ",", "TableHeader", ",", "TableColumnHeader", ",", "TableBody", ",", "TableItem", ",", "TableColumnValue", ",", "TableItemSelect", ",", "StaticImage", ",", "TextPlaceholder", ",", "ColoredContainer", ",", "BASE_CONTAINERS_STYLES", ",", "Group", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "type", "{", "TabContainerPanelComponent", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "DBDriverResource", ",", "isCloudConnection", "}", "from", "'@cloudbeaver/core-connections'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "AdminSubjectType", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "type", "{", "IUserFormProps", "}", "from", "'./UserFormService'", ";", "const", "styles", "=", "composes", "(", "css", "`\n Table {\n composes: theme-background-surface theme-text-on-surface from global;\n }\n `", ",", "css", "`\n Table {\n width: 100%;\n }\n StaticImage {\n display: flex;\n width: 24px;\n }\n `", ")", ";", "export", "const", "ConnectionAccess", "=", "observer", "(", "function", "ConnectionAccess", "(", "{", "controller", ",", "editing", ",", "}", ")", "{", "const", "style", "=", "useStyles", "(", "styles", ",", "BASE_CONTAINERS_STYLES", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "driversResource", "=", "useService", "(", "DBDriverResource", ")", ";", "const", "getConnectionPermission", "=", "useCallback", "(", "(", "connectionId", ")", "=>", "controller", ".", "grantedConnections", ".", "find", "(", "connectionPermission", "=>", "connectionPermission", ".", "connectionId", "===", "connectionId", ")", ",", "[", "controller", ".", "grantedConnections", "]", ")", ";", "const", "loading", "=", "controller", ".", "isLoading", ";", "const", "cloudExists", "=", "controller", ".", "connections", ".", "some", "(", "isCloudConnection", ")", ";", "const", "localConnections", "=", "useMemo", "(", "(", ")", "=>", "computed", "(", "(", ")", "=>", "controller", ".", "connections", ".", "filter", "(", "connection", "=>", "!", "isCloudConnection", "(", "connection", ")", ")", ")", ",", "[", "controller", ".", "connections", "]", ")", ";", "const", "isAdmin", "=", "controller", ".", "user", ".", "grantedRoles", ".", "includes", "(", "'admin'", ")", ";", "if", "(", "controller", ".", "connections", ".", "length", "===", "0", ")", "{", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", ">", "<", "Group", "keepSize", "large", ">", "<", "TextPlaceholder", ">", "{", "translate", "(", "'authentication_administration_user_connections_empty'", ")", "}", "<", "/TextPlaceholder>", "<", "/Group>", "<", "/ColoredContainer>);", "}", "if", "(", "isAdmin", ")", "{", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", ">", "<", "Group", "keepSize", "large", ">", "<", "TextPlaceholder", ">", "{", "translate", "(", "'connections_connection_access_admin_info'", ")", "}", "<", "/TextPlaceholder>", "<", "/Group>", "<", "/ColoredContainer>);", "}", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", "overflow", ">", "<", "Group", "box", "keepSize", "large", ">", "<", "Table", "selectedItems", "=", "{", "controller", ".", "selectedConnections", "}", "size", "=", "'big'", "onSelect", "=", "{", "controller", ".", "handleConnectionsAccessChange", "}", ">", "<", "TableHeader", ">", "<", "TableColumnHeader", "min", "/", ">", "<", "TableColumnHeader", "min", "/", ">", "<", "TableColumnHeader", ">", "{", "translate", "(", "'connections_connection_name'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'authentication_administration_user_connections_access_granted_by'", ")", "}", "<", "/TableColumnHeader>", "<", "/TableHeader>", "<", "TableBody", ">", "{", "cloudExists", "&&", "(", "<", "TableItem", "item", "=", "'cloudInfo'", "selectDisabled", ">", "<", "TableColumnValue", "colSpan", "=", "{", "5", "}", ">", "{", "translate", "(", "'cloud_connections_access_placeholder'", ")", "}", "<", "/TableColumnValue>", "<", "/TableItem>)}", "{", "localConnections", ".", "get", "(", ")", ".", "map", "(", "connection", "=>", "{", "const", "connectionPermission", "=", "getConnectionPermission", "(", "connection", ".", "id", ")", ";", "const", "driver", "=", "driversResource", ".", "get", "(", "connection", ".", "driverId", ")", ";", "const", "isRoleProvided", "=", "connectionPermission", "?.", "subjectType", "===", "AdminSubjectType", ".", "Role", ";", "let", "grantedBy", "=", "''", ";", "if", "(", "isRoleProvided", ")", "{", "grantedBy", "=", "`${", "translate", "(", "'authentication_administration_user_connections_access_granted_role'", ")", "} ${", "connectionPermission", "?.", "subjectId", "}`", ";", "}", "else", "if", "(", "connectionPermission", ")", "{", "grantedBy", "=", "translate", "(", "'authentication_administration_user_connections_access_granted_directly'", ")", ";", "}", "return", "(", "<", "TableItem", "key", "=", "{", "connection", ".", "id", "}", "item", "=", "{", "connection", ".", "id", "}", "selectDisabled", "=", "{", "isRoleProvided", "}", ">", "<", "TableColumnValue", "centerContent", "flex", ">", "<", "TableItemSelect", "disabled", "=", "{", "loading", "||", "isRoleProvided", "}", "checked", "=", "{", "isRoleProvided", "}", "/", ">", "<", "/TableColumnValue>", "<", "TableColumnValue", ">", "<", "StaticImage", "icon", "=", "{", "driver", "?.", "icon", "}", "/></TableColumnValue", ">", "<", "TableColumnValue", "title", "=", "{", "connection", ".", "name", "}", "ellipsis", ">", "{", "connection", ".", "name", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "grantedBy", "}", ">", "{", "grantedBy", "}", "<", "/TableColumnValue>", "<", "/TableItem>);", "}", ")", "}", "<", "/TableBody>", "<", "/Table>", "<", "/Group>", "<", "/ColoredContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 18788, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 13909, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
365
[ "import", "type", "{", "ObjectOrigin", "}", "from", "'@cloudbeaver/core-sdk'", ";", "export", "function", "getOriginTabId", "(", "tabId", ",", "origin", ")", "{", "return", "`${", "tabId", "}_${", "origin", ".", "type", "}_${", "origin", ".", "subType", "}`", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, 2, null, 2, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
366
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", "from", "'reshadow'", ";", "import", "{", "AUTH_PROVIDER_LOCAL_ID", ",", "UserInfoResource", ",", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TextPlaceholder", ",", "Loader", ",", "ExceptionMessage", ",", "BASE_CONTAINERS_STYLES", ",", "ColoredContainer", ",", "ObjectPropertyInfoForm", ",", "Group", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "TabContainerPanelComponent", ",", "useTab", ",", "useTabState", ",", "AuthenticationProvider", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "ObjectPropertyInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "getOriginTabId", "}", "from", "'./getOriginTabId'", ";", "import", "type", "{", "IUserFormProps", "}", "from", "'./UserFormService'", ";", "interface", "IState", "{", "properties", ":", "ObjectPropertyInfo", "[", "]", ";", "state", ":", "Record", "<", "string", ",", "any", ">", ";", "loading", ":", "boolean", ";", "loaded", ":", "boolean", ";", "exception", ":", "Error", "|", "null", ";", "}", "export", "const", "OriginInfoPanel", "=", "observer", "(", "function", "OriginInfoPanel", "(", "{", "tabId", ",", "user", ",", "}", ")", "{", "const", "style", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "usersResource", "=", "useService", "(", "UsersResource", ")", ";", "const", "userInfoService", "=", "useService", "(", "UserInfoResource", ")", ";", "const", "state", "=", "useTabState", "<", "IState", ">", "(", "(", ")", "=>", "(", "{", "origin", ":", "null", ",", "properties", ":", "[", "]", ",", "state", ":", "{", "}", ",", "loading", ":", "false", ",", "loaded", ":", "false", ",", "exception", ":", "null", ",", "}", ")", ")", ";", "let", "origin", "=", "user", ".", "origins", ".", "find", "(", "origin", "=>", "getOriginTabId", "(", "'origin'", ",", "origin", ")", "===", "tabId", ")", ";", "if", "(", "!", "origin", ")", "{", "origin", "=", "user", ".", "origins", "[", "0", "]", ";", "}", "const", "authorized", "=", "userInfoService", ".", "hasOrigin", "(", "origin", ")", ";", "const", "load", "=", "async", "(", ")", "=>", "{", "if", "(", "state", ".", "loaded", "||", "!", "origin", "||", "!", "userInfoService", ".", "hasOrigin", "(", "origin", ")", ")", "{", "return", ";", "}", "state", ".", "loading", "=", "true", ";", "state", ".", "exception", "=", "null", ";", "try", "{", "const", "userOrigin", "=", "await", "usersResource", ".", "load", "(", "user", ".", "userId", ",", "[", "'customIncludeOriginDetails'", "]", ")", ";", "const", "propertiesState", "=", "{", "}", "as", "Record", "<", "string", ",", "any", ">", ";", "let", "origin", "=", "userOrigin", ".", "origins", ".", "find", "(", "origin", "=>", "origin", ".", "type", "!==", "AUTH_PROVIDER_LOCAL_ID", ")", ";", "if", "(", "!", "origin", ")", "{", "origin", "=", "userOrigin", ".", "origins", "[", "0", "]", ";", "}", "for", "(", "const", "property", "of", "origin", ".", "details", "!", ")", "{", "propertiesState", "[", "property", ".", "id", "!", "]", "=", "property", ".", "value", ";", "}", "state", ".", "properties", "=", "origin", ".", "details", "!", ";", "state", ".", "state", "=", "propertiesState", ";", "state", ".", "loaded", "=", "true", ";", "}", "catch", "(", "error", ")", "{", "state", ".", "exception", "=", "error", ";", "}", "finally", "{", "state", ".", "loading", "=", "false", ";", "}", "}", ";", "const", "{", "selected", "}", "=", "useTab", "(", "tabId", ",", "load", ")", ";", "if", "(", "!", "selected", ")", "{", "return", "null", ";", "}", "if", "(", "state", ".", "loading", ")", "{", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", ">", "<", "Group", "large", ">", "<", "Loader", "key", "=", "\"static\"", "/", ">", "<", "/Group>", "<", "/ColoredContainer>);", "}", "if", "(", "state", ".", "exception", ")", "{", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", ">", "<", "Group", "large", ">", "<", "ExceptionMessage", "exception", "=", "{", "state", ".", "exception", "}", "onRetry", "=", "{", "load", "}", "/", ">", "<", "/Group>", "<", "/ColoredContainer>);", "}", "if", "(", "!", "authorized", ")", "{", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", ">", "<", "Group", "large", ">", "<", "AuthenticationProvider", "origin", "=", "{", "origin", "}", "onAuthenticate", "=", "{", "load", "}", "/", ">", "<", "/Group>", "<", "/ColoredContainer>);", "}", "if", "(", "!", "origin", "||", "(", "state", ".", "loaded", "&&", "state", ".", "properties", ".", "length", "===", "0", ")", ")", "{", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", ">", "<", "Group", "large", ">", "<", "TextPlaceholder", ">", "{", "translate", "(", "'authentication_administration_user_origin_empty'", ")", "}", "<", "/TextPlaceholder>", "<", "/Group>", "<", "/ColoredContainer>);", "}", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", ">", "<", "Group", "gap", "large", ">", "<", "ObjectPropertyInfoForm", "properties", "=", "{", "state", ".", "properties", "}", "state", "=", "{", "state", ".", "state", "}", "readOnly", "small", "autoHide", "/", ">", "<", "/Group>", "<", "/ColoredContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 18788, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 17, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
367
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", "from", "'reshadow'", ";", "import", "{", "TabTitle", ",", "Tab", ",", "TabContainerTabComponent", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "Translate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "getOriginTabId", "}", "from", "'./getOriginTabId'", ";", "import", "type", "{", "IUserFormProps", "}", "from", "'./UserFormService'", ";", "export", "const", "OriginInfoTab", "=", "observer", "(", "function", "OriginInfoTab", "(", "{", "tabId", ",", "user", ",", "controller", ",", "editing", ",", "style", ",", "...", "rest", "}", ")", "{", "const", "origin", "=", "user", ".", "origins", ".", "find", "(", "origin", "=>", "getOriginTabId", "(", "'origin'", ",", "origin", ")", "===", "tabId", ")", ";", "return", "styled", "(", "useStyles", "(", "style", ")", ")", "(", "<", "Tab", "{", "...", "rest", "}", "tabId", "=", "{", "tabId", "}", "style", "=", "{", "style", "}", ">", "<", "TabTitle", ">", "<", "Translate", "token", "=", "{", "origin", "?.", "displayName", "||", "'Origin'", "}", "/", ">", "<", "/TabTitle>", "<", "/Tab>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
368
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useCallback", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "UserMetaParametersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "type", "{", "TabContainerPanelComponent", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ColoredContainer", ",", "FieldCheckbox", ",", "Group", ",", "GroupTitle", ",", "InputField", ",", "Loader", ",", "ObjectPropertyInfoForm", ",", "useDataResource", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "uuid", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "type", "{", "IUserFormProps", "}", "from", "'./UserFormService'", ";", "const", "styles", "=", "css", "`\n Group {\n height: 100%;\n }\n`", ";", "export", "const", "UserInfo", "=", "observer", "(", "function", "UserInfo", "(", "{", "controller", ",", "editing", ",", "}", ")", "{", "const", "style", "=", "useStyles", "(", "BASE_CONTAINERS_STYLES", ",", "styles", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "userMetaParameters", "=", "useDataResource", "(", "UserInfo", ",", "UserMetaParametersResource", ",", "undefined", ")", ";", "const", "handleRoleChange", "=", "useCallback", "(", "(", "roleId", ",", "value", ")", "=>", "{", "controller", ".", "credentials", ".", "roles", ".", "set", "(", "roleId", ",", "value", ")", ";", "}", ",", "[", "]", ")", ";", "return", "styled", "(", "style", ")", "(", "<", "ColoredContainer", "parent", "gap", "overflow", ">", "<", "Group", "small", "gap", "vertical", "overflow", ">", "<", "GroupTitle", "keepSize", ">", "{", "translate", "(", "'authentication_user_credentials'", ")", "}", "<", "/GroupTitle>", "<", "InputField", "type", "=", "'text'", "name", "=", "'login'", "state", "=", "{", "controller", ".", "credentials", "}", "disabled", "=", "{", "controller", ".", "isSaving", "}", "readOnly", "=", "{", "editing", "}", "mod", "=", "'surface'", "keepSize", "tiny", "required", ">", "{", "translate", "(", "'authentication_user_name'", ")", "}", "<", "/InputField>", "{", "controller", ".", "local", "&&", "(", "<", ">", "<", "InputField", "type", "=", "'password'", "name", "=", "'password'", "state", "=", "{", "controller", ".", "credentials", "}", "autoComplete", "=", "'new-password'", "placeholder", "=", "{", "editing", "?", "'••••••'", ":", "''", "}", "disabled", "=", "{", "controller", ".", "isSaving", "}", "mod", "=", "'surface'", "keepSize", "tiny", "required", ">", "{", "translate", "(", "'authentication_user_password'", ")", "}", "<", "/InputField>", "<", "InputField", "type", "=", "'password'", "name", "=", "'passwordRepeat'", "state", "=", "{", "controller", ".", "credentials", "}", "placeholder", "=", "{", "editing", "?", "'••••••'", ":", "''", "}", "disabled", "=", "{", "controller", ".", "isSaving", "}", "mod", "=", "'surface'", "keepSize", "tiny", "required", ">", "{", "translate", "(", "'authentication_user_password_repeat'", ")", "}", "<", "/InputField>", "<", "/>)}", "<", "/Group>", "<", "Group", "small", "gap", "overflow", ">", "<", "GroupTitle", ">", "{", "translate", "(", "'authentication_user_role'", ")", "}", "<", "/GroupTitle>", "{", "controller", ".", "roles", ".", "map", "(", "role", "=>", "{", "const", "label", "=", "`${", "role", ".", "roleId", "}${", "role", ".", "roleName", "&&", "role", ".", "roleName", "!==", "role", ".", "roleId", "?", "' ('", "+", "role", ".", "roleName", "+", "')'", ":", "''", "}`", ";", "const", "tooltip", "=", "`${", "label", "}${", "role", ".", "description", "?", "'\\n'", "+", "role", ".", "description", ":", "''", "}`", ";", "return", "(", "<", "FieldCheckbox", "key", "=", "{", "role", ".", "roleId", "}", "id", "=", "{", "uuid", "(", ")", "}", "title", "=", "{", "tooltip", "}", "name", "=", "'role'", "checked", "=", "{", "!", "!", "controller", ".", "credentials", ".", "roles", ".", "get", "(", "role", ".", "roleId", ")", "}", "disabled", "=", "{", "controller", ".", "isSaving", "}", "onChange", "=", "{", "checked", "=>", "handleRoleChange", "(", "role", ".", "roleId", ",", "checked", ")", "}", ">", "{", "label", "}", "<", "/FieldCheckbox>);", "}", ")", "}", "<", "/Group>", "<", "Loader", "state", "=", "{", "userMetaParameters", "}", "inline", ">", "{", "(", ")", "=>", "userMetaParameters", ".", "data", ".", "length", ">", "0", "&&", "styled", "(", "style", ")", "(", "<", "Group", "small", "gap", "vertical", "overflow", ">", "<", "GroupTitle", "keepSize", ">", "{", "translate", "(", "'authentication_user_meta_parameters'", ")", "}", "<", "/GroupTitle>", "<", "ObjectPropertyInfoForm", "state", "=", "{", "controller", ".", "credentials", ".", "metaParameters", "}", "properties", "=", "{", "userMetaParameters", ".", "data", "}", "disabled", "=", "{", "controller", ".", "isSaving", "}", "keepSize", "tiny", "/", ">", "<", "/Group>)}", "<", "/Loader>", "<", "/ColoredContainer>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, 18788, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, 2, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
369
[ "import", "{", "AUTH_PROVIDER_LOCAL_ID", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "injectable", ",", "Bootstrap", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "ConnectionAccess", "}", "from", "'./ConnectionAccess'", ";", "import", "{", "getOriginTabId", "}", "from", "'./getOriginTabId'", ";", "import", "{", "OriginInfoPanel", "}", "from", "'./OriginInfoPanel'", ";", "import", "{", "OriginInfoTab", "}", "from", "'./OriginInfoTab'", ";", "import", "{", "UserFormService", "}", "from", "'./UserFormService'", ";", "import", "{", "UserInfo", "}", "from", "'./UserInfo'", ";", "@", "injectable", "(", ")", "export", "class", "UserFormBaseBootstrap", "extends", "Bootstrap", "{", "constructor", "(", "private", "readonly", "userFormService", ")", "{", "super", "(", ")", ";", "}", "register", "(", ")", "{", "this", ".", "userFormService", ".", "tabsContainer", ".", "add", "(", "{", "key", ":", "'info'", ",", "name", ":", "'authentication_administration_user_info'", ",", "title", ":", "'authentication_administration_user_info'", ",", "order", ":", "1", ",", "panel", ":", "(", ")", "=>", "UserInfo", ",", "}", ")", ";", "this", ".", "userFormService", ".", "tabsContainer", ".", "add", "(", "{", "key", ":", "'origin'", ",", "order", ":", "2", ",", "generator", ":", "(", "tabId", ",", "props", ")", "=>", "{", "const", "origins", "=", "props", "?.", "user", ".", "origins", ".", "filter", "(", "origin", "=>", "origin", ".", "type", "!==", "AUTH_PROVIDER_LOCAL_ID", ")", ";", "if", "(", "origins", "&&", "origins", ".", "length", ">", "0", ")", "{", "return", "origins", ".", "map", "(", "origin", "=>", "getOriginTabId", "(", "tabId", ",", "origin", ")", ")", ";", "}", "return", "[", "'origin'", "]", ";", "}", ",", "isHidden", ":", "(", "tabId", ",", "props", ")", "=>", "!", "props", "?.", "user", ".", "origins", ".", "some", "(", "origin", "=>", "origin", ".", "type", "!==", "AUTH_PROVIDER_LOCAL_ID", ")", ",", "panel", ":", "(", ")", "=>", "OriginInfoPanel", ",", "tab", ":", "(", ")", "=>", "OriginInfoTab", ",", "}", ")", ";", "this", ".", "userFormService", ".", "tabsContainer", ".", "add", "(", "{", "key", ":", "'connections_access'", ",", "name", ":", "'authentication_administration_user_connections_access'", ",", "title", ":", "'authentication_administration_user_connections_access'", ",", "order", ":", "3", ",", "panel", ":", "(", ")", "=>", "ConnectionAccess", ",", "onOpen", ":", "(", "{", "props", "}", ")", "=>", "props", ".", "controller", ".", "loadConnectionsAccess", "(", ")", ",", "}", ")", ";", "}", "load", "(", ")", "{", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
370
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "TabsState", ",", "TabList", ",", "TabPanelList", ",", "UNDERLINE_TAB_STYLES", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "Loader", ",", "SubmittingForm", ",", "Button", ",", "useFocus", ",", "StatusMessage", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useController", ",", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "AdminUserInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "UserFormController", "}", "from", "'./UserFormController'", ";", "import", "{", "UserFormService", "}", "from", "'./UserFormService'", ";", "const", "tabsStyles", "=", "css", "`\n TabList {\n position: relative;\n flex-shrink: 0;\n align-items: center;\n }\n Tab {\n height: 46px!important;\n text-transform: uppercase;\n font-weight: 500 !important;\n }\n`", ";", "const", "formStyles", "=", "composes", "(", "css", "`\n FormBox {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n content-box {\n composes: theme-background-secondary theme-text-on-secondary theme-border-color-background from global;\n }\n`", ",", "css", "`\n box {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n overflow: auto;\n }\n content-box {\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: auto;\n }\n SubmittingForm {\n flex: 1;\n overflow: auto;\n display: flex;\n flex-direction: column;\n }\n`", ")", ";", "const", "topBarStyles", "=", "composes", "(", "css", "`\n connection-top-bar {\n composes: theme-border-color-background theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n connection-top-bar {\n position: relative;\n display: flex;\n padding-top: 16px;\n\n &:before {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n border-bottom: solid 2px;\n border-color: inherit;\n }\n }\n connection-top-bar-tabs {\n overflow: hidden;\n flex: 1;\n }\n StatusMessage {\n padding: 0 16px;\n }\n connection-top-bar-actions {\n display: flex;\n align-items: center;\n padding: 0 24px;\n gap: 16px;\n }\n `", ")", ";", "interface", "Props", "{", "user", ":", "AdminUserInfo", ";", "editing", "?", ":", "boolean", ";", "onCancel", ":", "(", ")", "=>", "void", ";", "}", "export", "const", "UserForm", "=", "observer", "<", "Props", ">", "(", "function", "UserForm", "(", "{", "user", ",", "editing", "=", "false", ",", "onCancel", ",", "}", ")", "{", "const", "style", "=", "[", "tabsStyles", ",", "UNDERLINE_TAB_STYLES", "]", ";", "const", "styles", "=", "useStyles", "(", "style", ",", "topBarStyles", ",", "formStyles", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "service", "=", "useService", "(", "UserFormService", ")", ";", "const", "controller", "=", "useController", "(", "UserFormController", ")", ";", "const", "[", "focusedRef", "]", "=", "useFocus", "<", "HTMLFormElement", ">", "(", "{", "focusFirstChild", ":", "true", "}", ")", ";", "controller", ".", "update", "(", "user", ",", "editing", ",", "onCancel", ")", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "TabsState", "container", "=", "{", "service", ".", "tabsContainer", "}", "user", "=", "{", "user", "}", "controller", "=", "{", "controller", "}", "editing", "=", "{", "editing", "}", ">", "<", "box", ">", "<", "connection", "-", "top", "-", "bar", ">", "<", "connection", "-", "top", "-", "bar", "-", "tabs", ">", "<", "StatusMessage", "status", "=", "{", "controller", ".", "statusMessage", "?.", "status", "}", "message", "=", "{", "controller", ".", "statusMessage", "?.", "message", "}", "onShowDetails", "=", "{", "controller", ".", "error", ".", "hasDetails", "?", "controller", ".", "showDetails", ":", "undefined", "}", "/", ">", "<", "TabList", "style", "=", "{", "style", "}", "/", ">", "<", "/connection-top-bar-tabs>", "<", "connection", "-", "top", "-", "bar", "-", "actions", ">", "<", "Button", "type", "=", "\"button\"", "disabled", "=", "{", "controller", ".", "isSaving", "}", "mod", "=", "{", "[", "'outlined'", "]", "}", "onClick", "=", "{", "onCancel", "}", ">", "{", "translate", "(", "'ui_processing_cancel'", ")", "}", "<", "/Button>", "<", "Button", "type", "=", "\"button\"", "disabled", "=", "{", "controller", ".", "isSaving", "}", "mod", "=", "{", "[", "'unelevated'", "]", "}", "onClick", "=", "{", "controller", ".", "save", "}", ">", "{", "translate", "(", "!", "editing", "?", "'ui_processing_create'", ":", "'ui_processing_save'", ")", "}", "<", "/Button>", "<", "/connection-top-bar-actions>", "<", "/connection-top-bar>", "<", "content", "-", "box", ">", "<", "SubmittingForm", "ref", "=", "{", "focusedRef", "}", ">", "<", "TabPanelList", "style", "=", "{", "style", "}", "/", ">", "<", "Loader", "loading", "=", "{", "controller", ".", "isLoading", "}", "overlay", "/", ">", "<", "/SubmittingForm>", "<", "/content-box>", "<", "/box>", "<", "/TabsState>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
371
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "TableItem", ",", "TableColumnValue", ",", "TableItemSelect", ",", "TableItemExpand", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "type", "{", "ObjectPropertyInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "const", "styles", "=", "css", "`\n TableColumnValue[expand] {\n cursor: pointer;\n }\n`", ";", "interface", "Props", "{", "param", ":", "ObjectPropertyInfo", ";", "selectable", "?", ":", "boolean", ";", "}", "export", "const", "MetadataParam", "=", "observer", "<", "Props", ">", "(", "function", "MetadataParam", "(", "{", "param", ",", "selectable", "}", ")", "{", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "TableItem", "item", "=", "{", "param", ".", "id", "}", "selectDisabled", "=", "{", "!", "selectable", "}", ">", "{", "selectable", "&&", "(", "<", "TableColumnValue", "centerContent", "flex", ">", "<", "TableItemSelect", "/>", "<", "/TableColumnValue>)}", "<", "TableColumnValue", "centerContent", "flex", "expand", ">", "<", "TableItemExpand", "/>", "<", "/TableColumnValue>", "<", "TableColumnValue", "expand", ">", "{", "param", ".", "id", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", ">", "{", "param", ".", "description", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", ">", "<", "/TableColumnValue>", "<", "/TableItem>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
372
[ "import", "{", "observable", ",", "computed", ",", "makeObservable", "}", "from", "'mobx'", ";", "import", "{", "AdminUser", ",", "AuthProvidersResource", ",", "AUTH_PROVIDER_LOCAL_ID", ",", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "injectable", ",", "IInitializableController", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "CommonDialogService", ",", "ConfirmationDialogDelete", ",", "DialogueStateResult", "}", "from", "'@cloudbeaver/core-dialogs'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "LocalizationService", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "ErrorDetailsDialog", "}", "from", "'@cloudbeaver/core-notifications'", ";", "import", "{", "GQLErrorCatcher", ",", "resourceKeyList", "}", "from", "'@cloudbeaver/core-sdk'", ";", "@", "injectable", "(", ")", "export", "class", "MetaParametersController", "implements", "IInitializableController", "{", "isDeleting", "=", "false", ";", "readonly", "selectedItems", "=", "observable", "<", "string", ",", "boolean", ">", "(", "new", "Map", "(", ")", ")", ";", "readonly", "expandedItems", "=", "observable", "<", "string", ",", "boolean", ">", "(", "new", "Map", "(", ")", ")", ";", "readonly", "error", "=", "new", "GQLErrorCatcher", "(", ")", ";", "get", "users", "(", ")", ":", "AdminUser", "[", "]", "{", "return", "Array", ".", "from", "(", "this", ".", "usersResource", ".", "data", ".", "values", "(", ")", ")", ".", "sort", "(", "(", "a", ",", "b", ")", "=>", "{", "if", "(", "this", ".", "usersResource", ".", "isNew", "(", "a", ".", "userId", ")", "===", "this", ".", "usersResource", ".", "isNew", "(", "b", ".", "userId", ")", ")", "{", "return", "a", ".", "userId", ".", "localeCompare", "(", "b", ".", "userId", ")", ";", "}", "if", "(", "this", ".", "usersResource", ".", "isNew", "(", "a", ".", "userId", ")", ")", "{", "return", "-", "1", ";", "}", "return", "1", ";", "}", ")", ";", "}", "get", "isProvidersLoading", "(", ")", ":", "boolean", "{", "return", "this", ".", "authProvidersResource", ".", "isLoading", "(", ")", ";", "}", "get", "isLocalProviderAvailable", "(", ")", ":", "boolean", "{", "return", "this", ".", "authProvidersResource", ".", "has", "(", "AUTH_PROVIDER_LOCAL_ID", ")", ";", "}", "get", "isLoading", "(", ")", ":", "boolean", "{", "return", "this", ".", "usersResource", ".", "isLoading", "(", ")", "||", "this", ".", "isDeleting", ";", "}", "get", "itemsSelected", "(", ")", ":", "boolean", "{", "return", "Array", ".", "from", "(", "this", ".", "selectedItems", ".", "values", "(", ")", ")", ".", "some", "(", "v", "=>", "v", ")", ";", "}", "constructor", "(", "private", "notificationService", ",", "private", "authProvidersResource", ",", "private", "usersResource", ",", "private", "commonDialogService", ",", "private", "localizationService", ")", "{", "makeObservable", "(", "this", ",", "{", "isDeleting", ":", "observable", ",", "users", ":", "computed", ",", "itemsSelected", ":", "computed", ",", "}", ")", ";", "}", "init", "(", ")", "{", "this", ".", "authProvidersResource", ".", "loadAll", "(", ")", ";", "}", "update", "=", "async", "(", ")", "=>", "{", "try", "{", "await", "this", ".", "usersResource", ".", "refreshAll", "(", ")", ";", "this", ".", "notificationService", ".", "logSuccess", "(", "{", "title", ":", "'authentication_administration_tools_refresh_success'", "}", ")", ";", "}", "catch", "(", "exception", ")", "{", "if", "(", "!", "this", ".", "error", ".", "catch", "(", "exception", ")", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "'Users update failed'", ")", ";", "}", "}", "}", ";", "delete", "=", "async", "(", ")", "=>", "{", "if", "(", "this", ".", "isDeleting", ")", "{", "return", ";", "}", "const", "deletionList", "=", "Array", ".", "from", "(", "this", ".", "selectedItems", ")", ".", "filter", "(", "(", "[", "_", ",", "value", "]", ")", "=>", "value", ")", ".", "map", "(", "(", "[", "userId", "]", ")", "=>", "userId", ")", ";", "if", "(", "deletionList", ".", "length", "===", "0", ")", "{", "return", ";", "}", "const", "userNames", "=", "deletionList", ".", "map", "(", "name", "=>", "`\"${", "name", "}\"`", ")", ".", "join", "(", "', '", ")", ";", "const", "message", "=", "`${", "this", ".", "localizationService", ".", "translate", "(", "'authentication_administration_users_delete_confirmation'", ")", "}${", "userNames", "}. ${", "this", ".", "localizationService", ".", "translate", "(", "'ui_are_you_sure'", ")", "}`", ";", "const", "result", "=", "await", "this", ".", "commonDialogService", ".", "open", "(", "ConfirmationDialogDelete", ",", "{", "title", ":", "'ui_data_delete_confirmation'", ",", "message", ",", "confirmActionText", ":", "'ui_delete'", ",", "}", ")", ";", "if", "(", "result", "===", "DialogueStateResult", ".", "Rejected", ")", "{", "return", ";", "}", "this", ".", "isDeleting", "=", "true", ";", "try", "{", "await", "this", ".", "usersResource", ".", "delete", "(", "resourceKeyList", "(", "deletionList", ")", ")", ";", "this", ".", "selectedItems", ".", "clear", "(", ")", ";", "for", "(", "const", "id", "of", "deletionList", ")", "{", "this", ".", "expandedItems", ".", "delete", "(", "id", ")", ";", "}", "}", "catch", "(", "exception", ")", "{", "if", "(", "!", "this", ".", "error", ".", "catch", "(", "exception", ")", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "'User delete failed'", ")", ";", "}", "}", "finally", "{", "this", ".", "isDeleting", "=", "false", ";", "}", "}", ";", "showDetails", "=", "(", ")", "=>", "{", "if", "(", "this", ".", "error", ".", "exception", ")", "{", "this", ".", "commonDialogService", ".", "open", "(", "ErrorDetailsDialog", ",", "this", ".", "error", ".", "exception", ")", ";", "}", "}", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, 950, null, null, 0, null, null, 0, null, null, 12620, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
373
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "type", "{", "IAdministrationItemSubItem", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "UserMetaParametersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Table", ",", "TableHeader", ",", "TableColumnHeader", ",", "TableBody", ",", "TableSelect", ",", "useDataResource", ",", "ToolsPanel", ",", "ToolsAction", ",", "Loader", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useController", ",", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "composes", ",", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "CreateMetaParameter", "}", "from", "'./CreateMetaParameter'", ";", "import", "{", "CreateMetaParameterService", "}", "from", "'./CreateMetaParameterService'", ";", "import", "{", "MetadataParam", "}", "from", "'./MetadataParam'", ";", "import", "{", "MetaParametersController", "}", "from", "'./MetaParametersController'", ";", "const", "layoutStyles", "=", "composes", "(", "css", "`\n layout-grid-cell {\n composes: theme-background-surface theme-text-on-surface from global;\n }\n\n layout-grid-cell {\n composes: theme-border-color-background from global;\n }\n `", ",", "css", "`\n layout-grid {\n width: 100%;\n overflow: auto;\n }\n\n layout-grid-inner {\n min-height: 100%;\n }\n\n layout-grid-cell {\n position: relative;\n border: solid 1px;\n }\n `", ")", ";", "const", "styles", "=", "css", "`\n Table {\n width: 100%;\n }\n`", ";", "interface", "Props", "{", "sub", "?", ":", "IAdministrationItemSubItem", ";", "param", "?", ":", "string", "|", "null", ";", "}", "export", "const", "MetaParameters", "=", "observer", "<", "Props", ">", "(", "function", "MetaParameters", "(", "{", "sub", ",", "param", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "controller", "=", "useController", "(", "MetaParametersController", ")", ";", "const", "createMetaParameterService", "=", "useService", "(", "CreateMetaParameterService", ")", ";", "const", "userMetaParametersResource", "=", "useDataResource", "(", "MetaParameters", ",", "UserMetaParametersResource", ",", "undefined", ")", ";", "const", "keys", "=", "userMetaParametersResource", ".", "data", ".", "map", "(", "metadata", "=>", "metadata", ".", "id", ")", ";", "const", "isLocalProviderAvailable", "=", "controller", ".", "isLocalProviderAvailable", ";", "return", "styled", "(", "useStyles", "(", "styles", ",", "layoutStyles", ")", ")", "(", "<", "layout", "-", "grid", ">", "<", "layout", "-", "grid", "-", "inner", ">", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "ToolsPanel", ">", "{", "isLocalProviderAvailable", "&&", "(", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'authentication_administration_tools_add_tooltip'", ")", "}", "icon", "=", "\"add\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "(", "sub", "&&", "!", "!", "createMetaParameterService", ".", "user", ")", "||", "true", "}", "onClick", "=", "{", "createMetaParameterService", ".", "create", "}", ">", "{", "translate", "(", "'ui_add'", ")", "}", "<", "/ToolsAction>)}", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'authentication_administration_tools_refresh_tooltip'", ")", "}", "icon", "=", "\"refresh\"", "viewBox", "=", "\"0 0 24 24\"", "onClick", "=", "{", "userMetaParametersResource", ".", "reload", "}", ">", "{", "translate", "(", "'ui_refresh'", ")", "}", "<", "/ToolsAction>", "{", "isLocalProviderAvailable", "&&", "(", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'authentication_administration_tools_delete_tooltip'", ")", "}", "icon", "=", "\"trash\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "!", "controller", ".", "itemsSelected", "||", "true", "}", "onClick", "=", "{", "controller", ".", "delete", "}", ">", "{", "translate", "(", "'ui_delete'", ")", "}", "<", "/ToolsAction>)}", "<", "/ToolsPanel>", "<", "/layout-grid-cell>", "{", "param", "===", "'create'", "&&", "createMetaParameterService", ".", "user", "&&", "(", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "CreateMetaParameter", "user", "=", "{", "createMetaParameterService", ".", "user", "}", "onCancel", "=", "{", "createMetaParameterService", ".", "cancelCreate", "}", "/", ">", "<", "/layout-grid-cell>)}", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "Table", "keys", "=", "{", "keys", "}", "selectedItems", "=", "{", "controller", ".", "selectedItems", "}", "expandedItems", "=", "{", "controller", ".", "expandedItems", "}", "{", "...", "use", "(", "{", "size", ":", "'big'", "}", ")", "}", ">", "<", "TableHeader", ">", "{", "isLocalProviderAvailable", "&&", "(", "<", "TableColumnHeader", "min", "flex", "centerContent", ">", "<", "TableSelect", "/>", "<", "/TableColumnHeader>)}", "<", "TableColumnHeader", "min", "/", ">", "<", "TableColumnHeader", ">", "{", "translate", "(", "'authentication_user_name'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'authentication_user_role'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", "/", ">", "<", "/TableHeader>", "<", "TableBody", ">", "{", "userMetaParametersResource", ".", "data", ".", "map", "(", "param", "=>", "(", "<", "MetadataParam", "key", "=", "{", "param", ".", "id", "}", "param", "=", "{", "param", "}", "selectable", "=", "{", "isLocalProviderAvailable", "}", "/", ">", ")", ")", "}", "<", "/TableBody>", "<", "/Table>", "<", "Loader", "state", "=", "{", "userMetaParametersResource", "}", "overlay", "/", ">", "<", "/layout-grid-cell>", "<", "/layout-grid-inner>", "<", "/layout-grid>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
374
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useEffect", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "type", "{", "RoleInfo", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TabsState", ",", "TabList", ",", "UNDERLINE_TAB_STYLES", ",", "TabPanelList", ",", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "Placeholder", ",", "useObjectRef", ",", "useExecutor", ",", "BASE_CONTAINERS_STYLES", ",", "IconOrImage", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "roleContext", "}", "from", "'./Contexts/roleContext'", ";", "import", "type", "{", "IRoleFormState", "}", "from", "'./IRoleFormProps'", ";", "import", "{", "RoleFormService", "}", "from", "'./RoleFormService'", ";", "const", "tabsStyles", "=", "css", "`\n TabList {\n position: relative;\n flex-shrink: 0;\n align-items: center;\n }\n Tab {\n height: 46px!important;\n text-transform: uppercase;\n font-weight: 500 !important;\n }\n`", ";", "const", "topBarStyles", "=", "composes", "(", "css", "`\n role-top-bar {\n composes: theme-border-color-background theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n role-top-bar {\n position: relative;\n display: flex;\n padding-top: 16px;\n\n &:before {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n border-bottom: solid 2px;\n border-color: inherit;\n }\n }\n role-top-bar-tabs {\n flex: 1;\n }\n\n role-top-bar-actions {\n display: flex;\n align-items: center;\n padding: 0 24px;\n gap: 16px;\n }\n\n role-status-message {\n composes: theme-typography--caption from global;\n height: 24px;\n padding: 0 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n\n & IconOrImage {\n height: 24px;\n width: 24px;\n }\n }\n `", ")", ";", "const", "formStyles", "=", "composes", "(", "css", "`\n box {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n\n content-box {\n composes: theme-background-secondary theme-border-color-background from global;\n }\n `", ",", "css", "`\n box {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n overflow: auto;\n }\n content-box {\n position: relative;\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: auto;\n }\n `", ")", ";", "interface", "Props", "{", "state", ":", "IRoleFormState", ";", "onCancel", "?", ":", "(", ")", "=>", "void", ";", "onSave", "?", ":", "(", "role", ":", "RoleInfo", ")", "=>", "void", ";", "className", "?", ":", "string", ";", "}", "export", "const", "RoleForm", "=", "observer", "<", "Props", ">", "(", "function", "RoleForm", "(", "{", "state", ",", "onCancel", ",", "onSave", "=", "(", ")", "=>", "{", "}", ",", "className", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "props", "=", "useObjectRef", "(", "{", "onSave", "}", ")", ";", "const", "style", "=", "[", "tabsStyles", ",", "UNDERLINE_TAB_STYLES", "]", ";", "const", "styles", "=", "useStyles", "(", "style", ",", "BASE_CONTAINERS_STYLES", ",", "topBarStyles", ",", "formStyles", ")", ";", "const", "service", "=", "useService", "(", "RoleFormService", ")", ";", "useExecutor", "(", "{", "executor", ":", "state", ".", "submittingTask", ",", "postHandlers", ":", "[", "function", "save", "(", "data", ",", "contexts", ")", "{", "const", "validation", "=", "contexts", ".", "getContext", "(", "service", ".", "configurationValidationContext", ")", ";", "const", "state", "=", "contexts", ".", "getContext", "(", "service", ".", "configurationStatusContext", ")", ";", "const", "config", "=", "contexts", ".", "getContext", "(", "roleContext", ")", ";", "if", "(", "validation", ".", "valid", "&&", "state", ".", "saved", ")", "{", "props", ".", "onSave", "(", "config", ")", ";", "}", "}", "]", ",", "}", ")", ";", "useEffect", "(", "(", ")", "=>", "{", "state", ".", "loadRoleInfo", "(", ")", ";", "}", ",", "[", "]", ")", ";", "return", "styled", "(", "styles", ")", "(", "<", "TabsState", "container", "=", "{", "service", ".", "tabsContainer", "}", "localState", "=", "{", "state", ".", "partsState", "}", "state", "=", "{", "state", "}", "onCancel", "=", "{", "onCancel", "}", ">", "<", "box", "className", "=", "{", "className", "}", ">", "<", "role", "-", "top", "-", "bar", ">", "<", "role", "-", "top", "-", "bar", "-", "tabs", ">", "<", "role", "-", "status", "-", "message", ">", "{", "state", ".", "statusMessage", "&&", "(", "<", ">", "<", "IconOrImage", "icon", "=", "'/icons/info_icon.svg'", "/>", "{", "translate", "(", "state", ".", "statusMessage", ")", "}", "<", "/>)}", "<", "/role-status-message>", "<", "TabList", "style", "=", "{", "style", "}", "disabled", "=", "{", "false", "}", "/", ">", "<", "/role-top-bar-tabs>", "<", "role", "-", "top", "-", "bar", "-", "actions", ">", "<", "Placeholder", "container", "=", "{", "service", ".", "actionsContainer", "}", "state", "=", "{", "state", "}", "onCancel", "=", "{", "onCancel", "}", "/", ">", "<", "/role-top-bar-actions>", "<", "/role-top-bar>", "<", "content", "-", "box", ">", "<", "TabPanelList", "style", "=", "{", "style", "}", "/", ">", "<", "/content-box>", "<", "/box>", "<", "/TabsState>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
375
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "IconButton", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "Translate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "CreateRoleService", "}", "from", "'./CreateRoleService'", ";", "import", "{", "RoleForm", "}", "from", "'./RoleForm'", ";", "const", "styles", "=", "composes", "(", "css", "`\n title-bar {\n composes: theme-border-color-background from global;\n }\n\n role-create-content {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n role-create {\n display: flex;\n flex-direction: column;\n height: 660px;\n overflow: hidden;\n }\n\n title-bar {\n composes: theme-typography--headline6 from global;\n box-sizing: border-box;\n padding: 16px 24px;\n align-items: center;\n display: flex;\n font-weight: 400;\n flex: auto 0 0;\n }\n\n role-create-content {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n\n fill {\n flex: 1;\n }\n `", ")", ";", "export", "const", "CreateRole", "=", "observer", "(", "function", "CreateRole", "(", ")", "{", "const", "style", "=", "useStyles", "(", "styles", ")", ";", "const", "service", "=", "useService", "(", "CreateRoleService", ")", ";", "if", "(", "!", "service", ".", "data", ")", "{", "return", "null", ";", "}", "return", "styled", "(", "style", ")", "(", "<", "role", "-", "create", ">", "<", "title", "-", "bar", ">", "<", "Translate", "token", "=", "'administration_roles_role_creation'", "/", ">", "<", "fill", "/>", "<", "IconButton", "name", "=", "\"cross\"", "viewBox", "=", "\"0 0 16 16\"", "onClick", "=", "{", "service", ".", "cancelCreate", "}", "/", ">", "<", "/title-bar>", "<", "role", "-", "create", "-", "content", ">", "<", "RoleForm", "state", "=", "{", "service", ".", "data", "}", "onCancel", "=", "{", "service", ".", "cancelCreate", "}", "onSave", "=", "{", "service", ".", "cancelCreate", "}", "/", ">", "<", "/role-create-content>", "<", "/role-create>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 28, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
376
[ "import", "{", "useState", "}", "from", "'react'", ";", "import", "type", "{", "RoleInfo", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "type", "{", "CachedMapResource", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "type", "{", "IRoleFormState", "}", "from", "'./IRoleFormProps'", ";", "import", "{", "RoleFormService", "}", "from", "'./RoleFormService'", ";", "import", "{", "RoleFormState", "}", "from", "'./RoleFormState'", ";", "export", "function", "useRoleFormState", "(", "resource", ",", "configure", "?", ")", "{", "const", "service", "=", "useService", "(", "RoleFormService", ")", ";", "const", "[", "state", "]", "=", "useState", "<", "IRoleFormState", ">", "(", "(", ")", "=>", "{", "const", "state", "=", "new", "RoleFormState", "(", "service", ",", "resource", ")", ";", "configure", "?.", "(", "state", ")", ";", "state", ".", "load", "(", ")", ";", "return", "state", ";", "}", ")", ";", "return", "state", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
377
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "type", "{", "RoleInfo", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TableItem", ",", "TableColumnValue", ",", "TableItemSelect", ",", "TableItemExpand", ",", "Placeholder", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "RolesAdministrationService", "}", "from", "'../RolesAdministrationService'", ";", "import", "{", "RoleEdit", "}", "from", "'./RoleEdit'", ";", "const", "styles", "=", "css", "`\n StaticImage {\n display: flex;\n width: 24px;\n\n &:not(:last-child) {\n margin-right: 16px;\n }\n }\n TableColumnValue[expand] {\n cursor: pointer;\n }\n TableColumnValue[|gap] {\n gap: 16px;\n }\n`", ";", "interface", "Props", "{", "role", ":", "RoleInfo", ";", "}", "export", "const", "Role", "=", "observer", "<", "Props", ">", "(", "function", "Role", "(", "{", "role", "}", ")", "{", "const", "service", "=", "useService", "(", "RolesAdministrationService", ")", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "TableItem", "item", "=", "{", "role", ".", "roleId", "}", "expandElement", "=", "{", "RoleEdit", "}", ">", "<", "TableColumnValue", "centerContent", "flex", ">", "<", "TableItemSelect", "/>", "<", "/TableColumnValue>", "<", "TableColumnValue", "centerContent", "flex", "expand", ">", "<", "TableItemExpand", "/>", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "role", ".", "roleId", "}", "ellipsis", "expand", ">", "{", "role", ".", "roleId", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "role", ".", "roleName", "}", "ellipsis", ">", "{", "role", ".", "roleName", "||", "''", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "role", ".", "description", "}", "ellipsis", ">", "{", "role", ".", "description", "||", "''", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", "flex", "{", "...", "use", "(", "{", "gap", ":", "true", "}", ")", "}", ">", "<", "Placeholder", "container", "=", "{", "service", ".", "roleDetailsInfoPlaceholder", "}", "role", "=", "{", "role", "}", "/", ">", "<", "/TableColumnValue>", "<", "/TableItem>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
378
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "type", "{", "RoleInfo", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Table", ",", "TableHeader", ",", "TableColumnHeader", ",", "TableBody", ",", "TableSelect", ",", "Loader", ",", "ILoadableState", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "Role", "}", "from", "'./Role'", ";", "const", "styles", "=", "css", "`\n Table {\n width: 100%;\n }\n`", ";", "const", "loaderStyle", "=", "css", "`\n ExceptionMessage {\n padding: 24px;\n }\n`", ";", "interface", "Props", "{", "roles", ":", "RoleInfo", "[", "]", ";", "state", ":", "ILoadableState", ";", "selectedItems", ":", "Map", "<", "string", ",", "boolean", ">", ";", "expandedItems", ":", "Map", "<", "string", ",", "boolean", ">", ";", "}", "export", "const", "RolesTable", "=", "observer", "<", "Props", ">", "(", "function", "RolesTable", "(", "{", "roles", ",", "state", ",", "selectedItems", ",", "expandedItems", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "keys", "=", "roles", ".", "map", "(", "role", "=>", "role", ".", "roleId", ")", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "Loader", "state", "=", "{", "state", "}", "style", "=", "{", "loaderStyle", "}", "overlay", ">", "<", "Table", "keys", "=", "{", "keys", "}", "selectedItems", "=", "{", "selectedItems", "}", "expandedItems", "=", "{", "expandedItems", "}", "{", "...", "use", "(", "{", "size", ":", "'big'", "}", ")", "}", ">", "<", "TableHeader", ">", "<", "TableColumnHeader", "min", "flex", "centerContent", ">", "<", "TableSelect", "/>", "<", "/TableColumnHeader>", "<", "TableColumnHeader", "min", "/", ">", "<", "TableColumnHeader", ">", "{", "translate", "(", "'administration_roles_role_id'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'administration_roles_role_name'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'administration_roles_role_description'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", "/", ">", "<", "/TableHeader>", "<", "TableBody", ">", "{", "roles", ".", "map", "(", "role", "=>", "(", "<", "Role", "key", "=", "{", "role", ".", "roleId", "}", "role", "=", "{", "role", "}", "/", ">", ")", ")", "}", "<", "/TableBody>", "<", "/Table>", "<", "/Loader>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
379
[ "import", "{", "computed", ",", "observable", "}", "from", "'mobx'", ";", "import", "{", "compareRoles", ",", "RoleInfo", ",", "RolesResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "ILoadableState", ",", "TableState", ",", "useMapResource", ",", "useObservableRef", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "CommonDialogService", ",", "ConfirmationDialogDelete", ",", "DialogueStateResult", "}", "from", "'@cloudbeaver/core-dialogs'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "CachedMapAllKey", ",", "resourceKeyList", "}", "from", "'@cloudbeaver/core-sdk'", ";", "interface", "State", "{", "tableState", ":", "TableState", ";", "processing", ":", "boolean", ";", "roles", ":", "RoleInfo", "[", "]", ";", "state", ":", "ILoadableState", ";", "update", ":", "(", ")", "=>", "Promise", "<", "void", ">", ";", "delete", ":", "(", ")", "=>", "Promise", "<", "void", ">", ";", "}", "export", "function", "useRolesTable", "(", ")", "{", "const", "notificationService", "=", "useService", "(", "NotificationService", ")", ";", "const", "dialogService", "=", "useService", "(", "CommonDialogService", ")", ";", "const", "resource", "=", "useMapResource", "(", "useRolesTable", ",", "RolesResource", ",", "CachedMapAllKey", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "return", "useObservableRef", "<", "State", ">", "(", "(", ")", "=>", "(", "{", "tableState", ":", "new", "TableState", "(", ")", ",", "processing", ":", "false", ",", "state", ":", "resource", ",", "get", "roles", "(", ")", "{", "return", "resource", ".", "resource", ".", "values", ".", "slice", "(", ")", ".", "sort", "(", "compareRoles", ")", ";", "}", ",", "async", "update", "(", ")", "{", "if", "(", "this", ".", "processing", ")", "{", "return", ";", "}", "try", "{", "this", ".", "processing", "=", "true", ";", "await", "resource", ".", "resource", ".", "refreshAll", "(", ")", ";", "notificationService", ".", "logSuccess", "(", "{", "title", ":", "'administration_roles_role_list_update_success'", "}", ")", ";", "}", "catch", "(", "exception", ")", "{", "notificationService", ".", "logException", "(", "exception", ",", "'administration_roles_role_list_update_fail'", ")", ";", "}", "finally", "{", "this", ".", "processing", "=", "false", ";", "}", "}", ",", "async", "delete", "(", ")", "{", "if", "(", "this", ".", "processing", ")", "{", "return", ";", "}", "const", "deletionList", "=", "this", ".", "tableState", ".", "selectedList", ";", "if", "(", "deletionList", ".", "length", "===", "0", ")", "{", "return", ";", "}", "const", "roleNames", "=", "deletionList", ".", "map", "(", "name", "=>", "`\"${", "name", "}\"`", ")", ".", "join", "(", "', '", ")", ";", "const", "message", "=", "`${", "translate", "(", "'administration_roles_delete_confirmation'", ")", "}${", "roleNames", "}. ${", "translate", "(", "'ui_are_you_sure'", ")", "}`", ";", "const", "result", "=", "await", "dialogService", ".", "open", "(", "ConfirmationDialogDelete", ",", "{", "title", ":", "'ui_data_delete_confirmation'", ",", "message", ",", "confirmActionText", ":", "'ui_delete'", ",", "}", ")", ";", "if", "(", "result", "===", "DialogueStateResult", ".", "Rejected", ")", "{", "return", ";", "}", "try", "{", "this", ".", "processing", "=", "true", ";", "await", "resource", ".", "resource", ".", "deleteRole", "(", "resourceKeyList", "(", "deletionList", ")", ")", ";", "this", ".", "tableState", ".", "unselect", "(", ")", ";", "this", ".", "tableState", ".", "unexpand", "(", "deletionList", ")", ";", "}", "catch", "(", "exception", ")", "{", "notificationService", ".", "logException", "(", "exception", ",", "'Roles delete Error'", ")", ";", "}", "finally", "{", "this", ".", "processing", "=", "false", ";", "}", "}", ",", "}", ")", ",", "{", "processing", ":", "observable", ".", "ref", ",", "roles", ":", "computed", ",", "}", ",", "false", ",", "[", "'update'", ",", "'delete'", "]", ")", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 51, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
380
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "{", "ADMINISTRATION_TOOLS_PANEL_STYLES", ",", "IAdministrationItemSubItem", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ToolsAction", ",", "ToolsPanel", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "composes", ",", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "CreateRole", "}", "from", "'./CreateRole'", ";", "import", "{", "CreateRoleService", "}", "from", "'./CreateRoleService'", ";", "import", "{", "RolesTable", "}", "from", "'./RolesTable/RolesTable'", ";", "import", "{", "useRolesTable", "}", "from", "'./RolesTable/useRolesTable'", ";", "const", "styles", "=", "composes", "(", "css", "`\n layout-grid-cell {\n composes: theme-background-surface theme-text-on-surface from global;\n }\n layout-grid-cell {\n composes: theme-border-color-background from global;\n }\n`", ",", "css", "` \n layout-grid {\n width: 100%;\n overflow: auto;\n }\n layout-grid-inner {\n min-height: 100%;\n }\n layout-grid-cell {\n position: relative;\n border: solid 1px;\n }\n ToolsPanel {\n border-bottom: none;\n }\n [|table] {\n min-height: 140px; /* loader overlay size */\n }\n`", ")", ";", "interface", "Props", "{", "sub", "?", ":", "IAdministrationItemSubItem", ";", "param", "?", ":", "string", "|", "null", ";", "}", "export", "const", "RolesPage", "=", "observer", "<", "Props", ">", "(", "function", "RolesPage", "(", "{", "sub", ",", "param", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "style", "=", "useStyles", "(", "styles", ",", "ADMINISTRATION_TOOLS_PANEL_STYLES", ",", "BASE_CONTAINERS_STYLES", ")", ";", "const", "service", "=", "useService", "(", "CreateRoleService", ")", ";", "const", "table", "=", "useRolesTable", "(", ")", ";", "const", "create", "=", "param", "===", "'create'", ";", "return", "styled", "(", "style", ")", "(", "<", "layout", "-", "grid", ">", "<", "layout", "-", "grid", "-", "inner", ">", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "ToolsPanel", ">", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'administration_roles_add_tooltip'", ")", "}", "icon", "=", "\"add\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "create", "||", "table", ".", "processing", "}", "onClick", "=", "{", "service", ".", "create", "}", ">", "{", "translate", "(", "'ui_add'", ")", "}", "<", "/ToolsAction>", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'administration_roles_refresh_tooltip'", ")", "}", "icon", "=", "\"refresh\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "table", ".", "processing", "}", "onClick", "=", "{", "table", ".", "update", "}", ">", "{", "translate", "(", "'ui_refresh'", ")", "}", "<", "/ToolsAction>", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'administration_roles_delete_tooltip'", ")", "}", "icon", "=", "\"trash\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "!", "table", ".", "tableState", ".", "itemsSelected", "||", "table", ".", "processing", "}", "onClick", "=", "{", "table", ".", "delete", "}", ">", "{", "translate", "(", "'ui_delete'", ")", "}", "<", "/ToolsAction>", "<", "/ToolsPanel>", "<", "/layout-grid-cell>", "{", "create", "&&", "(", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "CreateRole", "/>", "<", "/layout-grid-cell>)}", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", ",", "table", ":", "true", "}", ")", "}", ">", "<", "RolesTable", "roles", "=", "{", "table", ".", "roles", "}", "state", "=", "{", "table", ".", "state", "}", "selectedItems", "=", "{", "table", ".", "tableState", ".", "selected", "}", "expandedItems", "=", "{", "table", ".", "tableState", ".", "expanded", "}", "/", ">", "<", "/layout-grid-cell>", "<", "/layout-grid-inner>", "<", "/layout-grid>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
381
[ "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "Translate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "AdminUserInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "useStyles", ",", "composes", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "UserForm", "}", "from", "'../UserForm/UserForm'", ";", "const", "styles", "=", "composes", "(", "css", "`\n title-bar {\n composes: theme-border-color-background from global;\n }\n\n user-create-footer, user-create-content {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n user-create {\n display: flex;\n flex-direction: column;\n height: 540px;\n overflow: hidden;\n }\n\n title-bar {\n composes: theme-typography--headline6 from global;\n box-sizing: border-box;\n padding: 16px 24px;\n align-items: center;\n display: flex;\n font-weight: 400;\n flex: auto 0 0;\n }\n\n user-create-content {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n `", ")", ";", "interface", "Props", "{", "user", ":", "AdminUserInfo", ";", "onCancel", ":", "(", ")", "=>", "void", ";", "}", "export", "const", "CreateUser", "=", "function", "CreateUser", "(", "{", "user", ",", "onCancel", ",", "}", ")", "{", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "user", "-", "create", ">", "<", "title", "-", "bar", ">", "<", "Translate", "token", "=", "'authentication_administration_user_connections_user_add'", "/", ">", "<", "/title-bar>", "<", "user", "-", "create", "-", "content", ">", "<", "UserForm", "user", "=", "{", "user", "}", "onCancel", "=", "{", "onCancel", "}", "/", ">", "<", "/user-create-content>", "<", "/user-create>);", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 28, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
382
[ "import", "{", "observable", ",", "makeObservable", "}", "from", "'mobx'", ";", "import", "{", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "injectable", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "type", "{", "AdminUserInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "UsersAdministrationNavigationService", "}", "from", "'../UsersAdministrationNavigationService'", ";", "@", "injectable", "(", ")", "export", "class", "CreateUserService", "{", "user", ":", "AdminUserInfo", "|", "null", "=", "null", ";", "constructor", "(", "private", "readonly", "usersAdministrationNavigationService", ",", "private", "readonly", "usersResource", ")", "{", "makeObservable", "(", "this", ",", "{", "user", ":", "observable", ",", "}", ")", ";", "this", ".", "user", "=", "null", ";", "this", ".", "clearUserTemplate", "=", "this", ".", "clearUserTemplate", ".", "bind", "(", "this", ")", ";", "this", ".", "cancelCreate", "=", "this", ".", "cancelCreate", ".", "bind", "(", "this", ")", ";", "this", ".", "create", "=", "this", ".", "create", ".", "bind", "(", "this", ")", ";", "}", "cancelCreate", "(", ")", "{", "this", ".", "clearUserTemplate", "(", ")", ";", "this", ".", "usersAdministrationNavigationService", ".", "navToRoot", "(", ")", ";", "}", "create", "(", ")", "{", "if", "(", "this", ".", "user", ")", "{", "return", ";", "}", "this", ".", "user", "=", "this", ".", "usersResource", ".", "getEmptyUser", "(", ")", ";", "this", ".", "usersAdministrationNavigationService", ".", "navToCreate", "(", ")", ";", "}", "clearUserTemplate", "(", ")", "{", "this", ".", "user", "=", "null", ";", "}", "close", "(", ")", "{", "this", ".", "clearUserTemplate", "(", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null ]
383
[ "import", "{", "observable", ",", "computed", ",", "makeObservable", "}", "from", "'mobx'", ";", "import", "{", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "injectable", ",", "IInitializableController", ",", "IDestructibleController", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "NotificationService", "}", "from", "'@cloudbeaver/core-events'", ";", "import", "{", "GQLErrorCatcher", ",", "AdminUserInfo", ",", "ResourceKeyUtils", ",", "ResourceKey", "}", "from", "'@cloudbeaver/core-sdk'", ";", "@", "injectable", "(", ")", "export", "class", "UserEditController", "implements", "IInitializableController", ",", "IDestructibleController", "{", "isLoading", "=", "true", ";", "user", ":", "AdminUserInfo", "|", "null", "=", "null", ";", "get", "isDisabled", "(", ")", "{", "return", "this", ".", "usersResource", ".", "isDataLoading", "(", "this", ".", "userId", ")", ";", "}", "userId", "!", ":", "string", ";", "readonly", "error", "=", "new", "GQLErrorCatcher", "(", ")", ";", "constructor", "(", "private", "notificationService", ",", "private", "usersResource", ")", "{", "makeObservable", "(", "this", ",", "{", "isLoading", ":", "observable", ",", "user", ":", "observable", ",", "isDisabled", ":", "computed", ",", "}", ")", ";", "this", ".", "updateUser", "=", "this", ".", "updateUser", ".", "bind", "(", "this", ")", ";", "}", "async", "init", "(", "id", ")", "{", "this", ".", "userId", "=", "id", ";", "await", "this", ".", "loadUser", "(", ")", ";", "this", ".", "usersResource", ".", "onItemAdd", ".", "addHandler", "(", "this", ".", "updateUser", ")", ";", "}", "destruct", "(", ")", "{", "this", ".", "usersResource", ".", "onItemAdd", ".", "removeHandler", "(", "this", ".", "updateUser", ")", ";", "}", "private", "async", "loadUser", "(", ")", "{", "try", "{", "await", "this", ".", "usersResource", ".", "load", "(", "this", ".", "userId", ",", "[", "'includeMetaParameters'", "]", ")", ";", "await", "this", ".", "updateUser", "(", "this", ".", "userId", ")", ";", "}", "catch", "(", "exception", ")", "{", "this", ".", "notificationService", ".", "logException", "(", "exception", ",", "`Can't load user ${", "this", ".", "userId", "}`", ")", ";", "}", "}", "private", "async", "updateUser", "(", "key", ")", "{", "if", "(", "!", "ResourceKeyUtils", ".", "includes", "(", "key", ",", "this", ".", "userId", ")", ")", "{", "return", ";", "}", "this", ".", "user", "=", "JSON", ".", "parse", "(", "JSON", ".", "stringify", "(", "await", "this", ".", "usersResource", ".", "load", "(", "this", ".", "userId", ",", "[", "'includeMetaParameters'", "]", ")", ")", ")", ";", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 950, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 3476, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
384
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "type", "{", "AdminUser", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TableItem", ",", "TableColumnValue", ",", "TableItemSelect", ",", "TableItemExpand", ",", "Placeholder", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "UsersAdministrationService", "}", "from", "'../UsersAdministrationService'", ";", "import", "{", "UserEdit", "}", "from", "'./UserEdit'", ";", "const", "styles", "=", "css", "`\n TableColumnValue[expand] {\n cursor: pointer;\n }\n TableColumnValue[|gap] {\n gap: 16px;\n }\n`", ";", "interface", "Props", "{", "user", ":", "AdminUser", ";", "selectable", "?", ":", "boolean", ";", "}", "export", "const", "User", "=", "observer", "<", "Props", ">", "(", "function", "User", "(", "{", "user", ",", "selectable", "}", ")", "{", "const", "usersAdministrationService", "=", "useService", "(", "UsersAdministrationService", ")", ";", "const", "roles", "=", "user", ".", "grantedRoles", ".", "join", "(", "', '", ")", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "TableItem", "item", "=", "{", "user", ".", "userId", "}", "expandElement", "=", "{", "UserEdit", "}", "selectDisabled", "=", "{", "!", "selectable", "}", ">", "{", "selectable", "&&", "(", "<", "TableColumnValue", "centerContent", "flex", ">", "<", "TableItemSelect", "/>", "<", "/TableColumnValue>)}", "<", "TableColumnValue", "centerContent", "flex", "expand", ">", "<", "TableItemExpand", "/>", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "user", ".", "userId", "}", "expand", "ellipsis", ">", "{", "user", ".", "userId", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", "title", "=", "{", "roles", "}", "ellipsis", ">", "{", "roles", "}", "<", "/TableColumnValue>", "<", "TableColumnValue", "flex", "{", "...", "use", "(", "{", "gap", ":", "true", "}", ")", "}", ">", "<", "Placeholder", "container", "=", "{", "usersAdministrationService", ".", "userDetailsInfoPlaceholder", "}", "user", "=", "{", "user", "}", "/", ">", "<", "/TableColumnValue>", "<", "/TableItem>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
385
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", ",", "use", "}", "from", "'reshadow'", ";", "import", "{", "ADMINISTRATION_TOOLS_PANEL_STYLES", ",", "IAdministrationItemSubItem", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "AdminUser", ",", "UsersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "Table", ",", "TableHeader", ",", "TableColumnHeader", ",", "TableBody", ",", "TableSelect", ",", "getComputed", ",", "useMapResource", ",", "ToolsAction", ",", "ToolsPanel", ",", "Loader", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useController", ",", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "CachedMapAllKey", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "composes", ",", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "filterUndefined", "}", "from", "'@cloudbeaver/core-utils'", ";", "import", "{", "CreateUser", "}", "from", "'./CreateUser'", ";", "import", "{", "CreateUserService", "}", "from", "'./CreateUserService'", ";", "import", "{", "User", "}", "from", "'./User'", ";", "import", "{", "UsersTableController", "}", "from", "'./UsersTableController'", ";", "const", "layoutStyles", "=", "composes", "(", "css", "`\n layout-grid-cell {\n composes: theme-background-surface theme-text-on-surface from global;\n }\n\n layout-grid-cell {\n composes: theme-border-color-background from global;\n }\n `", ",", "css", "`\n layout-grid {\n width: 100%;\n overflow: auto;\n }\n\n layout-grid-inner {\n min-height: 100%;\n }\n\n layout-grid-cell {\n position: relative;\n border: solid 1px;\n }\n `", ")", ";", "const", "loaderStyle", "=", "css", "`\n ExceptionMessage {\n padding: 24px;\n }\n`", ";", "const", "styles", "=", "css", "`\n Table {\n width: 100%;\n }\n\n [|table] {\n min-height: 140px; /* loader overlay size */\n }\n\n ToolsPanel {\n border-bottom: none;\n }\n`", ";", "interface", "Props", "{", "sub", "?", ":", "IAdministrationItemSubItem", ";", "param", "?", ":", "string", "|", "null", ";", "}", "export", "const", "UsersTable", "=", "observer", "<", "Props", ">", "(", "function", "UsersTable", "(", "{", "sub", ",", "param", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "style", "=", "useStyles", "(", "styles", ",", "ADMINISTRATION_TOOLS_PANEL_STYLES", ",", "layoutStyles", ")", ";", "const", "createUserService", "=", "useService", "(", "CreateUserService", ")", ";", "const", "controller", "=", "useController", "(", "UsersTableController", ")", ";", "const", "usersResource", "=", "useMapResource", "(", "UsersTable", ",", "UsersResource", ",", "CachedMapAllKey", ")", ";", "const", "isLocalProviderAvailable", "=", "controller", ".", "isLocalProviderAvailable", ";", "const", "users", "=", "getComputed", "(", "(", ")", "=>", "usersResource", ".", "data", ".", "filter", "<", "AdminUser", ">", "(", "filterUndefined", ")", ".", "sort", "(", "(", "a", ",", "b", ")", "=>", "{", "if", "(", "usersResource", ".", "resource", ".", "isNew", "(", "a", ".", "userId", ")", "===", "usersResource", ".", "resource", ".", "isNew", "(", "b", ".", "userId", ")", ")", "{", "return", "a", ".", "userId", ".", "localeCompare", "(", "b", ".", "userId", ")", ";", "}", "if", "(", "usersResource", ".", "resource", ".", "isNew", "(", "a", ".", "userId", ")", ")", "{", "return", "-", "1", ";", "}", "return", "1", ";", "}", ")", ")", ";", "const", "create", "=", "param", "===", "'create'", ";", "const", "keys", "=", "users", ".", "map", "(", "user", "=>", "user", ".", "userId", ")", ";", "return", "styled", "(", "style", ")", "(", "<", "layout", "-", "grid", ">", "<", "layout", "-", "grid", "-", "inner", ">", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "ToolsPanel", ">", "{", "isLocalProviderAvailable", "&&", "(", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'authentication_administration_tools_add_tooltip'", ")", "}", "icon", "=", "\"add\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "create", "&&", "!", "!", "createUserService", ".", "user", "}", "onClick", "=", "{", "createUserService", ".", "create", "}", ">", "{", "translate", "(", "'ui_add'", ")", "}", "<", "/ToolsAction>)}", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'authentication_administration_tools_refresh_tooltip'", ")", "}", "icon", "=", "\"refresh\"", "viewBox", "=", "\"0 0 24 24\"", "onClick", "=", "{", "controller", ".", "update", "}", ">", "{", "translate", "(", "'ui_refresh'", ")", "}", "<", "/ToolsAction>", "{", "isLocalProviderAvailable", "&&", "(", "<", "ToolsAction", "title", "=", "{", "translate", "(", "'authentication_administration_tools_delete_tooltip'", ")", "}", "icon", "=", "\"trash\"", "viewBox", "=", "\"0 0 24 24\"", "disabled", "=", "{", "!", "controller", ".", "itemsSelected", "}", "onClick", "=", "{", "controller", ".", "delete", "}", ">", "{", "translate", "(", "'ui_delete'", ")", "}", "<", "/ToolsAction>)}", "<", "/ToolsPanel>", "<", "/layout-grid-cell>", "{", "create", "&&", "createUserService", ".", "user", "&&", "(", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", "}", ")", "}", ">", "<", "CreateUser", "user", "=", "{", "createUserService", ".", "user", "}", "onCancel", "=", "{", "createUserService", ".", "cancelCreate", "}", "/", ">", "<", "/layout-grid-cell>)}", "<", "layout", "-", "grid", "-", "cell", "{", "...", "use", "(", "{", "span", ":", "12", ",", "table", ":", "true", "}", ")", "}", ">", "<", "Loader", "style", "=", "{", "loaderStyle", "}", "state", "=", "{", "usersResource", "}", "overlay", ">", "<", "Table", "keys", "=", "{", "keys", "}", "selectedItems", "=", "{", "controller", ".", "selectedItems", "}", "expandedItems", "=", "{", "controller", ".", "expandedItems", "}", "{", "...", "use", "(", "{", "size", ":", "'big'", "}", ")", "}", ">", "<", "TableHeader", ">", "{", "isLocalProviderAvailable", "&&", "(", "<", "TableColumnHeader", "min", "flex", "centerContent", ">", "<", "TableSelect", "/>", "<", "/TableColumnHeader>)}", "<", "TableColumnHeader", "min", "/", ">", "<", "TableColumnHeader", ">", "{", "translate", "(", "'authentication_user_name'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", ">", "{", "translate", "(", "'authentication_user_role'", ")", "}", "<", "/TableColumnHeader>", "<", "TableColumnHeader", "/", ">", "<", "/TableHeader>", "<", "TableBody", ">", "{", "users", ".", "map", "(", "user", "=>", "<", "User", "key", "=", "{", "user", ".", "userId", "}", "user", "=", "{", "user", "}", "selectable", "=", "{", "isLocalProviderAvailable", "}", "/", ">", ")", "}", "<", "/TableBody>", "<", "/Table>", "<", "/Loader>", "<", "/layout-grid-cell>", "<", "/layout-grid-inner>", "<", "/layout-grid>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
386
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "AdministrationItemContentComponent", ",", "ADMINISTRATION_TOOLS_PANEL_STYLES", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "ITabData", ",", "Tab", ",", "TabList", ",", "TabPanel", ",", "TabsState", ",", "UNDERLINE_TAB_STYLES", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "ToolsPanel", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useService", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "{", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "MetaParameters", "}", "from", "'./MetaParameters/MetaParameters'", ";", "import", "{", "RolesPage", "}", "from", "'./Roles/RolesPage'", ";", "import", "{", "EUsersAdministrationSub", ",", "UsersAdministrationNavigationService", "}", "from", "'./UsersAdministrationNavigationService'", ";", "import", "{", "UsersTable", "}", "from", "'./UsersTable/UsersTable'", ";", "const", "tabsStyles", "=", "css", "`\n TabList {\n position: relative;\n flex-shrink: 0;\n align-items: center;\n height: 51px;\n }\n Tab {\n height: 46px!important;\n text-transform: uppercase;\n font-weight: 500 !important;\n }\n TabPanel {\n flex-direction: column;\n }\n`", ";", "export", "const", "UsersAdministration", "=", "observer", "(", "function", "UsersAdministration", "(", "{", "sub", ",", "param", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "usersAdministrationNavigationService", "=", "useService", "(", "UsersAdministrationNavigationService", ")", ";", "const", "subName", "=", "sub", "?.", "name", "||", "EUsersAdministrationSub", ".", "Users", ";", "const", "tabStyle", "=", "[", "tabsStyles", ",", "UNDERLINE_TAB_STYLES", "]", ";", "const", "style", "=", "useStyles", "(", "ADMINISTRATION_TOOLS_PANEL_STYLES", ",", "tabStyle", ")", ";", "function", "openSub", "(", "{", "tabId", "}", ")", "{", "if", "(", "subName", "===", "tabId", ")", "{", "return", ";", "}", "param", "=", "null", ";", "usersAdministrationNavigationService", ".", "navToSub", "(", "tabId", "as", "EUsersAdministrationSub", ",", "param", "||", "undefined", ")", ";", "}", "return", "styled", "(", "style", ")", "(", "<", "TabsState", "selectedId", "=", "{", "subName", "}", "lazy", "onChange", "=", "{", "openSub", "}", ">", "<", "ToolsPanel", ">", "<", "TabList", "style", "=", "{", "style", "}", ">", "<", "Tab", "tabId", "=", "{", "EUsersAdministrationSub", ".", "Users", "}", "style", "=", "{", "style", "}", ">", "{", "translate", "(", "'authentication_administration_item_users'", ")", "}", "<", "/Tab>", "<", "Tab", "tabId", "=", "{", "EUsersAdministrationSub", ".", "Roles", "}", "style", "=", "{", "style", "}", ">", "{", "translate", "(", "'administration_roles_tab_title'", ")", "}", "<", "/Tab>", "{", "}", "<", "/TabList>", "<", "/ToolsPanel>", "<", "TabPanel", "tabId", "=", "{", "EUsersAdministrationSub", ".", "Users", "}", ">", "<", "UsersTable", "sub", "=", "{", "sub", "}", "param", "=", "{", "param", "}", "/", ">", "<", "/TabPanel>", "<", "TabPanel", "tabId", "=", "{", "EUsersAdministrationSub", ".", "Roles", "}", ">", "<", "RolesPage", "sub", "=", "{", "sub", "}", "param", "=", "{", "param", "}", "/", ">", "<", "/TabPanel>", "<", "TabPanel", "tabId", "=", "{", "EUsersAdministrationSub", ".", "MetaProperties", "}", ">", "<", "MetaParameters", "/>", "<", "/TabPanel>", "<", "/TabsState>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
387
[ "import", "{", "AdministrationItemService", "}", "from", "'@cloudbeaver/core-administration'", ";", "import", "{", "AdminUser", ",", "RolesResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "PlaceholderContainer", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "injectable", ",", "Bootstrap", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "CreateRoleService", "}", "from", "'./Roles/CreateRoleService'", ";", "import", "{", "UsersAdministration", "}", "from", "'./UsersAdministration'", ";", "import", "{", "EUsersAdministrationSub", ",", "UsersAdministrationNavigationService", "}", "from", "'./UsersAdministrationNavigationService'", ";", "import", "{", "UsersDrawerItem", "}", "from", "'./UsersDrawerItem'", ";", "import", "{", "CreateUserService", "}", "from", "'./UsersTable/CreateUserService'", ";", "import", "{", "Origin", "}", "from", "'./UsersTable/UserDetailsInfo/Origin'", ";", "export", "interface", "IUserDetailsInfoProps", "{", "user", ":", "AdminUser", ";", "}", "@", "injectable", "(", ")", "export", "class", "UsersAdministrationService", "extends", "Bootstrap", "{", "readonly", "userDetailsInfoPlaceholder", "=", "new", "PlaceholderContainer", "<", "IUserDetailsInfoProps", ">", "(", ")", ";", "constructor", "(", "private", "administrationItemService", ",", "private", "createUserService", ",", "private", "readonly", "rolesResource", ",", "private", "readonly", "createRoleService", ")", "{", "super", "(", ")", ";", "}", "register", "(", ")", "{", "this", ".", "administrationItemService", ".", "create", "(", "{", "name", ":", "UsersAdministrationNavigationService", ".", "ItemName", ",", "order", ":", "3", ",", "sub", ":", "[", "{", "name", ":", "EUsersAdministrationSub", ".", "MetaProperties", ",", "}", ",", "{", "name", ":", "EUsersAdministrationSub", ".", "Users", ",", "onDeActivate", ":", "this", ".", "cancelCreate", ".", "bind", "(", "this", ")", ",", "}", ",", "{", "name", ":", "EUsersAdministrationSub", ".", "Roles", ",", "onActivate", ":", "this", ".", "loadRoles", ".", "bind", "(", "this", ")", ",", "onDeActivate", ":", "(", "configurationWizard", ",", "outside", ")", "=>", "{", "if", "(", "outside", ")", "{", "this", ".", "rolesResource", ".", "cleanNewFlags", "(", ")", ";", "}", "}", ",", "}", ",", "]", ",", "defaultSub", ":", "EUsersAdministrationSub", ".", "Users", ",", "getContentComponent", ":", "(", ")", "=>", "UsersAdministration", ",", "getDrawerComponent", ":", "(", ")", "=>", "UsersDrawerItem", ",", "}", ")", ";", "this", ".", "userDetailsInfoPlaceholder", ".", "add", "(", "Origin", ",", "0", ")", ";", "}", "load", "(", ")", "{", "}", "private", "async", "cancelCreate", "(", "param", ")", "{", "if", "(", "param", "===", "'create'", ")", "{", "this", ".", "createUserService", ".", "close", "(", ")", ";", "}", "}", "private", "async", "loadRoles", "(", "param", ")", "{", "if", "(", "param", "===", "'create'", ")", "{", "this", ".", "createRoleService", ".", "fillData", "(", ")", ";", "}", "}", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, 24282, null, null, null, 0, null, null, null, 0, null, null, null, null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 7, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
388
[ "import", "type", "{", "PluginManifest", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "AuthConfigurationFormService", "}", "from", "'./Administration/IdentityProviders/AuthConfigurationFormService'", ";", "import", "{", "AuthConfigurationsAdministrationNavService", "}", "from", "'./Administration/IdentityProviders/AuthConfigurationsAdministrationNavService'", ";", "import", "{", "AuthConfigurationsAdministrationService", "}", "from", "'./Administration/IdentityProviders/AuthConfigurationsAdministrationService'", ";", "import", "{", "CreateAuthConfigurationService", "}", "from", "'./Administration/IdentityProviders/CreateAuthConfigurationService'", ";", "import", "{", "AuthConfigurationOptionsTabService", "}", "from", "'./Administration/IdentityProviders/Options/AuthConfigurationOptionsTabService'", ";", "import", "{", "ServerConfigurationAuthenticationBootstrap", "}", "from", "'./Administration/ServerConfiguration/ServerConfigurationAuthenticationBootstrap'", ";", "import", "{", "CreateMetaParameterService", "}", "from", "'./Administration/Users/MetaParameters/CreateMetaParameterService'", ";", "import", "{", "CreateRoleService", "}", "from", "'./Administration/Users/Roles/CreateRoleService'", ";", "import", "{", "GrantedConnectionsTabService", "}", "from", "'./Administration/Users/Roles/GrantedConnections/GrantedConnectionsTabService'", ";", "import", "{", "GrantedUsersTabService", "}", "from", "'./Administration/Users/Roles/GrantedUsers/GrantedUsersTabService'", ";", "import", "{", "RoleOptionsTabService", "}", "from", "'./Administration/Users/Roles/Options/RoleOptionsTabService'", ";", "import", "{", "RoleFormService", "}", "from", "'./Administration/Users/Roles/RoleFormService'", ";", "import", "{", "RolesAdministrationNavService", "}", "from", "'./Administration/Users/Roles/RolesAdministrationNavService'", ";", "import", "{", "RolesAdministrationService", "}", "from", "'./Administration/Users/Roles/RolesAdministrationService'", ";", "import", "{", "UserFormBaseBootstrap", "}", "from", "'./Administration/Users/UserForm/UserFormBaseBootstrap'", ";", "import", "{", "UserFormService", "}", "from", "'./Administration/Users/UserForm/UserFormService'", ";", "import", "{", "UsersAdministrationNavigationService", "}", "from", "'./Administration/Users/UsersAdministrationNavigationService'", ";", "import", "{", "UsersAdministrationService", "}", "from", "'./Administration/Users/UsersAdministrationService'", ";", "import", "{", "CreateUserService", "}", "from", "'./Administration/Users/UsersTable/CreateUserService'", ";", "import", "{", "AuthenticationLocaleService", "}", "from", "'./AuthenticationLocaleService'", ";", "import", "{", "PluginBootstrap", "}", "from", "'./PluginBootstrap'", ";", "export", "const", "manifest", "=", "{", "info", ":", "{", "name", ":", "'Authentication Administration'", ",", "}", ",", "providers", ":", "[", "PluginBootstrap", ",", "UsersAdministrationService", ",", "AuthenticationLocaleService", ",", "CreateUserService", ",", "UsersAdministrationNavigationService", ",", "ServerConfigurationAuthenticationBootstrap", ",", "UserFormService", ",", "CreateMetaParameterService", ",", "UserFormBaseBootstrap", ",", "AuthConfigurationsAdministrationService", ",", "CreateAuthConfigurationService", ",", "AuthConfigurationsAdministrationNavService", ",", "AuthConfigurationFormService", ",", "AuthConfigurationOptionsTabService", ",", "RolesAdministrationService", ",", "CreateRoleService", ",", "RolesAdministrationNavService", ",", "RoleFormService", ",", "RoleOptionsTabService", ",", "GrantedUsersTabService", ",", "GrantedConnectionsTabService", ",", "]", ",", "}", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5609, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
389
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "{", "useContext", ",", "useCallback", ",", "useEffect", ",", "useRef", "}", "from", "'react'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "Loader", ",", "TableContext", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useController", "}", "from", "'@cloudbeaver/core-di'", ";", "import", "{", "composes", ",", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "UserForm", "}", "from", "'../UserForm/UserForm'", ";", "import", "{", "UserEditController", "}", "from", "'./UserEditController'", ";", "const", "styles", "=", "composes", "(", "css", "`\n box {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n box {\n box-sizing: border-box;\n padding-bottom: 24px;\n height: 520px;\n display: flex;\n flex-direction: column;\n }\n `", ")", ";", "interface", "Props", "{", "item", ":", "string", ";", "}", "export", "const", "UserEdit", "=", "observer", "<", "Props", ">", "(", "function", "UserEdit", "(", "{", "item", ",", "}", ")", "{", "const", "boxRef", "=", "useRef", "<", "HTMLDivElement", ">", "(", "null", ")", ";", "const", "controller", "=", "useController", "(", "UserEditController", ",", "item", ")", ";", "const", "tableContext", "=", "useContext", "(", "TableContext", ")", ";", "const", "collapse", "=", "useCallback", "(", "(", ")", "=>", "tableContext", "?.", "setItemExpand", "(", "item", ",", "false", ")", ",", "[", "tableContext", "]", ")", ";", "useEffect", "(", "(", ")", "=>", "{", "boxRef", ".", "current", "?.", "scrollIntoView", "(", "{", "behavior", ":", "'smooth'", ",", "block", ":", "'nearest'", ",", "}", ")", ";", "}", ",", "[", "]", ")", ";", "return", "styled", "(", "useStyles", "(", "styles", ")", ")", "(", "<", "box", "ref", "=", "{", "boxRef", "}", "as", "=", "'div'", ">", "{", "controller", ".", "user", "?", "(", "<", "UserForm", "user", "=", "{", "controller", ".", "user", "}", "editing", "onCancel", "=", "{", "collapse", "}", "/", ">", ")", ":", "<", "Loader", "/>}", "<", "/box>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 35, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
390
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", "from", "'reshadow'", ";", "import", "{", "UserMetaParametersResource", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "TabPanel", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "ColoredContainer", ",", "Container", ",", "Group", ",", "InputField", ",", "Loader", ",", "ObjectPropertyInfoForm", ",", "useDataResource", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "UserInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "ComponentStyle", ",", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "{", "AuthProvidersList", "}", "from", "'../AuthProviders/ConfigurationsList'", ";", "interface", "Props", "{", "user", ":", "UserInfo", ";", "className", "?", ":", "string", ";", "style", "?", ":", "ComponentStyle", ";", "}", "export", "const", "MetaParameterInfoPanel", "=", "observer", "<", "Props", ">", "(", "function", "MetaParameterInfoPanel", "(", "{", "user", ",", "className", ",", "style", ",", "}", ")", "{", "const", "userMetaParameters", "=", "useDataResource", "(", "MetaParameterInfoPanel", ",", "UserMetaParametersResource", ",", "undefined", ")", ";", "const", "styles", "=", "useStyles", "(", "style", ",", "BASE_CONTAINERS_STYLES", ")", ";", "const", "translate", "=", "useTranslate", "(", ")", ";", "return", "styled", "(", "styles", ")", "(", "<", "TabPanel", "tabId", "=", "'info'", "className", "=", "{", "className", "}", ">", "<", "ColoredContainer", "wrap", "overflow", "parent", "gap", ">", "<", "Container", "medium", "gap", ">", "<", "Group", "form", "gap", ">", "<", "Container", "wrap", "gap", ">", "<", "InputField", "type", "=", "\"text\"", "name", "=", "\"userId\"", "minLength", "=", "{", "1", "}", "state", "=", "{", "user", "}", "mod", "=", "'surface'", "disabled", "readOnly", "required", "tiny", "fill", ">", "{", "translate", "(", "'plugin_user_profile_info_id'", ")", "}", "<", "/InputField>", "<", "InputField", "type", "=", "\"text\"", "name", "=", "\"displayName\"", "minLength", "=", "{", "1", "}", "state", "=", "{", "user", "}", "mod", "=", "'surface'", "disabled", "readOnly", "required", "tiny", "fill", ">", "{", "translate", "(", "'plugin_user_profile_info_displayName'", ")", "}", "<", "/InputField>", "<", "/Container>", "<", "Loader", "state", "=", "{", "userMetaParameters", "}", "inline", ">", "{", "(", ")", "=>", "userMetaParameters", ".", "data", ".", "length", ">", "0", "&&", "styled", "(", "styles", ")", "(", "<", "Container", "wrap", "gap", ">", "<", "ObjectPropertyInfoForm", "state", "=", "{", "user", ".", "metaParameters", "}", "properties", "=", "{", "userMetaParameters", ".", "data", "}", "category", "=", "{", "null", "}", "disabled", "readOnly", "/", ">", "<", "/Container>)}", "<", "/Loader>", "<", "/Group>", "<", "Group", "box", "medium", "overflow", ">", "<", "AuthProvidersList", "user", "=", "{", "user", "}", "providers", "=", "{", "user", ".", "linkedAuthProviders", "}", "/", ">", "<", "/Group>", "<", "/Container>", "<", "/ColoredContainer>", "<", "/TabPanel>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
391
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", ",", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "UNDERLINE_TAB_STYLES", ",", "TabList", ",", "TabsState", "}", "from", "'@cloudbeaver/core-ui'", ";", "import", "{", "BASE_CONTAINERS_STYLES", ",", "IconOrImage", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "{", "useTranslate", "}", "from", "'@cloudbeaver/core-localization'", ";", "import", "type", "{", "UserInfo", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "{", "composes", ",", "useStyles", "}", "from", "'@cloudbeaver/core-theming'", ";", "import", "type", "{", "IUserProfileFormState", "}", "from", "'./IUserProfileFormState'", ";", "import", "{", "MetaParameterInfoPanel", "}", "from", "'./UserInfo/MetaParameterInfoPanel'", ";", "import", "{", "MetaParameterInfoTab", "}", "from", "'./UserInfo/MetaParameterInfoTab'", ";", "const", "tabsStyles", "=", "css", "`\n TabList {\n position: relative;\n flex-shrink: 0;\n align-items: center;\n }\n Tab {\n height: 46px!important;\n text-transform: uppercase;\n font-weight: 500 !important;\n }\n`", ";", "const", "topBarStyles", "=", "composes", "(", "css", "`\n top-bar {\n composes: theme-border-color-background theme-background-secondary theme-text-on-secondary from global;\n }\n `", ",", "css", "`\n top-bar {\n position: relative;\n display: flex;\n padding-top: 16px;\n\n &:before {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n border-bottom: solid 2px;\n border-color: inherit;\n }\n }\n top-bar-tabs {\n flex: 1;\n }\n\n top-bar-actions {\n display: flex;\n align-items: center;\n padding: 0 24px;\n gap: 16px;\n }\n\n /*Button:not(:first-child) {\n margin-right: 24px;\n }*/\n\n status-message {\n composes: theme-typography--caption from global;\n height: 24px;\n padding: 0 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n\n & IconOrImage {\n height: 24px;\n width: 24px;\n }\n }\n `", ")", ";", "const", "formStyles", "=", "composes", "(", "css", "`\n box {\n composes: theme-background-secondary theme-text-on-secondary from global;\n }\n\n content-box {\n composes: theme-background-secondary theme-border-color-background from global;\n }\n `", ",", "css", "`\n flex-box {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n overflow: auto;\n }\n content-box {\n position: relative;\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: auto;\n }\n `", ")", ";", "interface", "Props", "{", "user", ":", "UserInfo", ";", "state", ":", "IUserProfileFormState", ";", "}", "export", "const", "MetaParameterForm", "=", "observer", "<", "Props", ">", "(", "function", "MetaParameterForm", "(", "{", "user", ",", "state", ",", "}", ")", "{", "const", "translate", "=", "useTranslate", "(", ")", ";", "const", "style", "=", "[", "tabsStyles", ",", "UNDERLINE_TAB_STYLES", "]", ";", "const", "styles", "=", "useStyles", "(", "style", ",", "BASE_CONTAINERS_STYLES", ",", "topBarStyles", ",", "formStyles", ")", ";", "return", "styled", "(", "styles", ")", "(", "<", "flex", "-", "box", ">", "<", "TabsState", ">", "<", "top", "-", "bar", ">", "<", "top", "-", "bar", "-", "tabs", ">", "<", "status", "-", "message", ">", "{", "state", ".", "info", ".", "statusMessage", "&&", "(", "<", ">", "<", "IconOrImage", "icon", "=", "'/icons/info_icon.svg'", "/>", "{", "translate", "(", "state", ".", "info", ".", "statusMessage", ")", "}", "<", "/>)}", "<", "/status-message>", "<", "TabList", "style", "=", "{", "style", "}", "disabled", "=", "{", "state", ".", "info", ".", "disabled", "}", ">", "<", "MetaParameterInfoTab", "style", "=", "{", "style", "}", "/", ">", "{", "}", "<", "/TabList>", "<", "/top-bar-tabs>", "<", "top", "-", "bar", "-", "actions", ">", "{", "' '", "}", "<", "/top-bar-actions>", "<", "/top-bar>", "<", "content", "-", "box", ">", "<", "MetaParameterInfoPanel", "user", "=", "{", "user", "}", "style", "=", "{", "style", "}", "/", ">", "{", "}", "<", "/content-box>", "<", "/TabsState>", "<", "/flex-box>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
392
[ "import", "{", "observer", "}", "from", "'mobx-react-lite'", ";", "import", "styled", "from", "'reshadow'", ";", "import", "{", "css", "}", "from", "'reshadow'", ";", "import", "{", "AUTH_PROVIDER_LOCAL_ID", "}", "from", "'@cloudbeaver/core-authentication'", ";", "import", "{", "PlaceholderComponent", ",", "StaticImage", "}", "from", "'@cloudbeaver/core-blocks'", ";", "import", "type", "{", "ObjectOrigin", "}", "from", "'@cloudbeaver/core-sdk'", ";", "import", "type", "{", "IUserDetailsInfoProps", "}", "from", "'../../UsersAdministrationService'", ";", "const", "USER_DETAILS_STYLES", "=", "css", "`\n StaticImage {\n width: 24px;\n height: 24px;\n }\n`", ";", "interface", "IOriginIconProps", "{", "origin", ":", "ObjectOrigin", ";", "}", "export", "const", "OriginIcon", "=", "observer", "<", "IOriginIconProps", ">", "(", "function", "Origin", "(", "{", "origin", "}", ")", "{", "const", "isLocal", "=", "origin", ".", "type", "===", "AUTH_PROVIDER_LOCAL_ID", ";", "const", "icon", "=", "isLocal", "?", "'/icons/local_connection.svg'", ":", "origin", ".", "icon", ";", "const", "title", "=", "isLocal", "?", "'Local user'", ":", "origin", ".", "displayName", ";", "return", "styled", "(", "USER_DETAILS_STYLES", ")", "(", "<", "StaticImage", "key", "=", "{", "origin", ".", "type", "+", "origin", ".", "subType", "}", "icon", "=", "{", "icon", "}", "title", "=", "{", "title", "}", "/", ">", ")", ";", "}", ")", ";", "export", "const", "Origin", "=", "observer", "(", "function", "Origin", "(", "{", "user", "}", ")", "{", "return", "(", "<", ">", "{", "user", ".", "origins", ".", "map", "(", "origin", "=>", "(", "<", "OriginIcon", "key", "=", "{", "origin", ".", "type", "+", "origin", ".", "subType", "}", "origin", "=", "{", "origin", "}", "/", ">", ")", ")", "}", "<", "/>);", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2579, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 85, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 24280, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
393
[ "format", "import", "{", "CallExpression", ",", "isStringLiteral", ",", "identifier", ",", "Identifier", ",", "}", "from", "'@babel/types'", ";", "import", "{", "NodePath", "}", "from", "'@babel/traverse'", ";", "const", "requireReplacements", "=", "{", "flipper", ":", "'global.Flipper'", ",", "'flipper-plugin'", ":", "'global.FlipperPlugin'", ",", "react", ":", "'global.React'", ",", "'react-dom'", ":", "'global.ReactDOM'", ",", "antd", ":", "'global.antd'", ",", "immer", ":", "'global.Immer'", ",", "'@emotion/styled'", ":", "'global.emotion_styled'", ",", "'@ant-design/icons'", ":", "'global.antdesign_icons'", ",", "}", ";", "export", "function", "tryReplaceFlipperRequire", "(", "path", ")", "{", "const", "node", "=", "path", ".", "node", ";", "const", "args", "=", "node", ".", "arguments", "||", "[", "]", ";", "if", "(", "node", ".", "callee", ".", "type", "===", "'Identifier'", "&&", "node", ".", "callee", ".", "name", "===", "'require'", "&&", "args", ".", "length", "===", "1", "&&", "isStringLiteral", "(", "args", "[", "0", "]", ")", ")", "{", "const", "replacement", "=", "requireReplacements", "[", "args", "[", "0", "]", ".", "value", "]", ";", "if", "(", "replacement", ")", "{", "path", ".", "replaceWith", "(", "identifier", "(", "replacement", ")", ")", ";", "return", "true", ";", "}", "}", "return", "false", ";", "}", "export", "function", "tryReplaceGlobalReactUsage", "(", "path", ")", "{", "if", "(", "path", ".", "node", ".", "name", "===", "'React'", "&&", "(", "path", ".", "parentPath", ".", "node", "as", "any", ")", ".", "id", "!==", "path", ".", "node", "&&", "!", "isReactImportIdentifier", "(", "path", ")", ")", "{", "path", ".", "replaceWith", "(", "identifier", "(", "'global.React'", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "function", "isReactImportIdentifier", "(", "path", ")", "{", "return", "(", "path", ".", "parentPath", ".", "node", ".", "type", "===", "'ImportNamespaceSpecifier'", "&&", "path", ".", "parentPath", ".", "node", ".", "local", ".", "name", "===", "'React'", ")", ";", "}" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
394
[ "format", "import", "{", "CallExpression", ",", "Identifier", "}", "from", "'@babel/types'", ";", "import", "{", "NodePath", "}", "from", "'@babel/traverse'", ";", "import", "{", "tryReplaceFlipperRequire", ",", "tryReplaceGlobalReactUsage", ",", "}", "from", "'./replace-flipper-requires'", ";", "import", "{", "resolve", "}", "from", "'path'", ";", "const", "sourceRootDir", "=", "resolve", "(", "__dirname", ",", "'..'", ",", "'..'", ")", ";", "function", "isExcludedPath", "(", "path", ")", "{", "return", "path", ".", "startsWith", "(", "sourceRootDir", ")", ";", "}", "module", ".", "exports", "=", "(", ")", "=>", "(", "{", "visitor", ":", "{", "CallExpression", "(", "path", ",", "state", ")", "{", "if", "(", "isExcludedPath", "(", "state", ".", "file", ".", "opts", ".", "filename", ")", ")", "{", "return", ";", "}", "tryReplaceFlipperRequire", "(", "path", ")", ";", "}", ",", "Identifier", "(", "path", ",", "state", ")", "{", "if", "(", "isExcludedPath", "(", "state", ".", "file", ".", "opts", ".", "filename", ")", ")", "{", "return", ";", "}", "tryReplaceGlobalReactUsage", "(", "path", ")", ";", "}", ",", "}", ",", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, 8, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
395
[ "format", "import", "{", "CallExpression", ",", "identifier", "}", "from", "'@babel/types'", ";", "import", "{", "NodePath", "}", "from", "'@babel/traverse'", ";", "function", "isDynamicRequire", "(", "node", ")", "{", "return", "(", "node", ".", "type", "===", "'CallExpression'", "&&", "node", ".", "callee", ".", "type", "===", "'Identifier'", "&&", "node", ".", "callee", ".", "name", "===", "'require'", "&&", "(", "node", ".", "arguments", ".", "length", "!==", "1", "||", "node", ".", "arguments", "[", "0", "]", ".", "type", "!==", "'StringLiteral'", ")", ")", ";", "}", "module", ".", "exports", "=", "(", ")", "=>", "(", "{", "name", ":", "'replace-dynamic-requires'", ",", "visitor", ":", "{", "CallExpression", "(", "path", ")", "{", "path", ".", "node", ";", "if", "(", "!", "isDynamicRequire", "(", "path", ".", "node", ")", ")", "{", "return", ";", "}", "path", ".", "replaceWith", "(", "identifier", "(", "'triggerDynamicRequireError'", ")", ")", ";", "}", ",", "}", ",", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, 462, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
396
[ "format", "import", "{", "CallExpression", "}", "from", "'@babel/types'", ";", "import", "{", "NodePath", "}", "from", "'@babel/traverse'", ";", "module", ".", "exports", "=", "(", ")", "=>", "(", "{", "name", ":", "'change-require-to-electronRequire-in-main'", ",", "visitor", ":", "{", "CallExpression", "(", "path", ")", "{", "const", "node", "=", "path", ".", "node", ";", "if", "(", "node", ".", "type", "===", "'CallExpression'", "&&", "node", ".", "callee", ".", "type", "===", "'Identifier'", "&&", "node", ".", "callee", ".", "name", "===", "'require'", "&&", "node", ".", "arguments", ".", "length", "===", "1", "&&", "node", ".", "arguments", "[", "0", "]", ".", "type", "===", "'StringLiteral'", ")", "{", "const", "source", "=", "node", ".", "arguments", "[", "0", "]", ".", "value", ";", "if", "(", "!", "source", ".", "startsWith", "(", "'./'", ")", "&&", "!", "source", ".", "startsWith", "(", "'../'", ")", ")", "{", "node", ".", "callee", ".", "name", "=", "'electronRequire'", ";", "}", "}", "if", "(", "node", ".", "callee", ".", "type", "===", "'MemberExpression'", "&&", "node", ".", "callee", ".", "object", ".", "type", "===", "'Identifier'", "&&", "node", ".", "callee", ".", "object", ".", "name", "===", "'require'", "&&", "node", ".", "callee", ".", "property", ".", "type", "===", "'Identifier'", "&&", "node", ".", "callee", ".", "property", ".", "name", "===", "'resolve'", "&&", "node", ".", "arguments", ".", "length", "===", "1", "&&", "node", ".", "arguments", "[", "0", "]", ".", "type", "==", "'StringLiteral'", ")", "{", "node", ".", "callee", ".", "object", ".", "name", "=", "'electronRequire'", ";", "}", "}", ",", "}", ",", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
397
[ "format", "import", "{", "CallExpression", ",", "identifier", "}", "from", "'@babel/types'", ";", "import", "{", "NodePath", "}", "from", "'@babel/traverse'", ";", "const", "BUILTINS", "=", "[", "'electron'", ",", "'buffer'", ",", "'child_process'", ",", "'crypto'", ",", "'dgram'", ",", "'dns'", ",", "'fs'", ",", "'http'", ",", "'https'", ",", "'net'", ",", "'os'", ",", "'readline'", ",", "'stream'", ",", "'string_decoder'", ",", "'tls'", ",", "'tty'", ",", "'zlib'", ",", "'constants'", ",", "'events'", ",", "'url'", ",", "'assert'", ",", "'util'", ",", "'path'", ",", "'punycode'", ",", "'querystring'", ",", "'cluster'", ",", "'console'", ",", "'module'", ",", "'process'", ",", "'vm'", ",", "'domain'", ",", "'v8'", ",", "'repl'", ",", "'timers'", ",", "'node-fetch'", ",", "'jest'", ",", "'@testing-library/react'", ",", "'@testing-library/dom'", ",", "]", ";", "const", "IGNORED_MODULES", "=", "[", "'bufferutil'", ",", "'utf-8-validate'", ",", "'spawn-sync'", ",", "'./src/logcat'", ",", "'./src/monkey'", ",", "'./src/adb'", ",", "]", ";", "module", ".", "exports", "=", "(", ")", "=>", "(", "{", "name", ":", "'change-require-to-electronRequire-in-electron-app'", ",", "visitor", ":", "{", "CallExpression", "(", "path", ")", "{", "const", "node", "=", "path", ".", "node", ";", "if", "(", "node", ".", "type", "===", "'CallExpression'", "&&", "node", ".", "callee", ".", "type", "===", "'Identifier'", "&&", "node", ".", "callee", ".", "name", "===", "'require'", "&&", "node", ".", "arguments", ".", "length", "===", "1", "&&", "node", ".", "arguments", "[", "0", "]", ".", "type", "===", "'StringLiteral'", ")", "{", "const", "source", "=", "node", ".", "arguments", "[", "0", "]", ".", "value", ";", "if", "(", "BUILTINS", ".", "includes", "(", "source", ")", "||", "BUILTINS", ".", "some", "(", "(", "moduleName", ")", "=>", "source", ".", "startsWith", "(", "`${", "moduleName", "}/`", ")", ")", ")", "{", "node", ".", "callee", ".", "name", "=", "'electronRequire'", ";", "}", "if", "(", "IGNORED_MODULES", ".", "includes", "(", "source", ")", ")", "{", "path", ".", "replaceWith", "(", "identifier", "(", "'triggerReferenceError'", ")", ")", ";", "}", "}", "}", ",", "}", ",", "}", ")", ";", "module", ".", "exports", ".", "BUILTINS", "=", "BUILTINS", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
398
[ "format", "/**\n * There are some env vars which affect transformations, so the Metro/Babel cache should be invalidated when at least one of them changed.\n * They are used in get-cache-key.ts for cache key generation.\n */", "type", "FlipperEnvVars", "=", "{", "FLIPPER_FB", "?", ":", "string", ";", "FLIPPER_TEST_RUNNER", "?", ":", "string", ";", "FLIPPER_ELECTRON_VERSION", "?", ":", "string", ";", "NODE_ENV", "?", ":", "string", ";", "FLIPPER_FORCE_PUBLIC_BUILD", "?", ":", "string", ";", "}", ";", "const", "flipperEnv", "=", "new", "Proxy", "(", "{", "FLIPPER_FB", ":", "undefined", ",", "FLIPPER_TEST_RUNNER", ":", "undefined", ",", "FLIPPER_ELECTRON_VERSION", ":", "undefined", ",", "NODE_ENV", ":", "undefined", ",", "FLIPPER_FORCE_PUBLIC_BUILD", ":", "undefined", ",", "}", "as", "FlipperEnvVars", ",", "{", "get", ":", "function", "(", "obj", ",", "prop", ")", "{", "if", "(", "typeof", "prop", "===", "'string'", ")", "{", "return", "process", ".", "env", "[", "prop", "]", ";", "}", "else", "{", "return", "(", "obj", "as", "any", ")", "[", "prop", "]", ";", "}", "}", ",", "set", ":", "function", "(", ")", "{", "throw", "new", "Error", "(", "'flipperEnv is read-only'", ")", ";", "}", ",", "}", ")", ";", "export", "default", "flipperEnv", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]
399
[ "format", "import", "{", "resolve", ",", "dirname", ",", "sep", "}", "from", "'path'", ";", "import", "env", "from", "'./flipper-env'", ";", "import", "{", "CallExpression", "}", "from", "'@babel/types'", ";", "import", "{", "NodePath", "}", "from", "'@babel/traverse'", ";", "import", "fs", "from", "'fs-extra'", ";", "const", "isFBFile", "=", "(", "filePath", ")", "=>", "filePath", ".", "includes", "(", "`${", "sep", "}fb${", "sep", "}`", ")", ";", "const", "requireFromFolder", "=", "(", "folder", ",", "path", ")", "=>", "new", "RegExp", "(", "folder", "+", "'/[\\\\w.-]+(.js)?$'", ",", "'g'", ")", ".", "test", "(", "path", ")", ";", "const", "pathExistsCache", "=", "new", "Map", "<", "string", ",", "boolean", ">", "(", ")", ";", "function", "pathExistsSync", "(", "path", ")", "{", "const", "cachedResult", "=", "pathExistsCache", ".", "get", "(", "path", ")", ";", "if", "(", "cachedResult", "!==", "undefined", ")", "{", "return", "cachedResult", ";", "}", "const", "result", "=", "fs", ".", "pathExistsSync", "(", "path", ")", ";", "pathExistsCache", ".", "set", "(", "path", ",", "result", ")", ";", "return", "result", ";", "}", "module", ".", "exports", "=", "(", ")", "=>", "(", "{", "name", ":", "'replace-fb-stubs'", ",", "visitor", ":", "{", "CallExpression", "(", "path", ",", "state", ")", "{", "if", "(", "env", ".", "FLIPPER_FORCE_PUBLIC_BUILD", "!==", "'true'", "&&", "path", ".", "node", ".", "type", "===", "'CallExpression'", "&&", "path", ".", "node", ".", "callee", ".", "type", "===", "'Identifier'", "&&", "path", ".", "node", ".", "callee", ".", "name", "===", "'require'", "&&", "path", ".", "node", ".", "arguments", ".", "length", ">", "0", "&&", "path", ".", "node", ".", "arguments", "[", "0", "]", ".", "type", "===", "'StringLiteral'", ")", "{", "if", "(", "requireFromFolder", "(", "'fb'", ",", "path", ".", "node", ".", "arguments", "[", "0", "]", ".", "value", ")", "&&", "!", "isFBFile", "(", "state", ".", "file", ".", "opts", ".", "filename", ")", ")", "{", "throw", "new", "Error", "(", "'For files which are not under fb/ do not require directly from fb/, but rather from fb-stubs/ to not break typescript-typing and make sure stubs are up-to-date.'", ")", ";", "}", "else", "if", "(", "requireFromFolder", "(", "'fb-stubs'", ",", "path", ".", "node", ".", "arguments", "[", "0", "]", ".", "value", ")", ")", "{", "const", "fbPath", "=", "path", ".", "node", ".", "arguments", "[", "0", "]", ".", "value", ".", "replace", "(", "'/fb-stubs/'", ",", "'/fb/'", ")", ";", "if", "(", "env", ".", "FLIPPER_FB", "||", "pathExistsSync", "(", "resolve", "(", "dirname", "(", "state", ".", "file", ".", "opts", ".", "filename", ")", ",", "fbPath", ".", "substr", "(", "0", ",", "fbPath", ".", "indexOf", "(", "'/fb/'", ")", "+", "4", ")", ")", ")", ")", "{", "path", ".", "node", ".", "arguments", "[", "0", "]", ".", "value", "=", "fbPath", ";", "}", "}", "}", "}", ",", "}", ",", "}", ")", ";" ]
[ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, 2, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 19, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, 2, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, null, 224, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ]