(function (root, factory) { if (typeof define === 'function' && define.amd) define(['exports', 'kotlin', 'Kodein-DI-kodein-di', 'UstadMobile-core', 'xmlpullparserkmp-js-legacy', 'door-door-runtime', 'kotlinx-coroutines-core', 'UstadMobile-lib-database', 'ktor-ktor-client-core-js-legacy', 'kotlinx-serialization-kotlinx-serialization-json-js-legacy', 'ktor-ktor-client-json-js-legacy', 'UstadMobile-lib-database-entities', '@mui/material/AppBar', '@mui/material/Avatar', '@mui/material/BottomNavigation', '@mui/material/BottomNavigationAction', 'kotlin-react', '@mui/material/Button', 'kotlin-styled', '@mui/material/Chip', '@mui/material/CssBaseline', '@mui/lab/MobileTimePicker', '@mui/lab/MobileDatePicker', 'kotlin-css', '@mui/lab/LocalizationProvider', '@mui/lab/AdapterDateFns', '@mui/material/Dialog', '@mui/material/DialogTitle', '@mui/material/DialogActions', '@mui/material/DialogContent', '@mui/material/Divider', '@mui/material/Drawer', '@mui/material/Fab', '@mui/material/FormControl', '@mui/material/FormHelperText', '@mui/material/Grid', '@mui/material/Icon', '@mui/material/IconButton', '@mui/material/InputLabel', '@mui/material/Input', '@mui/material/List', '@mui/material/ListItem', '@mui/material/ListItemAvatar', '@mui/material/ListItemIcon', '@mui/material/ListItemText', '@mui/material/useMediaQuery', 'kotlin-extensions', '@mui/material/Menu', '@mui/material/MenuItem', '@mui/material/OutlinedInput', '@mui/material/Paper', '@mui/material/LinearProgress', '@mui/material/CircularProgress', '@mui/material/Snackbar', 'react-easy-sort', '@mui/material/Switch', '@mui/material/Table', '@mui/material/TableBody', '@mui/material/TableHead', '@mui/material/TableRow', '@mui/material/TableCell', '@mui/material/TableContainer', '@mui/material/Tabs', '@mui/material/Tab', '@mui/material/TextField', 'react', '@mui/material/styles/useTheme', '@mui/system/ThemeProvider', '@mui/material/ToggleButtonGroup', '@mui/material/ToggleButton', '@mui/material/Toolbar', '@mui/material/Typography', '@mui/material/styles', 'kotlin-redux', 'redux', 'kotlinx-serialization-kotlinx-serialization-core-js-legacy', 'draft-js', 'draft-js-export-html', 'striptags', 'timezones.json', 'moment-timezone', 'html-to-image', 'Napier-napier-js-legacy', 'react-google-charts', 'UstadMobile-lib-util', 'kotlinx-html-js', 'kotlin-react-dom', 'linkify-react', 'mui-rte', 'kotlinx-atomicfu', 'react-router-dom', 'react-router', 'UstadMobile-lib-database-mpp', 'kotlin-react-redux'], factory); else if (typeof exports === 'object') factory(module.exports, require('kotlin'), require('Kodein-DI-kodein-di'), require('UstadMobile-core'), require('xmlpullparserkmp-js-legacy'), require('door-door-runtime'), require('kotlinx-coroutines-core'), require('UstadMobile-lib-database'), require('ktor-ktor-client-core-js-legacy'), require('kotlinx-serialization-kotlinx-serialization-json-js-legacy'), require('ktor-ktor-client-json-js-legacy'), require('UstadMobile-lib-database-entities'), require('@mui/material/AppBar'), require('@mui/material/Avatar'), require('@mui/material/BottomNavigation'), require('@mui/material/BottomNavigationAction'), require('kotlin-react'), require('@mui/material/Button'), require('kotlin-styled'), require('@mui/material/Chip'), require('@mui/material/CssBaseline'), require('@mui/lab/MobileTimePicker'), require('@mui/lab/MobileDatePicker'), require('kotlin-css'), require('@mui/lab/LocalizationProvider'), require('@mui/lab/AdapterDateFns'), require('@mui/material/Dialog'), require('@mui/material/DialogTitle'), require('@mui/material/DialogActions'), require('@mui/material/DialogContent'), require('@mui/material/Divider'), require('@mui/material/Drawer'), require('@mui/material/Fab'), require('@mui/material/FormControl'), require('@mui/material/FormHelperText'), require('@mui/material/Grid'), require('@mui/material/Icon'), require('@mui/material/IconButton'), require('@mui/material/InputLabel'), require('@mui/material/Input'), require('@mui/material/List'), require('@mui/material/ListItem'), require('@mui/material/ListItemAvatar'), require('@mui/material/ListItemIcon'), require('@mui/material/ListItemText'), require('@mui/material/useMediaQuery'), require('kotlin-extensions'), require('@mui/material/Menu'), require('@mui/material/MenuItem'), require('@mui/material/OutlinedInput'), require('@mui/material/Paper'), require('@mui/material/LinearProgress'), require('@mui/material/CircularProgress'), require('@mui/material/Snackbar'), require('react-easy-sort'), require('@mui/material/Switch'), require('@mui/material/Table'), require('@mui/material/TableBody'), require('@mui/material/TableHead'), require('@mui/material/TableRow'), require('@mui/material/TableCell'), require('@mui/material/TableContainer'), require('@mui/material/Tabs'), require('@mui/material/Tab'), require('@mui/material/TextField'), require('react'), require('@mui/material/styles/useTheme'), require('@mui/system/ThemeProvider'), require('@mui/material/ToggleButtonGroup'), require('@mui/material/ToggleButton'), require('@mui/material/Toolbar'), require('@mui/material/Typography'), require('@mui/material/styles'), require('kotlin-redux'), require('redux'), require('kotlinx-serialization-kotlinx-serialization-core-js-legacy'), require('draft-js'), require('draft-js-export-html'), require('striptags'), require('timezones.json'), require('moment-timezone'), require('html-to-image'), require('Napier-napier-js-legacy'), require('react-google-charts'), require('UstadMobile-lib-util'), require('kotlinx-html-js'), require('kotlin-react-dom'), require('linkify-react'), require('mui-rte'), require('kotlinx-atomicfu'), require('react-router-dom'), require('react-router'), require('UstadMobile-lib-database-mpp'), require('kotlin-react-redux')); else { if (typeof kotlin === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['Kodein-DI-kodein-di'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'Kodein-DI-kodein-di' was not found. Please, check whether 'Kodein-DI-kodein-di' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['UstadMobile-core'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'UstadMobile-core' was not found. Please, check whether 'UstadMobile-core' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['xmlpullparserkmp-js-legacy'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'xmlpullparserkmp-js-legacy' was not found. Please, check whether 'xmlpullparserkmp-js-legacy' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['door-door-runtime'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'door-door-runtime' was not found. Please, check whether 'door-door-runtime' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlinx-coroutines-core'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['UstadMobile-lib-database'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'UstadMobile-lib-database' was not found. Please, check whether 'UstadMobile-lib-database' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['ktor-ktor-client-core-js-legacy'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'ktor-ktor-client-core-js-legacy' was not found. Please, check whether 'ktor-ktor-client-core-js-legacy' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-legacy'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-legacy' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-legacy' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['ktor-ktor-client-json-js-legacy'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'ktor-ktor-client-json-js-legacy' was not found. Please, check whether 'ktor-ktor-client-json-js-legacy' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['UstadMobile-lib-database-entities'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'UstadMobile-lib-database-entities' was not found. Please, check whether 'UstadMobile-lib-database-entities' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/AppBar'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/AppBar' was not found. Please, check whether '@mui/material/AppBar' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Avatar'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Avatar' was not found. Please, check whether '@mui/material/Avatar' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/BottomNavigation'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/BottomNavigation' was not found. Please, check whether '@mui/material/BottomNavigation' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/BottomNavigationAction'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/BottomNavigationAction' was not found. Please, check whether '@mui/material/BottomNavigationAction' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlin-react'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin-react' was not found. Please, check whether 'kotlin-react' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Button'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Button' was not found. Please, check whether '@mui/material/Button' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlin-styled'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin-styled' was not found. Please, check whether 'kotlin-styled' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Chip'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Chip' was not found. Please, check whether '@mui/material/Chip' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/CssBaseline'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/CssBaseline' was not found. Please, check whether '@mui/material/CssBaseline' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/lab/MobileTimePicker'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/lab/MobileTimePicker' was not found. Please, check whether '@mui/lab/MobileTimePicker' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/lab/MobileDatePicker'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/lab/MobileDatePicker' was not found. Please, check whether '@mui/lab/MobileDatePicker' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlin-css'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin-css' was not found. Please, check whether 'kotlin-css' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/lab/LocalizationProvider'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/lab/LocalizationProvider' was not found. Please, check whether '@mui/lab/LocalizationProvider' is loaded prior to 'UstadMobile-app-react'."); }if (typeof AdapterDateFns === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/lab/AdapterDateFns' was not found. Please, check whether '@mui/lab/AdapterDateFns' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Dialog'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Dialog' was not found. Please, check whether '@mui/material/Dialog' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/DialogTitle'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/DialogTitle' was not found. Please, check whether '@mui/material/DialogTitle' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/DialogActions'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/DialogActions' was not found. Please, check whether '@mui/material/DialogActions' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/DialogContent'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/DialogContent' was not found. Please, check whether '@mui/material/DialogContent' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Divider'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Divider' was not found. Please, check whether '@mui/material/Divider' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Drawer'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Drawer' was not found. Please, check whether '@mui/material/Drawer' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Fab'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Fab' was not found. Please, check whether '@mui/material/Fab' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/FormControl'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/FormControl' was not found. Please, check whether '@mui/material/FormControl' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/FormHelperText'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/FormHelperText' was not found. Please, check whether '@mui/material/FormHelperText' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Grid'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Grid' was not found. Please, check whether '@mui/material/Grid' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Icon'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Icon' was not found. Please, check whether '@mui/material/Icon' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/IconButton'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/IconButton' was not found. Please, check whether '@mui/material/IconButton' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/InputLabel'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/InputLabel' was not found. Please, check whether '@mui/material/InputLabel' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Input'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Input' was not found. Please, check whether '@mui/material/Input' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/List'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/List' was not found. Please, check whether '@mui/material/List' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/ListItem'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/ListItem' was not found. Please, check whether '@mui/material/ListItem' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/ListItemAvatar'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/ListItemAvatar' was not found. Please, check whether '@mui/material/ListItemAvatar' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/ListItemIcon'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/ListItemIcon' was not found. Please, check whether '@mui/material/ListItemIcon' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/ListItemText'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/ListItemText' was not found. Please, check whether '@mui/material/ListItemText' is loaded prior to 'UstadMobile-app-react'."); }if (typeof useMediaQuery === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/useMediaQuery' was not found. Please, check whether '@mui/material/useMediaQuery' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlin-extensions'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin-extensions' was not found. Please, check whether 'kotlin-extensions' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Menu'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Menu' was not found. Please, check whether '@mui/material/Menu' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/MenuItem'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/MenuItem' was not found. Please, check whether '@mui/material/MenuItem' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/OutlinedInput'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/OutlinedInput' was not found. Please, check whether '@mui/material/OutlinedInput' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Paper'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Paper' was not found. Please, check whether '@mui/material/Paper' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/LinearProgress'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/LinearProgress' was not found. Please, check whether '@mui/material/LinearProgress' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/CircularProgress'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/CircularProgress' was not found. Please, check whether '@mui/material/CircularProgress' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Snackbar'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Snackbar' was not found. Please, check whether '@mui/material/Snackbar' is loaded prior to 'UstadMobile-app-react'."); }if (typeof sortModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'react-easy-sort' was not found. Please, check whether 'react-easy-sort' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Switch'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Switch' was not found. Please, check whether '@mui/material/Switch' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Table'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Table' was not found. Please, check whether '@mui/material/Table' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/TableBody'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/TableBody' was not found. Please, check whether '@mui/material/TableBody' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/TableHead'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/TableHead' was not found. Please, check whether '@mui/material/TableHead' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/TableRow'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/TableRow' was not found. Please, check whether '@mui/material/TableRow' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/TableCell'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/TableCell' was not found. Please, check whether '@mui/material/TableCell' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/TableContainer'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/TableContainer' was not found. Please, check whether '@mui/material/TableContainer' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Tabs'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Tabs' was not found. Please, check whether '@mui/material/Tabs' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Tab'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Tab' was not found. Please, check whether '@mui/material/Tab' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/TextField'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/TextField' was not found. Please, check whether '@mui/material/TextField' is loaded prior to 'UstadMobile-app-react'."); }if (typeof react === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'react' was not found. Please, check whether 'react' is loaded prior to 'UstadMobile-app-react'."); }if (typeof useThemeDefault === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/styles/useTheme' was not found. Please, check whether '@mui/material/styles/useTheme' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/system/ThemeProvider'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/system/ThemeProvider' was not found. Please, check whether '@mui/system/ThemeProvider' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/ToggleButtonGroup'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/ToggleButtonGroup' was not found. Please, check whether '@mui/material/ToggleButtonGroup' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/ToggleButton'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/ToggleButton' was not found. Please, check whether '@mui/material/ToggleButton' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Toolbar'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Toolbar' was not found. Please, check whether '@mui/material/Toolbar' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['@mui/material/Typography'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/Typography' was not found. Please, check whether '@mui/material/Typography' is loaded prior to 'UstadMobile-app-react'."); }if (typeof styledModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency '@mui/material/styles' was not found. Please, check whether '@mui/material/styles' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlin-redux'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin-redux' was not found. Please, check whether 'kotlin-redux' is loaded prior to 'UstadMobile-app-react'."); }if (typeof redux === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'redux' was not found. Please, check whether 'redux' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlinx-serialization-kotlinx-serialization-core-js-legacy'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core-js-legacy' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core-js-legacy' is loaded prior to 'UstadMobile-app-react'."); }if (typeof draftJsModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'draft-js' was not found. Please, check whether 'draft-js' is loaded prior to 'UstadMobile-app-react'."); }if (typeof draftExportHtmlModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'draft-js-export-html' was not found. Please, check whether 'draft-js-export-html' is loaded prior to 'UstadMobile-app-react'."); }if (typeof stripTagsJsModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'striptags' was not found. Please, check whether 'striptags' is loaded prior to 'UstadMobile-app-react'."); }if (typeof timezoneModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'timezones.json' was not found. Please, check whether 'timezones.json' is loaded prior to 'UstadMobile-app-react'."); }if (typeof moment === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'moment-timezone' was not found. Please, check whether 'moment-timezone' is loaded prior to 'UstadMobile-app-react'."); }if (typeof htmlToImageModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'html-to-image' was not found. Please, check whether 'html-to-image' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['Napier-napier-js-legacy'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'Napier-napier-js-legacy' was not found. Please, check whether 'Napier-napier-js-legacy' is loaded prior to 'UstadMobile-app-react'."); }if (typeof googleChartsModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'react-google-charts' was not found. Please, check whether 'react-google-charts' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['UstadMobile-lib-util'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'UstadMobile-lib-util' was not found. Please, check whether 'UstadMobile-lib-util' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlinx-html-js'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlinx-html-js' was not found. Please, check whether 'kotlinx-html-js' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlin-react-dom'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin-react-dom' was not found. Please, check whether 'kotlin-react-dom' is loaded prior to 'UstadMobile-app-react'."); }if (typeof linkifyReact === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'linkify-react' was not found. Please, check whether 'linkify-react' is loaded prior to 'UstadMobile-app-react'."); }if (typeof muiHtmlEditorModule === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'mui-rte' was not found. Please, check whether 'mui-rte' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlinx-atomicfu'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlinx-atomicfu' was not found. Please, check whether 'kotlinx-atomicfu' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['react-router-dom'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'react-router-dom' was not found. Please, check whether 'react-router-dom' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['react-router'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'react-router' was not found. Please, check whether 'react-router' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['UstadMobile-lib-database-mpp'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'UstadMobile-lib-database-mpp' was not found. Please, check whether 'UstadMobile-lib-database-mpp' is loaded prior to 'UstadMobile-app-react'."); }if (typeof this['kotlin-react-redux'] === 'undefined') { throw new Error("Error loading module 'UstadMobile-app-react'. Its dependency 'kotlin-react-redux' was not found. Please, check whether 'kotlin-react-redux' is loaded prior to 'UstadMobile-app-react'."); }root['UstadMobile-app-react'] = factory(typeof this['UstadMobile-app-react'] === 'undefined' ? {} : this['UstadMobile-app-react'], kotlin, this['Kodein-DI-kodein-di'], this['UstadMobile-core'], this['xmlpullparserkmp-js-legacy'], this['door-door-runtime'], this['kotlinx-coroutines-core'], this['UstadMobile-lib-database'], this['ktor-ktor-client-core-js-legacy'], this['kotlinx-serialization-kotlinx-serialization-json-js-legacy'], this['ktor-ktor-client-json-js-legacy'], this['UstadMobile-lib-database-entities'], this['@mui/material/AppBar'], this['@mui/material/Avatar'], this['@mui/material/BottomNavigation'], this['@mui/material/BottomNavigationAction'], this['kotlin-react'], this['@mui/material/Button'], this['kotlin-styled'], this['@mui/material/Chip'], this['@mui/material/CssBaseline'], this['@mui/lab/MobileTimePicker'], this['@mui/lab/MobileDatePicker'], this['kotlin-css'], this['@mui/lab/LocalizationProvider'], AdapterDateFns, this['@mui/material/Dialog'], this['@mui/material/DialogTitle'], this['@mui/material/DialogActions'], this['@mui/material/DialogContent'], this['@mui/material/Divider'], this['@mui/material/Drawer'], this['@mui/material/Fab'], this['@mui/material/FormControl'], this['@mui/material/FormHelperText'], this['@mui/material/Grid'], this['@mui/material/Icon'], this['@mui/material/IconButton'], this['@mui/material/InputLabel'], this['@mui/material/Input'], this['@mui/material/List'], this['@mui/material/ListItem'], this['@mui/material/ListItemAvatar'], this['@mui/material/ListItemIcon'], this['@mui/material/ListItemText'], useMediaQuery, this['kotlin-extensions'], this['@mui/material/Menu'], this['@mui/material/MenuItem'], this['@mui/material/OutlinedInput'], this['@mui/material/Paper'], this['@mui/material/LinearProgress'], this['@mui/material/CircularProgress'], this['@mui/material/Snackbar'], sortModule, this['@mui/material/Switch'], this['@mui/material/Table'], this['@mui/material/TableBody'], this['@mui/material/TableHead'], this['@mui/material/TableRow'], this['@mui/material/TableCell'], this['@mui/material/TableContainer'], this['@mui/material/Tabs'], this['@mui/material/Tab'], this['@mui/material/TextField'], react, useThemeDefault, this['@mui/system/ThemeProvider'], this['@mui/material/ToggleButtonGroup'], this['@mui/material/ToggleButton'], this['@mui/material/Toolbar'], this['@mui/material/Typography'], styledModule, this['kotlin-redux'], redux, this['kotlinx-serialization-kotlinx-serialization-core-js-legacy'], draftJsModule, draftExportHtmlModule, stripTagsJsModule, timezoneModule, moment, htmlToImageModule, this['Napier-napier-js-legacy'], googleChartsModule, this['UstadMobile-lib-util'], this['kotlinx-html-js'], this['kotlin-react-dom'], linkifyReact, muiHtmlEditorModule, this['kotlinx-atomicfu'], this['react-router-dom'], this['react-router'], this['UstadMobile-lib-database-mpp'], this['kotlin-react-redux']); } }(this, function (_, Kotlin, $module$Kodein_DI_kodein_di, $module$UstadMobile_core, $module$xmlpullparserkmp_js_legacy, $module$door_door_runtime, $module$kotlinx_coroutines_core, $module$UstadMobile_lib_database, $module$ktor_ktor_client_core_js_legacy, $module$kotlinx_serialization_kotlinx_serialization_json_js_legacy, $module$ktor_ktor_client_json_js_legacy, $module$UstadMobile_lib_database_entities, $module$_mui_material_AppBar, $module$_mui_material_Avatar, $module$_mui_material_BottomNavigation, $module$_mui_material_BottomNavigationAction, $module$kotlin_react, $module$_mui_material_Button, $module$kotlin_styled, $module$_mui_material_Chip, $module$_mui_material_CssBaseline, $module$_mui_lab_MobileTimePicker, $module$_mui_lab_MobileDatePicker, $module$kotlin_css, $module$_mui_lab_LocalizationProvider, $module$_mui_lab_AdapterDateFns, $module$_mui_material_Dialog, $module$_mui_material_DialogTitle, $module$_mui_material_DialogActions, $module$_mui_material_DialogContent, $module$_mui_material_Divider, $module$_mui_material_Drawer, $module$_mui_material_Fab, $module$_mui_material_FormControl, $module$_mui_material_FormHelperText, $module$_mui_material_Grid, $module$_mui_material_Icon, $module$_mui_material_IconButton, $module$_mui_material_InputLabel, $module$_mui_material_Input, $module$_mui_material_List, $module$_mui_material_ListItem, $module$_mui_material_ListItemAvatar, $module$_mui_material_ListItemIcon, $module$_mui_material_ListItemText, $module$_mui_material_useMediaQuery, $module$kotlin_extensions, $module$_mui_material_Menu, $module$_mui_material_MenuItem, $module$_mui_material_OutlinedInput, $module$_mui_material_Paper, $module$_mui_material_LinearProgress, $module$_mui_material_CircularProgress, $module$_mui_material_Snackbar, $module$react_easy_sort, $module$_mui_material_Switch, $module$_mui_material_Table, $module$_mui_material_TableBody, $module$_mui_material_TableHead, $module$_mui_material_TableRow, $module$_mui_material_TableCell, $module$_mui_material_TableContainer, $module$_mui_material_Tabs, $module$_mui_material_Tab, $module$_mui_material_TextField, $module$react, $module$_mui_material_styles_useTheme, $module$_mui_system_ThemeProvider, $module$_mui_material_ToggleButtonGroup, $module$_mui_material_ToggleButton, $module$_mui_material_Toolbar, $module$_mui_material_Typography, $module$_mui_material_styles, $module$kotlin_redux, $module$redux, $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy, $module$draft_js, $module$draft_js_export_html, $module$striptags, $module$timezones_json, $module$moment_timezone, $module$html_to_image, $module$Napier_napier_js_legacy, $module$react_google_charts, $module$UstadMobile_lib_util, $module$kotlinx_html_js, $module$kotlin_react_dom, $module$linkify_react, $module$mui_rte, $module$kotlinx_atomicfu, $module$react_router_dom, $module$react_router, $module$UstadMobile_lib_database_mpp, $module$kotlin_react_redux) { 'use strict'; var $$importsForInline$$ = _.$$importsForInline$$ || (_.$$importsForInline$$ = {}); var DI = $module$Kodein_DI_kodein_di.org.kodein.di.DI; var UstadMobileSystemImpl = $module$UstadMobile_core.com.ustadmobile.core.impl.UstadMobileSystemImpl; var getKClass = Kotlin.getKClass; var createKType = Kotlin.createKType; var XmlPullParserFactory = $module$xmlpullparserkmp_js_legacy.com.ustadmobile.xmlpullparserkmp.XmlPullParserFactory; var UstadNavController = $module$UstadMobile_core.com.ustadmobile.core.impl.nav.UstadNavController; var impl = $module$UstadMobile_core.com.ustadmobile.core.impl; var equals = Kotlin.equals; var Unit = Kotlin.kotlin.Unit; var UstadAccountManager = $module$UstadMobile_core.com.ustadmobile.core.account.UstadAccountManager; var NodeIdAndAuth = $module$door_door_runtime.com.ustadmobile.door.entities.NodeIdAndAuth; var EndpointScope = $module$UstadMobile_core.com.ustadmobile.core.account.EndpointScope; var Endpoint = $module$UstadMobile_core.com.ustadmobile.core.account.Endpoint; var CoroutineScope = $module$kotlinx_coroutines_core.kotlinx.coroutines.CoroutineScope; var coroutines = $module$kotlinx_coroutines_core.kotlinx.coroutines; var UmAppDatabase = $module$UstadMobile_lib_database.com.ustadmobile.core.db.UmAppDatabase; var RepositoryConfig = $module$door_door_runtime.com.ustadmobile.door.RepositoryConfig; var HttpClient = $module$ktor_ktor_client_core_js_legacy.io.ktor.client.HttpClient; var Json = $module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.Json; var RepSubscriptionInitListener = $module$UstadMobile_core.com.ustadmobile.core.db.RepSubscriptionInitListener; var UstadMobileSystemCommon = $module$UstadMobile_core.com.ustadmobile.core.impl.UstadMobileSystemCommon; var PrimitiveClasses$booleanClass = Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.booleanClass; var ContainerMounter = $module$UstadMobile_core.com.ustadmobile.core.view.ContainerMounter; var XmlSerializer = $module$xmlpullparserkmp_js_legacy.com.ustadmobile.xmlpullparserkmp.XmlSerializer; var CoroutineDispatcher = $module$kotlinx_coroutines_core.kotlinx.coroutines.CoroutineDispatcher; var MainCoroutineDispatcher = $module$kotlinx_coroutines_core.kotlinx.coroutines.MainCoroutineDispatcher; var ContentEntryOpener = $module$UstadMobile_core.com.ustadmobile.core.util.ContentEntryOpener; var js = $module$ktor_ktor_client_core_js_legacy.io.ktor.client.engine.js; var JsonFeature = $module$ktor_ktor_client_json_js_legacy.io.ktor.client.features.json.JsonFeature; var HttpTimeout = $module$ktor_ktor_client_core_js_legacy.io.ktor.client.features.HttpTimeout; var HttpClient_0 = $module$ktor_ktor_client_core_js_legacy.io.ktor.client.HttpClient_744i18$; var NavControllerJs = $module$UstadMobile_core.com.ustadmobile.core.navigation.NavControllerJs; var ContainerStorageManager = $module$UstadMobile_core.com.ustadmobile.core.impl.ContainerStorageManager; var UmAccount = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.UmAccount; var AuthManager = $module$UstadMobile_core.com.ustadmobile.core.account.AuthManager; var Pbkdf2Params = $module$UstadMobile_core.com.ustadmobile.core.account.Pbkdf2Params; var ClazzLogCreatorManager = $module$UstadMobile_core.com.ustadmobile.core.schedule.ClazzLogCreatorManager; var ClazzLogCreatorManagerJs = $module$UstadMobile_core.com.ustadmobile.core.schedule.ClazzLogCreatorManagerJs; var Json_0 = $module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.Json_x26noe$; var typeToken = $module$Kodein_DI_kodein_di.$$importsForInline$$['Kodein-Type-kodein-type'].org.kodein.type.typeToken_saj79j$; var TypeToken = $module$Kodein_DI_kodein_di.$$importsForInline$$['Kodein-Type-kodein-type'].org.kodein.type.TypeToken; var throwCCE = Kotlin.throwCCE; var DatabaseBuilder = $module$door_door_runtime.com.ustadmobile.door.DatabaseBuilder; var toString = Kotlin.toString; var IllegalArgumentException_init = Kotlin.kotlin.IllegalArgumentException_init_pdl1vj$; var DoorDatabaseReplicateWrapper = $module$door_door_runtime.com.ustadmobile.door.DoorDatabaseReplicateWrapper; var unwrap = $module$door_door_runtime.com.ustadmobile.door.ext.unwrap_514vf3$; var get_js = Kotlin.kotlin.js.get_js_1yb8b7$; var createInstance = $module$door_door_runtime.com.ustadmobile.door.ext.createInstance_q4owj1$; var napier = $module$door_door_runtime.$$importsForInline$$['Napier-napier-js-legacy'].io.github.aakira.napier; var DoorTag = $module$door_door_runtime.com.ustadmobile.door.ext.DoorTag; var Singleton_init = $module$Kodein_DI_kodein_di.org.kodein.di.bindings.Singleton; var DI$BindBuilder$DI$BindBuilder$ImplWithScope_init = $module$Kodein_DI_kodein_di.org.kodein.di.DI.BindBuilder.ImplWithScope; var Provider_init = $module$Kodein_DI_kodein_di.org.kodein.di.bindings.Provider; var SimpleContextTranslator_init = $module$Kodein_DI_kodein_di.org.kodein.di.bindings.SimpleContextTranslator; var Enum = Kotlin.kotlin.Enum; var Kind_CLASS = Kotlin.Kind.CLASS; var throwISE = Kotlin.throwISE; var Color = $module$kotlin_css.kotlinx.css.Color; var set_color = $module$kotlin_css.kotlinx.css.set_color_ommczd$; var hyphenize = $module$kotlin_css.kotlinx.css.hyphenize_pdl1vz$; var FlexDirection = $module$kotlin_css.kotlinx.css.FlexDirection; var GridWrap$wrap = (/*union*/{nowrap: 'nowrap', wrap: 'wrap', wrapReverse: 'wrap-reverse'}/*union*/).wrap; var Display = $module$kotlin_css.kotlinx.css.Display; var set_display = $module$kotlin_css.kotlinx.css.set_display_qidz4o$; var set_flexDirection = $module$kotlin_css.kotlinx.css.set_flexDirection_c4dh0c$; var InputType$text = (/*union*/{button: 'button', checkbox: 'checkbox', color: 'color', date: 'date', datetimeLocal: 'datetime-local', email: 'email', file: 'file', hidden: 'hidden', image: 'image', month: 'month', number: 'number', password: 'password', radio: 'radio', range: 'range', reset: 'reset', search: 'search', submit: 'submit', tel: 'tel', text: 'text', time: 'time', url: 'url', week: 'week'}/*union*/).text; var to = Kotlin.kotlin.to_ujzrz7$; var json = Kotlin.kotlin.js.json_pyyo18$; var Align = $module$kotlin_css.kotlinx.css.Align; var contains = Kotlin.kotlin.text.contains_li3zpu$; var emptyList = Kotlin.kotlin.collections.emptyList_287e2$; var createContext = $module$react.createContext; var LinearDimension = $module$kotlin_css.kotlinx.css.LinearDimension; var WhiteSpace = $module$kotlin_css.kotlinx.css.WhiteSpace; var set_whiteSpace = $module$kotlin_css.kotlinx.css.set_whiteSpace_9bsrpj$; var startsWith = Kotlin.kotlin.text.startsWith_7epoxm$; var trim = Kotlin.kotlin.text.trim_gw00vp$; var StyledElementBuilder = $module$kotlin_styled.styled.StyledElementBuilder; var ClazzList2View = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzList2View; var ContentEntryList2View = $module$UstadMobile_core.com.ustadmobile.core.view.ContentEntryList2View; var SchoolListView = $module$UstadMobile_core.com.ustadmobile.core.view.SchoolListView; var PersonListView = $module$UstadMobile_core.com.ustadmobile.core.view.PersonListView; var ChatListView = $module$UstadMobile_core.com.ustadmobile.core.view.ChatListView; var ReportListView = $module$UstadMobile_core.com.ustadmobile.core.view.ReportListView; var SettingsView = $module$UstadMobile_core.com.ustadmobile.core.view.SettingsView; var AccountListView = $module$UstadMobile_core.com.ustadmobile.core.view.AccountListView; var Login2View = $module$UstadMobile_core.com.ustadmobile.core.view.Login2View; var ContentEntryDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.ContentEntryDetailView; var ContentEntryDetailOverviewView = $module$UstadMobile_core.com.ustadmobile.core.view.ContentEntryDetailOverviewView; var ContentEntryDetailAttemptsListView = $module$UstadMobile_core.com.ustadmobile.core.view.ContentEntryDetailAttemptsListView; var EpubContentView = $module$UstadMobile_core.com.ustadmobile.core.view.EpubContentView; var PersonDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.PersonDetailView; var PersonAccountEditView = $module$UstadMobile_core.com.ustadmobile.core.view.PersonAccountEditView; var PersonEditView = $module$UstadMobile_core.com.ustadmobile.core.view.PersonEditView; var XapiPackageContentView = $module$UstadMobile_core.com.ustadmobile.core.view.XapiPackageContentView; var VideoContentView = $module$UstadMobile_core.com.ustadmobile.core.view.VideoContentView; var TimeZoneListView = $module$UstadMobile_core.com.ustadmobile.core.view.TimeZoneListView; var HolidayCalendarListView = $module$UstadMobile_core.com.ustadmobile.core.view.HolidayCalendarListView; var HolidayCalendarEditView = $module$UstadMobile_core.com.ustadmobile.core.view.HolidayCalendarEditView; var HolidayEditView = $module$UstadMobile_core.com.ustadmobile.core.view.HolidayEditView; var WebChunkView = $module$UstadMobile_core.com.ustadmobile.core.view.WebChunkView; var RedirectView = $module$UstadMobile_core.com.ustadmobile.core.view.RedirectView; var RegisterAgeRedirectView = $module$UstadMobile_core.com.ustadmobile.core.view.RegisterAgeRedirectView; var SiteTermsDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.SiteTermsDetailView; var SiteTermsEditView = $module$UstadMobile_core.com.ustadmobile.core.view.SiteTermsEditView; var SiteDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.SiteDetailView; var SiteEditView = $module$UstadMobile_core.com.ustadmobile.core.view.SiteEditView; var ClazzDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzDetailView; var ClazzEdit2View = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzEdit2View; var ClazzMemberListView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzMemberListView; var ClazzDetailOverviewView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzDetailOverviewView; var ClazzLogListAttendanceView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzLogListAttendanceView; var ClazzLogEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzLogEditView; var ClazzLogEditAttendanceView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzLogEditAttendanceView; var SchoolDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.SchoolDetailView; var SchoolDetailOverviewView = $module$UstadMobile_core.com.ustadmobile.core.view.SchoolDetailOverviewView; var SchoolMemberListView = $module$UstadMobile_core.com.ustadmobile.core.view.SchoolMemberListView; var ClazzEnrolmentEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzEnrolmentEditView; var TextCourseBlockEditView = $module$UstadMobile_core.com.ustadmobile.core.view.TextCourseBlockEditView; var ModuleCourseBlockEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ModuleCourseBlockEditView; var CourseTerminologyListView = $module$UstadMobile_core.com.ustadmobile.core.view.CourseTerminologyListView; var CourseTerminologyEditView = $module$UstadMobile_core.com.ustadmobile.core.view.CourseTerminologyEditView; var ScheduleEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ScheduleEditView; var JoinWithCodeView = $module$UstadMobile_core.com.ustadmobile.core.view.JoinWithCodeView; var SchoolEditView = $module$UstadMobile_core.com.ustadmobile.core.view.SchoolEditView; var ScopedGrantEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ScopedGrantEditView; var ParentalConsentManagementView = $module$UstadMobile_core.com.ustadmobile.core.view.ParentalConsentManagementView; var BitmaskEditView = $module$UstadMobile_core.com.ustadmobile.core.view.BitmaskEditView; var ContentEntryEdit2View = $module$UstadMobile_core.com.ustadmobile.core.view.ContentEntryEdit2View; var LanguageListView = $module$UstadMobile_core.com.ustadmobile.core.view.LanguageListView; var LanguageEditView = $module$UstadMobile_core.com.ustadmobile.core.view.LanguageEditView; var ContentEntryImportLinkView = $module$UstadMobile_core.com.ustadmobile.core.view.ContentEntryImportLinkView; var InviteViaLinkView = $module$UstadMobile_core.com.ustadmobile.core.view.InviteViaLinkView; var ClazzEnrolmentListView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzEnrolmentListView; var LeavingReasonListView = $module$UstadMobile_core.com.ustadmobile.core.view.LeavingReasonListView; var LeavingReasonEditView = $module$UstadMobile_core.com.ustadmobile.core.view.LeavingReasonEditView; var ClazzAssignmentEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzAssignmentEditView; var ClazzAssignmentDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzAssignmentDetailView; var ClazzAssignmentDetailOverviewView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzAssignmentDetailOverviewView; var ClazzAssignmentDetailStudentProgressOverviewListView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzAssignmentDetailStudentProgressOverviewListView; var ClazzAssignmentDetailStudentProgressView = $module$UstadMobile_core.com.ustadmobile.core.view.ClazzAssignmentDetailStudentProgressView; var SessionListView = $module$UstadMobile_core.com.ustadmobile.core.view.SessionListView; var TextAssignmentEditView = $module$UstadMobile_core.com.ustadmobile.core.view.TextAssignmentEditView; var HtmlTextViewDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.HtmlTextViewDetailView; var SelectFileView = $module$UstadMobile_core.com.ustadmobile.core.view.SelectFileView; var StatementListView = $module$UstadMobile_core.com.ustadmobile.core.view.StatementListView; var ReportTemplateListView = $module$UstadMobile_core.com.ustadmobile.core.view.ReportTemplateListView; var ReportEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ReportEditView; var ReportFilterEditView = $module$UstadMobile_core.com.ustadmobile.core.view.ReportFilterEditView; var CourseGroupSetListView = $module$UstadMobile_core.com.ustadmobile.core.view.CourseGroupSetListView; var CourseGroupSetEditView = $module$UstadMobile_core.com.ustadmobile.core.view.CourseGroupSetEditView; var CourseGroupSetDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.CourseGroupSetDetailView; var ChatDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.ChatDetailView; var ReportDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.ReportDetailView; var CourseDiscussionEditView = $module$UstadMobile_core.com.ustadmobile.core.view.CourseDiscussionEditView; var DiscussionTopicEditView = $module$UstadMobile_core.com.ustadmobile.core.view.DiscussionTopicEditView; var CourseDiscussionDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.CourseDiscussionDetailView; var DiscussionTopicDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.DiscussionTopicDetailView; var DiscussionPostEditView = $module$UstadMobile_core.com.ustadmobile.core.view.DiscussionPostEditView; var DiscussionPostDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.DiscussionPostDetailView; var SelectExtractFileView = $module$UstadMobile_core.com.ustadmobile.core.view.SelectExtractFileView; var listOf = Kotlin.kotlin.collections.listOf_i5x0yv$; var lazy = Kotlin.kotlin.lazy_klfg04$; var Kind_OBJECT = Kotlin.Kind.OBJECT; var NoSuchElementException_init = Kotlin.kotlin.NoSuchElementException; var collectionSizeOrDefault = Kotlin.kotlin.collections.collectionSizeOrDefault_ba2ldo$; var ArrayList_init = Kotlin.kotlin.collections.ArrayList_init_ww73n8$; var LinkedHashMap_init = Kotlin.kotlin.collections.LinkedHashMap_init_q3lmfv$; var ArrayList_init_0 = Kotlin.kotlin.collections.ArrayList_init_287e2$; var mapCapacity = Kotlin.kotlin.collections.mapCapacity_za3lpa$; var coerceAtLeast = Kotlin.kotlin.ranges.coerceAtLeast_dqglrj$; var LinkedHashMap_init_0 = Kotlin.kotlin.collections.LinkedHashMap_init_bwtc7$; var combineReducers = $module$kotlin_redux.redux.combineReducers_ip98tz$; var getPropertyCallableRef = Kotlin.getPropertyCallableRef; var getCallableRef = Kotlin.getCallableRef; var mapOf = Kotlin.kotlin.collections.mapOf_x2b85n$; var rEnhancer = $module$kotlin_redux.redux.rEnhancer_287e2$; var createStore = $module$redux.createStore; var PluginGeneratedSerialDescriptor = $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.internal.PluginGeneratedSerialDescriptor; var internal = $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.internal; var LinkedHashMapSerializer = $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.internal.LinkedHashMapSerializer; var UnknownFieldException = $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.UnknownFieldException; var GeneratedSerializer = $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.internal.GeneratedSerializer; var removeAll = Kotlin.kotlin.collections.removeAll_qafx1e$; var toBoolean = Kotlin.kotlin.text.toBoolean_5cw0du$; var toMutableList = Kotlin.kotlin.collections.toMutableList_4c7yge$; var ListSerializer = $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.builtins.ListSerializer_swdriu$; var emptyMap = Kotlin.kotlin.collections.emptyMap_q3lmfv$; var util = $module$UstadMobile_core.com.ustadmobile.core.util; var Kind_INTERFACE = Kotlin.Kind.INTERFACE; var indexOf = Kotlin.kotlin.collections.indexOf_bv23uc$; var toList = Kotlin.kotlin.collections.toList_7wnvza$; var Regex_init = Kotlin.kotlin.text.Regex_init_61zpoe$; var toDouble = Kotlin.kotlin.text.toDouble_pdl1vz$; var toInt = Kotlin.kotlin.text.toInt_pdl1vz$; var PropertyMetadata = Kotlin.PropertyMetadata; var LineHeight = $module$kotlin_css.kotlinx.css.properties.LineHeight; var set_lineHeight = $module$kotlin_css.kotlinx.css.set_lineHeight_ftzj10$; var set_height = $module$kotlin_css.kotlinx.css.set_height_n8chyh$; var TextOverflow = $module$kotlin_css.kotlinx.css.TextOverflow; var set_textOverflow = $module$kotlin_css.kotlinx.css.set_textOverflow_67zq6f$; var Overflow = $module$kotlin_css.kotlinx.css.Overflow; var set_overflow = $module$kotlin_css.kotlinx.css.set_overflow_qhpm6s$; var StyleSheet = $module$kotlin_styled.styled.StyleSheet; var ensureNotNull = Kotlin.ensureNotNull; var get_pct = $module$kotlin_css.kotlinx.css.get_pct_rcaex3$; var TextAlign = $module$kotlin_css.kotlinx.css.TextAlign; var set_textAlign = $module$kotlin_css.kotlinx.css.set_textAlign_q2ys32$; var set_marginLeft = $module$kotlin_css.kotlinx.css.set_marginLeft_n8chyh$; var set_width = $module$kotlin_css.kotlinx.css.set_width_n8chyh$; var set_marginTop = $module$kotlin_css.kotlinx.css.set_marginTop_n8chyh$; var set_marginBottom = $module$kotlin_css.kotlinx.css.set_marginBottom_n8chyh$; var set_paddingTop = $module$kotlin_css.kotlinx.css.set_paddingTop_n8chyh$; var set_paddingBottom = $module$kotlin_css.kotlinx.css.set_paddingBottom_n8chyh$; var get_px = $module$kotlin_css.kotlinx.css.get_px_rcaex3$; var set_marginRight = $module$kotlin_css.kotlinx.css.set_marginRight_n8chyh$; var set_flexGrow = $module$kotlin_css.kotlinx.css.set_flexGrow_dlibp2$; var set_zIndex = $module$kotlin_css.kotlinx.css.set_zIndex_a6g65m$; var Position = $module$kotlin_css.kotlinx.css.Position; var set_position = $module$kotlin_css.kotlinx.css.set_position_mvtmy5$; var set_left = $module$kotlin_css.kotlinx.css.set_left_n8chyh$; var set_top = $module$kotlin_css.kotlinx.css.set_top_n8chyh$; var padding = $module$kotlin_css.kotlinx.css.padding_9vmwvs$; var set_backgroundColor = $module$kotlin_css.kotlinx.css.set_backgroundColor_ommczd$; var padding_0 = $module$kotlin_css.kotlinx.css.padding_fjjo64$; var set_paddingRight = $module$kotlin_css.kotlinx.css.set_paddingRight_n8chyh$; var get_vh = $module$kotlin_css.kotlinx.css.get_vh_rcaex3$; var set_minWidth = $module$kotlin_css.kotlinx.css.set_minWidth_n8chyh$; var set_bottom = $module$kotlin_css.kotlinx.css.set_bottom_n8chyh$; var set_right = $module$kotlin_css.kotlinx.css.set_right_n8chyh$; var Cursor = $module$kotlin_css.kotlinx.css.Cursor; var set_cursor = $module$kotlin_css.kotlinx.css.set_cursor_hrkqtc$; var margin = $module$kotlin_css.kotlinx.css.margin_fjjo64$; var set_alignItems = $module$kotlin_css.kotlinx.css.set_alignItems_olgsez$; var set_alignContent = $module$kotlin_css.kotlinx.css.set_alignContent_olgsez$; var get_transition = $module$kotlin_css.kotlinx.css.get_transition_z7t51k$; var get_ms = $module$kotlin_css.kotlinx.css.properties.get_ms_rcaex3$; var Timing = $module$kotlin_css.kotlinx.css.properties.Timing; var Transition = $module$kotlin_css.kotlinx.css.properties.Transition; var set_borderRadius = $module$kotlin_css.kotlinx.css.set_borderRadius_n8chyh$; var set_padding = $module$kotlin_css.kotlinx.css.set_padding_krvuuu$; var PointerEvents = $module$kotlin_css.kotlinx.css.PointerEvents; var set_pointerEvents = $module$kotlin_css.kotlinx.css.set_pointerEvents_ne887g$; var JustifyContent = $module$kotlin_css.kotlinx.css.JustifyContent; var set_justifyContent = $module$kotlin_css.kotlinx.css.set_justifyContent_gwpzrh$; var set_paddingLeft = $module$kotlin_css.kotlinx.css.set_paddingLeft_n8chyh$; var margin_0 = $module$kotlin_css.kotlinx.css.margin_9vmwvs$; var get_em = $module$kotlin_css.kotlinx.css.get_em_rcaex3$; var set_fontSize = $module$kotlin_css.kotlinx.css.set_fontSize_n8chyh$; var get_vw = $module$kotlin_css.kotlinx.css.get_vw_rcaex3$; var set_flexShrink = $module$kotlin_css.kotlinx.css.set_flexShrink_dlibp2$; var padding_1 = $module$kotlin_css.kotlinx.css.padding_njam0t$; var FlexWrap = $module$kotlin_css.kotlinx.css.FlexWrap; var set_flexWrap = $module$kotlin_css.kotlinx.css.set_flexWrap_6el38z$; var set_margin = $module$kotlin_css.kotlinx.css.set_margin_krvuuu$; var margin_1 = $module$kotlin_css.kotlinx.css.margin_cx3uck$; var set_border = $module$kotlin_css.kotlinx.css.set_border_krvuuu$; var set_minHeight = $module$kotlin_css.kotlinx.css.set_minHeight_n8chyh$; var get_rem = $module$kotlin_css.kotlinx.css.get_rem_rcaex3$; var VerticalAlign = $module$kotlin_css.kotlinx.css.VerticalAlign; var set_verticalAlign = $module$kotlin_css.kotlinx.css.set_verticalAlign_9eaq6d$; var padding_2 = $module$kotlin_css.kotlinx.css.padding_cx3uck$; var WordBreak = $module$kotlin_css.kotlinx.css.WordBreak; var set_wordBreak = $module$kotlin_css.kotlinx.css.set_wordBreak_d1srv9$; var set_borderTopRightRadius = $module$kotlin_css.kotlinx.css.set_borderTopRightRadius_n8chyh$; var set_borderBottomRightRadius = $module$kotlin_css.kotlinx.css.set_borderBottomRightRadius_n8chyh$; var set_borderTopLeftRadius = $module$kotlin_css.kotlinx.css.set_borderTopLeftRadius_n8chyh$; var set_borderBottomLeftRadius = $module$kotlin_css.kotlinx.css.set_borderBottomLeftRadius_n8chyh$; var DIAware = $module$Kodein_DI_kodein_di.org.kodein.di.DIAware; var Instance = $module$Kodein_DI_kodein_di.org.kodein.di.Instance_l95o76$; var MissingFieldException_init = $module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.MissingFieldException_init_61zpoe$; var split = Kotlin.kotlin.text.split_ip8yn$; var substringBefore = Kotlin.kotlin.text.substringBefore_j4ogox$; var checkIndexOverflow = Kotlin.kotlin.collections.checkIndexOverflow_za3lpa$; var substringAfter = Kotlin.kotlin.text.substringAfter_j4ogox$; var toMap = Kotlin.kotlin.collections.toMap_6hr0sd$; var COROUTINE_SUSPENDED = Kotlin.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED; var CoroutineImpl = Kotlin.kotlin.coroutines.CoroutineImpl; var await_0 = $module$kotlinx_coroutines_core.kotlinx.coroutines.await_t11jrl$; var Any = Object; var substringAfterLast = Kotlin.kotlin.text.substringAfterLast_j4ogox$; var substringBeforeLast = Kotlin.kotlin.text.substringBeforeLast_j4ogox$; var L8640000000000000 = new Kotlin.Long(-1025769472, 2011656); var L0 = Kotlin.Long.ZERO; var Long$Companion$MAX_VALUE = Kotlin.Long.MAX_VALUE; var UstadSavedStateHandleJs = $module$UstadMobile_core.com.ustadmobile.core.navigation.UstadSavedStateHandleJs; var toStringMap = $module$UstadMobile_core.com.ustadmobile.core.util.ext.toStringMap_pvbo06$; var IntRange = Kotlin.kotlin.ranges.IntRange; var println = Kotlin.kotlin.io.println; var substring = Kotlin.kotlin.text.substring_fc3b62$; var replace = Kotlin.kotlin.text.replace_680rmw$; var joinToString = Kotlin.kotlin.collections.joinToString_cgipc5$; var take = Kotlin.kotlin.collections.take_ba2ldo$; var joinToString_0 = Kotlin.kotlin.collections.joinToString_fmv235$; var AccountListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.AccountListPresenter; var listOf_0 = Kotlin.kotlin.collections.listOf_mh5how$; var setState = $module$kotlin_react.react.setState_nm1tvw$; var ObserverFnWrapper = $module$door_door_runtime.com.ustadmobile.door.ObserverFnWrapper; var html = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html; var DIV_init = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.DIV; var StyledDOMBuilder = $module$kotlin_styled.styled.StyledDOMBuilder; var SPAN_init = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.SPAN; var BitmaskEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.BitmaskEditPresenter; var BitmaskFlag = $module$UstadMobile_core.com.ustadmobile.core.model.BitmaskFlag; var ChatDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ChatDetailPresenter; var MessageRead_init = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.MessageRead_init_b9bd0d$; var reversed = Kotlin.kotlin.collections.reversed_7wnvza$; var EditButtonMode = $module$UstadMobile_core.com.ustadmobile.core.view.EditButtonMode; var ChatListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ChatListPresenter; var lastIndexOf = Kotlin.kotlin.text.lastIndexOf_l5u8uk$; var ClazzAssignmentDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzAssignmentDetailPresenter; var UstadView = $module$UstadMobile_core.com.ustadmobile.core.view.UstadView; var mapOf_0 = Kotlin.kotlin.collections.mapOf_qfcya0$; var ClazzAssignmentDetailOverviewPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzAssignmentDetailOverviewPresenter; var controller = $module$UstadMobile_core.com.ustadmobile.core.controller; var isBlank = Kotlin.kotlin.text.isBlank_gw00vp$; var Map = Kotlin.kotlin.collections.Map; var ClazzAssignmentDetailStudentProgressPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzAssignmentDetailStudentProgressPresenter; var InputType$number = (/*union*/{button: 'button', checkbox: 'checkbox', color: 'color', date: 'date', datetimeLocal: 'datetime-local', email: 'email', file: 'file', hidden: 'hidden', image: 'image', month: 'month', number: 'number', password: 'password', radio: 'radio', range: 'range', reset: 'reset', search: 'search', submit: 'submit', tel: 'tel', text: 'text', time: 'time', url: 'url', week: 'week'}/*union*/).number; var ClazzAssignmentDetailStudentProgressOverviewListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzAssignmentDetailStudentProgressOverviewListPresenter; var ClazzAssignmentEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzAssignmentEditPresenter; var Pair = Kotlin.kotlin.Pair; var toIntOrNull = Kotlin.kotlin.text.toIntOrNull_pdl1vz$; var ClazzDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzDetailPresenter; var ClazzDetailOverviewPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzDetailOverviewPresenter; var ClazzAssignment = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.ClazzAssignment; var DoorMediatorLiveData = $module$door_door_runtime.com.ustadmobile.door.DoorMediatorLiveData; var DoorObserver = $module$door_door_runtime.com.ustadmobile.door.DoorObserver; var napier_0 = $module$Napier_napier_js_legacy.io.github.aakira.napier; var isAttendanceEnabledAndRecorded = $module$UstadMobile_core.com.ustadmobile.core.util.ext.isAttendanceEnabledAndRecorded_a89p9$; var ClazzEdit2Presenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzEdit2Presenter; var get_viewUri = $module$UstadMobile_core.com.ustadmobile.core.impl.nav.get_viewUri_valqi9$; var toSet = Kotlin.kotlin.collections.toSet_7wnvza$; var Clazz$Companion$CLAZZ_FEATURE_ATTENDANCE = Kotlin.Long.ONE; var mutableListOf = Kotlin.kotlin.collections.mutableListOf_i5x0yv$; var ClazzEnrolmentEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzEnrolmentEditPresenter; var personFullName = $module$UstadMobile_core.com.ustadmobile.core.util.ext.personFullName_gj5mh8$; var toLong = Kotlin.kotlin.text.toLong_pdl1vz$; var ClazzEnrolmentListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzEnrolmentListPresenter; var roleToString = $module$UstadMobile_core.com.ustadmobile.core.util.ext.roleToString_jnztfp$; var outcomeToString = $module$UstadMobile_core.com.ustadmobile.core.util.ext.outcomeToString_jnztfp$; var ClazzListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzListPresenter; var roundTo = $module$UstadMobile_core.com.ustadmobile.core.util.ext.roundTo_lcymw2$; var mutableMapOf = Kotlin.kotlin.collections.mutableMapOf_qfcya0$; var plus = Kotlin.kotlin.collections.plus_mydzjv$; var get_lastIndex = Kotlin.kotlin.collections.get_lastIndex_55thoc$; var ClazzLogEditAttendancePresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzLogEditAttendancePresenter; var first = Kotlin.kotlin.collections.first_us0mfu$; var ClazzLogEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzLogEditPresenter; var ClazzLogListAttendancePresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzLogListAttendancePresenter; var ClazzLogListAttendancePresenter$RecordAttendanceOption$values = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzLogListAttendancePresenter.RecordAttendanceOption.values; var first_0 = Kotlin.kotlin.collections.first_2p1efm$; var ClazzMemberListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ClazzMemberListPresenter; var ContentEntryDetailAttemptsListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ContentEntryDetailAttemptsListPresenter; var ContentEntryDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ContentEntryDetailPresenter; var ContentEntryDetailOverviewPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ContentEntryDetailOverviewPresenter; var calculateScoreWithPenalty = $module$UstadMobile_core.com.ustadmobile.core.util.ext.calculateScoreWithPenalty_jw4k00$; var NotImplementedError_init = Kotlin.kotlin.NotImplementedError; var ContentEntryEdit2Presenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ContentEntryEdit2Presenter; var ContentEntryImportLinkPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ContentEntryImportLinkPresenter; var ContentEntryList2Presenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ContentEntryList2Presenter; var determineListMode = $module$UstadMobile_core.com.ustadmobile.core.util.ext.determineListMode_alv72w$; var ListViewMode = $module$UstadMobile_core.com.ustadmobile.core.view.ListViewMode; var CourseDiscussionDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.CourseDiscussionDetailPresenter; var CourseDiscussionEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.CourseDiscussionEditPresenter; var CourseGroupSetDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.CourseGroupSetDetailPresenter; var CourseGroupSetEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.CourseGroupSetEditPresenter; var CourseGroupSetListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.CourseGroupSetListPresenter; var CourseTerminologyEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.CourseTerminologyEditPresenter; var CourseTerminologyListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.CourseTerminologyListPresenter; var DiscussionPostDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.DiscussionPostDetailPresenter; var DiscussionPostEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.DiscussionPostEditPresenter; var DiscussionTopicDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.DiscussionTopicDetailPresenter; var DiscussionPostWithDetails = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.DiscussionPostWithDetails; var DiscussionTopicEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.DiscussionTopicEditPresenter; var EpubContentPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.EpubContentPresenter; var RComponent_init = $module$kotlin_react.react.RComponent_init_5xgh2u$; var RComponent = $module$kotlin_react.react.RComponent; var HolidayCalendarEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.HolidayCalendarEditPresenter; var Holiday = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.Holiday; var HolidayCalendarListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.HolidayCalendarListPresenter; var HolidayCalendar = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.HolidayCalendar; var HolidayEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.HolidayEditPresenter; var HtmlTextViewDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.HtmlTextViewDetailPresenter; var randomString = $module$UstadMobile_lib_util.com.ustadmobile.lib.util.randomString_19mbxw$; var set_id = $module$kotlinx_html_js.kotlinx.html.set_id_ueiko3$; var set_onLoadFunction = $module$kotlinx_html_js.kotlinx.html.js.set_onLoadFunction_pszlq2$; var slice = Kotlin.kotlin.collections.slice_6bjbi1$; var distinct = Kotlin.kotlin.collections.distinct_7wnvza$; var enumEncode = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.attributes.enumEncode_m4whry$; var attributesMapOf = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.attributesMapOf_jyasbz$; var IFRAME_init = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.IFRAME; var InviteViaLinkPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.InviteViaLinkPresenter; var JoinWithCodePresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.JoinWithCodePresenter; var LanguageEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.LanguageEditPresenter; var LanguageListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.LanguageListPresenter; var throwUPAE = Kotlin.throwUPAE; var LeavingReasonEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.LeavingReasonEditPresenter; var LeavingReasonListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.LeavingReasonListPresenter; var Login2Presenter = $module$UstadMobile_core.com.ustadmobile.core.controller.Login2Presenter; var InputType$password = (/*union*/{button: 'button', checkbox: 'checkbox', color: 'color', date: 'date', datetimeLocal: 'datetime-local', email: 'email', file: 'file', hidden: 'hidden', image: 'image', month: 'month', number: 'number', password: 'password', radio: 'radio', range: 'range', reset: 'reset', search: 'search', submit: 'submit', tel: 'tel', text: 'text', time: 'time', url: 'url', week: 'week'}/*union*/).password; var UstadUrlComponents = $module$UstadMobile_core.com.ustadmobile.core.util.UstadUrlComponents; var Exception = Kotlin.kotlin.Exception; var attributesMapOf_0 = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.attributesMapOf_alerag$; var IMG_init = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.IMG; var ModuleCourseBlockEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ModuleCourseBlockEditPresenter; var ParentalConsentManagementPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ParentalConsentManagementPresenter; var PersonAccountEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.PersonAccountEditPresenter; var PersonDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.PersonDetailPresenter; var hasFlag = $module$UstadMobile_core.com.ustadmobile.core.util.ext.hasFlag_dqglrj$; var PersonEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.PersonEditPresenter; var PersonListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.PersonListPresenter; var toMutableMap = Kotlin.kotlin.collections.toMutableMap_abgq59$; var RedirectPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.RedirectPresenter; var RegisterAgeRedirectPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.RegisterAgeRedirectPresenter; var ReportDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ReportDetailPresenter; var set_borderBottom = $module$kotlin_css.kotlinx.css.set_borderBottom_krvuuu$; var set_borderTop = $module$kotlin_css.kotlinx.css.set_borderTop_krvuuu$; var ReportEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ReportEditPresenter; var ReportEditPresenter$DateRangeOptions = $module$UstadMobile_core.com.ustadmobile.core.controller.ReportEditPresenter.DateRangeOptions; var IdOption = $module$UstadMobile_core.com.ustadmobile.core.util.IdOption; var toDisplayString = $module$UstadMobile_core.com.ustadmobile.core.util.ext.toDisplayString_c3h9dv$; var ReportFilter = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.ReportFilter; var ReportFilterEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ReportFilterEditPresenter; var ReportFilterEditPresenter$FilterValueType = $module$UstadMobile_core.com.ustadmobile.core.controller.ReportFilterEditPresenter.FilterValueType; var ReportListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ReportListPresenter; var ReportSeries = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.ReportSeries; var safeParseList = $module$UstadMobile_core.com.ustadmobile.core.util.safeParseList_478ej0$; var get_direct = $module$Kodein_DI_kodein_di.org.kodein.di.get_direct_utb36t$; var ReportWithSeriesWithFilters_init = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.ReportWithSeriesWithFilters_init_bj006k$; var generateChartData = $module$UstadMobile_core.com.ustadmobile.core.util.ext.generateChartData_nbeg7f$; var launch = $module$kotlinx_coroutines_core.kotlinx.coroutines.launch_s496o7$; var ReportTemplateListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ReportTemplateListPresenter; var hashMapOf = Kotlin.kotlin.collections.hashMapOf_qfcya0$; var ScheduleEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ScheduleEditPresenter; var ScheduleEditPresenter$FrequencyOption$values = $module$UstadMobile_core.com.ustadmobile.core.controller.ScheduleEditPresenter.FrequencyOption.values; var ScheduleEditPresenter$DayOptions$values = $module$UstadMobile_core.com.ustadmobile.core.controller.ScheduleEditPresenter.DayOptions.values; var SchoolDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SchoolDetailPresenter; var plus_0 = Kotlin.kotlin.collections.plus_iwxh38$; var appendQueryArgs = $module$UstadMobile_core.com.ustadmobile.core.util.ext.appendQueryArgs_nnfx2g$; var SchoolDetailOverviewPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SchoolDetailOverviewPresenter; var SchoolEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SchoolEditPresenter; var InputType$email = (/*union*/{button: 'button', checkbox: 'checkbox', color: 'color', date: 'date', datetimeLocal: 'datetime-local', email: 'email', file: 'file', hidden: 'hidden', image: 'image', month: 'month', number: 'number', password: 'password', radio: 'radio', range: 'range', reset: 'reset', search: 'search', submit: 'submit', tel: 'tel', text: 'text', time: 'time', url: 'url', week: 'week'}/*union*/).email; var HashSet_init = Kotlin.kotlin.collections.HashSet_init_287e2$; var SchoolListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SchoolListPresenter; var Person = $module$UstadMobile_lib_database_entities.com.ustadmobile.lib.db.entities.Person; var firstOrNull = Kotlin.kotlin.collections.firstOrNull_2p1efm$; var observeResult = $module$UstadMobile_core.com.ustadmobile.core.util.ext.observeResult_d048xl$; var SchoolMemberListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SchoolMemberListPresenter; var ScopedGrantEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.ScopedGrantEditPresenter; var SelectExtractFilePresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SelectExtractFilePresenter; var Visibility = $module$kotlin_css.kotlinx.css.Visibility; var set_visibility = $module$kotlin_css.kotlinx.css.set_visibility_xorjt0$; var InputType = $module$kotlinx_html_js.kotlinx.html.InputType; var HEADER_init = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.HEADER; var INPUT_init = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.INPUT; var SelectFilePresenterCommon = $module$UstadMobile_core.com.ustadmobile.core.controller.SelectFilePresenterCommon; var toDoorUri = $module$door_door_runtime.com.ustadmobile.door.ext.toDoorUri_fu744r$; var SessionListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SessionListPresenter; var SettingsPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SettingsPresenter; var SiteDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SiteDetailPresenter; var SiteEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SiteEditPresenter; var SiteTermsDetailPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SiteTermsDetailPresenter; var SiteTermsEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.SiteTermsEditPresenter; var SplashScreenView = $module$UstadMobile_core.com.ustadmobile.core.view.SplashScreenView; var VerbEntity$Companion$VERB_ANSWERED_UID = Kotlin.Long.fromInt(10007); var StatementListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.StatementListPresenter; var countWords = $module$UstadMobile_core.com.ustadmobile.core.util.ext.countWords_pdl1vz$; var TextAssignmentEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.TextAssignmentEditPresenter; var TextCourseBlockEditPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.TextCourseBlockEditPresenter; var TimeZoneListPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.TimeZoneListPresenter; var withContext = $module$kotlinx_coroutines_core.kotlinx.coroutines.withContext_i5cbzn$; var OnSearchSubmitted = $module$UstadMobile_core.com.ustadmobile.core.controller.OnSearchSubmitted; var Collection = Kotlin.kotlin.collections.Collection; var concurrentSafeListOf = $module$door_door_runtime.com.ustadmobile.door.ext.concurrentSafeListOf_i5x0yv$; var atomic = $module$kotlinx_atomicfu.kotlinx.atomicfu.atomic$int$1; var IllegalArgumentException = Kotlin.kotlin.IllegalArgumentException; var DoorLifecycleOwner = $module$door_door_runtime.com.ustadmobile.door.DoorLifecycleOwner; var On = $module$Kodein_DI_kodein_di.org.kodein.di.On_e2mfxv$; var DIContext = $module$Kodein_DI_kodein_di.org.kodein.di.DIContext; var UstadDetailView = $module$UstadMobile_core.com.ustadmobile.core.view.UstadDetailView; var UstadSingleEntityPresenter$PersistenceMode = $module$UstadMobile_core.com.ustadmobile.core.controller.UstadSingleEntityPresenter.PersistenceMode; var UstadEditView = $module$UstadMobile_core.com.ustadmobile.core.view.UstadEditView; var systemTimeInMillis = $module$door_door_runtime.com.ustadmobile.door.util.systemTimeInMillis; var ListViewAddMode = $module$UstadMobile_core.com.ustadmobile.core.view.ListViewAddMode; var copyOnWriteListOf = $module$UstadMobile_lib_util.com.ustadmobile.lib.util.copyOnWriteListOf_i5x0yv$; var SelectionOption = $module$UstadMobile_core.com.ustadmobile.core.view.SelectionOption; var UstadListView = $module$UstadMobile_core.com.ustadmobile.core.view.UstadListView; var OnSortOptionSelected = $module$UstadMobile_core.com.ustadmobile.core.controller.OnSortOptionSelected; var VideoContentPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.VideoContentPresenter; var VIDEO_init = $module$kotlin_styled.$$importsForInline$$['kotlinx-html-js'].kotlinx.html.VIDEO; var WebChunkPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.WebChunkPresenter; var XapiPackageContentPresenter = $module$UstadMobile_core.com.ustadmobile.core.controller.XapiPackageContentPresenter; var DoorDatabaseRepository = $module$door_door_runtime.com.ustadmobile.door.DoorDatabaseRepository; var retrieveAttachment = $module$door_door_runtime.com.ustadmobile.door.attachments.retrieveAttachment_cdvnrs$; var DoorUri = $module$door_door_runtime.com.ustadmobile.door.DoorUri; var set_onClick = $module$kotlin_react_dom.react.dom.set_onClick_evmc4n$; var set_onChange = $module$kotlin_react_dom.react.dom.set_onChange_48e8z8$; var RBuilder = $module$kotlin_react.react.createBuilder; var RegisterMinorWaitForParentView = $module$UstadMobile_core.com.ustadmobile.core.view.RegisterMinorWaitForParentView; var createElement = $module$kotlin_react.react.createElement_zepujl$; var set_onClickFunction = $module$kotlinx_html_js.kotlinx.html.js.set_onClickFunction_pszlq2$; var L_1 = Kotlin.Long.NEG_ONE; var first_1 = Kotlin.kotlin.text.first_gw00vp$; var isContentComplete = $module$UstadMobile_core.com.ustadmobile.core.util.ext.isContentComplete_jw4k00$; var last = Kotlin.kotlin.collections.last_us0mfu$; var copyToArray = Kotlin.kotlin.collections.copyToArray; var addAll = Kotlin.kotlin.collections.addAll_ipc267$; var sortedWith = Kotlin.kotlin.collections.sortedWith_eknfly$; var wrapFunction = Kotlin.wrapFunction; var Comparator = Kotlin.kotlin.Comparator; var defaultJsonSerializer = $module$UstadMobile_core.com.ustadmobile.core.util.defaultJsonSerializer; var UstadAntilog = $module$UstadMobile_core.com.ustadmobile.core.util.UstadAntilog; var indexOf_0 = Kotlin.kotlin.text.indexOf_l5u8uk$; var sanitizeDbNameFromUrl = $module$UstadMobile_lib_util.com.ustadmobile.lib.util.sanitizeDbNameFromUrl_61zpoe$; var Random = Kotlin.kotlin.random.Random; var getOrPut = $module$UstadMobile_core.com.ustadmobile.core.util.ext.getOrPut_kxerl3$; var randomUuid = $module$door_door_runtime.com.ustadmobile.door.util.randomUuid; var db = $module$UstadMobile_lib_database_mpp.com.ustadmobile.core.db; var DatabaseBuilderOptions = $module$door_door_runtime.com.ustadmobile.door.DatabaseBuilderOptions; var ContentJobItemTriggersCallback = $module$UstadMobile_lib_database.com.ustadmobile.core.db.ContentJobItemTriggersCallback; var addSyncCallback = $module$UstadMobile_lib_database.com.ustadmobile.core.db.ext.addSyncCallback_oam1fn$; var contains_0 = Kotlin.kotlin.collections.contains_mjy6jw$; var provider = $module$kotlin_react_redux.react.redux.provider_lppopv$; var render = $module$kotlin_react_dom.react.dom.render_2955dm$; AppBarPosition.prototype = Object.create(Enum.prototype); AppBarPosition.prototype.constructor = AppBarPosition; AppBarColor.prototype = Object.create(Enum.prototype); AppBarColor.prototype.constructor = AppBarColor; AvatarVariant.prototype = Object.create(Enum.prototype); AvatarVariant.prototype.constructor = AvatarVariant; ButtonSize.prototype = Object.create(Enum.prototype); ButtonSize.prototype.constructor = ButtonSize; ButtonVariant.prototype = Object.create(Enum.prototype); ButtonVariant.prototype.constructor = ButtonVariant; ChipVariant.prototype = Object.create(Enum.prototype); ChipVariant.prototype.constructor = ChipVariant; ChipColor.prototype = Object.create(Enum.prototype); ChipColor.prototype.constructor = ChipColor; ChipSize.prototype = Object.create(Enum.prototype); ChipSize.prototype.constructor = ChipSize; DateTimePickerOpenTo.prototype = Object.create(Enum.prototype); DateTimePickerOpenTo.prototype.constructor = DateTimePickerOpenTo; MDividerOrientation.prototype = Object.create(Enum.prototype); MDividerOrientation.prototype.constructor = MDividerOrientation; MDividerVariant.prototype = Object.create(Enum.prototype); MDividerVariant.prototype.constructor = MDividerVariant; DrawerAnchor.prototype = Object.create(Enum.prototype); DrawerAnchor.prototype.constructor = DrawerAnchor; DrawerVariant.prototype = Object.create(Enum.prototype); DrawerVariant.prototype.constructor = DrawerVariant; FabVariant.prototype = Object.create(Enum.prototype); FabVariant.prototype.constructor = FabVariant; FormControlComponent.prototype = Object.create(Enum.prototype); FormControlComponent.prototype.constructor = FormControlComponent; GridAlignContent.prototype = Object.create(Enum.prototype); GridAlignContent.prototype.constructor = GridAlignContent; GridAlignItems.prototype = Object.create(Enum.prototype); GridAlignItems.prototype.constructor = GridAlignItems; GridJustify.prototype = Object.create(Enum.prototype); GridJustify.prototype.constructor = GridJustify; GridSize.prototype = Object.create(Enum.prototype); GridSize.prototype.constructor = GridSize; GridSpacing.prototype = Object.create(Enum.prototype); GridSpacing.prototype.constructor = GridSpacing; IconColor.prototype = Object.create(Enum.prototype); IconColor.prototype.constructor = IconColor; IconFontSize.prototype = Object.create(Enum.prototype); IconFontSize.prototype.constructor = IconFontSize; IconButtonSize.prototype = Object.create(Enum.prototype); IconButtonSize.prototype.constructor = IconButtonSize; IconEdge.prototype = Object.create(Enum.prototype); IconEdge.prototype.constructor = IconEdge; LabelMargin.prototype = Object.create(Enum.prototype); LabelMargin.prototype.constructor = LabelMargin; ListItemAlignItems.prototype = Object.create(Enum.prototype); ListItemAlignItems.prototype.constructor = ListItemAlignItems; MenuVariant.prototype = Object.create(Enum.prototype); MenuVariant.prototype.constructor = MenuVariant; PaperVariant.prototype = Object.create(Enum.prototype); PaperVariant.prototype.constructor = PaperVariant; ProgressVariant.prototype = Object.create(Enum.prototype); ProgressVariant.prototype.constructor = ProgressVariant; SnackbarHorizAnchor.prototype = Object.create(Enum.prototype); SnackbarHorizAnchor.prototype.constructor = SnackbarHorizAnchor; SwitchSize.prototype = Object.create(Enum.prototype); SwitchSize.prototype.constructor = SwitchSize; TableSize.prototype = Object.create(Enum.prototype); TableSize.prototype.constructor = TableSize; TablePadding.prototype = Object.create(Enum.prototype); TablePadding.prototype.constructor = TablePadding; TabTextColor.prototype = Object.create(Enum.prototype); TabTextColor.prototype.constructor = TabTextColor; TabScrollButtons.prototype = Object.create(Enum.prototype); TabScrollButtons.prototype.constructor = TabScrollButtons; TabIndicatorColor.prototype = Object.create(Enum.prototype); TabIndicatorColor.prototype.constructor = TabIndicatorColor; TabVariant.prototype = Object.create(Enum.prototype); TabVariant.prototype.constructor = TabVariant; TabOrientation.prototype = Object.create(Enum.prototype); TabOrientation.prototype.constructor = TabOrientation; FormControlVariant.prototype = Object.create(Enum.prototype); FormControlVariant.prototype.constructor = FormControlVariant; FormControlMargin.prototype = Object.create(Enum.prototype); FormControlMargin.prototype.constructor = FormControlMargin; ToggleButtonSize.prototype = Object.create(Enum.prototype); ToggleButtonSize.prototype.constructor = ToggleButtonSize; ToggleButtonOrientation.prototype = Object.create(Enum.prototype); ToggleButtonOrientation.prototype.constructor = ToggleButtonOrientation; ToolbarVariant.prototype = Object.create(Enum.prototype); ToolbarVariant.prototype.constructor = ToolbarVariant; TypographyAlign.prototype = Object.create(Enum.prototype); TypographyAlign.prototype.constructor = TypographyAlign; TypographyColor.prototype = Object.create(Enum.prototype); TypographyColor.prototype.constructor = TypographyColor; TypographyVariant.prototype = Object.create(Enum.prototype); TypographyVariant.prototype.constructor = TypographyVariant; Breakpoint.prototype = Object.create(Enum.prototype); Breakpoint.prototype.constructor = Breakpoint; UMColor.prototype = Object.create(Enum.prototype); UMColor.prototype.constructor = UMColor; StyleManager.prototype = Object.create(StyleSheet.prototype); StyleManager.prototype.constructor = StyleManager; UstadBaseComponent.prototype = Object.create(RComponent.prototype); UstadBaseComponent.prototype.constructor = UstadBaseComponent; UstadSimpleList.prototype = Object.create(UstadBaseComponent.prototype); UstadSimpleList.prototype.constructor = UstadSimpleList; AccountListComponent$AccountListComponent.prototype = Object.create(UstadSimpleList.prototype); AccountListComponent$AccountListComponent.prototype.constructor = AccountListComponent$AccountListComponent; AccountListComponent.prototype = Object.create(UstadBaseComponent.prototype); AccountListComponent.prototype.constructor = AccountListComponent; UstadEditComponent.prototype = Object.create(UstadBaseComponent.prototype); UstadEditComponent.prototype.constructor = UstadEditComponent; BitmaskEditComponent.prototype = Object.create(UstadEditComponent.prototype); BitmaskEditComponent.prototype.constructor = BitmaskEditComponent; ChatDetailComponent.prototype = Object.create(UstadBaseComponent.prototype); ChatDetailComponent.prototype.constructor = ChatDetailComponent; UstadListComponent.prototype = Object.create(UstadBaseComponent.prototype); UstadListComponent.prototype.constructor = UstadListComponent; ChatListComponent.prototype = Object.create(UstadListComponent.prototype); ChatListComponent.prototype.constructor = ChatListComponent; UstadDetailComponent.prototype = Object.create(UstadBaseComponent.prototype); UstadDetailComponent.prototype.constructor = UstadDetailComponent; ClazzAssignmentDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); ClazzAssignmentDetailComponent.prototype.constructor = ClazzAssignmentDetailComponent; ClazzAssignmentDetailOverviewComponent.prototype = Object.create(UstadDetailComponent.prototype); ClazzAssignmentDetailOverviewComponent.prototype.constructor = ClazzAssignmentDetailOverviewComponent; ClazzAssignmentDetailStudentProgressComponent.prototype = Object.create(UstadDetailComponent.prototype); ClazzAssignmentDetailStudentProgressComponent.prototype.constructor = ClazzAssignmentDetailStudentProgressComponent; ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype = Object.create(UstadListComponent.prototype); ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.constructor = ClazzAssignmentDetailStudentProgressListOverviewComponent; ClazzAssignmentEditComponent.prototype = Object.create(UstadEditComponent.prototype); ClazzAssignmentEditComponent.prototype.constructor = ClazzAssignmentEditComponent; ClazzDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); ClazzDetailComponent.prototype.constructor = ClazzDetailComponent; ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent.prototype = Object.create(UstadSimpleList.prototype); ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent.prototype.constructor = ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent; ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype = Object.create(DoorMediatorLiveData.prototype); ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype.constructor = ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral; ClazzDetailOverviewComponent.prototype = Object.create(UstadDetailComponent.prototype); ClazzDetailOverviewComponent.prototype.constructor = ClazzDetailOverviewComponent; ClazzEditComponent$CourseBlockListComponent.prototype = Object.create(UstadSimpleList.prototype); ClazzEditComponent$CourseBlockListComponent.prototype.constructor = ClazzEditComponent$CourseBlockListComponent; ClazzEditComponent.prototype = Object.create(UstadEditComponent.prototype); ClazzEditComponent.prototype.constructor = ClazzEditComponent; ClazzEnrolmentEditComponent.prototype = Object.create(UstadEditComponent.prototype); ClazzEnrolmentEditComponent.prototype.constructor = ClazzEnrolmentEditComponent; ClazzEnrolmentListComponent.prototype = Object.create(UstadListComponent.prototype); ClazzEnrolmentListComponent.prototype.constructor = ClazzEnrolmentListComponent; ClazzListComponent.prototype = Object.create(UstadListComponent.prototype); ClazzListComponent.prototype.constructor = ClazzListComponent; ClazzLogEditAttendanceComponent.prototype = Object.create(UstadEditComponent.prototype); ClazzLogEditAttendanceComponent.prototype.constructor = ClazzLogEditAttendanceComponent; ClazzLogEditComponent.prototype = Object.create(UstadEditComponent.prototype); ClazzLogEditComponent.prototype.constructor = ClazzLogEditComponent; ClazzLogListAttendanceComponent.prototype = Object.create(UstadListComponent.prototype); ClazzLogListAttendanceComponent.prototype.constructor = ClazzLogListAttendanceComponent; ClazzMemberListComponent.prototype = Object.create(UstadListComponent.prototype); ClazzMemberListComponent.prototype.constructor = ClazzMemberListComponent; MembersListComponent.prototype = Object.create(UstadSimpleList.prototype); MembersListComponent.prototype.constructor = MembersListComponent; CommentsListComponent.prototype = Object.create(UstadSimpleList.prototype); CommentsListComponent.prototype.constructor = CommentsListComponent; ContentEntryDetailAttemptsListComponent.prototype = Object.create(UstadListComponent.prototype); ContentEntryDetailAttemptsListComponent.prototype.constructor = ContentEntryDetailAttemptsListComponent; ContentEntryDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); ContentEntryDetailComponent.prototype.constructor = ContentEntryDetailComponent; ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype = Object.create(DoorMediatorLiveData.prototype); ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype.constructor = ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda$ObjectLiteral; ContentEntryDetailOverviewComponent.prototype = Object.create(UstadDetailComponent.prototype); ContentEntryDetailOverviewComponent.prototype.constructor = ContentEntryDetailOverviewComponent; ContentEntryEditComponent.prototype = Object.create(UstadEditComponent.prototype); ContentEntryEditComponent.prototype.constructor = ContentEntryEditComponent; ContentEntryImportLinkComponent.prototype = Object.create(UstadBaseComponent.prototype); ContentEntryImportLinkComponent.prototype.constructor = ContentEntryImportLinkComponent; ContentEntryListComponent.prototype = Object.create(UstadListComponent.prototype); ContentEntryListComponent.prototype.constructor = ContentEntryListComponent; ContentListComponent.prototype = Object.create(UstadSimpleList.prototype); ContentListComponent.prototype.constructor = ContentListComponent; CourseDiscussionDetailComponent$TopicListDetailComponent.prototype = Object.create(UstadSimpleList.prototype); CourseDiscussionDetailComponent$TopicListDetailComponent.prototype.constructor = CourseDiscussionDetailComponent$TopicListDetailComponent; CourseDiscussionDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); CourseDiscussionDetailComponent.prototype.constructor = CourseDiscussionDetailComponent; CourseDiscussionEditComponent$DiscussionTopicListComponent.prototype = Object.create(UstadSimpleList.prototype); CourseDiscussionEditComponent$DiscussionTopicListComponent.prototype.constructor = CourseDiscussionEditComponent$DiscussionTopicListComponent; CourseDiscussionEditComponent.prototype = Object.create(UstadEditComponent.prototype); CourseDiscussionEditComponent.prototype.constructor = CourseDiscussionEditComponent; CourseGroupSetDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); CourseGroupSetDetailComponent.prototype.constructor = CourseGroupSetDetailComponent; CourseGroupSetEditComponent.prototype = Object.create(UstadEditComponent.prototype); CourseGroupSetEditComponent.prototype.constructor = CourseGroupSetEditComponent; CourseGroupSetListComponent.prototype = Object.create(UstadListComponent.prototype); CourseGroupSetListComponent.prototype.constructor = CourseGroupSetListComponent; CourseTerminologyEditComponent.prototype = Object.create(UstadEditComponent.prototype); CourseTerminologyEditComponent.prototype.constructor = CourseTerminologyEditComponent; CourseTerminologyListComponent.prototype = Object.create(UstadListComponent.prototype); CourseTerminologyListComponent.prototype.constructor = CourseTerminologyListComponent; DiscussionPostDetailComponent.prototype = Object.create(UstadBaseComponent.prototype); DiscussionPostDetailComponent.prototype.constructor = DiscussionPostDetailComponent; DiscussionPostEditComponent.prototype = Object.create(UstadEditComponent.prototype); DiscussionPostEditComponent.prototype.constructor = DiscussionPostEditComponent; DiscussionTopicDetailComponent$PostListDetailComponent.prototype = Object.create(UstadSimpleList.prototype); DiscussionTopicDetailComponent$PostListDetailComponent.prototype.constructor = DiscussionTopicDetailComponent$PostListDetailComponent; DiscussionTopicDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); DiscussionTopicDetailComponent.prototype.constructor = DiscussionTopicDetailComponent; DiscussionTopicEditComponent.prototype = Object.create(UstadEditComponent.prototype); DiscussionTopicEditComponent.prototype.constructor = DiscussionTopicEditComponent; EpubContentComponent.prototype = Object.create(UstadBaseComponent.prototype); EpubContentComponent.prototype.constructor = EpubContentComponent; ExtraActiveTabWarningComponent.prototype = Object.create(RComponent.prototype); ExtraActiveTabWarningComponent.prototype.constructor = ExtraActiveTabWarningComponent; ChartType.prototype = Object.create(Enum.prototype); ChartType.prototype.constructor = ChartType; HolidayCalendarEditComponent.prototype = Object.create(UstadEditComponent.prototype); HolidayCalendarEditComponent.prototype.constructor = HolidayCalendarEditComponent; HolidayListComponent.prototype = Object.create(UstadSimpleList.prototype); HolidayListComponent.prototype.constructor = HolidayListComponent; HolidayCalendarListComponent.prototype = Object.create(UstadListComponent.prototype); HolidayCalendarListComponent.prototype.constructor = HolidayCalendarListComponent; HolidayEditComponent.prototype = Object.create(UstadEditComponent.prototype); HolidayEditComponent.prototype.constructor = HolidayEditComponent; HtmlTextViewComponent.prototype = Object.create(UstadDetailComponent.prototype); HtmlTextViewComponent.prototype.constructor = HtmlTextViewComponent; IframeComponent.prototype = Object.create(RComponent.prototype); IframeComponent.prototype.constructor = IframeComponent; InviteViaLinkComponent.prototype = Object.create(UstadBaseComponent.prototype); InviteViaLinkComponent.prototype.constructor = InviteViaLinkComponent; JoinWithCodeComponent.prototype = Object.create(UstadBaseComponent.prototype); JoinWithCodeComponent.prototype.constructor = JoinWithCodeComponent; LanguageEditComponent.prototype = Object.create(UstadEditComponent.prototype); LanguageEditComponent.prototype.constructor = LanguageEditComponent; LanguageListComponent.prototype = Object.create(UstadListComponent.prototype); LanguageListComponent.prototype.constructor = LanguageListComponent; LanguageOptionComponent.prototype = Object.create(RComponent.prototype); LanguageOptionComponent.prototype.constructor = LanguageOptionComponent; LeavingReasonEditComponent.prototype = Object.create(UstadEditComponent.prototype); LeavingReasonEditComponent.prototype.constructor = LeavingReasonEditComponent; LeavingReasonListComponent.prototype = Object.create(UstadListComponent.prototype); LeavingReasonListComponent.prototype.constructor = LeavingReasonListComponent; LoginComponent.prototype = Object.create(UstadBaseComponent.prototype); LoginComponent.prototype.constructor = LoginComponent; MainComponent.prototype = Object.create(UstadBaseComponent.prototype); MainComponent.prototype.constructor = MainComponent; ModuleCourseBlockEditComponent.prototype = Object.create(UstadEditComponent.prototype); ModuleCourseBlockEditComponent.prototype.constructor = ModuleCourseBlockEditComponent; NewCommentsComponent.prototype = Object.create(RComponent.prototype); NewCommentsComponent.prototype.constructor = NewCommentsComponent; ParentalConsentManagementComponent.prototype = Object.create(UstadEditComponent.prototype); ParentalConsentManagementComponent.prototype.constructor = ParentalConsentManagementComponent; PersonAccountEditComponent.prototype = Object.create(UstadEditComponent.prototype); PersonAccountEditComponent.prototype.constructor = PersonAccountEditComponent; PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent.prototype = Object.create(UstadSimpleList.prototype); PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent.prototype.constructor = PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent; PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype = Object.create(DoorMediatorLiveData.prototype); PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype.constructor = PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral; PersonDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); PersonDetailComponent.prototype.constructor = PersonDetailComponent; PersonEditComponent.prototype = Object.create(UstadEditComponent.prototype); PersonEditComponent.prototype.constructor = PersonEditComponent; PersonListComponent.prototype = Object.create(UstadListComponent.prototype); PersonListComponent.prototype.constructor = PersonListComponent; RedirectComponent.prototype = Object.create(UstadBaseComponent.prototype); RedirectComponent.prototype.constructor = RedirectComponent; RegisterAgeRedirectComponent.prototype = Object.create(UstadBaseComponent.prototype); RegisterAgeRedirectComponent.prototype.constructor = RegisterAgeRedirectComponent; ReportDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); ReportDetailComponent.prototype.constructor = ReportDetailComponent; ReportEditComponent.prototype = Object.create(UstadEditComponent.prototype); ReportEditComponent.prototype.constructor = ReportEditComponent; ReportFilterEditComponent.prototype = Object.create(UstadEditComponent.prototype); ReportFilterEditComponent.prototype.constructor = ReportFilterEditComponent; ReportListComponent.prototype = Object.create(UstadListComponent.prototype); ReportListComponent.prototype.constructor = ReportListComponent; ReportTemplateListComponent.prototype = Object.create(UstadListComponent.prototype); ReportTemplateListComponent.prototype.constructor = ReportTemplateListComponent; ScheduleEditComponent.prototype = Object.create(UstadEditComponent.prototype); ScheduleEditComponent.prototype.constructor = ScheduleEditComponent; ScheduleListComponent.prototype = Object.create(UstadSimpleList.prototype); ScheduleListComponent.prototype.constructor = ScheduleListComponent; SchoolDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); SchoolDetailComponent.prototype.constructor = SchoolDetailComponent; SchoolDetailOverviewComponent$SchoolClazzesComponent.prototype = Object.create(UstadSimpleList.prototype); SchoolDetailOverviewComponent$SchoolClazzesComponent.prototype.constructor = SchoolDetailOverviewComponent$SchoolClazzesComponent; SchoolDetailOverviewComponent.prototype = Object.create(UstadDetailComponent.prototype); SchoolDetailOverviewComponent.prototype.constructor = SchoolDetailOverviewComponent; SchoolEditComponent.prototype = Object.create(UstadEditComponent.prototype); SchoolEditComponent.prototype.constructor = SchoolEditComponent; SchoolListComponent.prototype = Object.create(UstadListComponent.prototype); SchoolListComponent.prototype.constructor = SchoolListComponent; SchoolMemberListComponent$MembersListComponent.prototype = Object.create(UstadSimpleList.prototype); SchoolMemberListComponent$MembersListComponent.prototype.constructor = SchoolMemberListComponent$MembersListComponent; SchoolMemberListComponent.prototype = Object.create(UstadListComponent.prototype); SchoolMemberListComponent.prototype.constructor = SchoolMemberListComponent; ScopeGrantListComponent.prototype = Object.create(UstadSimpleList.prototype); ScopeGrantListComponent.prototype.constructor = ScopeGrantListComponent; ScopedGrantEditComponent$ScopedGrantComponent.prototype = Object.create(UstadSimpleList.prototype); ScopedGrantEditComponent$ScopedGrantComponent.prototype.constructor = ScopedGrantEditComponent$ScopedGrantComponent; ScopedGrantEditComponent.prototype = Object.create(UstadEditComponent.prototype); ScopedGrantEditComponent.prototype.constructor = ScopedGrantEditComponent; SelectExtractFileComponent.prototype = Object.create(UstadBaseComponent.prototype); SelectExtractFileComponent.prototype.constructor = SelectExtractFileComponent; SelectFileComponent.prototype = Object.create(UstadBaseComponent.prototype); SelectFileComponent.prototype.constructor = SelectFileComponent; SessionListComponent.prototype = Object.create(UstadListComponent.prototype); SessionListComponent.prototype.constructor = SessionListComponent; SettingsComponent.prototype = Object.create(UstadBaseComponent.prototype); SettingsComponent.prototype.constructor = SettingsComponent; SiteDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); SiteDetailComponent.prototype.constructor = SiteDetailComponent; SiteEditComponent.prototype = Object.create(UstadEditComponent.prototype); SiteEditComponent.prototype.constructor = SiteEditComponent; SiteTermsDetailComponent.prototype = Object.create(UstadDetailComponent.prototype); SiteTermsDetailComponent.prototype.constructor = SiteTermsDetailComponent; SiteTermsEditComponent.prototype = Object.create(UstadEditComponent.prototype); SiteTermsEditComponent.prototype.constructor = SiteTermsEditComponent; SiteTermsListComponent.prototype = Object.create(UstadSimpleList.prototype); SiteTermsListComponent.prototype.constructor = SiteTermsListComponent; SplashComponent.prototype = Object.create(RComponent.prototype); SplashComponent.prototype.constructor = SplashComponent; StatementListComponent.prototype = Object.create(UstadListComponent.prototype); StatementListComponent.prototype.constructor = StatementListComponent; TabsComponent.prototype = Object.create(UstadBaseComponent.prototype); TabsComponent.prototype.constructor = TabsComponent; TextAssignmentEditComponent.prototype = Object.create(UstadEditComponent.prototype); TextAssignmentEditComponent.prototype.constructor = TextAssignmentEditComponent; TextCourseBlockEditComponent.prototype = Object.create(UstadEditComponent.prototype); TextCourseBlockEditComponent.prototype.constructor = TextCourseBlockEditComponent; TimeZoneListComponent.prototype = Object.create(UstadBaseComponent.prototype); TimeZoneListComponent.prototype.constructor = TimeZoneListComponent; ZonesListComponent.prototype = Object.create(UstadSimpleList.prototype); ZonesListComponent.prototype.constructor = ZonesListComponent; UmBottomSheetOptionsComponent.prototype = Object.create(RComponent.prototype); UmBottomSheetOptionsComponent.prototype.constructor = UmBottomSheetOptionsComponent; VideoContentComponent.prototype = Object.create(UstadBaseComponent.prototype); VideoContentComponent.prototype.constructor = VideoContentComponent; WebChunkComponent.prototype = Object.create(UstadBaseComponent.prototype); WebChunkComponent.prototype.constructor = WebChunkComponent; XapiPackageContentComponent.prototype = Object.create(UstadBaseComponent.prototype); XapiPackageContentComponent.prototype.constructor = XapiPackageContentComponent; AttachmentImageComponent.prototype = Object.create(UstadBaseComponent.prototype); AttachmentImageComponent.prototype.constructor = AttachmentImageComponent; AttachmentImageLookupComponent.prototype = Object.create(UstadBaseComponent.prototype); AttachmentImageLookupComponent.prototype.constructor = AttachmentImageLookupComponent; IndexComponent.prototype = Object.create(RComponent.prototype); IndexComponent.prototype.constructor = IndexComponent; function ustadJsDi$lambda$lambda(closure$defaultStringsXmlStr, closure$displayLocaleStringsXmlStr, closure$appConfigs, closure$apiUrl) { return function ($receiver) { var tmp$; var $receiver_0 = new UstadMobileSystemImpl(XmlPullParserFactory.Companion.newInstance(), $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UstadNavController), [], false)), TypeToken) ? tmp$ : throwCCE(), null), closure$defaultStringsXmlStr, closure$displayLocaleStringsXmlStr); var closure$appConfigs_0 = closure$appConfigs; var closure$apiUrl_0 = closure$apiUrl; var tmp$_0; tmp$_0 = closure$appConfigs_0.entries.iterator(); while (tmp$_0.hasNext()) { var element = tmp$_0.next(); var tmp$_1; if (equals(element.key, impl.AppConfig.KEY_API_URL)) tmp$_1 = closure$apiUrl_0; else tmp$_1 = element.value; var value = tmp$_1; $receiver_0.setAppPref_5pkmrg$(element.key, value, $receiver); } return $receiver_0; }; } function ustadJsDi$lambda$lambda_0($receiver) { var tmp$; return new UstadAccountManager($receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$ : throwCCE(), null), $receiver, $receiver.di); } function ustadJsDi$lambda$lambda_1(closure$dbNodeIdAndAuth) { return function ($receiver) { return closure$dbNodeIdAndAuth; }; } function ustadJsDi$lambda$lambda_2($receiver) { return coroutines.GlobalScope; } function ustadJsDi$lambda$lambda_3(closure$dbBuilt) { return function ($receiver) { return closure$dbBuilt; }; } function ustadJsDi$lambda$lambda$lambda($receiver) { $receiver.replicationSubscriptionInitListener = new RepSubscriptionInitListener(); return Unit; } function ustadJsDi$lambda$lambda_4($receiver) { var tmp$; var nodeIdAndAuth = $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(NodeIdAndAuth), [], false)), TypeToken) ? tmp$ : throwCCE(), null); var tmp$_0; var db = $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$_0 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_0 : throwCCE(), 1); var tmp$_1; var tmp$_2; var repositoryConfig = RepositoryConfig.Companion.repositoryConfig_z3dmi1$($receiver, $receiver.context.url + 'UmAppDatabase/', nodeIdAndAuth.auth, nodeIdAndAuth.nodeId, $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$_1 = typeToken(createKType(getKClass(HttpClient), [], false)), TypeToken) ? tmp$_1 : throwCCE(), null), $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$_2 = typeToken(createKType(getKClass(Json), [], false)), TypeToken) ? tmp$_2 : throwCCE(), null), ustadJsDi$lambda$lambda$lambda); var tmp$_3, tmp$_0_0, tmp$_1_0; var dbClass = getKClass(UmAppDatabase); tmp$_3 = DatabaseBuilder.Companion.lookupImplementations_mhwkug$(dbClass).repositoryImplClass; if (tmp$_3 == null) { throw IllegalArgumentException_init('Database ' + toString(dbClass.simpleName) + ' does not have a repository!'); }var repoClass = tmp$_3; if (Kotlin.isType(db, DoorDatabaseReplicateWrapper)) { tmp$_0_0 = unwrap(db, dbClass); } else { tmp$_0_0 = db; } var dbUnwrapped = tmp$_0_0; var repo = Kotlin.isType(tmp$_1_0 = createInstance(get_js(repoClass), [db, dbUnwrapped, repositoryConfig, true]), UmAppDatabase) ? tmp$_1_0 : throwCCE(); napier.Napier.d_82mfvz$('Created JS repo ' + repo + ' Node Id ' + repositoryConfig.nodeId.toString(), void 0, DoorTag.Companion.LOG_TAG); return repo; } function ustadJsDi$lambda$lambda_5($receiver) { var tmp$; return new ReduxThemeState((tmp$ = ReduxAppStateManager_getInstance().getCurrentState().appTheme) != null ? tmp$.theme : null); } function ustadJsDi$lambda$lambda_6($receiver) { return new ContainerMounterJs(); } function ustadJsDi$lambda$lambda_7($receiver) { var $receiver_0 = XmlPullParserFactory.Companion.newInstance(); $receiver_0.setNamespaceAware_6taknv$(true); return $receiver_0; } function ustadJsDi$lambda$lambda_8($receiver) { return XmlPullParserFactory.Companion.newInstance(); } function ustadJsDi$lambda$lambda_9($receiver) { var tmp$; return $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(XmlPullParserFactory), [], false)), TypeToken) ? tmp$ : throwCCE(), null).newSerializer(); } function ustadJsDi$lambda$lambda_10($receiver) { return coroutines.Dispatchers.Main; } function ustadJsDi$lambda$lambda_11($receiver) { return new ContentEntryOpener($receiver.di, $receiver.context); } function ustadJsDi$lambda$lambda$lambda_0($receiver) { $receiver.install_xlxg29$(JsonFeature.Feature); $receiver.install_xlxg29$(HttpTimeout.Feature); return Unit; } function ustadJsDi$lambda$lambda_12($receiver) { return HttpClient_0(js.Js, ustadJsDi$lambda$lambda$lambda_0); } function ustadJsDi$lambda$lambda_13($receiver) { var tmp$; return new NavControllerJs(void 0, void 0, $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(Json), [], false)), TypeToken) ? tmp$ : throwCCE(), null)); } function ustadJsDi$lambda$lambda_14($receiver) { return new ContainerStorageManager($receiver.context, $receiver.di); } function ustadJsDi$lambda$lambda_15($receiver, account) { return new Endpoint(account.endpointUrl); } function ustadJsDi$lambda$lambda_16($receiver) { return new AuthManager($receiver.context, $receiver.di); } function ustadJsDi$lambda$lambda_17($receiver) { var tmp$; var systemImpl = $receiver.directDI.Instance_ohrpre$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$ : throwCCE(), null); var numIterations = systemImpl.getAppConfigInt_3m4wor$(impl.AppConfig.KEY_PBKDF2_ITERATIONS, 10000, $receiver); var keyLength = systemImpl.getAppConfigInt_3m4wor$(impl.AppConfig.KEY_PBKDF2_KEYLENGTH, 512, $receiver); return new Pbkdf2Params(numIterations, keyLength); } function ustadJsDi$lambda$lambda_18($receiver) { return new ClazzLogCreatorManagerJs(); } function ustadJsDi$lambda$lambda$lambda_1($receiver) { $receiver.encodeDefaults = true; $receiver.ignoreUnknownKeys = true; return Unit; } function ustadJsDi$lambda$lambda_19($receiver) { return Json_0(void 0, ustadJsDi$lambda$lambda$lambda_1); } function ustadJsDi$lambda(closure$defaultStringsXmlStr, closure$displayLocaleStringsXmlStr, closure$appConfigs, closure$apiUrl, closure$dbNodeIdAndAuth, closure$dbBuilt) { return function ($receiver) { var tmp$; var tmp$_0 = $receiver.Bind_exja01$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$ : throwCCE(), null, null); var creator = ustadJsDi$lambda$lambda(closure$defaultStringsXmlStr, closure$displayLocaleStringsXmlStr, closure$appConfigs, closure$apiUrl); var tmp$_1; tmp$_0.with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_1 = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$_1 : throwCCE(), null, true, creator)); var tmp$_2; var tmp$_3; $receiver.Bind_exja01$(Kotlin.isType(tmp$_2 = typeToken(createKType(getKClass(UstadAccountManager), [], false)), TypeToken) ? tmp$_2 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_3 = typeToken(createKType(getKClass(UstadAccountManager), [], false)), TypeToken) ? tmp$_3 : throwCCE(), null, true, ustadJsDi$lambda$lambda_0)); var tmp$_4; var tmp$_5 = $receiver.Bind_exja01$(Kotlin.isType(tmp$_4 = typeToken(createKType(getKClass(NodeIdAndAuth), [], false)), TypeToken) ? tmp$_4 : throwCCE(), null, null); var scope = EndpointScope.Companion.Default; var tmp$_6; var $receiver_0 = new DI$BindBuilder$DI$BindBuilder$ImplWithScope_init(Kotlin.isType(tmp$_6 = typeToken(createKType(getKClass(Endpoint), [], false)), TypeToken) ? tmp$_6 : throwCCE(), scope); var creator_0 = ustadJsDi$lambda$lambda_1(closure$dbNodeIdAndAuth); var tmp$_7; tmp$_5.with_4xqrlc$(new Singleton_init($receiver_0.scope, $receiver_0.contextType, $receiver_0.explicitContext, Kotlin.isType(tmp$_7 = typeToken(createKType(getKClass(NodeIdAndAuth), [], false)), TypeToken) ? tmp$_7 : throwCCE(), null, true, creator_0)); var tmp$_8; var tmp$_9 = $receiver.Bind_exja01$(Kotlin.isType(tmp$_8 = typeToken(createKType(getKClass(CoroutineScope), [], false)), TypeToken) ? tmp$_8 : throwCCE(), 14, null); var T_0 = Object.getPrototypeOf(coroutines.GlobalScope).constructor; coroutines.GlobalScope; var tmp$_10; tmp$_9.with_4xqrlc$(new Provider_init($receiver.contextType, Kotlin.isType(tmp$_10 = typeToken(createKType(getKClass(Object.getPrototypeOf(coroutines.GlobalScope).constructor), [], false)), TypeToken) ? tmp$_10 : throwCCE(), ustadJsDi$lambda$lambda_2)); var tmp$_11; var tmp$_12 = $receiver.Bind_exja01$(Kotlin.isType(tmp$_11 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_11 : throwCCE(), 1, null); var scope_0 = EndpointScope.Companion.Default; var tmp$_13; var $receiver_1 = new DI$BindBuilder$DI$BindBuilder$ImplWithScope_init(Kotlin.isType(tmp$_13 = typeToken(createKType(getKClass(Endpoint), [], false)), TypeToken) ? tmp$_13 : throwCCE(), scope_0); var creator_1 = ustadJsDi$lambda$lambda_3(closure$dbBuilt); var tmp$_14; tmp$_12.with_4xqrlc$(new Singleton_init($receiver_1.scope, $receiver_1.contextType, $receiver_1.explicitContext, Kotlin.isType(tmp$_14 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_14 : throwCCE(), null, true, creator_1)); var tmp$_15; var tmp$_16 = $receiver.Bind_exja01$(Kotlin.isType(tmp$_15 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_15 : throwCCE(), 2, null); var scope_1 = EndpointScope.Companion.Default; var tmp$_17; var $receiver_2 = new DI$BindBuilder$DI$BindBuilder$ImplWithScope_init(Kotlin.isType(tmp$_17 = typeToken(createKType(getKClass(Endpoint), [], false)), TypeToken) ? tmp$_17 : throwCCE(), scope_1); var tmp$_18; tmp$_16.with_4xqrlc$(new Singleton_init($receiver_2.scope, $receiver_2.contextType, $receiver_2.explicitContext, Kotlin.isType(tmp$_18 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_18 : throwCCE(), null, true, ustadJsDi$lambda$lambda_4)); var tmp$_19; $receiver.constant_obdoaf$(UstadMobileSystemCommon.Companion.TAG_DOWNLOAD_ENABLED).With_q0tj0z$(Kotlin.isType(tmp$_19 = typeToken(createKType(PrimitiveClasses$booleanClass, [], false)), TypeToken) ? tmp$_19 : throwCCE(), false); var tmp$_20; var tmp$_21; $receiver.Bind_exja01$(Kotlin.isType(tmp$_20 = typeToken(createKType(getKClass(ReduxThemeState), [], false)), TypeToken) ? tmp$_20 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_21 = typeToken(createKType(getKClass(ReduxThemeState), [], false)), TypeToken) ? tmp$_21 : throwCCE(), null, true, ustadJsDi$lambda$lambda_5)); var tmp$_22; var tmp$_23; $receiver.Bind_exja01$(Kotlin.isType(tmp$_22 = typeToken(createKType(getKClass(ContainerMounter), [], false)), TypeToken) ? tmp$_22 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_23 = typeToken(createKType(getKClass(ContainerMounterJs), [], false)), TypeToken) ? tmp$_23 : throwCCE(), null, true, ustadJsDi$lambda$lambda_6)); var tmp$_24; var tmp$_25; $receiver.Bind_exja01$(Kotlin.isType(tmp$_24 = typeToken(createKType(getKClass(XmlPullParserFactory), [], false)), TypeToken) ? tmp$_24 : throwCCE(), 1, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_25 = typeToken(createKType(getKClass(XmlPullParserFactory), [], false)), TypeToken) ? tmp$_25 : throwCCE(), null, true, ustadJsDi$lambda$lambda_7)); var tmp$_26; var tmp$_27; $receiver.Bind_exja01$(Kotlin.isType(tmp$_26 = typeToken(createKType(getKClass(XmlPullParserFactory), [], false)), TypeToken) ? tmp$_26 : throwCCE(), 0, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_27 = typeToken(createKType(getKClass(XmlPullParserFactory), [], false)), TypeToken) ? tmp$_27 : throwCCE(), null, true, ustadJsDi$lambda$lambda_8)); var tmp$_28; var tmp$_29; $receiver.Bind_exja01$(Kotlin.isType(tmp$_28 = typeToken(createKType(getKClass(XmlSerializer), [], false)), TypeToken) ? tmp$_28 : throwCCE(), null, null).with_4xqrlc$(new Provider_init($receiver.contextType, Kotlin.isType(tmp$_29 = typeToken(createKType(getKClass(XmlSerializer), [], false)), TypeToken) ? tmp$_29 : throwCCE(), ustadJsDi$lambda$lambda_9)); var tmp$_30; var tmp$_31; $receiver.Bind_exja01$(Kotlin.isType(tmp$_30 = typeToken(createKType(getKClass(CoroutineDispatcher), [], false)), TypeToken) ? tmp$_30 : throwCCE(), 16, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_31 = typeToken(createKType(getKClass(MainCoroutineDispatcher), [], false)), TypeToken) ? tmp$_31 : throwCCE(), null, true, ustadJsDi$lambda$lambda_10)); var tmp$_32; var tmp$_33 = $receiver.Bind_exja01$(Kotlin.isType(tmp$_32 = typeToken(createKType(getKClass(ContentEntryOpener), [], false)), TypeToken) ? tmp$_32 : throwCCE(), null, null); var scope_2 = EndpointScope.Companion.Default; var tmp$_34; var $receiver_3 = new DI$BindBuilder$DI$BindBuilder$ImplWithScope_init(Kotlin.isType(tmp$_34 = typeToken(createKType(getKClass(Endpoint), [], false)), TypeToken) ? tmp$_34 : throwCCE(), scope_2); var tmp$_35; tmp$_33.with_4xqrlc$(new Singleton_init($receiver_3.scope, $receiver_3.contextType, $receiver_3.explicitContext, Kotlin.isType(tmp$_35 = typeToken(createKType(getKClass(ContentEntryOpener), [], false)), TypeToken) ? tmp$_35 : throwCCE(), null, true, ustadJsDi$lambda$lambda_11)); var tmp$_36; var tmp$_37; $receiver.Bind_exja01$(Kotlin.isType(tmp$_36 = typeToken(createKType(getKClass(HttpClient), [], false)), TypeToken) ? tmp$_36 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_37 = typeToken(createKType(getKClass(HttpClient), [], false)), TypeToken) ? tmp$_37 : throwCCE(), null, true, ustadJsDi$lambda$lambda_12)); var tmp$_38; var tmp$_39; $receiver.Bind_exja01$(Kotlin.isType(tmp$_38 = typeToken(createKType(getKClass(UstadNavController), [], false)), TypeToken) ? tmp$_38 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_39 = typeToken(createKType(getKClass(NavControllerJs), [], false)), TypeToken) ? tmp$_39 : throwCCE(), null, true, ustadJsDi$lambda$lambda_13)); var tmp$_40; var tmp$_41 = $receiver.Bind_exja01$(Kotlin.isType(tmp$_40 = typeToken(createKType(getKClass(ContainerStorageManager), [], false)), TypeToken) ? tmp$_40 : throwCCE(), null, null); var scope_3 = EndpointScope.Companion.Default; var tmp$_42; var $receiver_4 = new DI$BindBuilder$DI$BindBuilder$ImplWithScope_init(Kotlin.isType(tmp$_42 = typeToken(createKType(getKClass(Endpoint), [], false)), TypeToken) ? tmp$_42 : throwCCE(), scope_3); var tmp$_43; tmp$_41.with_4xqrlc$(new Singleton_init($receiver_4.scope, $receiver_4.contextType, $receiver_4.explicitContext, Kotlin.isType(tmp$_43 = typeToken(createKType(getKClass(ContainerStorageManager), [], false)), TypeToken) ? tmp$_43 : throwCCE(), null, true, ustadJsDi$lambda$lambda_14)); var tmp$_44; var tmp$_0_0; $receiver.RegisterContextTranslator_5jq22i$(new SimpleContextTranslator_init(Kotlin.isType(tmp$_44 = typeToken(createKType(getKClass(UmAccount), [], false)), TypeToken) ? tmp$_44 : throwCCE(), Kotlin.isType(tmp$_0_0 = typeToken(createKType(getKClass(Endpoint), [], false)), TypeToken) ? tmp$_0_0 : throwCCE(), ustadJsDi$lambda$lambda_15)); var tmp$_45; var tmp$_46 = $receiver.Bind_exja01$(Kotlin.isType(tmp$_45 = typeToken(createKType(getKClass(AuthManager), [], false)), TypeToken) ? tmp$_45 : throwCCE(), null, null); var scope_4 = EndpointScope.Companion.Default; var tmp$_47; var $receiver_5 = new DI$BindBuilder$DI$BindBuilder$ImplWithScope_init(Kotlin.isType(tmp$_47 = typeToken(createKType(getKClass(Endpoint), [], false)), TypeToken) ? tmp$_47 : throwCCE(), scope_4); var tmp$_48; tmp$_46.with_4xqrlc$(new Singleton_init($receiver_5.scope, $receiver_5.contextType, $receiver_5.explicitContext, Kotlin.isType(tmp$_48 = typeToken(createKType(getKClass(AuthManager), [], false)), TypeToken) ? tmp$_48 : throwCCE(), null, true, ustadJsDi$lambda$lambda_16)); var tmp$_49; var tmp$_50; $receiver.Bind_exja01$(Kotlin.isType(tmp$_49 = typeToken(createKType(getKClass(Pbkdf2Params), [], false)), TypeToken) ? tmp$_49 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_50 = typeToken(createKType(getKClass(Pbkdf2Params), [], false)), TypeToken) ? tmp$_50 : throwCCE(), null, true, ustadJsDi$lambda$lambda_17)); var tmp$_51; var tmp$_52; $receiver.Bind_exja01$(Kotlin.isType(tmp$_51 = typeToken(createKType(getKClass(ClazzLogCreatorManager), [], false)), TypeToken) ? tmp$_51 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_52 = typeToken(createKType(getKClass(ClazzLogCreatorManagerJs), [], false)), TypeToken) ? tmp$_52 : throwCCE(), null, true, ustadJsDi$lambda$lambda_18)); var tmp$_53; var tmp$_54; $receiver.Bind_exja01$(Kotlin.isType(tmp$_53 = typeToken(createKType(getKClass(Json), [], false)), TypeToken) ? tmp$_53 : throwCCE(), null, null).with_4xqrlc$(new Singleton_init($receiver.scope, $receiver.contextType, $receiver.explicitContext, Kotlin.isType(tmp$_54 = typeToken(createKType(getKClass(Json), [], false)), TypeToken) ? tmp$_54 : throwCCE(), null, true, ustadJsDi$lambda$lambda_19)); return Unit; }; } function ustadJsDi(dbBuilt, dbNodeIdAndAuth, appConfigs, apiUrl, defaultStringsXmlStr, displayLocaleStringsXmlStr) { return DI.Companion.invoke_ys71a$(void 0, ustadJsDi$lambda(defaultStringsXmlStr, displayLocaleStringsXmlStr, appConfigs, apiUrl, dbNodeIdAndAuth, dbBuilt)); } function AppBarPosition(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function AppBarPosition_initFields() { AppBarPosition_initFields = function () { }; AppBarPosition$fixed_instance = new AppBarPosition('fixed', 0); AppBarPosition$absolute_instance = new AppBarPosition('absolute', 1); AppBarPosition$sticky_instance = new AppBarPosition('sticky', 2); AppBarPosition$static_instance = new AppBarPosition('static', 3); AppBarPosition$relative_instance = new AppBarPosition('relative', 4); } var AppBarPosition$fixed_instance; function AppBarPosition$fixed_getInstance() { AppBarPosition_initFields(); return AppBarPosition$fixed_instance; } var AppBarPosition$absolute_instance; function AppBarPosition$absolute_getInstance() { AppBarPosition_initFields(); return AppBarPosition$absolute_instance; } var AppBarPosition$sticky_instance; function AppBarPosition$sticky_getInstance() { AppBarPosition_initFields(); return AppBarPosition$sticky_instance; } var AppBarPosition$static_instance; function AppBarPosition$static_getInstance() { AppBarPosition_initFields(); return AppBarPosition$static_instance; } var AppBarPosition$relative_instance; function AppBarPosition$relative_getInstance() { AppBarPosition_initFields(); return AppBarPosition$relative_instance; } AppBarPosition.$metadata$ = { kind: Kind_CLASS, simpleName: 'AppBarPosition', interfaces: [Enum] }; function AppBarPosition$values() { return [AppBarPosition$fixed_getInstance(), AppBarPosition$absolute_getInstance(), AppBarPosition$sticky_getInstance(), AppBarPosition$static_getInstance(), AppBarPosition$relative_getInstance()]; } AppBarPosition.values = AppBarPosition$values; function AppBarPosition$valueOf(name) { switch (name) { case 'fixed': return AppBarPosition$fixed_getInstance(); case 'absolute': return AppBarPosition$absolute_getInstance(); case 'sticky': return AppBarPosition$sticky_getInstance(); case 'static': return AppBarPosition$static_getInstance(); case 'relative': return AppBarPosition$relative_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.AppBarPosition.' + name); } } AppBarPosition.valueOf_61zpoe$ = AppBarPosition$valueOf; function AppBarColor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function AppBarColor_initFields() { AppBarColor_initFields = function () { }; AppBarColor$primary_instance = new AppBarColor('primary', 0); AppBarColor$secondary_instance = new AppBarColor('secondary', 1); AppBarColor$transparent_instance = new AppBarColor('transparent', 2); AppBarColor$default_instance = new AppBarColor('default', 3); AppBarColor$inherit_instance = new AppBarColor('inherit', 4); } var AppBarColor$primary_instance; function AppBarColor$primary_getInstance() { AppBarColor_initFields(); return AppBarColor$primary_instance; } var AppBarColor$secondary_instance; function AppBarColor$secondary_getInstance() { AppBarColor_initFields(); return AppBarColor$secondary_instance; } var AppBarColor$transparent_instance; function AppBarColor$transparent_getInstance() { AppBarColor_initFields(); return AppBarColor$transparent_instance; } var AppBarColor$default_instance; function AppBarColor$default_getInstance() { AppBarColor_initFields(); return AppBarColor$default_instance; } var AppBarColor$inherit_instance; function AppBarColor$inherit_getInstance() { AppBarColor_initFields(); return AppBarColor$inherit_instance; } AppBarColor.$metadata$ = { kind: Kind_CLASS, simpleName: 'AppBarColor', interfaces: [Enum] }; function AppBarColor$values() { return [AppBarColor$primary_getInstance(), AppBarColor$secondary_getInstance(), AppBarColor$transparent_getInstance(), AppBarColor$default_getInstance(), AppBarColor$inherit_getInstance()]; } AppBarColor.values = AppBarColor$values; function AppBarColor$valueOf(name) { switch (name) { case 'primary': return AppBarColor$primary_getInstance(); case 'secondary': return AppBarColor$secondary_getInstance(); case 'transparent': return AppBarColor$transparent_getInstance(); case 'default': return AppBarColor$default_getInstance(); case 'inherit': return AppBarColor$inherit_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.AppBarColor.' + name); } } AppBarColor.valueOf_61zpoe$ = AppBarColor$valueOf; function umAppBar$lambda(closure$color, closure$position, closure$enableColorOnDark) { return function ($receiver) { $receiver.attrs.color = closure$color.toString(); $receiver.attrs.position = closure$position.toString(); $receiver.attrs.enableColorOnDark = closure$enableColorOnDark; return Unit; }; } function umAppBar($receiver, color, position, className, enableColorOnDark, handler) { if (color === void 0) color = AppBarColor$primary_getInstance(); if (position === void 0) position = AppBarPosition$fixed_getInstance(); if (className === void 0) className = null; if (enableColorOnDark === void 0) enableColorOnDark = false; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_AppBar.default, className, handler, umAppBar$lambda(color, position, enableColorOnDark)); } function AvatarVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function AvatarVariant_initFields() { AvatarVariant_initFields = function () { }; AvatarVariant$rounded_instance = new AvatarVariant('rounded', 0); AvatarVariant$square_instance = new AvatarVariant('square', 1); AvatarVariant$circle_instance = new AvatarVariant('circle', 2); AvatarVariant$circular_instance = new AvatarVariant('circular', 3); } var AvatarVariant$rounded_instance; function AvatarVariant$rounded_getInstance() { AvatarVariant_initFields(); return AvatarVariant$rounded_instance; } var AvatarVariant$square_instance; function AvatarVariant$square_getInstance() { AvatarVariant_initFields(); return AvatarVariant$square_instance; } var AvatarVariant$circle_instance; function AvatarVariant$circle_getInstance() { AvatarVariant_initFields(); return AvatarVariant$circle_instance; } var AvatarVariant$circular_instance; function AvatarVariant$circular_getInstance() { AvatarVariant_initFields(); return AvatarVariant$circular_instance; } AvatarVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'AvatarVariant', interfaces: [Enum] }; function AvatarVariant$values() { return [AvatarVariant$rounded_getInstance(), AvatarVariant$square_getInstance(), AvatarVariant$circle_getInstance(), AvatarVariant$circular_getInstance()]; } AvatarVariant.values = AvatarVariant$values; function AvatarVariant$valueOf(name) { switch (name) { case 'rounded': return AvatarVariant$rounded_getInstance(); case 'square': return AvatarVariant$square_getInstance(); case 'circle': return AvatarVariant$circle_getInstance(); case 'circular': return AvatarVariant$circular_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.AvatarVariant.' + name); } } AvatarVariant.valueOf_61zpoe$ = AvatarVariant$valueOf; function umAvatar$lambda(closure$imgProps, closure$alt, closure$sizes, closure$src, closure$srcSet, closure$variant) { return function ($receiver) { if (closure$imgProps != null) { var closure$imgProps_0 = closure$imgProps; $receiver.attrs.imgProps = closure$imgProps_0; }if (closure$alt != null) { var closure$alt_0 = closure$alt; $receiver.attrs.alt = closure$alt_0; }if (closure$sizes != null) { var closure$sizes_0 = closure$sizes; $receiver.attrs.sizes = closure$sizes_0; }if (closure$src != null) { var closure$src_0 = closure$src; $receiver.attrs.src = closure$src_0; }if (closure$srcSet != null) { var closure$srcSet_0 = closure$srcSet; $receiver.attrs.srcSet = closure$srcSet_0; }$receiver.attrs.variant = closure$variant.toString(); return Unit; }; } function umAvatar($receiver, src, alt, srcSet, variant, imgProps, sizes, className, handler) { if (src === void 0) src = null; if (alt === void 0) alt = null; if (srcSet === void 0) srcSet = null; if (variant === void 0) variant = AvatarVariant$circular_getInstance(); if (imgProps === void 0) imgProps = null; if (sizes === void 0) sizes = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Avatar.default, className, handler, umAvatar$lambda(imgProps, alt, sizes, src, srcSet, variant)); } function umBottomNavigation$lambda$lambda(closure$onChange) { return function (event, value) { closure$onChange != null ? closure$onChange(event.nativeEvent, value) : null; return Unit; }; } function umBottomNavigation$lambda(closure$onChange, closure$showLabels, closure$value) { return function ($receiver) { $receiver.attrs.onChange = umBottomNavigation$lambda$lambda(closure$onChange); $receiver.attrs.showLabels = closure$showLabels; $receiver.attrs.value = closure$value; return Unit; }; } function umBottomNavigation($receiver, value, showLabels, onChange, className, handler) { if (value === void 0) value = false; if (showLabels === void 0) showLabels = false; if (onChange === void 0) onChange = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_BottomNavigation.default, className, handler, umBottomNavigation$lambda(onChange, showLabels, value)); } function umBottomNavigationAction$lambda(closure$icon, closure$label, closure$showLabel, closure$value) { return function ($receiver) { if (closure$icon != null) { var it = closure$icon; $receiver.attrs.icon = umIcon($receiver, it); }if (closure$label != null) { var it_0 = closure$label; $receiver.attrs.label = it_0; }if (closure$showLabel != null) { var closure$showLabel_0 = closure$showLabel; $receiver.attrs.showLabel = closure$showLabel_0; }if (closure$value != null) { var it_1 = closure$value; $receiver.attrs.value = it_1; }return Unit; }; } function umBottomNavigationAction($receiver, label, icon, showLabel, value, className, handler) { if (label === void 0) label = null; if (icon === void 0) icon = null; if (showLabel === void 0) showLabel = null; if (value === void 0) value = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_BottomNavigationAction.default, className, handler, umBottomNavigationAction$lambda(icon, label, showLabel, value)); } function ButtonSize(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ButtonSize_initFields() { ButtonSize_initFields = function () { }; ButtonSize$small_instance = new ButtonSize('small', 0); ButtonSize$medium_instance = new ButtonSize('medium', 1); ButtonSize$large_instance = new ButtonSize('large', 2); } var ButtonSize$small_instance; function ButtonSize$small_getInstance() { ButtonSize_initFields(); return ButtonSize$small_instance; } var ButtonSize$medium_instance; function ButtonSize$medium_getInstance() { ButtonSize_initFields(); return ButtonSize$medium_instance; } var ButtonSize$large_instance; function ButtonSize$large_getInstance() { ButtonSize_initFields(); return ButtonSize$large_instance; } ButtonSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'ButtonSize', interfaces: [Enum] }; function ButtonSize$values() { return [ButtonSize$small_getInstance(), ButtonSize$medium_getInstance(), ButtonSize$large_getInstance()]; } ButtonSize.values = ButtonSize$values; function ButtonSize$valueOf(name) { switch (name) { case 'small': return ButtonSize$small_getInstance(); case 'medium': return ButtonSize$medium_getInstance(); case 'large': return ButtonSize$large_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ButtonSize.' + name); } } ButtonSize.valueOf_61zpoe$ = ButtonSize$valueOf; function ButtonVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ButtonVariant_initFields() { ButtonVariant_initFields = function () { }; ButtonVariant$text_instance = new ButtonVariant('text', 0); ButtonVariant$outlined_instance = new ButtonVariant('outlined', 1); ButtonVariant$contained_instance = new ButtonVariant('contained', 2); } var ButtonVariant$text_instance; function ButtonVariant$text_getInstance() { ButtonVariant_initFields(); return ButtonVariant$text_instance; } var ButtonVariant$outlined_instance; function ButtonVariant$outlined_getInstance() { ButtonVariant_initFields(); return ButtonVariant$outlined_instance; } var ButtonVariant$contained_instance; function ButtonVariant$contained_getInstance() { ButtonVariant_initFields(); return ButtonVariant$contained_instance; } ButtonVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'ButtonVariant', interfaces: [Enum] }; function ButtonVariant$values() { return [ButtonVariant$text_getInstance(), ButtonVariant$outlined_getInstance(), ButtonVariant$contained_getInstance()]; } ButtonVariant.values = ButtonVariant$values; function ButtonVariant$valueOf(name) { switch (name) { case 'text': return ButtonVariant$text_getInstance(); case 'outlined': return ButtonVariant$outlined_getInstance(); case 'contained': return ButtonVariant$contained_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ButtonVariant.' + name); } } ButtonVariant.valueOf_61zpoe$ = ButtonVariant$valueOf; function umButton$lambda$lambda$lambda($receiver) { StyleManager_getInstance().startIcon($receiver.css); return Unit; } function umButton$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().endIcon($receiver.css); return Unit; } function umButton$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick != null ? closure$onClick(it.nativeEvent) : null; return Unit; }; } function umButton$lambda(closure$color, closure$disabled, closure$size, closure$startIcon, closure$variant, closure$caption, closure$endIcon, closure$onClick, closure$id) { return function ($receiver) { $receiver.attrs.color = closure$color.toString(); $receiver.attrs.disabled = closure$disabled; $receiver.attrs.size = closure$size.toString(); if (closure$startIcon != null) { umIcon($receiver, closure$startIcon, void 0, void 0, void 0, umButton$lambda$lambda$lambda); }$receiver.attrs.variant = toString(closure$variant); $receiver.childList.add_11rb$(closure$caption); if (closure$endIcon != null) { umIcon($receiver, closure$endIcon, void 0, void 0, void 0, umButton$lambda$lambda$lambda_0); }$receiver.attrs.onClick = umButton$lambda$lambda(closure$onClick); if (closure$id != null) { var it = closure$id; $receiver.attrs.id = it; }return Unit; }; } function umButton($receiver, caption, color, variant, disabled, onClick, size, startIcon, endIcon, id, className, handler) { if (color === void 0) color = UMColor$secondary_getInstance(); if (variant === void 0) variant = null; if (disabled === void 0) disabled = false; if (onClick === void 0) onClick = null; if (size === void 0) size = ButtonSize$medium_getInstance(); if (startIcon === void 0) startIcon = null; if (endIcon === void 0) endIcon = null; if (id === void 0) id = get_js(Kotlin.getKClassFromExpression($receiver)).name; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Button.default, className, handler, umButton$lambda(color, disabled, size, startIcon, variant, caption, endIcon, onClick, id)); } function ChipVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ChipVariant_initFields() { ChipVariant_initFields = function () { }; ChipVariant$default_instance = new ChipVariant('default', 0); ChipVariant$outlined_instance = new ChipVariant('outlined', 1); } var ChipVariant$default_instance; function ChipVariant$default_getInstance() { ChipVariant_initFields(); return ChipVariant$default_instance; } var ChipVariant$outlined_instance; function ChipVariant$outlined_getInstance() { ChipVariant_initFields(); return ChipVariant$outlined_instance; } ChipVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChipVariant', interfaces: [Enum] }; function ChipVariant$values() { return [ChipVariant$default_getInstance(), ChipVariant$outlined_getInstance()]; } ChipVariant.values = ChipVariant$values; function ChipVariant$valueOf(name) { switch (name) { case 'default': return ChipVariant$default_getInstance(); case 'outlined': return ChipVariant$outlined_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ChipVariant.' + name); } } ChipVariant.valueOf_61zpoe$ = ChipVariant$valueOf; function ChipColor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ChipColor_initFields() { ChipColor_initFields = function () { }; ChipColor$default_instance = new ChipColor('default', 0); ChipColor$primary_instance = new ChipColor('primary', 1); ChipColor$secondary_instance = new ChipColor('secondary', 2); } var ChipColor$default_instance; function ChipColor$default_getInstance() { ChipColor_initFields(); return ChipColor$default_instance; } var ChipColor$primary_instance; function ChipColor$primary_getInstance() { ChipColor_initFields(); return ChipColor$primary_instance; } var ChipColor$secondary_instance; function ChipColor$secondary_getInstance() { ChipColor_initFields(); return ChipColor$secondary_instance; } ChipColor.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChipColor', interfaces: [Enum] }; function ChipColor$values() { return [ChipColor$default_getInstance(), ChipColor$primary_getInstance(), ChipColor$secondary_getInstance()]; } ChipColor.values = ChipColor$values; function ChipColor$valueOf(name) { switch (name) { case 'default': return ChipColor$default_getInstance(); case 'primary': return ChipColor$primary_getInstance(); case 'secondary': return ChipColor$secondary_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ChipColor.' + name); } } ChipColor.valueOf_61zpoe$ = ChipColor$valueOf; function ChipSize(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ChipSize_initFields() { ChipSize_initFields = function () { }; ChipSize$small_instance = new ChipSize('small', 0); ChipSize$medium_instance = new ChipSize('medium', 1); } var ChipSize$small_instance; function ChipSize$small_getInstance() { ChipSize_initFields(); return ChipSize$small_instance; } var ChipSize$medium_instance; function ChipSize$medium_getInstance() { ChipSize_initFields(); return ChipSize$medium_instance; } ChipSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChipSize', interfaces: [Enum] }; function ChipSize$values() { return [ChipSize$small_getInstance(), ChipSize$medium_getInstance()]; } ChipSize.values = ChipSize$values; function ChipSize$valueOf(name) { switch (name) { case 'small': return ChipSize$small_getInstance(); case 'medium': return ChipSize$medium_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ChipSize.' + name); } } ChipSize.valueOf_61zpoe$ = ChipSize$valueOf; function umChip$lambda(closure$avatar, closure$color, closure$label, closure$key, closure$onClick, closure$onDelete, closure$size, closure$variant) { return function ($receiver) { if (closure$avatar != null) { var it = closure$avatar; $receiver.attrs.avatar = it; }$receiver.attrs.color = closure$color.toString(); $receiver.attrs.component = 'div'; $receiver.attrs.label = closure$label; if (closure$key != null) { var it_0 = closure$key; $receiver.attrs.key = it_0; }if (closure$onClick != null) { var it_1 = closure$onClick; $receiver.attrs.onClick = it_1; }if (closure$onDelete != null) { var it_2 = closure$onDelete; $receiver.attrs.onDelete = it_2; }$receiver.attrs.size = closure$size.toString(); $receiver.attrs.variant = closure$variant.toString(); return Unit; }; } function umChip($receiver, label, avatar, onClick, onDelete, key, color, size, variant, className, handler) { if (avatar === void 0) avatar = null; if (onClick === void 0) onClick = null; if (onDelete === void 0) onDelete = null; if (key === void 0) key = null; if (color === void 0) color = ChipColor$default_getInstance(); if (size === void 0) size = ChipSize$medium_getInstance(); if (variant === void 0) variant = ChipVariant$default_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Chip.default, className, handler, umChip$lambda(avatar, color, label, key, onClick, onDelete, size, variant)); } function umCssBaseline($receiver) { return createStyledComponent($receiver, $module$_mui_material_CssBaseline.default); } function DateTimePickerOpenTo(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function DateTimePickerOpenTo_initFields() { DateTimePickerOpenTo_initFields = function () { }; DateTimePickerOpenTo$day_instance = new DateTimePickerOpenTo('day', 0); DateTimePickerOpenTo$month_instance = new DateTimePickerOpenTo('month', 1); DateTimePickerOpenTo$year_instance = new DateTimePickerOpenTo('year', 2); DateTimePickerOpenTo$hours_instance = new DateTimePickerOpenTo('hours', 3); DateTimePickerOpenTo$minutes_instance = new DateTimePickerOpenTo('minutes', 4); DateTimePickerOpenTo$seconds_instance = new DateTimePickerOpenTo('seconds', 5); } var DateTimePickerOpenTo$day_instance; function DateTimePickerOpenTo$day_getInstance() { DateTimePickerOpenTo_initFields(); return DateTimePickerOpenTo$day_instance; } var DateTimePickerOpenTo$month_instance; function DateTimePickerOpenTo$month_getInstance() { DateTimePickerOpenTo_initFields(); return DateTimePickerOpenTo$month_instance; } var DateTimePickerOpenTo$year_instance; function DateTimePickerOpenTo$year_getInstance() { DateTimePickerOpenTo_initFields(); return DateTimePickerOpenTo$year_instance; } var DateTimePickerOpenTo$hours_instance; function DateTimePickerOpenTo$hours_getInstance() { DateTimePickerOpenTo_initFields(); return DateTimePickerOpenTo$hours_instance; } var DateTimePickerOpenTo$minutes_instance; function DateTimePickerOpenTo$minutes_getInstance() { DateTimePickerOpenTo_initFields(); return DateTimePickerOpenTo$minutes_instance; } var DateTimePickerOpenTo$seconds_instance; function DateTimePickerOpenTo$seconds_getInstance() { DateTimePickerOpenTo_initFields(); return DateTimePickerOpenTo$seconds_instance; } DateTimePickerOpenTo.$metadata$ = { kind: Kind_CLASS, simpleName: 'DateTimePickerOpenTo', interfaces: [Enum] }; function DateTimePickerOpenTo$values() { return [DateTimePickerOpenTo$day_getInstance(), DateTimePickerOpenTo$month_getInstance(), DateTimePickerOpenTo$year_getInstance(), DateTimePickerOpenTo$hours_getInstance(), DateTimePickerOpenTo$minutes_getInstance(), DateTimePickerOpenTo$seconds_getInstance()]; } DateTimePickerOpenTo.values = DateTimePickerOpenTo$values; function DateTimePickerOpenTo$valueOf(name) { switch (name) { case 'day': return DateTimePickerOpenTo$day_getInstance(); case 'month': return DateTimePickerOpenTo$month_getInstance(); case 'year': return DateTimePickerOpenTo$year_getInstance(); case 'hours': return DateTimePickerOpenTo$hours_getInstance(); case 'minutes': return DateTimePickerOpenTo$minutes_getInstance(); case 'seconds': return DateTimePickerOpenTo$seconds_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.DateTimePickerOpenTo.' + name); } } DateTimePickerOpenTo.valueOf_61zpoe$ = DateTimePickerOpenTo$valueOf; function renderTextField$lambda$lambda(closure$props) { return function (it) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = closure$props.inputProps) != null ? tmp$.onClick : null) != null ? tmp$_0(it) : null; return Unit; }; } function renderTextField$lambda(closure$props, closure$value, closure$format, closure$ruleSet) { return function ($receiver) { $receiver.attrs.onClick = renderTextField$lambda$lambda(closure$props); if (closure$value != null) { var $receiver_0 = closure$value; var closure$format_0 = closure$format; $receiver.attrs.value = formatDate($receiver_0, closure$format_0); }$receiver.attrs.variant = closure$props.variant; if (closure$ruleSet != null) { closure$ruleSet($receiver.css); }return Unit; }; } function renderTextField($receiver, props, label, value, format, error, helperText, ruleSet) { if (value === void 0) value = null; if (format === void 0) format = null; if (error === void 0) error = false; if (helperText === void 0) helperText = null; if (ruleSet === void 0) ruleSet = StyleManager_getInstance().defaultFullWidth; return umTextField($receiver, label, void 0, helperText, void 0, void 0, void 0, void 0, void 0, void 0, error, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderTextField$lambda(props, value, format, ruleSet)); } function timePicker$lambda(closure$label, closure$onChange, closure$value, closure$inputFormat, closure$helperText, closure$error, closure$minTime, closure$maxTime, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views, closure$ampm, closure$ampmInClock) { return function ($receiver) { setProps($receiver, $receiver, true, closure$label, closure$onChange, closure$value, closure$inputFormat, closure$helperText, closure$error, closure$minTime, closure$maxTime, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views, closure$ampm, closure$ampmInClock); return Unit; }; } function timePicker($receiver, label, onChange, value, ampm, ampmInClock, inputFormat, helperText, error, minTime, maxTime, onAccept, onClose, onError, okText, cancelText, inputVariant, openTo, toolbarTitle, views, className, handler) { if (value === void 0) value = null; if (ampm === void 0) ampm = true; if (ampmInClock === void 0) ampmInClock = false; if (inputFormat === void 0) inputFormat = null; if (helperText === void 0) helperText = null; if (error === void 0) error = false; if (minTime === void 0) minTime = null; if (maxTime === void 0) maxTime = null; if (onAccept === void 0) onAccept = null; if (onClose === void 0) onClose = null; if (onError === void 0) onError = null; if (okText === void 0) okText = null; if (cancelText === void 0) cancelText = null; if (inputVariant === void 0) inputVariant = FormControlVariant$outlined_getInstance(); if (openTo === void 0) openTo = DateTimePickerOpenTo$minutes_getInstance(); if (toolbarTitle === void 0) toolbarTitle = null; if (views === void 0) views = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_lab_MobileTimePicker.default, className, handler, timePicker$lambda(label, onChange, value, inputFormat, helperText, error, minTime, maxTime, onAccept, onClose, onError, cancelText, okText, inputVariant, openTo, toolbarTitle, views, ampm, ampmInClock)); } function datePicker$lambda(closure$label, closure$onChange, closure$value, closure$inputFormat, closure$helperText, closure$error, closure$minDate, closure$maxDate, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views) { return function ($receiver) { setProps($receiver, $receiver, false, closure$label, closure$onChange, closure$value, closure$inputFormat, closure$helperText, closure$error, closure$minDate, closure$maxDate, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views); return Unit; }; } function datePicker($receiver, label, onChange, value, inputFormat, helperText, error, minDate, maxDate, onAccept, onClose, onError, okText, cancelText, inputVariant, openTo, toolbarTitle, views, className, handler) { if (value === void 0) value = null; if (inputFormat === void 0) inputFormat = null; if (helperText === void 0) helperText = null; if (error === void 0) error = false; if (minDate === void 0) minDate = null; if (maxDate === void 0) maxDate = null; if (onAccept === void 0) onAccept = null; if (onClose === void 0) onClose = null; if (onError === void 0) onError = null; if (okText === void 0) okText = null; if (cancelText === void 0) cancelText = null; if (inputVariant === void 0) inputVariant = FormControlVariant$outlined_getInstance(); if (openTo === void 0) openTo = DateTimePickerOpenTo$day_getInstance(); if (toolbarTitle === void 0) toolbarTitle = null; if (views === void 0) views = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_lab_MobileDatePicker.default, className, handler, datePicker$lambda(label, onChange, value, inputFormat, helperText, error, minDate, maxDate, onAccept, onClose, onError, cancelText, okText, inputVariant, openTo, toolbarTitle, views)); } function setProps$lambda(closure$onChange) { return function (it) { closure$onChange(it); return Unit; }; } function setProps$lambda_0(closure$inputVariant, closure$label, closure$value, closure$inputFormat, closure$error, closure$helperText, this$setProps) { return function (it) { it.variant = closure$inputVariant.toString(); return renderTextField(this$setProps, it, closure$label, closure$value, closure$inputFormat, closure$error, closure$helperText); }; } function setProps($receiver, field, isTime, label, onChange, value, inputFormat, helperText, error, min, max, onAccept, onClose, onError, cancelText, okText, inputVariant, openTo, toolbarTitle, views, ampm, ampmInClock) { if (value === void 0) value = null; if (inputFormat === void 0) inputFormat = null; if (helperText === void 0) helperText = null; if (error === void 0) error = false; if (min === void 0) min = null; if (max === void 0) max = null; if (onAccept === void 0) onAccept = null; if (onClose === void 0) onClose = null; if (onError === void 0) onError = null; if (cancelText === void 0) cancelText = null; if (okText === void 0) okText = null; if (inputVariant === void 0) inputVariant = FormControlVariant$outlined_getInstance(); if (openTo === void 0) openTo = DateTimePickerOpenTo$day_getInstance(); if (toolbarTitle === void 0) toolbarTitle = null; if (views === void 0) views = null; if (ampm === void 0) ampm = true; if (ampmInClock === void 0) ampmInClock = false; field.attrs.value = value != null ? value : new Date(); field.attrs.onChange = setProps$lambda(onChange); field.attrs.views = views; field.attrs.openTo = toString(openTo); field.attrs.renderInput = setProps$lambda_0(inputVariant, label, value, inputFormat, error, helperText, $receiver); if (onError != null) { field.attrs.onError = onError; }if (onAccept != null) { field.attrs.onAccept = onAccept; }if (onClose != null) { field.attrs.onClose = onClose; }field.attrs.inputFormat = inputFormat != null ? inputFormat.toLowerCase() : null; if (toolbarTitle != null) { field.attrs.toolbarTitle = toolbarTitle; }set_color(field.css, Color.Companion.white); if (isTime) { if (min != null) { field.attrs.minTime = min; }if (max != null) { field.attrs.maxTime = max; }field.attrs.ampm = ampm; field.attrs.ampmInClock = ampmInClock; } else { if (min != null) { field.attrs.minDate = min; }if (max != null) { field.attrs.maxDate = max; }} } function umDatePicker$lambda(closure$label, closure$onChange, closure$value, closure$inputFormat, closure$helperText, closure$error, closure$minDate, closure$maxDate, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views, closure$className, closure$handler) { return function ($receiver) { $receiver.attrs.dateAdapter = $module$_mui_lab_AdapterDateFns.default; datePicker($receiver, closure$label, closure$onChange, closure$value, closure$inputFormat, closure$helperText, closure$error, closure$minDate, closure$maxDate, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views, closure$className, closure$handler); return Unit; }; } function umDatePicker($receiver, label, onChange, value, inputFormat, helperText, error, minDate, maxDate, onAccept, onClose, onError, okText, cancelText, inputVariant, openTo, toolbarTitle, views, className, handler) { if (value === void 0) value = null; if (inputFormat === void 0) inputFormat = DATE_FORMAT_DD_MM_YYYY; if (helperText === void 0) helperText = null; if (error === void 0) error = false; if (minDate === void 0) minDate = null; if (maxDate === void 0) maxDate = null; if (onAccept === void 0) onAccept = null; if (onClose === void 0) onClose = null; if (onError === void 0) onError = null; if (okText === void 0) okText = null; if (cancelText === void 0) cancelText = null; if (inputVariant === void 0) inputVariant = FormControlVariant$outlined_getInstance(); if (openTo === void 0) openTo = DateTimePickerOpenTo$day_getInstance(); if (toolbarTitle === void 0) toolbarTitle = null; if (views === void 0) views = ['day', 'year', 'month']; if (className === void 0) className = null; if (handler === void 0) handler = null; $receiver.invoke_qk0v40$($module$_mui_lab_LocalizationProvider.default, umDatePicker$lambda(label, onChange, value, inputFormat, helperText, error, minDate, maxDate, onAccept, onClose, onError, cancelText, okText, inputVariant, openTo, toolbarTitle, views, className, handler)); } function umTimePicker$lambda(closure$label, closure$onChange, closure$value, closure$ampm, closure$ampmInClock, closure$inputFormat, closure$helperText, closure$error, closure$minDate, closure$maxDate, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views, closure$className, closure$handler) { return function ($receiver) { $receiver.attrs.dateAdapter = $module$_mui_lab_AdapterDateFns.default; timePicker($receiver, closure$label, closure$onChange, closure$value, closure$ampm, closure$ampmInClock, closure$inputFormat, closure$helperText, closure$error, closure$minDate, closure$maxDate, closure$onAccept, closure$onClose, closure$onError, closure$cancelText, closure$okText, closure$inputVariant, closure$openTo, closure$toolbarTitle, closure$views, closure$className, closure$handler); return Unit; }; } function umTimePicker($receiver, label, onChange, value, inputFormat, helperText, error, minDate, maxDate, onAccept, onClose, onError, okText, cancelText, inputVariant, openTo, toolbarTitle, views, className, ampm, ampmInClock, handler) { if (value === void 0) value = null; if (inputFormat === void 0) inputFormat = TIME_FORMAT_H_M; if (helperText === void 0) helperText = null; if (error === void 0) error = false; if (minDate === void 0) minDate = null; if (maxDate === void 0) maxDate = null; if (onAccept === void 0) onAccept = null; if (onClose === void 0) onClose = null; if (onError === void 0) onError = null; if (okText === void 0) okText = null; if (cancelText === void 0) cancelText = null; if (inputVariant === void 0) inputVariant = FormControlVariant$outlined_getInstance(); if (openTo === void 0) openTo = DateTimePickerOpenTo$day_getInstance(); if (toolbarTitle === void 0) toolbarTitle = null; if (views === void 0) views = ['hours', 'minutes', 'seconds']; if (className === void 0) className = null; if (ampm === void 0) ampm = false; if (ampmInClock === void 0) ampmInClock = false; if (handler === void 0) handler = null; $receiver.invoke_qk0v40$($module$_mui_lab_LocalizationProvider.default, umTimePicker$lambda(label, onChange, value, ampm, ampmInClock, inputFormat, helperText, error, minDate, maxDate, onAccept, onClose, onError, cancelText, okText, inputVariant, openTo, toolbarTitle, views, className, handler)); } function umDialog$lambda$lambda(closure$onClose) { return function () { closure$onClose(); return Unit; }; } function umDialog$lambda(closure$open, closure$fullWidth, closure$maxWidth, closure$onClose) { return function ($receiver) { $receiver.attrs.open = closure$open; $receiver.attrs.fullWidth = closure$fullWidth; $receiver.attrs.maxWidth = closure$maxWidth; $receiver.attrs.onClose = umDialog$lambda$lambda(closure$onClose); return Unit; }; } function umDialog($receiver, open, onClose, fullWidth, maxWidth, className, handler) { if (fullWidth === void 0) fullWidth = true; if (maxWidth === void 0) maxWidth = Breakpoint$sm_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Dialog.default, className, handler, umDialog$lambda(open, fullWidth, maxWidth, onClose)); } function umDialogTitle$lambda(closure$title) { return function ($receiver) { $receiver.attrs.title = closure$title; return Unit; }; } function umDialogTitle($receiver, title, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_DialogTitle.default, className, handler, umDialogTitle$lambda(title)); } function umDialogActions($receiver, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_DialogActions.default, className, handler); } function umDialogContent($receiver, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_DialogContent.default, className, handler); } function MDividerOrientation(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function MDividerOrientation_initFields() { MDividerOrientation_initFields = function () { }; MDividerOrientation$horizontal_instance = new MDividerOrientation('horizontal', 0); MDividerOrientation$vertical_instance = new MDividerOrientation('vertical', 1); } var MDividerOrientation$horizontal_instance; function MDividerOrientation$horizontal_getInstance() { MDividerOrientation_initFields(); return MDividerOrientation$horizontal_instance; } var MDividerOrientation$vertical_instance; function MDividerOrientation$vertical_getInstance() { MDividerOrientation_initFields(); return MDividerOrientation$vertical_instance; } MDividerOrientation.$metadata$ = { kind: Kind_CLASS, simpleName: 'MDividerOrientation', interfaces: [Enum] }; function MDividerOrientation$values() { return [MDividerOrientation$horizontal_getInstance(), MDividerOrientation$vertical_getInstance()]; } MDividerOrientation.values = MDividerOrientation$values; function MDividerOrientation$valueOf(name) { switch (name) { case 'horizontal': return MDividerOrientation$horizontal_getInstance(); case 'vertical': return MDividerOrientation$vertical_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.MDividerOrientation.' + name); } } MDividerOrientation.valueOf_61zpoe$ = MDividerOrientation$valueOf; function MDividerVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function MDividerVariant_initFields() { MDividerVariant_initFields = function () { }; MDividerVariant$fullWidth_instance = new MDividerVariant('fullWidth', 0); MDividerVariant$inset_instance = new MDividerVariant('inset', 1); MDividerVariant$middle_instance = new MDividerVariant('middle', 2); } var MDividerVariant$fullWidth_instance; function MDividerVariant$fullWidth_getInstance() { MDividerVariant_initFields(); return MDividerVariant$fullWidth_instance; } var MDividerVariant$inset_instance; function MDividerVariant$inset_getInstance() { MDividerVariant_initFields(); return MDividerVariant$inset_instance; } var MDividerVariant$middle_instance; function MDividerVariant$middle_getInstance() { MDividerVariant_initFields(); return MDividerVariant$middle_instance; } MDividerVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'MDividerVariant', interfaces: [Enum] }; function MDividerVariant$values() { return [MDividerVariant$fullWidth_getInstance(), MDividerVariant$inset_getInstance(), MDividerVariant$middle_getInstance()]; } MDividerVariant.values = MDividerVariant$values; function MDividerVariant$valueOf(name) { switch (name) { case 'fullWidth': return MDividerVariant$fullWidth_getInstance(); case 'inset': return MDividerVariant$inset_getInstance(); case 'middle': return MDividerVariant$middle_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.MDividerVariant.' + name); } } MDividerVariant.valueOf_61zpoe$ = MDividerVariant$valueOf; function umDivider$lambda(closure$absolute, closure$component, closure$light, closure$orientation, closure$variant) { return function ($receiver) { $receiver.attrs.absolute = closure$absolute; $receiver.attrs.component = closure$component; $receiver.attrs.light = closure$light; $receiver.attrs.orientation = closure$orientation.toString(); $receiver.attrs.variant = closure$variant.toString(); return Unit; }; } function umDivider($receiver, variant, light, absolute, orientation, component, className, handler) { if (variant === void 0) variant = MDividerVariant$fullWidth_getInstance(); if (light === void 0) light = false; if (absolute === void 0) absolute = false; if (orientation === void 0) orientation = MDividerOrientation$horizontal_getInstance(); if (component === void 0) component = 'hr'; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Divider.default, className, handler, umDivider$lambda(absolute, component, light, orientation, variant)); } function DrawerAnchor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function DrawerAnchor_initFields() { DrawerAnchor_initFields = function () { }; DrawerAnchor$left_instance = new DrawerAnchor('left', 0); DrawerAnchor$top_instance = new DrawerAnchor('top', 1); DrawerAnchor$right_instance = new DrawerAnchor('right', 2); DrawerAnchor$bottom_instance = new DrawerAnchor('bottom', 3); } var DrawerAnchor$left_instance; function DrawerAnchor$left_getInstance() { DrawerAnchor_initFields(); return DrawerAnchor$left_instance; } var DrawerAnchor$top_instance; function DrawerAnchor$top_getInstance() { DrawerAnchor_initFields(); return DrawerAnchor$top_instance; } var DrawerAnchor$right_instance; function DrawerAnchor$right_getInstance() { DrawerAnchor_initFields(); return DrawerAnchor$right_instance; } var DrawerAnchor$bottom_instance; function DrawerAnchor$bottom_getInstance() { DrawerAnchor_initFields(); return DrawerAnchor$bottom_instance; } DrawerAnchor.$metadata$ = { kind: Kind_CLASS, simpleName: 'DrawerAnchor', interfaces: [Enum] }; function DrawerAnchor$values() { return [DrawerAnchor$left_getInstance(), DrawerAnchor$top_getInstance(), DrawerAnchor$right_getInstance(), DrawerAnchor$bottom_getInstance()]; } DrawerAnchor.values = DrawerAnchor$values; function DrawerAnchor$valueOf(name) { switch (name) { case 'left': return DrawerAnchor$left_getInstance(); case 'top': return DrawerAnchor$top_getInstance(); case 'right': return DrawerAnchor$right_getInstance(); case 'bottom': return DrawerAnchor$bottom_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.DrawerAnchor.' + name); } } DrawerAnchor.valueOf_61zpoe$ = DrawerAnchor$valueOf; function DrawerVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function DrawerVariant_initFields() { DrawerVariant_initFields = function () { }; DrawerVariant$permanent_instance = new DrawerVariant('permanent', 0); DrawerVariant$temporary_instance = new DrawerVariant('temporary', 1); DrawerVariant$persistent_instance = new DrawerVariant('persistent', 2); } var DrawerVariant$permanent_instance; function DrawerVariant$permanent_getInstance() { DrawerVariant_initFields(); return DrawerVariant$permanent_instance; } var DrawerVariant$temporary_instance; function DrawerVariant$temporary_getInstance() { DrawerVariant_initFields(); return DrawerVariant$temporary_instance; } var DrawerVariant$persistent_instance; function DrawerVariant$persistent_getInstance() { DrawerVariant_initFields(); return DrawerVariant$persistent_instance; } DrawerVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'DrawerVariant', interfaces: [Enum] }; function DrawerVariant$values() { return [DrawerVariant$permanent_getInstance(), DrawerVariant$temporary_getInstance(), DrawerVariant$persistent_getInstance()]; } DrawerVariant.values = DrawerVariant$values; function DrawerVariant$valueOf(name) { switch (name) { case 'permanent': return DrawerVariant$permanent_getInstance(); case 'temporary': return DrawerVariant$temporary_getInstance(); case 'persistent': return DrawerVariant$persistent_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.DrawerVariant.' + name); } } DrawerVariant.valueOf_61zpoe$ = DrawerVariant$valueOf; function umDrawer$lambda(closure$anchor, closure$elevation, closure$modalProps, closure$onClose, closure$open, closure$paperProps, closure$slideProps, closure$variant, closure$transitionDuration) { return function ($receiver) { $receiver.attrs.anchor = closure$anchor.toString(); $receiver.attrs.elevation = closure$elevation; if (closure$modalProps != null) { var it = closure$modalProps; $receiver.attrs.ModalProps = it; }if (closure$onClose != null) { var it_0 = closure$onClose; $receiver.attrs.onClose = it_0; }$receiver.attrs.open = closure$open; if (closure$paperProps != null) { var it_1 = closure$paperProps; $receiver.attrs.PaperProps = it_1; }if (closure$slideProps != null) { var it_2 = closure$slideProps; $receiver.attrs.SlideProps = it_2; }$receiver.attrs.variant = closure$variant.toString(); if (closure$transitionDuration != null) { var it_3 = closure$transitionDuration; $receiver.attrs.transitionDuration = it_3; }return Unit; }; } function umDrawer($receiver, open, anchor, variant, onClose, elevation, modalProps, paperProps, slideProps, transitionDuration, className, handler) { if (open === void 0) open = false; if (anchor === void 0) anchor = DrawerAnchor$left_getInstance(); if (variant === void 0) variant = DrawerVariant$temporary_getInstance(); if (onClose === void 0) onClose = null; if (elevation === void 0) elevation = 16; if (modalProps === void 0) modalProps = null; if (paperProps === void 0) paperProps = null; if (slideProps === void 0) slideProps = null; if (transitionDuration === void 0) transitionDuration = null; if (className === void 0) className = null; return createStyledComponent($receiver, $module$_mui_material_Drawer.default, className, handler, umDrawer$lambda(anchor, elevation, modalProps, onClose, open, paperProps, slideProps, variant, transitionDuration)); } function FabVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function FabVariant_initFields() { FabVariant_initFields = function () { }; FabVariant$round_instance = new FabVariant('round', 0); FabVariant$extended_instance = new FabVariant('extended', 1); } var FabVariant$round_instance; function FabVariant$round_getInstance() { FabVariant_initFields(); return FabVariant$round_instance; } var FabVariant$extended_instance; function FabVariant$extended_getInstance() { FabVariant_initFields(); return FabVariant$extended_instance; } FabVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'FabVariant', interfaces: [Enum] }; function FabVariant$values() { return [FabVariant$round_getInstance(), FabVariant$extended_getInstance()]; } FabVariant.values = FabVariant$values; function FabVariant$valueOf(name) { switch (name) { case 'round': return FabVariant$round_getInstance(); case 'extended': return FabVariant$extended_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.FabVariant.' + name); } } FabVariant.valueOf_61zpoe$ = FabVariant$valueOf; function umFab$lambda$lambda(closure$onClick) { return function (it) { closure$onClick != null ? closure$onClick(it.nativeEvent) : null; return Unit; }; } function umFab$lambda(closure$color, closure$disabled, closure$onClick, closure$id, closure$size, closure$variant, closure$iconName, closure$caption) { return function ($receiver) { $receiver.attrs.color = closure$color.toString(); $receiver.attrs.disabled = closure$disabled; $receiver.attrs.onClick = umFab$lambda$lambda(closure$onClick); if (closure$id != null) { var closure$id_0 = closure$id; $receiver.attrs.id = closure$id_0; }$receiver.attrs.size = closure$size.toString(); $receiver.attrs.variant = closure$variant.toString(); umIcon($receiver, closure$iconName); $receiver.childList.add_11rb$(closure$caption); return Unit; }; } function umFab($receiver, iconName, caption, color, disabled, onClick, size, className, id, variant, handler) { if (color === void 0) color = UMColor$default_getInstance(); if (disabled === void 0) disabled = false; if (onClick === void 0) onClick = null; if (size === void 0) size = ButtonSize$medium_getInstance(); if (className === void 0) className = null; if (id === void 0) id = null; if (variant === void 0) variant = FabVariant$extended_getInstance(); if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Fab.default, className, handler, umFab$lambda(color, disabled, onClick, id, size, variant, iconName, caption)); } function FormControlComponent(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function FormControlComponent_initFields() { FormControlComponent_initFields = function () { }; FormControlComponent$div_instance = new FormControlComponent('div', 0); FormControlComponent$fieldSet_instance = new FormControlComponent('fieldSet', 1); } var FormControlComponent$div_instance; function FormControlComponent$div_getInstance() { FormControlComponent_initFields(); return FormControlComponent$div_instance; } var FormControlComponent$fieldSet_instance; function FormControlComponent$fieldSet_getInstance() { FormControlComponent_initFields(); return FormControlComponent$fieldSet_instance; } FormControlComponent.prototype.toString = function () { return hyphenize(Enum.prototype.toString.call(this)); }; FormControlComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'FormControlComponent', interfaces: [Enum] }; function FormControlComponent$values() { return [FormControlComponent$div_getInstance(), FormControlComponent$fieldSet_getInstance()]; } FormControlComponent.values = FormControlComponent$values; function FormControlComponent$valueOf(name) { switch (name) { case 'div': return FormControlComponent$div_getInstance(); case 'fieldSet': return FormControlComponent$fieldSet_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.FormControlComponent.' + name); } } FormControlComponent.valueOf_61zpoe$ = FormControlComponent$valueOf; function umFormControl$lambda(closure$disabled, closure$error, closure$fullWidth, closure$hiddenLabel, closure$margin, closure$required, closure$variant) { return function ($receiver) { $receiver.attrs.disabled = closure$disabled; $receiver.attrs.error = closure$error; $receiver.attrs.fullWidth = closure$fullWidth; $receiver.attrs.hiddenLabel = closure$hiddenLabel; $receiver.attrs.margin = closure$margin.toString(); $receiver.attrs.required = closure$required; $receiver.attrs.variant = closure$variant.toString(); StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; }; } function umFormControl($receiver, disabled, error, fullWidth, margin, required, variant, hiddenLabel, className, handler) { if (disabled === void 0) disabled = false; if (error === void 0) error = false; if (fullWidth === void 0) fullWidth = false; if (margin === void 0) margin = FormControlMargin$none_getInstance(); if (required === void 0) required = false; if (variant === void 0) variant = FormControlVariant$standard_getInstance(); if (hiddenLabel === void 0) hiddenLabel = false; if (className === void 0) className = null; if (handler === void 0) handler = null; createStyledComponent($receiver, $module$_mui_material_FormControl.default, className, handler, umFormControl$lambda(disabled, error, fullWidth, hiddenLabel, margin, required, variant)); } function umFormHelperText$lambda(closure$component, closure$disabled, closure$error, closure$filled, closure$focused, closure$margin, closure$required, closure$variant, closure$caption) { return function ($receiver) { if (closure$component != null) { var it = closure$component; $receiver.attrs.component = it; }$receiver.attrs.disabled = closure$disabled; $receiver.attrs.error = closure$error; $receiver.attrs.filled = closure$filled; $receiver.attrs.focused = closure$focused; if (closure$margin != null) { var it_0 = closure$margin; $receiver.attrs.margin = it_0.toString(); }$receiver.attrs.required = closure$required; $receiver.attrs.variant = closure$variant.toString(); $receiver.childList.add_11rb$(closure$caption); return Unit; }; } function umFormHelperText($receiver, caption, disabled, error, filled, focused, required, variant, margin, component, className, handler) { if (disabled === void 0) disabled = false; if (error === void 0) error = false; if (filled === void 0) filled = false; if (focused === void 0) focused = false; if (required === void 0) required = false; if (variant === void 0) variant = FormControlVariant$standard_getInstance(); if (margin === void 0) margin = null; if (component === void 0) component = null; if (className === void 0) className = null; if (handler === void 0) handler = null; createStyledComponent($receiver, $module$_mui_material_FormHelperText.default, className, handler, umFormHelperText$lambda(component, disabled, error, filled, focused, margin, required, variant, caption)); } function GridAlignContent(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function GridAlignContent_initFields() { GridAlignContent_initFields = function () { }; GridAlignContent$stretch_instance = new GridAlignContent('stretch', 0); GridAlignContent$center_instance = new GridAlignContent('center', 1); GridAlignContent$flexStart_instance = new GridAlignContent('flexStart', 2); GridAlignContent$flexEnd_instance = new GridAlignContent('flexEnd', 3); GridAlignContent$spaceBetween_instance = new GridAlignContent('spaceBetween', 4); GridAlignContent$spaceAround_instance = new GridAlignContent('spaceAround', 5); } var GridAlignContent$stretch_instance; function GridAlignContent$stretch_getInstance() { GridAlignContent_initFields(); return GridAlignContent$stretch_instance; } var GridAlignContent$center_instance; function GridAlignContent$center_getInstance() { GridAlignContent_initFields(); return GridAlignContent$center_instance; } var GridAlignContent$flexStart_instance; function GridAlignContent$flexStart_getInstance() { GridAlignContent_initFields(); return GridAlignContent$flexStart_instance; } var GridAlignContent$flexEnd_instance; function GridAlignContent$flexEnd_getInstance() { GridAlignContent_initFields(); return GridAlignContent$flexEnd_instance; } var GridAlignContent$spaceBetween_instance; function GridAlignContent$spaceBetween_getInstance() { GridAlignContent_initFields(); return GridAlignContent$spaceBetween_instance; } var GridAlignContent$spaceAround_instance; function GridAlignContent$spaceAround_getInstance() { GridAlignContent_initFields(); return GridAlignContent$spaceAround_instance; } GridAlignContent.prototype.toString = function () { return hyphenize(Enum.prototype.toString.call(this)); }; GridAlignContent.$metadata$ = { kind: Kind_CLASS, simpleName: 'GridAlignContent', interfaces: [Enum] }; function GridAlignContent$values() { return [GridAlignContent$stretch_getInstance(), GridAlignContent$center_getInstance(), GridAlignContent$flexStart_getInstance(), GridAlignContent$flexEnd_getInstance(), GridAlignContent$spaceBetween_getInstance(), GridAlignContent$spaceAround_getInstance()]; } GridAlignContent.values = GridAlignContent$values; function GridAlignContent$valueOf(name) { switch (name) { case 'stretch': return GridAlignContent$stretch_getInstance(); case 'center': return GridAlignContent$center_getInstance(); case 'flexStart': return GridAlignContent$flexStart_getInstance(); case 'flexEnd': return GridAlignContent$flexEnd_getInstance(); case 'spaceBetween': return GridAlignContent$spaceBetween_getInstance(); case 'spaceAround': return GridAlignContent$spaceAround_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.GridAlignContent.' + name); } } GridAlignContent.valueOf_61zpoe$ = GridAlignContent$valueOf; function GridAlignItems(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function GridAlignItems_initFields() { GridAlignItems_initFields = function () { }; GridAlignItems$stretch_instance = new GridAlignItems('stretch', 0); GridAlignItems$center_instance = new GridAlignItems('center', 1); GridAlignItems$flexStart_instance = new GridAlignItems('flexStart', 2); GridAlignItems$flexEnd_instance = new GridAlignItems('flexEnd', 3); GridAlignItems$baseline_instance = new GridAlignItems('baseline', 4); } var GridAlignItems$stretch_instance; function GridAlignItems$stretch_getInstance() { GridAlignItems_initFields(); return GridAlignItems$stretch_instance; } var GridAlignItems$center_instance; function GridAlignItems$center_getInstance() { GridAlignItems_initFields(); return GridAlignItems$center_instance; } var GridAlignItems$flexStart_instance; function GridAlignItems$flexStart_getInstance() { GridAlignItems_initFields(); return GridAlignItems$flexStart_instance; } var GridAlignItems$flexEnd_instance; function GridAlignItems$flexEnd_getInstance() { GridAlignItems_initFields(); return GridAlignItems$flexEnd_instance; } var GridAlignItems$baseline_instance; function GridAlignItems$baseline_getInstance() { GridAlignItems_initFields(); return GridAlignItems$baseline_instance; } GridAlignItems.prototype.toString = function () { return hyphenize(Enum.prototype.toString.call(this)); }; GridAlignItems.$metadata$ = { kind: Kind_CLASS, simpleName: 'GridAlignItems', interfaces: [Enum] }; function GridAlignItems$values() { return [GridAlignItems$stretch_getInstance(), GridAlignItems$center_getInstance(), GridAlignItems$flexStart_getInstance(), GridAlignItems$flexEnd_getInstance(), GridAlignItems$baseline_getInstance()]; } GridAlignItems.values = GridAlignItems$values; function GridAlignItems$valueOf(name) { switch (name) { case 'stretch': return GridAlignItems$stretch_getInstance(); case 'center': return GridAlignItems$center_getInstance(); case 'flexStart': return GridAlignItems$flexStart_getInstance(); case 'flexEnd': return GridAlignItems$flexEnd_getInstance(); case 'baseline': return GridAlignItems$baseline_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.GridAlignItems.' + name); } } GridAlignItems.valueOf_61zpoe$ = GridAlignItems$valueOf; function GridJustify(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function GridJustify_initFields() { GridJustify_initFields = function () { }; GridJustify$flexStart_instance = new GridJustify('flexStart', 0); GridJustify$center_instance = new GridJustify('center', 1); GridJustify$flexEnd_instance = new GridJustify('flexEnd', 2); GridJustify$spaceBetween_instance = new GridJustify('spaceBetween', 3); GridJustify$spaceAround_instance = new GridJustify('spaceAround', 4); } var GridJustify$flexStart_instance; function GridJustify$flexStart_getInstance() { GridJustify_initFields(); return GridJustify$flexStart_instance; } var GridJustify$center_instance; function GridJustify$center_getInstance() { GridJustify_initFields(); return GridJustify$center_instance; } var GridJustify$flexEnd_instance; function GridJustify$flexEnd_getInstance() { GridJustify_initFields(); return GridJustify$flexEnd_instance; } var GridJustify$spaceBetween_instance; function GridJustify$spaceBetween_getInstance() { GridJustify_initFields(); return GridJustify$spaceBetween_instance; } var GridJustify$spaceAround_instance; function GridJustify$spaceAround_getInstance() { GridJustify_initFields(); return GridJustify$spaceAround_instance; } GridJustify.prototype.toString = function () { return hyphenize(Enum.prototype.toString.call(this)); }; GridJustify.$metadata$ = { kind: Kind_CLASS, simpleName: 'GridJustify', interfaces: [Enum] }; function GridJustify$values() { return [GridJustify$flexStart_getInstance(), GridJustify$center_getInstance(), GridJustify$flexEnd_getInstance(), GridJustify$spaceBetween_getInstance(), GridJustify$spaceAround_getInstance()]; } GridJustify.values = GridJustify$values; function GridJustify$valueOf(name) { switch (name) { case 'flexStart': return GridJustify$flexStart_getInstance(); case 'center': return GridJustify$center_getInstance(); case 'flexEnd': return GridJustify$flexEnd_getInstance(); case 'spaceBetween': return GridJustify$spaceBetween_getInstance(); case 'spaceAround': return GridJustify$spaceAround_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.GridJustify.' + name); } } GridJustify.valueOf_61zpoe$ = GridJustify$valueOf; function GridSize(name, ordinal, sizeVal) { Enum.call(this); this.sizeVal_8be2vx$ = sizeVal; this.name$ = name; this.ordinal$ = ordinal; } function GridSize_initFields() { GridSize_initFields = function () { }; GridSize$cellsFalse_instance = new GridSize('cellsFalse', 0, false); GridSize$cellsAuto_instance = new GridSize('cellsAuto', 1, 'auto'); GridSize$cellsTrue_instance = new GridSize('cellsTrue', 2, true); GridSize$cells1_instance = new GridSize('cells1', 3, 1); GridSize$cells2_instance = new GridSize('cells2', 4, 2); GridSize$cells3_instance = new GridSize('cells3', 5, 3); GridSize$cells4_instance = new GridSize('cells4', 6, 4); GridSize$cells5_instance = new GridSize('cells5', 7, 5); GridSize$cells6_instance = new GridSize('cells6', 8, 6); GridSize$cells7_instance = new GridSize('cells7', 9, 7); GridSize$cells8_instance = new GridSize('cells8', 10, 8); GridSize$cells9_instance = new GridSize('cells9', 11, 9); GridSize$cells10_instance = new GridSize('cells10', 12, 10); GridSize$cells11_instance = new GridSize('cells11', 13, 11); GridSize$cells12_instance = new GridSize('cells12', 14, 12); } var GridSize$cellsFalse_instance; function GridSize$cellsFalse_getInstance() { GridSize_initFields(); return GridSize$cellsFalse_instance; } var GridSize$cellsAuto_instance; function GridSize$cellsAuto_getInstance() { GridSize_initFields(); return GridSize$cellsAuto_instance; } var GridSize$cellsTrue_instance; function GridSize$cellsTrue_getInstance() { GridSize_initFields(); return GridSize$cellsTrue_instance; } var GridSize$cells1_instance; function GridSize$cells1_getInstance() { GridSize_initFields(); return GridSize$cells1_instance; } var GridSize$cells2_instance; function GridSize$cells2_getInstance() { GridSize_initFields(); return GridSize$cells2_instance; } var GridSize$cells3_instance; function GridSize$cells3_getInstance() { GridSize_initFields(); return GridSize$cells3_instance; } var GridSize$cells4_instance; function GridSize$cells4_getInstance() { GridSize_initFields(); return GridSize$cells4_instance; } var GridSize$cells5_instance; function GridSize$cells5_getInstance() { GridSize_initFields(); return GridSize$cells5_instance; } var GridSize$cells6_instance; function GridSize$cells6_getInstance() { GridSize_initFields(); return GridSize$cells6_instance; } var GridSize$cells7_instance; function GridSize$cells7_getInstance() { GridSize_initFields(); return GridSize$cells7_instance; } var GridSize$cells8_instance; function GridSize$cells8_getInstance() { GridSize_initFields(); return GridSize$cells8_instance; } var GridSize$cells9_instance; function GridSize$cells9_getInstance() { GridSize_initFields(); return GridSize$cells9_instance; } var GridSize$cells10_instance; function GridSize$cells10_getInstance() { GridSize_initFields(); return GridSize$cells10_instance; } var GridSize$cells11_instance; function GridSize$cells11_getInstance() { GridSize_initFields(); return GridSize$cells11_instance; } var GridSize$cells12_instance; function GridSize$cells12_getInstance() { GridSize_initFields(); return GridSize$cells12_instance; } GridSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'GridSize', interfaces: [Enum] }; function GridSize$values() { return [GridSize$cellsFalse_getInstance(), GridSize$cellsAuto_getInstance(), GridSize$cellsTrue_getInstance(), GridSize$cells1_getInstance(), GridSize$cells2_getInstance(), GridSize$cells3_getInstance(), GridSize$cells4_getInstance(), GridSize$cells5_getInstance(), GridSize$cells6_getInstance(), GridSize$cells7_getInstance(), GridSize$cells8_getInstance(), GridSize$cells9_getInstance(), GridSize$cells10_getInstance(), GridSize$cells11_getInstance(), GridSize$cells12_getInstance()]; } GridSize.values = GridSize$values; function GridSize$valueOf(name) { switch (name) { case 'cellsFalse': return GridSize$cellsFalse_getInstance(); case 'cellsAuto': return GridSize$cellsAuto_getInstance(); case 'cellsTrue': return GridSize$cellsTrue_getInstance(); case 'cells1': return GridSize$cells1_getInstance(); case 'cells2': return GridSize$cells2_getInstance(); case 'cells3': return GridSize$cells3_getInstance(); case 'cells4': return GridSize$cells4_getInstance(); case 'cells5': return GridSize$cells5_getInstance(); case 'cells6': return GridSize$cells6_getInstance(); case 'cells7': return GridSize$cells7_getInstance(); case 'cells8': return GridSize$cells8_getInstance(); case 'cells9': return GridSize$cells9_getInstance(); case 'cells10': return GridSize$cells10_getInstance(); case 'cells11': return GridSize$cells11_getInstance(); case 'cells12': return GridSize$cells12_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.GridSize.' + name); } } GridSize.valueOf_61zpoe$ = GridSize$valueOf; function GridSpacing(name, ordinal, size) { Enum.call(this); this.size_8be2vx$ = size; this.name$ = name; this.ordinal$ = ordinal; } function GridSpacing_initFields() { GridSpacing_initFields = function () { }; GridSpacing$spacing0_instance = new GridSpacing('spacing0', 0, 0); GridSpacing$spacing1_instance = new GridSpacing('spacing1', 1, 1); GridSpacing$spacing2_instance = new GridSpacing('spacing2', 2, 2); GridSpacing$spacing3_instance = new GridSpacing('spacing3', 3, 3); GridSpacing$spacing4_instance = new GridSpacing('spacing4', 4, 4); GridSpacing$spacing5_instance = new GridSpacing('spacing5', 5, 5); GridSpacing$spacing6_instance = new GridSpacing('spacing6', 6, 6); GridSpacing$spacing7_instance = new GridSpacing('spacing7', 7, 7); GridSpacing$spacing8_instance = new GridSpacing('spacing8', 8, 8); GridSpacing$spacing9_instance = new GridSpacing('spacing9', 9, 9); GridSpacing$spacing10_instance = new GridSpacing('spacing10', 10, 10); } var GridSpacing$spacing0_instance; function GridSpacing$spacing0_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing0_instance; } var GridSpacing$spacing1_instance; function GridSpacing$spacing1_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing1_instance; } var GridSpacing$spacing2_instance; function GridSpacing$spacing2_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing2_instance; } var GridSpacing$spacing3_instance; function GridSpacing$spacing3_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing3_instance; } var GridSpacing$spacing4_instance; function GridSpacing$spacing4_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing4_instance; } var GridSpacing$spacing5_instance; function GridSpacing$spacing5_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing5_instance; } var GridSpacing$spacing6_instance; function GridSpacing$spacing6_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing6_instance; } var GridSpacing$spacing7_instance; function GridSpacing$spacing7_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing7_instance; } var GridSpacing$spacing8_instance; function GridSpacing$spacing8_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing8_instance; } var GridSpacing$spacing9_instance; function GridSpacing$spacing9_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing9_instance; } var GridSpacing$spacing10_instance; function GridSpacing$spacing10_getInstance() { GridSpacing_initFields(); return GridSpacing$spacing10_instance; } GridSpacing.$metadata$ = { kind: Kind_CLASS, simpleName: 'GridSpacing', interfaces: [Enum] }; function GridSpacing$values() { return [GridSpacing$spacing0_getInstance(), GridSpacing$spacing1_getInstance(), GridSpacing$spacing2_getInstance(), GridSpacing$spacing3_getInstance(), GridSpacing$spacing4_getInstance(), GridSpacing$spacing5_getInstance(), GridSpacing$spacing6_getInstance(), GridSpacing$spacing7_getInstance(), GridSpacing$spacing8_getInstance(), GridSpacing$spacing9_getInstance(), GridSpacing$spacing10_getInstance()]; } GridSpacing.values = GridSpacing$values; function GridSpacing$valueOf(name) { switch (name) { case 'spacing0': return GridSpacing$spacing0_getInstance(); case 'spacing1': return GridSpacing$spacing1_getInstance(); case 'spacing2': return GridSpacing$spacing2_getInstance(); case 'spacing3': return GridSpacing$spacing3_getInstance(); case 'spacing4': return GridSpacing$spacing4_getInstance(); case 'spacing5': return GridSpacing$spacing5_getInstance(); case 'spacing6': return GridSpacing$spacing6_getInstance(); case 'spacing7': return GridSpacing$spacing7_getInstance(); case 'spacing8': return GridSpacing$spacing8_getInstance(); case 'spacing9': return GridSpacing$spacing9_getInstance(); case 'spacing10': return GridSpacing$spacing10_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.GridSpacing.' + name); } } GridSpacing.valueOf_61zpoe$ = GridSpacing$valueOf; function gridContainer$lambda(closure$alignContent, closure$alignItems, closure$direction, closure$spacing, closure$columnSpacing, closure$rowSpacing, closure$wrap) { return function ($receiver) { $receiver.attrs.alignContent = closure$alignContent; $receiver.attrs.alignItems = closure$alignItems; $receiver.attrs.container = true; $receiver.attrs.direction = closure$direction.toString(); $receiver.attrs.spacing = closure$spacing.size_8be2vx$; if (closure$columnSpacing != null) { var it = closure$columnSpacing; $receiver.attrs.columnSpacing = it.size_8be2vx$; }if (closure$rowSpacing != null) { var it_0 = closure$rowSpacing; $receiver.attrs.rowSpacing = it_0.size_8be2vx$; }$receiver.attrs.wrap = closure$wrap; return Unit; }; } function gridContainer($receiver, spacing, alignContent, alignItems, direction, wrap, columnSpacing, rowSpacing, className, handler) { if (spacing === void 0) spacing = GridSpacing$spacing0_getInstance(); if (alignContent === void 0) alignContent = GridAlignContent$stretch_getInstance(); if (alignItems === void 0) alignItems = GridAlignItems$stretch_getInstance(); if (direction === void 0) direction = FlexDirection.row; if (wrap === void 0) wrap = GridWrap$wrap; if (columnSpacing === void 0) columnSpacing = null; if (rowSpacing === void 0) rowSpacing = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Grid.default, className, handler, gridContainer$lambda(alignContent, alignItems, direction, spacing, columnSpacing, rowSpacing, wrap)); } function gridItem$lambda(closure$sm, closure$md, closure$xs, closure$xl, closure$lg, closure$alignItems, closure$zeroMinWidth, closure$display, closure$flexDirection) { return function ($receiver) { $receiver.attrs.item = true; if (closure$sm != null) { var it = closure$sm; $receiver.attrs.sm = it.sizeVal_8be2vx$; }if (closure$md != null) { var it_0 = closure$md; $receiver.attrs.md = it_0.sizeVal_8be2vx$; }if (closure$xs != null) { var it_1 = closure$xs; $receiver.attrs.xs = it_1.sizeVal_8be2vx$; }if (closure$xl != null) { var it_2 = closure$xl; $receiver.attrs.xl = it_2.sizeVal_8be2vx$; }if (closure$lg != null) { var it_3 = closure$lg; $receiver.attrs.lg = it_3.sizeVal_8be2vx$; }$receiver.attrs.textAlign = toString(closure$alignItems); if (closure$zeroMinWidth != null) { var it_4 = closure$zeroMinWidth; $receiver.attrs.zeroMinWidth = it_4; }var closure$display_0 = closure$display; var closure$flexDirection_0 = closure$flexDirection; var $receiver_0 = $receiver.css; set_display($receiver_0, closure$display_0); set_flexDirection($receiver_0, closure$flexDirection_0); return Unit; }; } function gridItem($receiver, xs, sm, md, lg, xl, alignItems, zeroMinWidth, className, display, flexDirection, handler) { if (xs === void 0) xs = GridSize$cellsFalse_getInstance(); if (sm === void 0) sm = GridSize$cellsFalse_getInstance(); if (md === void 0) md = GridSize$cellsFalse_getInstance(); if (lg === void 0) lg = GridSize$cellsFalse_getInstance(); if (xl === void 0) xl = GridSize$cellsFalse_getInstance(); if (alignItems === void 0) alignItems = GridAlignItems$flexStart_getInstance(); if (zeroMinWidth === void 0) zeroMinWidth = null; if (className === void 0) className = null; if (display === void 0) display = Display.flex; if (flexDirection === void 0) flexDirection = FlexDirection.column; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Grid.default, className, handler, gridItem$lambda(sm, md, xs, xl, lg, alignItems, zeroMinWidth, display, flexDirection)); } function IconColor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function IconColor_initFields() { IconColor_initFields = function () { }; IconColor$action_instance = new IconColor('action', 0); IconColor$error_instance = new IconColor('error', 1); IconColor$disabled_instance = new IconColor('disabled', 2); IconColor$inherit_instance = new IconColor('inherit', 3); IconColor$primary_instance = new IconColor('primary', 4); IconColor$secondary_instance = new IconColor('secondary', 5); } var IconColor$action_instance; function IconColor$action_getInstance() { IconColor_initFields(); return IconColor$action_instance; } var IconColor$error_instance; function IconColor$error_getInstance() { IconColor_initFields(); return IconColor$error_instance; } var IconColor$disabled_instance; function IconColor$disabled_getInstance() { IconColor_initFields(); return IconColor$disabled_instance; } var IconColor$inherit_instance; function IconColor$inherit_getInstance() { IconColor_initFields(); return IconColor$inherit_instance; } var IconColor$primary_instance; function IconColor$primary_getInstance() { IconColor_initFields(); return IconColor$primary_instance; } var IconColor$secondary_instance; function IconColor$secondary_getInstance() { IconColor_initFields(); return IconColor$secondary_instance; } IconColor.$metadata$ = { kind: Kind_CLASS, simpleName: 'IconColor', interfaces: [Enum] }; function IconColor$values() { return [IconColor$action_getInstance(), IconColor$error_getInstance(), IconColor$disabled_getInstance(), IconColor$inherit_getInstance(), IconColor$primary_getInstance(), IconColor$secondary_getInstance()]; } IconColor.values = IconColor$values; function IconColor$valueOf(name) { switch (name) { case 'action': return IconColor$action_getInstance(); case 'error': return IconColor$error_getInstance(); case 'disabled': return IconColor$disabled_getInstance(); case 'inherit': return IconColor$inherit_getInstance(); case 'primary': return IconColor$primary_getInstance(); case 'secondary': return IconColor$secondary_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.IconColor.' + name); } } IconColor.valueOf_61zpoe$ = IconColor$valueOf; function IconFontSize(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function IconFontSize_initFields() { IconFontSize_initFields = function () { }; IconFontSize$default_instance = new IconFontSize('default', 0); IconFontSize$small_instance = new IconFontSize('small', 1); IconFontSize$large_instance = new IconFontSize('large', 2); IconFontSize$inherit_instance = new IconFontSize('inherit', 3); } var IconFontSize$default_instance; function IconFontSize$default_getInstance() { IconFontSize_initFields(); return IconFontSize$default_instance; } var IconFontSize$small_instance; function IconFontSize$small_getInstance() { IconFontSize_initFields(); return IconFontSize$small_instance; } var IconFontSize$large_instance; function IconFontSize$large_getInstance() { IconFontSize_initFields(); return IconFontSize$large_instance; } var IconFontSize$inherit_instance; function IconFontSize$inherit_getInstance() { IconFontSize_initFields(); return IconFontSize$inherit_instance; } IconFontSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'IconFontSize', interfaces: [Enum] }; function IconFontSize$values() { return [IconFontSize$default_getInstance(), IconFontSize$small_getInstance(), IconFontSize$large_getInstance(), IconFontSize$inherit_getInstance()]; } IconFontSize.values = IconFontSize$values; function IconFontSize$valueOf(name) { switch (name) { case 'default': return IconFontSize$default_getInstance(); case 'small': return IconFontSize$small_getInstance(); case 'large': return IconFontSize$large_getInstance(); case 'inherit': return IconFontSize$inherit_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.IconFontSize.' + name); } } IconFontSize.valueOf_61zpoe$ = IconFontSize$valueOf; function umIcon$lambda(closure$color, closure$fontSize, closure$iconName) { return function ($receiver) { if (closure$color != null) { var it = closure$color; $receiver.attrs.color = it.toString(); }$receiver.attrs.fontSize = closure$fontSize.toString(); $receiver.childList.add_11rb$(closure$iconName); return Unit; }; } function umIcon($receiver, iconName, color, fontSize, className, handler) { if (color === void 0) color = IconColor$inherit_getInstance(); if (fontSize === void 0) fontSize = IconFontSize$default_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Icon.default, className, handler, umIcon$lambda(color, fontSize, iconName)); } function IconButtonSize(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function IconButtonSize_initFields() { IconButtonSize_initFields = function () { }; IconButtonSize$small_instance = new IconButtonSize('small', 0); IconButtonSize$medium_instance = new IconButtonSize('medium', 1); IconButtonSize$large_instance = new IconButtonSize('large', 2); } var IconButtonSize$small_instance; function IconButtonSize$small_getInstance() { IconButtonSize_initFields(); return IconButtonSize$small_instance; } var IconButtonSize$medium_instance; function IconButtonSize$medium_getInstance() { IconButtonSize_initFields(); return IconButtonSize$medium_instance; } var IconButtonSize$large_instance; function IconButtonSize$large_getInstance() { IconButtonSize_initFields(); return IconButtonSize$large_instance; } IconButtonSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'IconButtonSize', interfaces: [Enum] }; function IconButtonSize$values() { return [IconButtonSize$small_getInstance(), IconButtonSize$medium_getInstance(), IconButtonSize$large_getInstance()]; } IconButtonSize.values = IconButtonSize$values; function IconButtonSize$valueOf(name) { switch (name) { case 'small': return IconButtonSize$small_getInstance(); case 'medium': return IconButtonSize$medium_getInstance(); case 'large': return IconButtonSize$large_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.IconButtonSize.' + name); } } IconButtonSize.valueOf_61zpoe$ = IconButtonSize$valueOf; function IconEdge(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function IconEdge_initFields() { IconEdge_initFields = function () { }; IconEdge$start_instance = new IconEdge('start', 0); IconEdge$end_instance = new IconEdge('end', 1); } var IconEdge$start_instance; function IconEdge$start_getInstance() { IconEdge_initFields(); return IconEdge$start_instance; } var IconEdge$end_instance; function IconEdge$end_getInstance() { IconEdge_initFields(); return IconEdge$end_instance; } IconEdge.$metadata$ = { kind: Kind_CLASS, simpleName: 'IconEdge', interfaces: [Enum] }; function IconEdge$values() { return [IconEdge$start_getInstance(), IconEdge$end_getInstance()]; } IconEdge.values = IconEdge$values; function IconEdge$valueOf(name) { switch (name) { case 'start': return IconEdge$start_getInstance(); case 'end': return IconEdge$end_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.IconEdge.' + name); } } IconEdge.valueOf_61zpoe$ = IconEdge$valueOf; function umIconButton$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick != null ? closure$onClick(it.nativeEvent) : null; return Unit; }; } function umIconButton$lambda(closure$color, closure$disabled, closure$size, closure$edge, closure$onClick, closure$id, closure$iconColor, closure$iconName) { return function ($receiver) { var tmp$, tmp$_0; $receiver.attrs.color = closure$color.toString(); $receiver.attrs.disabled = closure$disabled; $receiver.attrs.disableFocusRipple = closure$disabled; $receiver.attrs.size = closure$size.toString(); if (closure$edge != null) { var it = closure$edge; $receiver.attrs.edge = it.toString(); }$receiver.attrs.onClick = umIconButton$lambda$lambda(closure$onClick); if (closure$id != null) { var it_0 = closure$id; $receiver.attrs.id = it_0; }var colorToApply = closure$iconColor; if (colorToApply == null) { switch (closure$color.name) { case 'inherit': tmp$ = IconColor$inherit_getInstance(); break; case 'default': tmp$ = IconColor$action_getInstance(); break; case 'secondary': tmp$ = IconColor$secondary_getInstance(); break; case 'primary': tmp$ = IconColor$primary_getInstance(); break; default:tmp$ = IconColor$inherit_getInstance(); break; } colorToApply = tmp$; }if (closure$iconName != null) { switch (closure$size.name) { case 'small': tmp$_0 = IconFontSize$small_getInstance(); break; case 'medium': tmp$_0 = IconFontSize$default_getInstance(); break; case 'large': tmp$_0 = IconFontSize$large_getInstance(); break; default:tmp$_0 = Kotlin.noWhenBranchMatched(); break; } var fontSize = tmp$_0; umIcon($receiver, closure$iconName, colorToApply, fontSize); }return Unit; }; } function umIconButton($receiver, iconName, color, disabled, onClick, size, iconColor, id, edge, className, handler) { if (iconName === void 0) iconName = null; if (color === void 0) color = UMColor$default_getInstance(); if (disabled === void 0) disabled = false; if (onClick === void 0) onClick = null; if (size === void 0) size = IconButtonSize$medium_getInstance(); if (iconColor === void 0) iconColor = null; if (id === void 0) id = null; if (edge === void 0) edge = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_IconButton.default, className, handler, umIconButton$lambda(color, disabled, size, edge, onClick, id, iconColor, iconName)); } function LabelMargin(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function LabelMargin_initFields() { LabelMargin_initFields = function () { }; LabelMargin$dense_instance = new LabelMargin('dense', 0); } var LabelMargin$dense_instance; function LabelMargin$dense_getInstance() { LabelMargin_initFields(); return LabelMargin$dense_instance; } LabelMargin.$metadata$ = { kind: Kind_CLASS, simpleName: 'LabelMargin', interfaces: [Enum] }; function LabelMargin$values() { return [LabelMargin$dense_getInstance()]; } LabelMargin.values = LabelMargin$values; function LabelMargin$valueOf(name) { switch (name) { case 'dense': return LabelMargin$dense_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.LabelMargin.' + name); } } LabelMargin.valueOf_61zpoe$ = LabelMargin$valueOf; function umInputLabel$lambda(closure$disabled, closure$disableAnimation, closure$htmlFor, closure$error, closure$id, closure$focused, closure$margin, closure$required, closure$shrink, closure$variant, closure$caption) { return function ($receiver) { if (closure$disabled != null) { var it = closure$disabled; $receiver.attrs.disabled = it; }$receiver.attrs.disableAnimation = closure$disableAnimation; if (closure$htmlFor != null) { var it_0 = closure$htmlFor; $receiver.attrs.htmlFor = it_0; }if (closure$error != null) { var it_1 = closure$error; $receiver.attrs.error = it_1; }$receiver.attrs.id = closure$id; if (closure$focused != null) { var it_2 = closure$focused; $receiver.attrs.focused = it_2; }if (closure$margin != null) { var it_3 = closure$margin; $receiver.attrs.margin = it_3.toString(); }if (closure$required != null) { var it_4 = closure$required; $receiver.attrs.required = it_4; }if (closure$shrink != null) { var it_5 = closure$shrink; if (it_5) { $receiver.attrs.shrink = it_5; }}$receiver.attrs.variant = closure$variant.toString(); $receiver.childList.add_11rb$(closure$caption); return Unit; }; } function umInputLabel($receiver, caption, htmlFor, id, required, disabled, error, focused, variant, shrink, disableAnimation, margin, component, className, handler) { if (htmlFor === void 0) htmlFor = null; if (id === void 0) id = null; if (required === void 0) required = null; if (disabled === void 0) disabled = null; if (error === void 0) error = null; if (focused === void 0) focused = null; if (variant === void 0) variant = FormControlVariant$standard_getInstance(); if (shrink === void 0) shrink = null; if (disableAnimation === void 0) disableAnimation = false; if (margin === void 0) margin = null; if (component === void 0) component = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_InputLabel.default, className, handler, umInputLabel$lambda(disabled, disableAnimation, htmlFor, error, id, focused, margin, required, shrink, variant, caption)); } function umInput$lambda$lambda(closure$onChange) { return function (it) { it.persist(); closure$onChange != null ? closure$onChange(it.nativeEvent) : null; return Unit; }; } function umInput$lambda$lambda_0(closure$onKeyDown) { return function (it) { closure$onKeyDown != null ? closure$onKeyDown(it) : null; return Unit; }; } function umInput$lambda$lambda_1(closure$onInput) { return function (it) { closure$onInput != null ? closure$onInput(it) : null; return Unit; }; } function umInput$lambda(closure$autoFocus, closure$defaultValue, closure$disabled, closure$disableUnderline, closure$error, closure$fullWidth, closure$id, closure$multiline, closure$name, closure$endAdornment, closure$onChange, closure$placeholder, closure$readOnly, closure$required, closure$rows, closure$rowsMax, closure$type, closure$value, closure$textColor, closure$onKeyDown, closure$onInput) { return function ($receiver) { if (closure$autoFocus != null) { var it = closure$autoFocus; $receiver.attrs.autoFocus = it; }if (closure$defaultValue != null) { var it_0 = closure$defaultValue; $receiver.attrs.defaultValue = it_0; }if (closure$disabled != null) { var it_1 = closure$disabled; $receiver.attrs.disabled = it_1; }if (closure$disableUnderline != null) { var it_2 = closure$disableUnderline; $receiver.attrs.disableUnderline = it_2; }if (closure$error != null) { var it_3 = closure$error; $receiver.attrs.error = it_3; }$receiver.attrs.fullWidth = closure$fullWidth; if (closure$id != null) { var it_4 = closure$id; $receiver.attrs.id = it_4; }$receiver.attrs.multiline = closure$multiline; if (closure$name != null) { var it_5 = closure$name; $receiver.attrs.name = it_5; }if (closure$endAdornment != null) { var it_6 = closure$endAdornment; $receiver.attrs.endAdornment = it_6; }$receiver.attrs.onChange = umInput$lambda$lambda(closure$onChange); if (closure$placeholder != null) { var it_7 = closure$placeholder; $receiver.attrs.placeholder = it_7; }if (closure$readOnly != null) { var it_8 = closure$readOnly; $receiver.attrs.readOnly = it_8; }if (closure$required != null) { var it_9 = closure$required; $receiver.attrs.required = it_9; }if (closure$rows != null) { var it_10 = closure$rows; $receiver.attrs.rows = it_10; }if (closure$rowsMax != null) { var it_11 = closure$rowsMax; $receiver.attrs.maxRows = it_11; }$receiver.attrs.type = closure$type.toString(); $receiver.attrs.color = '#fff'; $receiver.attrs.startAdornment = null; if (closure$value != null) { var it_12 = closure$value; $receiver.attrs.value = it_12; }var closure$textColor_0 = closure$textColor; set_color($receiver.css, closure$textColor_0); $receiver.attrs.onKeyDown = umInput$lambda$lambda_0(closure$onKeyDown); $receiver.attrs.onInput = umInput$lambda$lambda_1(closure$onInput); return Unit; }; } function umInput($receiver, value, required, disabled, readOnly, error, fullWidth, defaultValue, placeholder, disableUnderline, autoFocus, type, id, name, multiline, rows, textColor, rowsMax, onChange, onInput, onKeyDown, className, endAdornment, handler) { if (value === void 0) value = null; if (required === void 0) required = null; if (disabled === void 0) disabled = null; if (readOnly === void 0) readOnly = null; if (error === void 0) error = null; if (fullWidth === void 0) fullWidth = false; if (defaultValue === void 0) defaultValue = null; if (placeholder === void 0) placeholder = null; if (disableUnderline === void 0) disableUnderline = null; if (autoFocus === void 0) autoFocus = null; if (type === void 0) type = InputType$text; if (id === void 0) id = null; if (name === void 0) name = null; if (multiline === void 0) multiline = false; if (rows === void 0) rows = null; if (rowsMax === void 0) rowsMax = null; if (onChange === void 0) onChange = null; if (onInput === void 0) onInput = null; if (onKeyDown === void 0) onKeyDown = null; if (className === void 0) className = null; if (endAdornment === void 0) endAdornment = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Input.default, className, handler, umInput$lambda(autoFocus, defaultValue, disabled, disableUnderline, error, fullWidth, id, multiline, name, endAdornment, onChange, placeholder, readOnly, required, rows, rowsMax, type, value, textColor, onKeyDown, onInput)); } function umList$lambda(closure$component, closure$dense, closure$disablePadding, closure$subheader) { return function ($receiver) { $receiver.attrs.component = closure$component; $receiver.attrs.dense = closure$dense; $receiver.attrs.disablePadding = closure$disablePadding; if (closure$subheader != null) { var closure$subheader_0 = closure$subheader; $receiver.attrs.subheader = closure$subheader_0; }return Unit; }; } function umList($receiver, dense, disablePadding, subheader, component, className, handler) { if (dense === void 0) dense = false; if (disablePadding === void 0) disablePadding = false; if (subheader === void 0) subheader = null; if (component === void 0) component = 'ul'; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_List.default, className, handler, umList$lambda(component, dense, disablePadding, subheader)); } function ListItemAlignItems(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ListItemAlignItems_initFields() { ListItemAlignItems_initFields = function () { }; ListItemAlignItems$flexStart_instance = new ListItemAlignItems('flexStart', 0); ListItemAlignItems$center_instance = new ListItemAlignItems('center', 1); } var ListItemAlignItems$flexStart_instance; function ListItemAlignItems$flexStart_getInstance() { ListItemAlignItems_initFields(); return ListItemAlignItems$flexStart_instance; } var ListItemAlignItems$center_instance; function ListItemAlignItems$center_getInstance() { ListItemAlignItems_initFields(); return ListItemAlignItems$center_instance; } ListItemAlignItems.prototype.toString = function () { return hyphenize(Enum.prototype.toString.call(this)); }; ListItemAlignItems.$metadata$ = { kind: Kind_CLASS, simpleName: 'ListItemAlignItems', interfaces: [Enum] }; function ListItemAlignItems$values() { return [ListItemAlignItems$flexStart_getInstance(), ListItemAlignItems$center_getInstance()]; } ListItemAlignItems.values = ListItemAlignItems$values; function ListItemAlignItems$valueOf(name) { switch (name) { case 'flexStart': return ListItemAlignItems$flexStart_getInstance(); case 'center': return ListItemAlignItems$center_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ListItemAlignItems.' + name); } } ListItemAlignItems.valueOf_61zpoe$ = ListItemAlignItems$valueOf; function umListItem$lambda(closure$handler) { return function ($receiver) { if (closure$handler != null) closure$handler($receiver); return Unit; }; } function umListItem($receiver, selected, key, alignItems, divider, onClick, className, handler) { if (selected === void 0) selected = false; if (key === void 0) key = null; if (alignItems === void 0) alignItems = ListItemAlignItems$center_getInstance(); if (divider === void 0) divider = true; if (onClick === void 0) onClick = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return umListItem_0($receiver, true, void 0, void 0, selected, key, void 0, alignItems, void 0, void 0, void 0, divider, void 0, onClick, className, umListItem$lambda(handler)); } function umListItemWithIcon$lambda$lambda$lambda(closure$iconName) { return function ($receiver) { umIcon($receiver, closure$iconName); return Unit; }; } function umListItemWithIcon$lambda$lambda(closure$iconName) { return function ($receiver) { umAvatar($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, umListItemWithIcon$lambda$lambda$lambda(closure$iconName)); return Unit; }; } function umListItemWithIcon$lambda(closure$useAvatar, closure$iconName, closure$primaryText, closure$secondaryText, closure$handler) { return function ($receiver) { if (closure$useAvatar) { umListItemAvatar($receiver, void 0, umListItemWithIcon$lambda$lambda(closure$iconName)); } else { umListItemIcon($receiver, closure$iconName); } umListItemText($receiver, closure$primaryText, closure$secondaryText); if (closure$handler != null) closure$handler($receiver); return Unit; }; } function umListItemWithIcon($receiver, iconName, primaryText, secondaryText, selected, key, id, alignItems, divider, useAvatar, onClick, className, handler) { if (secondaryText === void 0) secondaryText = null; if (selected === void 0) selected = false; if (key === void 0) key = null; if (id === void 0) id = null; if (alignItems === void 0) alignItems = ListItemAlignItems$center_getInstance(); if (divider === void 0) divider = true; if (useAvatar === void 0) useAvatar = false; if (onClick === void 0) onClick = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return umListItem_0($receiver, true, void 0, void 0, selected, key, id, alignItems, void 0, void 0, void 0, divider, void 0, onClick, className, umListItemWithIcon$lambda(useAvatar, iconName, primaryText, secondaryText, handler)); } function mListItemWithAvatar$lambda$lambda(closure$avatarSrc) { return function ($receiver) { umAvatar($receiver, closure$avatarSrc); return Unit; }; } function mListItemWithAvatar$lambda(closure$avatarSrc, closure$primaryText, closure$secondaryText, closure$handler) { return function ($receiver) { umListItemAvatar($receiver, void 0, mListItemWithAvatar$lambda$lambda(closure$avatarSrc)); umListItemText($receiver, closure$primaryText, closure$secondaryText); if (closure$handler != null) closure$handler($receiver); return Unit; }; } function mListItemWithAvatar($receiver, avatarSrc, primaryText, secondaryText, selected, id, key, alignItems, divider, onClick, className, handler) { if (secondaryText === void 0) secondaryText = null; if (selected === void 0) selected = false; if (id === void 0) id = null; if (key === void 0) key = null; if (alignItems === void 0) alignItems = ListItemAlignItems$center_getInstance(); if (divider === void 0) divider = true; if (onClick === void 0) onClick = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return umListItem_0($receiver, true, void 0, void 0, selected, key, id, alignItems, void 0, void 0, void 0, divider, void 0, onClick, className, mListItemWithAvatar$lambda(avatarSrc, primaryText, secondaryText, handler)); } function umListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick != null ? closure$onClick(it) : null; return Unit; }; } function umListItem$lambda_0(closure$alignItems, closure$autoFocus, closure$button, closure$component, closure$containerComponent, closure$containerProps, closure$dense, closure$disableGutters, closure$divider, closure$onClick, closure$id, closure$selected, closure$key) { return function ($receiver) { var tmp$; $receiver.attrs.alignItems = closure$alignItems.toString(); $receiver.attrs.autoFocus = closure$autoFocus; $receiver.attrs.button = closure$button; if (closure$component != null) { var closure$component_0 = closure$component; $receiver.attrs.component = closure$component_0; }$receiver.attrs.ContainerComponent = Kotlin.isType(tmp$ = closure$containerComponent, Object) ? tmp$ : throwCCE(); if (closure$containerProps != null) { var closure$containerProps_0 = closure$containerProps; $receiver.attrs.ContainerProps = closure$containerProps_0; }$receiver.attrs.dense = closure$dense; $receiver.attrs.disableGutters = closure$disableGutters; $receiver.attrs.divider = closure$divider; $receiver.attrs.onClick = umListItem$lambda$lambda(closure$onClick); if (closure$id != null) { var it = closure$id; $receiver.attrs.id = it; }$receiver.attrs.selected = closure$selected; if (closure$key != null) { var closure$key_0 = closure$key; $receiver.attrs.key = closure$key_0; }$receiver.attrs.selected = closure$selected; return Unit; }; } function umListItem_0($receiver, button, component, containerComponent, selected, key, id, alignItems, containerProps, dense, disableGutters, divider, autoFocus, onClick, className, handler) { if (button === void 0) button = false; if (component === void 0) component = null; if (containerComponent === void 0) containerComponent = 'li'; if (selected === void 0) selected = false; if (key === void 0) key = null; if (id === void 0) id = null; if (alignItems === void 0) alignItems = ListItemAlignItems$center_getInstance(); if (containerProps === void 0) containerProps = null; if (dense === void 0) dense = false; if (disableGutters === void 0) disableGutters = false; if (divider === void 0) divider = false; if (autoFocus === void 0) autoFocus = false; if (onClick === void 0) onClick = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_ListItem.default, className, handler, umListItem$lambda_0(alignItems, autoFocus, button, component, containerComponent, containerProps, dense, disableGutters, divider, onClick, id, selected, key)); } function umListItemAvatar($receiver, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_ListItemAvatar.default, className, handler); } function umListItemAvatar$lambda(closure$src, closure$srcSet, closure$alt, closure$variant, closure$imgProps, closure$sizes) { return function ($receiver) { umAvatar($receiver, closure$src, closure$srcSet, closure$alt, closure$variant, closure$imgProps, closure$sizes); return Unit; }; } function umListItemAvatar_0($receiver, src, alt, srcSet, variant, imgProps, sizes, className, handler) { if (src === void 0) src = null; if (alt === void 0) alt = null; if (srcSet === void 0) srcSet = null; if (variant === void 0) variant = AvatarVariant$circular_getInstance(); if (imgProps === void 0) imgProps = null; if (sizes === void 0) sizes = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_ListItemAvatar.default, className, handler, umListItemAvatar$lambda(src, srcSet, alt, variant, imgProps, sizes)); } function umListItemIcon$lambda(closure$iconName) { return function ($receiver) { if (closure$iconName != null) { umIcon($receiver, closure$iconName); }return Unit; }; } function umListItemIcon($receiver, iconName, className, handler) { if (iconName === void 0) iconName = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_ListItemIcon.default, className, handler, umListItemIcon$lambda(iconName)); } function umListItemText($receiver, primary, secondary, inset, disableTypography, className, handler) { if (secondary === void 0) secondary = null; if (inset === void 0) inset = false; if (disableTypography === void 0) disableTypography = false; if (className === void 0) className = null; if (handler === void 0) handler = null; return listIstItemText($receiver, primary, secondary != null ? secondary : null, inset, disableTypography, className, handler); } function listIstItemText$lambda(closure$disableTypography, closure$inset, closure$primary, closure$secondary) { return function ($receiver) { $receiver.attrs.disableTypography = closure$disableTypography; $receiver.attrs.inset = closure$inset; if (closure$primary != null) { var closure$primary_0 = closure$primary; $receiver.attrs.primary = closure$primary_0; }if (closure$secondary != null) { var closure$secondary_0 = closure$secondary; $receiver.attrs.secondary = closure$secondary_0; }return Unit; }; } function listIstItemText($receiver, primary, secondary, inset, disableTypography, className, handler) { if (primary === void 0) primary = null; if (secondary === void 0) secondary = null; if (inset === void 0) inset = false; if (disableTypography === void 0) disableTypography = false; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_ListItemText.default, className, handler, listIstItemText$lambda(disableTypography, inset, primary, secondary)); } function useMediaQueryRaw(query, options) { return $module$_mui_material_useMediaQuery.default(query, options); } function useMediaQuery(query, defaultMatches, matchMedia, noSsr, ssrMatchMedia) { if (defaultMatches === void 0) defaultMatches = null; if (matchMedia === void 0) matchMedia = null; if (noSsr === void 0) noSsr = null; if (ssrMatchMedia === void 0) ssrMatchMedia = null; return useMediaQueryRaw(query, convertOptions(defaultMatches, matchMedia, noSsr, ssrMatchMedia)); } function useMediaQuery_0(query, defaultMatches, matchMedia, noSsr, ssrMatchMedia) { if (defaultMatches === void 0) defaultMatches = null; if (matchMedia === void 0) matchMedia = null; if (noSsr === void 0) noSsr = null; if (ssrMatchMedia === void 0) ssrMatchMedia = null; return useMediaQueryRaw(query, convertOptions(defaultMatches, matchMedia, noSsr, ssrMatchMedia)); } function convertOptions(defaultMatches, matchMedia, noSsr, ssrMatchMedia) { var $receiver = {}; if (defaultMatches != null) { $receiver.defaultMatches = defaultMatches; }if (matchMedia != null) { $receiver.matchMedia = matchMedia; }if (noSsr != null) { $receiver.noSsr = noSsr; }if (ssrMatchMedia != null) { $receiver.ssrMatchMedia = ssrMatchMedia; }return $receiver; } function MenuVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function MenuVariant_initFields() { MenuVariant_initFields = function () { }; MenuVariant$menu_instance = new MenuVariant('menu', 0); MenuVariant$selectedMenu_instance = new MenuVariant('selectedMenu', 1); } var MenuVariant$menu_instance; function MenuVariant$menu_getInstance() { MenuVariant_initFields(); return MenuVariant$menu_instance; } var MenuVariant$selectedMenu_instance; function MenuVariant$selectedMenu_getInstance() { MenuVariant_initFields(); return MenuVariant$selectedMenu_instance; } MenuVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'MenuVariant', interfaces: [Enum] }; function MenuVariant$values() { return [MenuVariant$menu_getInstance(), MenuVariant$selectedMenu_getInstance()]; } MenuVariant.values = MenuVariant$values; function MenuVariant$valueOf(name) { switch (name) { case 'menu': return MenuVariant$menu_getInstance(); case 'selectedMenu': return MenuVariant$selectedMenu_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.MenuVariant.' + name); } } MenuVariant.valueOf_61zpoe$ = MenuVariant$valueOf; function umMenu$lambda$lambda(closure$onClose) { return function () { return closure$onClose != null ? closure$onClose() : null; }; } function umMenu$lambda(closure$open, closure$onClose, closure$variant, closure$anchorElement) { return function ($receiver) { $receiver.attrs.open = closure$open; $receiver.attrs.onClose = umMenu$lambda$lambda(closure$onClose); $receiver.attrs.MenuListProps = json([to('aria-labelledby', 'basic-button')]); $receiver.attrs.variant = closure$variant.toString(); if (closure$anchorElement != null) { var it = closure$anchorElement; $receiver.attrs.anchorEl = it; }return Unit; }; } function umMenu($receiver, open, anchorElement, onClose, className, variant, handler) { if (anchorElement === void 0) anchorElement = null; if (onClose === void 0) onClose = null; if (className === void 0) className = null; if (variant === void 0) variant = MenuVariant$menu_getInstance(); if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Menu.default, className, handler, umMenu$lambda(open, onClose, variant, anchorElement)); } function umMenuItem$lambda(closure$secondaryText, closure$primaryText, closure$handler) { return function ($receiver) { if (closure$secondaryText == null) { $receiver.unaryPlus_pdl1vz$(closure$primaryText); } else { umListItemText($receiver, closure$primaryText, closure$secondaryText); } if (closure$handler != null) closure$handler($receiver); return Unit; }; } function umMenuItem($receiver, primaryText, secondaryText, selected, key, value, divider, disabled, onClick, className, handler) { if (secondaryText === void 0) secondaryText = null; if (selected === void 0) selected = false; if (key === void 0) key = null; if (value === void 0) value = null; if (divider === void 0) divider = false; if (disabled === void 0) disabled = false; if (onClick === void 0) onClick = null; if (className === void 0) className = null; if (handler === void 0) handler = null; umMenuItem_0($receiver, selected, true, void 0, void 0, key, value, divider, disabled, void 0, void 0, void 0, onClick, className, umMenuItem$lambda(secondaryText, primaryText, handler)); } function umMenuItem$lambda$lambda(closure$onClick) { return function (it) { closure$onClick != null ? closure$onClick(it.nativeEvent) : null; return Unit; }; } function umMenuItem$lambda_0(closure$button, closure$component, closure$containerComponent, closure$containerProps, closure$dense, closure$disabled, closure$disableGutters, closure$divider, closure$onClick, closure$key, closure$selected, closure$value) { return function ($receiver) { $receiver.attrs.button = closure$button; if (closure$component != null) { var it = closure$component; $receiver.attrs.component = it; }$receiver.attrs.containerComponent = closure$containerComponent; if (closure$containerProps != null) { var it_0 = closure$containerProps; $receiver.attrs.containerProps = it_0; }$receiver.attrs.dense = closure$dense; $receiver.attrs.disabled = closure$disabled; $receiver.attrs.disableGutters = closure$disableGutters; $receiver.attrs.divider = closure$divider; $receiver.attrs.onClick = umMenuItem$lambda$lambda(closure$onClick); if (closure$key != null) { var it_1 = closure$key; $receiver.attrs.key = it_1; }$receiver.attrs.selected = closure$selected; if (closure$value != null) { var it_2 = closure$value; $receiver.attrs.value = it_2; }return Unit; }; } function umMenuItem_0($receiver, selected, button, component, containerComponent, key, value, divider, disabled, containerProps, dense, disableGutters, onClick, className, handler) { if (selected === void 0) selected = false; if (button === void 0) button = false; if (component === void 0) component = null; if (containerComponent === void 0) containerComponent = 'li'; if (key === void 0) key = null; if (value === void 0) value = null; if (divider === void 0) divider = false; if (disabled === void 0) disabled = false; if (containerProps === void 0) containerProps = null; if (dense === void 0) dense = false; if (disableGutters === void 0) disableGutters = false; if (onClick === void 0) onClick = null; if (className === void 0) className = null; if (handler === void 0) handler = null; createStyledComponent($receiver, $module$_mui_material_MenuItem.default, className, handler, umMenuItem$lambda_0(button, component, containerComponent, containerProps, dense, disabled, disableGutters, divider, onClick, key, selected, value)); } function umOutlinedInput$lambda$lambda(closure$onChange) { return function (it) { closure$onChange != null ? closure$onChange(it.target.value.toString()) : null; return Unit; }; } function umOutlinedInput$lambda(closure$autoFocus, closure$defaultValue, closure$disabled, closure$error, closure$label, closure$fullWidth, closure$id, closure$multiline, closure$name, closure$notched, closure$onChange, closure$placeholder, closure$readOnly, closure$required, closure$rows, closure$rowsMax, closure$type, closure$value) { return function ($receiver) { if (closure$autoFocus != null) { var it = closure$autoFocus; $receiver.attrs.autoFocus = it; }if (closure$defaultValue != null) { var it_0 = closure$defaultValue; $receiver.attrs.defaultValue = it_0; }if (closure$disabled != null) { var it_1 = closure$disabled; $receiver.attrs.disabled = it_1; }if (closure$error != null) { var it_2 = closure$error; $receiver.attrs.error = it_2; }if (closure$label != null) { var it_3 = closure$label; $receiver.attrs.label = it_3; }$receiver.attrs.fullWidth = closure$fullWidth; if (closure$id != null) { var it_4 = closure$id; $receiver.attrs.id = it_4; }$receiver.attrs.multiline = closure$multiline; if (closure$name != null) { var it_5 = closure$name; $receiver.attrs.name = it_5; }if (closure$notched != null) { var it_6 = closure$notched; $receiver.attrs.notched = it_6; }$receiver.attrs.onChange = umOutlinedInput$lambda$lambda(closure$onChange); if (closure$placeholder != null) { var it_7 = closure$placeholder; $receiver.attrs.placeholder = it_7; }if (closure$readOnly != null) { var it_8 = closure$readOnly; $receiver.attrs.readOnly = it_8; }if (closure$required != null) { var it_9 = closure$required; $receiver.attrs.required = it_9; }if (closure$rows != null) { var it_10 = closure$rows; $receiver.attrs.rows = it_10; }if (closure$rowsMax != null) { var it_11 = closure$rowsMax; $receiver.attrs.maxRows = it_11; }$receiver.attrs.type = closure$type.toString(); if (closure$value != null) { var it_12 = closure$value; $receiver.attrs.value = it_12; }return Unit; }; } function umOutlinedInput($receiver, value, required, label, disabled, readOnly, error, fullWidth, defaultValue, placeholder, notched, autoFocus, type, id, name, multiline, rows, rowsMax, onChange, className, handler) { if (value === void 0) value = null; if (required === void 0) required = null; if (label === void 0) label = null; if (disabled === void 0) disabled = null; if (readOnly === void 0) readOnly = null; if (error === void 0) error = null; if (fullWidth === void 0) fullWidth = false; if (defaultValue === void 0) defaultValue = null; if (placeholder === void 0) placeholder = null; if (notched === void 0) notched = null; if (autoFocus === void 0) autoFocus = null; if (type === void 0) type = InputType$text; if (id === void 0) id = null; if (name === void 0) name = null; if (multiline === void 0) multiline = false; if (rows === void 0) rows = null; if (rowsMax === void 0) rowsMax = null; if (onChange === void 0) onChange = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_OutlinedInput.default, className, handler, umOutlinedInput$lambda(autoFocus, defaultValue, disabled, error, label, fullWidth, id, multiline, name, notched, onChange, placeholder, readOnly, required, rows, rowsMax, type, value)); } function PaperVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function PaperVariant_initFields() { PaperVariant_initFields = function () { }; PaperVariant$elevation_instance = new PaperVariant('elevation', 0); PaperVariant$outlined_instance = new PaperVariant('outlined', 1); } var PaperVariant$elevation_instance; function PaperVariant$elevation_getInstance() { PaperVariant_initFields(); return PaperVariant$elevation_instance; } var PaperVariant$outlined_instance; function PaperVariant$outlined_getInstance() { PaperVariant_initFields(); return PaperVariant$outlined_instance; } PaperVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'PaperVariant', interfaces: [Enum] }; function PaperVariant$values() { return [PaperVariant$elevation_getInstance(), PaperVariant$outlined_getInstance()]; } PaperVariant.values = PaperVariant$values; function PaperVariant$valueOf(name) { switch (name) { case 'elevation': return PaperVariant$elevation_getInstance(); case 'outlined': return PaperVariant$outlined_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.PaperVariant.' + name); } } PaperVariant.valueOf_61zpoe$ = PaperVariant$valueOf; function umPaper$lambda(closure$elevation, closure$square, closure$variant) { return function ($receiver) { $receiver.attrs.elevation = closure$elevation; $receiver.attrs.square = closure$square; $receiver.attrs.variant = closure$variant.toString(); return Unit; }; } function umPaper($receiver, elevation, square, variant, className, handler) { if (elevation === void 0) elevation = 2; if (square === void 0) square = false; if (variant === void 0) variant = PaperVariant$elevation_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Paper.default, className, handler, umPaper$lambda(elevation, square, variant)); } function ProgressVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ProgressVariant_initFields() { ProgressVariant_initFields = function () { }; ProgressVariant$determinate_instance = new ProgressVariant('determinate', 0); ProgressVariant$indeterminate_instance = new ProgressVariant('indeterminate', 1); ProgressVariant$buffer_instance = new ProgressVariant('buffer', 2); ProgressVariant$query_instance = new ProgressVariant('query', 3); } var ProgressVariant$determinate_instance; function ProgressVariant$determinate_getInstance() { ProgressVariant_initFields(); return ProgressVariant$determinate_instance; } var ProgressVariant$indeterminate_instance; function ProgressVariant$indeterminate_getInstance() { ProgressVariant_initFields(); return ProgressVariant$indeterminate_instance; } var ProgressVariant$buffer_instance; function ProgressVariant$buffer_getInstance() { ProgressVariant_initFields(); return ProgressVariant$buffer_instance; } var ProgressVariant$query_instance; function ProgressVariant$query_getInstance() { ProgressVariant_initFields(); return ProgressVariant$query_instance; } ProgressVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'ProgressVariant', interfaces: [Enum] }; function ProgressVariant$values() { return [ProgressVariant$determinate_getInstance(), ProgressVariant$indeterminate_getInstance(), ProgressVariant$buffer_getInstance(), ProgressVariant$query_getInstance()]; } ProgressVariant.values = ProgressVariant$values; function ProgressVariant$valueOf(name) { switch (name) { case 'determinate': return ProgressVariant$determinate_getInstance(); case 'indeterminate': return ProgressVariant$indeterminate_getInstance(); case 'buffer': return ProgressVariant$buffer_getInstance(); case 'query': return ProgressVariant$query_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ProgressVariant.' + name); } } ProgressVariant.valueOf_61zpoe$ = ProgressVariant$valueOf; function umLinearProgress$lambda(closure$color, closure$variant, closure$value, closure$valueBuffer) { return function ($receiver) { $receiver.attrs.color = closure$color.toString(); $receiver.attrs.variant = closure$variant.toString(); $receiver.attrs.value = closure$value; $receiver.attrs.valueBuffer = closure$valueBuffer; return Unit; }; } function umLinearProgress($receiver, value, valueBuffer, variant, color, className, handler) { if (value === void 0) value = null; if (valueBuffer === void 0) valueBuffer = null; if (variant === void 0) variant = ProgressVariant$indeterminate_getInstance(); if (color === void 0) color = UMColor$primary_getInstance(); if (className === void 0) className = null; return createStyledComponent($receiver, $module$_mui_material_LinearProgress.default, className, handler, umLinearProgress$lambda(color, variant, value, valueBuffer)); } function umCircularProgress$lambda(closure$color, closure$variant, closure$value, closure$size, closure$thickness) { return function ($receiver) { $receiver.attrs.color = closure$color.toString(); $receiver.attrs.variant = closure$variant.toString(); $receiver.attrs.value = closure$value; $receiver.attrs.size = closure$size; $receiver.attrs.thickness = closure$thickness; return Unit; }; } function umCircularProgress($receiver, value, variant, color, size, thickness, className, handler) { if (value === void 0) value = null; if (variant === void 0) variant = ProgressVariant$indeterminate_getInstance(); if (color === void 0) color = UMColor$primary_getInstance(); if (size === void 0) size = 40; if (thickness === void 0) thickness = 3.6; if (className === void 0) className = null; return createStyledComponent($receiver, $module$_mui_material_CircularProgress.default, className, handler, umCircularProgress$lambda(color, variant, value, size, thickness)); } function SnackbarHorizAnchor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function SnackbarHorizAnchor_initFields() { SnackbarHorizAnchor_initFields = function () { }; SnackbarHorizAnchor$left_instance = new SnackbarHorizAnchor('left', 0); SnackbarHorizAnchor$center_instance = new SnackbarHorizAnchor('center', 1); SnackbarHorizAnchor$right_instance = new SnackbarHorizAnchor('right', 2); } var SnackbarHorizAnchor$left_instance; function SnackbarHorizAnchor$left_getInstance() { SnackbarHorizAnchor_initFields(); return SnackbarHorizAnchor$left_instance; } var SnackbarHorizAnchor$center_instance; function SnackbarHorizAnchor$center_getInstance() { SnackbarHorizAnchor_initFields(); return SnackbarHorizAnchor$center_instance; } var SnackbarHorizAnchor$right_instance; function SnackbarHorizAnchor$right_getInstance() { SnackbarHorizAnchor_initFields(); return SnackbarHorizAnchor$right_instance; } SnackbarHorizAnchor.$metadata$ = { kind: Kind_CLASS, simpleName: 'SnackbarHorizAnchor', interfaces: [Enum] }; function SnackbarHorizAnchor$values() { return [SnackbarHorizAnchor$left_getInstance(), SnackbarHorizAnchor$center_getInstance(), SnackbarHorizAnchor$right_getInstance()]; } SnackbarHorizAnchor.values = SnackbarHorizAnchor$values; function SnackbarHorizAnchor$valueOf(name) { switch (name) { case 'left': return SnackbarHorizAnchor$left_getInstance(); case 'center': return SnackbarHorizAnchor$center_getInstance(); case 'right': return SnackbarHorizAnchor$right_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.SnackbarHorizAnchor.' + name); } } SnackbarHorizAnchor.valueOf_61zpoe$ = SnackbarHorizAnchor$valueOf; function umSnackbar$lambda$lambda(closure$onClose) { return function (event, reason) { closure$onClose != null ? closure$onClose() : null; return Unit; }; } function umSnackbar$lambda(closure$autoHideDuration, closure$horizAnchor, closure$key, closure$message, closure$onClose, closure$open, closure$resumeHideDuration) { return function ($receiver) { if (closure$autoHideDuration != null) { var it = closure$autoHideDuration; $receiver.attrs.autoHideDuration = it; }$receiver.attrs.anchorOrigin = json([to('vertical', 'bottom'), to('horizontal', closure$horizAnchor.toString())]); $receiver.attrs.key = 'horizontal+' + closure$horizAnchor; if (closure$key != null) { var it_0 = closure$key; $receiver.attrs.key = it_0; }if (closure$message != null) { var closure$message_0 = closure$message; $receiver.attrs.message = closure$message_0; }$receiver.attrs.onClose = umSnackbar$lambda$lambda(closure$onClose); if (closure$open != null) { var it_1 = closure$open; $receiver.attrs.open = it_1; }if (closure$resumeHideDuration != null) { var it_2 = closure$resumeHideDuration; $receiver.attrs.resumeHideDuration = it_2; }return Unit; }; } function umSnackbar($receiver, message, open, onClose, horizAnchor, key, autoHideDuration, resumeHideDuration, className, handler) { if (open === void 0) open = null; if (onClose === void 0) onClose = null; if (horizAnchor === void 0) horizAnchor = SnackbarHorizAnchor$center_getInstance(); if (key === void 0) key = null; if (autoHideDuration === void 0) autoHideDuration = null; if (resumeHideDuration === void 0) resumeHideDuration = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Snackbar.default, className, handler, umSnackbar$lambda(autoHideDuration, horizAnchor, key, message, onClose, open, resumeHideDuration)); } function umSnackbar_0($receiver, message, open, onClose, horizAnchor, key, autoHideDuration, resumeHideDuration, className, handler) { if (open === void 0) open = null; if (onClose === void 0) onClose = null; if (horizAnchor === void 0) horizAnchor = SnackbarHorizAnchor$center_getInstance(); if (key === void 0) key = null; if (autoHideDuration === void 0) autoHideDuration = null; if (resumeHideDuration === void 0) resumeHideDuration = null; if (className === void 0) className = null; if (handler === void 0) handler = null; var dynamicElement = message; umSnackbar($receiver, dynamicElement, open, onClose, horizAnchor, key, autoHideDuration, resumeHideDuration, className, handler); } var SortableListComponent; var SortableItemComponent; var SortableHandleComponent; function umSortableList$lambda(closure$onSortEnd, closure$useDragHandle) { return function ($receiver) { if (closure$onSortEnd != null) { var it = closure$onSortEnd; $receiver.attrs.onSortEnd = it; }$receiver.attrs.allowDrag = closure$useDragHandle; $receiver.create(); return Unit; }; } function umSortableList($receiver, onSortEnd, useDragHandle, className, handler) { if (useDragHandle === void 0) useDragHandle = true; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, SortableListComponent, className, handler, umSortableList$lambda(onSortEnd, useDragHandle)); } function umSortableItem$lambda(closure$key) { return function ($receiver) { $receiver.attrs.key = closure$key; return Unit; }; } function umSortableItem($receiver, key, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, SortableItemComponent, className, handler, umSortableItem$lambda(key)); } function umSortableKnob($receiver, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, SortableHandleComponent, className, handler); } function SwitchSize(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function SwitchSize_initFields() { SwitchSize_initFields = function () { }; SwitchSize$small_instance = new SwitchSize('small', 0); SwitchSize$medium_instance = new SwitchSize('medium', 1); } var SwitchSize$small_instance; function SwitchSize$small_getInstance() { SwitchSize_initFields(); return SwitchSize$small_instance; } var SwitchSize$medium_instance; function SwitchSize$medium_getInstance() { SwitchSize_initFields(); return SwitchSize$medium_instance; } SwitchSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'SwitchSize', interfaces: [Enum] }; function SwitchSize$values() { return [SwitchSize$small_getInstance(), SwitchSize$medium_getInstance()]; } SwitchSize.values = SwitchSize$values; function SwitchSize$valueOf(name) { switch (name) { case 'small': return SwitchSize$small_getInstance(); case 'medium': return SwitchSize$medium_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.SwitchSize.' + name); } } SwitchSize.valueOf_61zpoe$ = SwitchSize$valueOf; function umSwitch$lambda(closure$checked, closure$disabled, closure$size, closure$color) { return function ($receiver) { $receiver.attrs.checked = closure$checked; $receiver.attrs.disabled = closure$disabled; $receiver.attrs.size = closure$size.toString(); if (closure$color != null) { var it = closure$color; $receiver.attrs.color = it.toString(); }return Unit; }; } function umSwitch($receiver, checked, disabled, color, size, className, handler) { if (checked === void 0) checked = false; if (disabled === void 0) disabled = false; if (color === void 0) color = UMColor$secondary_getInstance(); if (size === void 0) size = SwitchSize$medium_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Switch.default, className, handler, umSwitch$lambda(checked, disabled, size, color)); } function TableSize(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TableSize_initFields() { TableSize_initFields = function () { }; TableSize$small_instance = new TableSize('small', 0); TableSize$medium_instance = new TableSize('medium', 1); TableSize$large_instance = new TableSize('large', 2); } var TableSize$small_instance; function TableSize$small_getInstance() { TableSize_initFields(); return TableSize$small_instance; } var TableSize$medium_instance; function TableSize$medium_getInstance() { TableSize_initFields(); return TableSize$medium_instance; } var TableSize$large_instance; function TableSize$large_getInstance() { TableSize_initFields(); return TableSize$large_instance; } TableSize.prototype.toString = function () { return hyphenize(Enum.prototype.toString.call(this)); }; TableSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'TableSize', interfaces: [Enum] }; function TableSize$values() { return [TableSize$small_getInstance(), TableSize$medium_getInstance(), TableSize$large_getInstance()]; } TableSize.values = TableSize$values; function TableSize$valueOf(name) { switch (name) { case 'small': return TableSize$small_getInstance(); case 'medium': return TableSize$medium_getInstance(); case 'large': return TableSize$large_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TableSize.' + name); } } TableSize.valueOf_61zpoe$ = TableSize$valueOf; function TablePadding(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TablePadding_initFields() { TablePadding_initFields = function () { }; TablePadding$normal_instance = new TablePadding('normal', 0); TablePadding$checkbox_instance = new TablePadding('checkbox', 1); TablePadding$none_instance = new TablePadding('none', 2); } var TablePadding$normal_instance; function TablePadding$normal_getInstance() { TablePadding_initFields(); return TablePadding$normal_instance; } var TablePadding$checkbox_instance; function TablePadding$checkbox_getInstance() { TablePadding_initFields(); return TablePadding$checkbox_instance; } var TablePadding$none_instance; function TablePadding$none_getInstance() { TablePadding_initFields(); return TablePadding$none_instance; } TablePadding.prototype.toString = function () { return hyphenize(Enum.prototype.toString.call(this)); }; TablePadding.$metadata$ = { kind: Kind_CLASS, simpleName: 'TablePadding', interfaces: [Enum] }; function TablePadding$values() { return [TablePadding$normal_getInstance(), TablePadding$checkbox_getInstance(), TablePadding$none_getInstance()]; } TablePadding.values = TablePadding$values; function TablePadding$valueOf(name) { switch (name) { case 'normal': return TablePadding$normal_getInstance(); case 'checkbox': return TablePadding$checkbox_getInstance(); case 'none': return TablePadding$none_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TablePadding.' + name); } } TablePadding.valueOf_61zpoe$ = TablePadding$valueOf; function umTable$lambda(closure$padding, closure$size, closure$stickyHeader) { return function ($receiver) { $receiver.attrs.padding = closure$padding.toString(); $receiver.attrs.size = closure$size.toString(); $receiver.attrs.stickyHeader = closure$stickyHeader; return Unit; }; } function umTable($receiver, stickyHeader, size, padding, className, handler) { if (stickyHeader === void 0) stickyHeader = false; if (size === void 0) size = TableSize$medium_getInstance(); if (padding === void 0) padding = TablePadding$normal_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Table.default, className, handler, umTable$lambda(padding, size, stickyHeader)); } function umTableBody$lambda($receiver) { return Unit; } function umTableBody($receiver, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TableBody.default, className, handler, umTableBody$lambda); } function umTableHead$lambda($receiver) { return Unit; } function umTableHead($receiver, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TableHead.default, className, handler, umTableHead$lambda); } function umTableRow$lambda(closure$hover, closure$selected) { return function ($receiver) { $receiver.attrs.hover = closure$hover; $receiver.attrs.selected = closure$selected; return Unit; }; } function umTableRow($receiver, className, hover, selected, handler) { if (className === void 0) className = null; if (hover === void 0) hover = false; if (selected === void 0) selected = false; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TableRow.default, className, handler, umTableRow$lambda(hover, selected)); } function umTableCell$lambda(closure$padding, closure$size, closure$align, closure$scope, closure$colSpan) { return function ($receiver) { $receiver.attrs.padding = closure$padding.toString(); $receiver.attrs.size = closure$size.toString(); $receiver.attrs.align = closure$align.toString(); $receiver.attrs.scope = closure$scope; $receiver.attrs.colSpan = closure$colSpan.toString(); return Unit; }; } function umTableCell($receiver, align, padding, scope, colSpan, size, className, handler) { if (align === void 0) align = Align.inherit; if (padding === void 0) padding = TablePadding$normal_getInstance(); if (scope === void 0) scope = 'row'; if (colSpan === void 0) colSpan = 1; if (size === void 0) size = TableSize$medium_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TableCell.default, className, handler, umTableCell$lambda(padding, size, align, scope, colSpan)); } function umTableContainer$lambda($receiver) { return Unit; } function umTableContainer($receiver, className, handler) { if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TableContainer.default, className, handler, umTableContainer$lambda); } function TabTextColor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TabTextColor_initFields() { TabTextColor_initFields = function () { }; TabTextColor$secondary_instance = new TabTextColor('secondary', 0); TabTextColor$primary_instance = new TabTextColor('primary', 1); TabTextColor$inherit_instance = new TabTextColor('inherit', 2); } var TabTextColor$secondary_instance; function TabTextColor$secondary_getInstance() { TabTextColor_initFields(); return TabTextColor$secondary_instance; } var TabTextColor$primary_instance; function TabTextColor$primary_getInstance() { TabTextColor_initFields(); return TabTextColor$primary_instance; } var TabTextColor$inherit_instance; function TabTextColor$inherit_getInstance() { TabTextColor_initFields(); return TabTextColor$inherit_instance; } TabTextColor.$metadata$ = { kind: Kind_CLASS, simpleName: 'TabTextColor', interfaces: [Enum] }; function TabTextColor$values() { return [TabTextColor$secondary_getInstance(), TabTextColor$primary_getInstance(), TabTextColor$inherit_getInstance()]; } TabTextColor.values = TabTextColor$values; function TabTextColor$valueOf(name) { switch (name) { case 'secondary': return TabTextColor$secondary_getInstance(); case 'primary': return TabTextColor$primary_getInstance(); case 'inherit': return TabTextColor$inherit_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TabTextColor.' + name); } } TabTextColor.valueOf_61zpoe$ = TabTextColor$valueOf; function TabScrollButtons(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TabScrollButtons_initFields() { TabScrollButtons_initFields = function () { }; TabScrollButtons$auto_instance = new TabScrollButtons('auto', 0); TabScrollButtons$desktop_instance = new TabScrollButtons('desktop', 1); TabScrollButtons$on_instance = new TabScrollButtons('on', 2); TabScrollButtons$off_instance = new TabScrollButtons('off', 3); } var TabScrollButtons$auto_instance; function TabScrollButtons$auto_getInstance() { TabScrollButtons_initFields(); return TabScrollButtons$auto_instance; } var TabScrollButtons$desktop_instance; function TabScrollButtons$desktop_getInstance() { TabScrollButtons_initFields(); return TabScrollButtons$desktop_instance; } var TabScrollButtons$on_instance; function TabScrollButtons$on_getInstance() { TabScrollButtons_initFields(); return TabScrollButtons$on_instance; } var TabScrollButtons$off_instance; function TabScrollButtons$off_getInstance() { TabScrollButtons_initFields(); return TabScrollButtons$off_instance; } TabScrollButtons.$metadata$ = { kind: Kind_CLASS, simpleName: 'TabScrollButtons', interfaces: [Enum] }; function TabScrollButtons$values() { return [TabScrollButtons$auto_getInstance(), TabScrollButtons$desktop_getInstance(), TabScrollButtons$on_getInstance(), TabScrollButtons$off_getInstance()]; } TabScrollButtons.values = TabScrollButtons$values; function TabScrollButtons$valueOf(name) { switch (name) { case 'auto': return TabScrollButtons$auto_getInstance(); case 'desktop': return TabScrollButtons$desktop_getInstance(); case 'on': return TabScrollButtons$on_getInstance(); case 'off': return TabScrollButtons$off_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TabScrollButtons.' + name); } } TabScrollButtons.valueOf_61zpoe$ = TabScrollButtons$valueOf; function TabIndicatorColor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TabIndicatorColor_initFields() { TabIndicatorColor_initFields = function () { }; TabIndicatorColor$secondary_instance = new TabIndicatorColor('secondary', 0); TabIndicatorColor$primary_instance = new TabIndicatorColor('primary', 1); } var TabIndicatorColor$secondary_instance; function TabIndicatorColor$secondary_getInstance() { TabIndicatorColor_initFields(); return TabIndicatorColor$secondary_instance; } var TabIndicatorColor$primary_instance; function TabIndicatorColor$primary_getInstance() { TabIndicatorColor_initFields(); return TabIndicatorColor$primary_instance; } TabIndicatorColor.$metadata$ = { kind: Kind_CLASS, simpleName: 'TabIndicatorColor', interfaces: [Enum] }; function TabIndicatorColor$values() { return [TabIndicatorColor$secondary_getInstance(), TabIndicatorColor$primary_getInstance()]; } TabIndicatorColor.values = TabIndicatorColor$values; function TabIndicatorColor$valueOf(name) { switch (name) { case 'secondary': return TabIndicatorColor$secondary_getInstance(); case 'primary': return TabIndicatorColor$primary_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TabIndicatorColor.' + name); } } TabIndicatorColor.valueOf_61zpoe$ = TabIndicatorColor$valueOf; function TabVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TabVariant_initFields() { TabVariant_initFields = function () { }; TabVariant$standard_instance = new TabVariant('standard', 0); TabVariant$scrollable_instance = new TabVariant('scrollable', 1); TabVariant$fullWidth_instance = new TabVariant('fullWidth', 2); } var TabVariant$standard_instance; function TabVariant$standard_getInstance() { TabVariant_initFields(); return TabVariant$standard_instance; } var TabVariant$scrollable_instance; function TabVariant$scrollable_getInstance() { TabVariant_initFields(); return TabVariant$scrollable_instance; } var TabVariant$fullWidth_instance; function TabVariant$fullWidth_getInstance() { TabVariant_initFields(); return TabVariant$fullWidth_instance; } TabVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'TabVariant', interfaces: [Enum] }; function TabVariant$values() { return [TabVariant$standard_getInstance(), TabVariant$scrollable_getInstance(), TabVariant$fullWidth_getInstance()]; } TabVariant.values = TabVariant$values; function TabVariant$valueOf(name) { switch (name) { case 'standard': return TabVariant$standard_getInstance(); case 'scrollable': return TabVariant$scrollable_getInstance(); case 'fullWidth': return TabVariant$fullWidth_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TabVariant.' + name); } } TabVariant.valueOf_61zpoe$ = TabVariant$valueOf; function TabOrientation(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TabOrientation_initFields() { TabOrientation_initFields = function () { }; TabOrientation$horizontal_instance = new TabOrientation('horizontal', 0); TabOrientation$vertical_instance = new TabOrientation('vertical', 1); } var TabOrientation$horizontal_instance; function TabOrientation$horizontal_getInstance() { TabOrientation_initFields(); return TabOrientation$horizontal_instance; } var TabOrientation$vertical_instance; function TabOrientation$vertical_getInstance() { TabOrientation_initFields(); return TabOrientation$vertical_instance; } TabOrientation.$metadata$ = { kind: Kind_CLASS, simpleName: 'TabOrientation', interfaces: [Enum] }; function TabOrientation$values() { return [TabOrientation$horizontal_getInstance(), TabOrientation$vertical_getInstance()]; } TabOrientation.values = TabOrientation$values; function TabOrientation$valueOf(name) { switch (name) { case 'horizontal': return TabOrientation$horizontal_getInstance(); case 'vertical': return TabOrientation$vertical_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TabOrientation.' + name); } } TabOrientation.valueOf_61zpoe$ = TabOrientation$valueOf; function umTabs$lambda(closure$action, closure$centered, closure$indicatorColor, closure$onChange, closure$orientation, closure$scrollButtonComponent, closure$scrollButtons, closure$tabIndicatorProps, closure$textColor, closure$value, closure$variant) { return function ($receiver) { if (closure$action != null) { var it = closure$action; $receiver.attrs.action = it; }$receiver.attrs.centered = closure$centered; $receiver.attrs.indicatorColor = closure$indicatorColor.toString(); if (closure$onChange != null) { var it_0 = closure$onChange; $receiver.attrs.onChange = it_0; }$receiver.attrs.orientation = closure$orientation.toString(); if (closure$scrollButtonComponent != null) { var it_1 = closure$scrollButtonComponent; $receiver.attrs.ScrollButtonComponent = it_1; }$receiver.attrs.scrollButtons = closure$scrollButtons.toString(); if (closure$tabIndicatorProps != null) { var it_2 = closure$tabIndicatorProps; $receiver.attrs.TabIndicatorProps = it_2; }$receiver.attrs.textColor = closure$textColor.toString(); $receiver.attrs.value = closure$value; $receiver.attrs.variant = closure$variant.toString(); return Unit; }; } function umTabs($receiver, value, centered, variant, orientation, indicatorColor, textColor, tabIndicatorProps, scrollButtons, scrollButtonComponent, onChange, action, className, handler) { if (value === void 0) value = false; if (centered === void 0) centered = false; if (variant === void 0) variant = TabVariant$standard_getInstance(); if (orientation === void 0) orientation = TabOrientation$horizontal_getInstance(); if (indicatorColor === void 0) indicatorColor = TabIndicatorColor$secondary_getInstance(); if (textColor === void 0) textColor = TabTextColor$inherit_getInstance(); if (tabIndicatorProps === void 0) tabIndicatorProps = null; if (scrollButtons === void 0) scrollButtons = TabScrollButtons$auto_getInstance(); if (scrollButtonComponent === void 0) scrollButtonComponent = null; if (onChange === void 0) onChange = null; if (action === void 0) action = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Tabs.default, className, handler, umTabs$lambda(action, centered, indicatorColor, onChange, orientation, scrollButtonComponent, scrollButtons, tabIndicatorProps, textColor, value, variant)); } function umTab$lambda(closure$disabled, closure$icon, closure$label, closure$value) { return function ($receiver) { $receiver.attrs.disabled = closure$disabled; if (closure$icon != null) { var closure$icon_0 = closure$icon; $receiver.attrs.icon = closure$icon_0; }$receiver.attrs.label = closure$label; $receiver.attrs.value = closure$value; return Unit; }; } function umTab($receiver, label, value, icon, disabled, className, handler) { if (value === void 0) value = label; if (icon === void 0) icon = null; if (disabled === void 0) disabled = false; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Tab.default, className, handler, umTab$lambda(disabled, icon, label, value)); } function FormControlVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function FormControlVariant_initFields() { FormControlVariant_initFields = function () { }; FormControlVariant$standard_instance = new FormControlVariant('standard', 0); FormControlVariant$outlined_instance = new FormControlVariant('outlined', 1); FormControlVariant$filled_instance = new FormControlVariant('filled', 2); } var FormControlVariant$standard_instance; function FormControlVariant$standard_getInstance() { FormControlVariant_initFields(); return FormControlVariant$standard_instance; } var FormControlVariant$outlined_instance; function FormControlVariant$outlined_getInstance() { FormControlVariant_initFields(); return FormControlVariant$outlined_instance; } var FormControlVariant$filled_instance; function FormControlVariant$filled_getInstance() { FormControlVariant_initFields(); return FormControlVariant$filled_instance; } FormControlVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'FormControlVariant', interfaces: [Enum] }; function FormControlVariant$values() { return [FormControlVariant$standard_getInstance(), FormControlVariant$outlined_getInstance(), FormControlVariant$filled_getInstance()]; } FormControlVariant.values = FormControlVariant$values; function FormControlVariant$valueOf(name) { switch (name) { case 'standard': return FormControlVariant$standard_getInstance(); case 'outlined': return FormControlVariant$outlined_getInstance(); case 'filled': return FormControlVariant$filled_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.FormControlVariant.' + name); } } FormControlVariant.valueOf_61zpoe$ = FormControlVariant$valueOf; function FormControlMargin(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function FormControlMargin_initFields() { FormControlMargin_initFields = function () { }; FormControlMargin$none_instance = new FormControlMargin('none', 0); FormControlMargin$dense_instance = new FormControlMargin('dense', 1); FormControlMargin$normal_instance = new FormControlMargin('normal', 2); } var FormControlMargin$none_instance; function FormControlMargin$none_getInstance() { FormControlMargin_initFields(); return FormControlMargin$none_instance; } var FormControlMargin$dense_instance; function FormControlMargin$dense_getInstance() { FormControlMargin_initFields(); return FormControlMargin$dense_instance; } var FormControlMargin$normal_instance; function FormControlMargin$normal_getInstance() { FormControlMargin_initFields(); return FormControlMargin$normal_instance; } FormControlMargin.$metadata$ = { kind: Kind_CLASS, simpleName: 'FormControlMargin', interfaces: [Enum] }; function FormControlMargin$values() { return [FormControlMargin$none_getInstance(), FormControlMargin$dense_getInstance(), FormControlMargin$normal_getInstance()]; } FormControlMargin.values = FormControlMargin$values; function FormControlMargin$valueOf(name) { switch (name) { case 'none': return FormControlMargin$none_getInstance(); case 'dense': return FormControlMargin$dense_getInstance(); case 'normal': return FormControlMargin$normal_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.FormControlMargin.' + name); } } FormControlMargin.valueOf_61zpoe$ = FormControlMargin$valueOf; function umTextField$lambda(closure$autoComplete, closure$autoFocus, closure$disabled, closure$error, closure$fullWidth, closure$helperText, closure$id, closure$label, closure$margin, closure$name, closure$onChange, closure$placeholder, closure$required, closure$type, closure$value, closure$variant, closure$blockedCharacters, closure$allowCapitalLetters, closure$onClick) { return function ($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); setProps_0($receiver, closure$autoComplete, closure$autoFocus, closure$disabled, closure$error, closure$fullWidth, closure$helperText, closure$id, closure$label, closure$margin, false, closure$name, closure$onChange, closure$placeholder, closure$required, null, null, false, closure$type, closure$value, closure$variant, closure$blockedCharacters, closure$allowCapitalLetters, closure$onClick); return Unit; }; } function umTextField($receiver, label, value, helperText, placeholder, variant, onChange, type, required, disabled, error, autoFocus, fullWidth, margin, autoComplete, id, name, className, blockedCharacters, allowCapitalLetters, onClick, handler) { if (value === void 0) value = null; if (helperText === void 0) helperText = null; if (placeholder === void 0) placeholder = null; if (variant === void 0) variant = FormControlVariant$outlined_getInstance(); if (onChange === void 0) onChange = null; if (type === void 0) type = InputType$text; if (required === void 0) required = false; if (disabled === void 0) disabled = false; if (error === void 0) error = false; if (autoFocus === void 0) autoFocus = false; if (fullWidth === void 0) fullWidth = false; if (margin === void 0) margin = FormControlMargin$normal_getInstance(); if (autoComplete === void 0) autoComplete = null; if (id === void 0) id = null; if (name === void 0) name = null; if (className === void 0) className = null; if (blockedCharacters === void 0) blockedCharacters = null; if (allowCapitalLetters === void 0) allowCapitalLetters = true; if (onClick === void 0) onClick = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TextField.default, className, handler, umTextField$lambda(autoComplete, autoFocus, disabled, error, fullWidth, helperText, id, label, margin, name, onChange, placeholder, required, type, value, variant, blockedCharacters, allowCapitalLetters, onClick)); } function umTextFieldMultiLine$lambda(closure$autoFocus, closure$disabled, closure$error, closure$fullWidth, closure$helperText, closure$id, closure$label, closure$margin, closure$name, closure$onChange, closure$placeholder, closure$required, closure$rows, closure$rowsMax, closure$value, closure$variant, closure$blockedValues, closure$allowCapitalLetters) { return function ($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); setProps_0($receiver, null, closure$autoFocus, closure$disabled, closure$error, closure$fullWidth, closure$helperText, closure$id, closure$label, closure$margin, true, closure$name, closure$onChange, closure$placeholder, closure$required, closure$rows, closure$rowsMax, false, InputType$text, closure$value, closure$variant, closure$blockedValues, closure$allowCapitalLetters); return Unit; }; } function umTextFieldMultiLine($receiver, label, value, helperText, placeholder, variant, onChange, required, disabled, error, autoFocus, fullWidth, margin, rows, rowsMax, id, name, className, blockedValues, allowCapitalLetters, handler) { if (value === void 0) value = null; if (helperText === void 0) helperText = null; if (placeholder === void 0) placeholder = null; if (variant === void 0) variant = FormControlVariant$standard_getInstance(); if (onChange === void 0) onChange = null; if (required === void 0) required = false; if (disabled === void 0) disabled = false; if (error === void 0) error = false; if (autoFocus === void 0) autoFocus = false; if (fullWidth === void 0) fullWidth = false; if (margin === void 0) margin = FormControlMargin$normal_getInstance(); if (rows === void 0) rows = null; if (rowsMax === void 0) rowsMax = null; if (id === void 0) id = null; if (name === void 0) name = null; if (className === void 0) className = null; if (blockedValues === void 0) blockedValues = null; if (allowCapitalLetters === void 0) allowCapitalLetters = true; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TextField.default, className, handler, umTextFieldMultiLine$lambda(autoFocus, disabled, error, fullWidth, helperText, id, label, margin, name, onChange, placeholder, required, rows, rowsMax, value, variant, blockedValues, allowCapitalLetters)); } function umTextFieldSelect$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function umTextFieldSelect$lambda(closure$autoComplete, closure$autoFocus, closure$disabled, closure$error, closure$fullWidth, closure$helperText, closure$id, closure$label, closure$margin, closure$name, closure$onChange, closure$placeholder, closure$required, closure$value, closure$variant, closure$values) { return function ($receiver) { setProps_0($receiver, closure$autoComplete, closure$autoFocus, closure$disabled, closure$error, closure$fullWidth, closure$helperText, closure$id, closure$label, closure$margin, false, closure$name, closure$onChange, closure$placeholder, closure$required, null, null, true, InputType$text, closure$value, closure$variant); var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); var $receiver_1 = closure$values; if (!($receiver_1 == null || $receiver_1.isEmpty())) { var tmp$; tmp$ = closure$values.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); umMenuItem($receiver, element.second, void 0, void 0, void 0, element.first, void 0, void 0, void 0, void 0, umTextFieldSelect$lambda$lambda$lambda); } }return Unit; }; } function umTextFieldSelect($receiver, label, value, helperText, placeholder, values, variant, onChange, required, disabled, error, autoFocus, fullWidth, margin, autoComplete, id, name, className, handler) { if (value === void 0) value = null; if (helperText === void 0) helperText = null; if (placeholder === void 0) placeholder = null; if (values === void 0) { values = emptyList(); }if (variant === void 0) variant = FormControlVariant$outlined_getInstance(); if (onChange === void 0) onChange = null; if (required === void 0) required = false; if (disabled === void 0) disabled = false; if (error === void 0) error = false; if (autoFocus === void 0) autoFocus = false; if (fullWidth === void 0) fullWidth = false; if (margin === void 0) margin = FormControlMargin$normal_getInstance(); if (autoComplete === void 0) autoComplete = null; if (id === void 0) id = null; if (name === void 0) name = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_TextField.default, className, handler, umTextFieldSelect$lambda(autoComplete, autoFocus, disabled, error, fullWidth, helperText, id, label, margin, name, onChange, placeholder, required, value, variant, values)); } function setProps$lambda_1(closure$select, closure$onChange) { return function (it) { var tmp$, tmp$_0; if (!closure$select) { it.persist(); }var enteredValue = it.target.value; tmp$_0 = (tmp$ = enteredValue != null ? enteredValue.toString() : null) != null ? tmp$ : ''; closure$onChange != null ? closure$onChange(tmp$_0) : null; return Unit; }; } function setProps$lambda_2(closure$onClick) { return function (it) { closure$onClick != null ? closure$onClick() : null; return Unit; }; } function setProps$lambda_3(it) { var tmp$; var enteredValue = it.target.value; it.target.value = ((tmp$ = enteredValue != null ? enteredValue.toString() : null) != null ? tmp$ : '').toLowerCase(); return Unit; } function setProps$lambda_4(closure$blockedCharacters) { return function (it) { if (contains(closure$blockedCharacters, it.key)) { it.preventDefault(); }return Unit; }; } function setProps_0(textField, autoComplete, autoFocus, disabled, error, fullWidth, helperText, id, label, margin, multiline, name, onChange, placeholder, required, rows, rowsMax, select, type, value, variant, blockedCharacters, allowCapitalLetters, onClick) { if (blockedCharacters === void 0) blockedCharacters = null; if (allowCapitalLetters === void 0) allowCapitalLetters = true; if (onClick === void 0) onClick = null; if (autoComplete != null) { textField.attrs.autoComplete = autoComplete; }textField.attrs.autoFocus = autoFocus; textField.attrs.disabled = disabled; textField.attrs.error = error; textField.attrs.fullWidth = fullWidth; if (helperText != null) { textField.attrs.helperText = helperText; }if (id != null) { textField.attrs.id = id; }textField.attrs.label = label; textField.attrs.margin = margin.toString(); textField.attrs.multiline = multiline; if (name != null) { textField.attrs.name = name; }textField.attrs.onChange = setProps$lambda_1(select, onChange); if (placeholder != null) { textField.attrs.placeholder = placeholder; }textField.attrs.required = required; if (rows != null) { textField.attrs.rows = rows; }if (rowsMax != null) { textField.attrs.maxRows = rowsMax; }textField.attrs.select = select; textField.attrs.type = type; textField.attrs.value = value != null ? value : ''; textField.attrs.onClick = setProps$lambda_2(onClick); textField.attrs.variant = variant.toString(); if (!allowCapitalLetters) { textField.attrs.onInput = setProps$lambda_3; }if (!(blockedCharacters == null || blockedCharacters.length === 0)) { textField.attrs.onKeyPress = setProps$lambda_4(blockedCharacters); }} var themeOptions; var defaultTheme; var themeContext; function get_spacingUnits($receiver) { return new LinearDimension(defaultTheme.spacing($receiver).toString()); } function useTheme() { var tmp$; return Kotlin.isType(tmp$ = $module$_mui_material_styles_useTheme.default(), Object) ? tmp$ : throwCCE(); } function umThemeProvider$lambda(closure$theme, closure$handler) { return function ($receiver) { $receiver.attrs.theme = closure$theme; if (closure$handler != null) closure$handler($receiver); return Unit; }; } function umThemeProvider($receiver, theme, handler) { if (theme === void 0) theme = defaultTheme; if (handler === void 0) handler = null; $receiver.invoke_qk0v40$($module$_mui_system_ThemeProvider.default, umThemeProvider$lambda(theme, handler)); } function ToggleButtonSize(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ToggleButtonSize_initFields() { ToggleButtonSize_initFields = function () { }; ToggleButtonSize$small_instance = new ToggleButtonSize('small', 0); ToggleButtonSize$medium_instance = new ToggleButtonSize('medium', 1); ToggleButtonSize$large_instance = new ToggleButtonSize('large', 2); } var ToggleButtonSize$small_instance; function ToggleButtonSize$small_getInstance() { ToggleButtonSize_initFields(); return ToggleButtonSize$small_instance; } var ToggleButtonSize$medium_instance; function ToggleButtonSize$medium_getInstance() { ToggleButtonSize_initFields(); return ToggleButtonSize$medium_instance; } var ToggleButtonSize$large_instance; function ToggleButtonSize$large_getInstance() { ToggleButtonSize_initFields(); return ToggleButtonSize$large_instance; } ToggleButtonSize.$metadata$ = { kind: Kind_CLASS, simpleName: 'ToggleButtonSize', interfaces: [Enum] }; function ToggleButtonSize$values() { return [ToggleButtonSize$small_getInstance(), ToggleButtonSize$medium_getInstance(), ToggleButtonSize$large_getInstance()]; } ToggleButtonSize.values = ToggleButtonSize$values; function ToggleButtonSize$valueOf(name) { switch (name) { case 'small': return ToggleButtonSize$small_getInstance(); case 'medium': return ToggleButtonSize$medium_getInstance(); case 'large': return ToggleButtonSize$large_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ToggleButtonSize.' + name); } } ToggleButtonSize.valueOf_61zpoe$ = ToggleButtonSize$valueOf; function ToggleButtonOrientation(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ToggleButtonOrientation_initFields() { ToggleButtonOrientation_initFields = function () { }; ToggleButtonOrientation$horizontal_instance = new ToggleButtonOrientation('horizontal', 0); ToggleButtonOrientation$vertical_instance = new ToggleButtonOrientation('vertical', 1); } var ToggleButtonOrientation$horizontal_instance; function ToggleButtonOrientation$horizontal_getInstance() { ToggleButtonOrientation_initFields(); return ToggleButtonOrientation$horizontal_instance; } var ToggleButtonOrientation$vertical_instance; function ToggleButtonOrientation$vertical_getInstance() { ToggleButtonOrientation_initFields(); return ToggleButtonOrientation$vertical_instance; } ToggleButtonOrientation.$metadata$ = { kind: Kind_CLASS, simpleName: 'ToggleButtonOrientation', interfaces: [Enum] }; function ToggleButtonOrientation$values() { return [ToggleButtonOrientation$horizontal_getInstance(), ToggleButtonOrientation$vertical_getInstance()]; } ToggleButtonOrientation.values = ToggleButtonOrientation$values; function ToggleButtonOrientation$valueOf(name) { switch (name) { case 'horizontal': return ToggleButtonOrientation$horizontal_getInstance(); case 'vertical': return ToggleButtonOrientation$vertical_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ToggleButtonOrientation.' + name); } } ToggleButtonOrientation.valueOf_61zpoe$ = ToggleButtonOrientation$valueOf; function umToggleButtonGroup$lambda$lambda(closure$onChange) { return function (f, _value) { closure$onChange != null ? closure$onChange(_value) : null; return Unit; }; } function umToggleButtonGroup$lambda(closure$orientation, closure$size, closure$disabled, closure$value, closure$onChange, closure$color) { return function ($receiver) { $receiver.attrs.orientation = closure$orientation.toString(); $receiver.attrs.size = closure$size.toString(); $receiver.attrs.disabled = closure$disabled; $receiver.attrs.value = closure$value; $receiver.attrs.onChange = umToggleButtonGroup$lambda$lambda(closure$onChange); $receiver.attrs.color = closure$color.toString(); return Unit; }; } function umToggleButtonGroup($receiver, value, orientation, size, color, disabled, className, onChange, handler) { if (value === void 0) value = null; if (orientation === void 0) orientation = ToggleButtonOrientation$horizontal_getInstance(); if (size === void 0) size = ToggleButtonSize$medium_getInstance(); if (color === void 0) color = UMColor$default_getInstance(); if (disabled === void 0) disabled = false; if (className === void 0) className = null; if (onChange === void 0) onChange = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_ToggleButtonGroup.default, className, handler, umToggleButtonGroup$lambda(orientation, size, disabled, value, onChange, color)); } function umToggleButton$lambda(closure$selected, closure$size, closure$disabled, closure$value, closure$color) { return function ($receiver) { $receiver.attrs.selected = closure$selected; $receiver.attrs.size = closure$size.toString(); $receiver.attrs.disabled = closure$disabled; $receiver.attrs.value = closure$value; $receiver.attrs.color = closure$color.toString(); return Unit; }; } function umToggleButton($receiver, value, size, color, selected, disabled, className, handler) { if (size === void 0) size = ToggleButtonSize$medium_getInstance(); if (color === void 0) color = UMColor$standard_getInstance(); if (selected === void 0) selected = false; if (disabled === void 0) disabled = false; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_ToggleButton.default, className, handler, umToggleButton$lambda(selected, size, disabled, value, color)); } function ToolbarVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ToolbarVariant_initFields() { ToolbarVariant_initFields = function () { }; ToolbarVariant$regular_instance = new ToolbarVariant('regular', 0); ToolbarVariant$dense_instance = new ToolbarVariant('dense', 1); } var ToolbarVariant$regular_instance; function ToolbarVariant$regular_getInstance() { ToolbarVariant_initFields(); return ToolbarVariant$regular_instance; } var ToolbarVariant$dense_instance; function ToolbarVariant$dense_getInstance() { ToolbarVariant_initFields(); return ToolbarVariant$dense_instance; } ToolbarVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'ToolbarVariant', interfaces: [Enum] }; function ToolbarVariant$values() { return [ToolbarVariant$regular_getInstance(), ToolbarVariant$dense_getInstance()]; } ToolbarVariant.values = ToolbarVariant$values; function ToolbarVariant$valueOf(name) { switch (name) { case 'regular': return ToolbarVariant$regular_getInstance(); case 'dense': return ToolbarVariant$dense_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.ToolbarVariant.' + name); } } ToolbarVariant.valueOf_61zpoe$ = ToolbarVariant$valueOf; function umToolbar$lambda(closure$disableGutters, closure$variant) { return function ($receiver) { $receiver.attrs.disableGutters = closure$disableGutters; $receiver.attrs.variant = closure$variant.toString(); return Unit; }; } function umToolbar($receiver, disableGutters, variant, className, handler) { if (disableGutters === void 0) disableGutters = false; if (variant === void 0) variant = ToolbarVariant$regular_getInstance(); if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Toolbar.default, className, handler, umToolbar$lambda(disableGutters, variant)); } function TypographyAlign(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TypographyAlign_initFields() { TypographyAlign_initFields = function () { }; TypographyAlign$inherit_instance = new TypographyAlign('inherit', 0); TypographyAlign$left_instance = new TypographyAlign('left', 1); TypographyAlign$center_instance = new TypographyAlign('center', 2); TypographyAlign$right_instance = new TypographyAlign('right', 3); TypographyAlign$justify_instance = new TypographyAlign('justify', 4); } var TypographyAlign$inherit_instance; function TypographyAlign$inherit_getInstance() { TypographyAlign_initFields(); return TypographyAlign$inherit_instance; } var TypographyAlign$left_instance; function TypographyAlign$left_getInstance() { TypographyAlign_initFields(); return TypographyAlign$left_instance; } var TypographyAlign$center_instance; function TypographyAlign$center_getInstance() { TypographyAlign_initFields(); return TypographyAlign$center_instance; } var TypographyAlign$right_instance; function TypographyAlign$right_getInstance() { TypographyAlign_initFields(); return TypographyAlign$right_instance; } var TypographyAlign$justify_instance; function TypographyAlign$justify_getInstance() { TypographyAlign_initFields(); return TypographyAlign$justify_instance; } TypographyAlign.$metadata$ = { kind: Kind_CLASS, simpleName: 'TypographyAlign', interfaces: [Enum] }; function TypographyAlign$values() { return [TypographyAlign$inherit_getInstance(), TypographyAlign$left_getInstance(), TypographyAlign$center_getInstance(), TypographyAlign$right_getInstance(), TypographyAlign$justify_getInstance()]; } TypographyAlign.values = TypographyAlign$values; function TypographyAlign$valueOf(name) { switch (name) { case 'inherit': return TypographyAlign$inherit_getInstance(); case 'left': return TypographyAlign$left_getInstance(); case 'center': return TypographyAlign$center_getInstance(); case 'right': return TypographyAlign$right_getInstance(); case 'justify': return TypographyAlign$justify_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TypographyAlign.' + name); } } TypographyAlign.valueOf_61zpoe$ = TypographyAlign$valueOf; function TypographyColor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TypographyColor_initFields() { TypographyColor_initFields = function () { }; TypographyColor$initial_instance = new TypographyColor('initial', 0); TypographyColor$inherit_instance = new TypographyColor('inherit', 1); TypographyColor$primary_instance = new TypographyColor('primary', 2); TypographyColor$secondary_instance = new TypographyColor('secondary', 3); TypographyColor$textPrimary_instance = new TypographyColor('textPrimary', 4); TypographyColor$textSecondary_instance = new TypographyColor('textSecondary', 5); TypographyColor$error_instance = new TypographyColor('error', 6); } var TypographyColor$initial_instance; function TypographyColor$initial_getInstance() { TypographyColor_initFields(); return TypographyColor$initial_instance; } var TypographyColor$inherit_instance; function TypographyColor$inherit_getInstance() { TypographyColor_initFields(); return TypographyColor$inherit_instance; } var TypographyColor$primary_instance; function TypographyColor$primary_getInstance() { TypographyColor_initFields(); return TypographyColor$primary_instance; } var TypographyColor$secondary_instance; function TypographyColor$secondary_getInstance() { TypographyColor_initFields(); return TypographyColor$secondary_instance; } var TypographyColor$textPrimary_instance; function TypographyColor$textPrimary_getInstance() { TypographyColor_initFields(); return TypographyColor$textPrimary_instance; } var TypographyColor$textSecondary_instance; function TypographyColor$textSecondary_getInstance() { TypographyColor_initFields(); return TypographyColor$textSecondary_instance; } var TypographyColor$error_instance; function TypographyColor$error_getInstance() { TypographyColor_initFields(); return TypographyColor$error_instance; } TypographyColor.$metadata$ = { kind: Kind_CLASS, simpleName: 'TypographyColor', interfaces: [Enum] }; function TypographyColor$values() { return [TypographyColor$initial_getInstance(), TypographyColor$inherit_getInstance(), TypographyColor$primary_getInstance(), TypographyColor$secondary_getInstance(), TypographyColor$textPrimary_getInstance(), TypographyColor$textSecondary_getInstance(), TypographyColor$error_getInstance()]; } TypographyColor.values = TypographyColor$values; function TypographyColor$valueOf(name) { switch (name) { case 'initial': return TypographyColor$initial_getInstance(); case 'inherit': return TypographyColor$inherit_getInstance(); case 'primary': return TypographyColor$primary_getInstance(); case 'secondary': return TypographyColor$secondary_getInstance(); case 'textPrimary': return TypographyColor$textPrimary_getInstance(); case 'textSecondary': return TypographyColor$textSecondary_getInstance(); case 'error': return TypographyColor$error_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TypographyColor.' + name); } } TypographyColor.valueOf_61zpoe$ = TypographyColor$valueOf; function TypographyVariant(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function TypographyVariant_initFields() { TypographyVariant_initFields = function () { }; TypographyVariant$h1_instance = new TypographyVariant('h1', 0); TypographyVariant$h2_instance = new TypographyVariant('h2', 1); TypographyVariant$h3_instance = new TypographyVariant('h3', 2); TypographyVariant$h4_instance = new TypographyVariant('h4', 3); TypographyVariant$h5_instance = new TypographyVariant('h5', 4); TypographyVariant$h6_instance = new TypographyVariant('h6', 5); TypographyVariant$body1_instance = new TypographyVariant('body1', 6); TypographyVariant$body2_instance = new TypographyVariant('body2', 7); TypographyVariant$subtitle1_instance = new TypographyVariant('subtitle1', 8); TypographyVariant$subtitle2_instance = new TypographyVariant('subtitle2', 9); TypographyVariant$caption_instance = new TypographyVariant('caption', 10); TypographyVariant$button_instance = new TypographyVariant('button', 11); TypographyVariant$overline_instance = new TypographyVariant('overline', 12); TypographyVariant$srOnly_instance = new TypographyVariant('srOnly', 13); TypographyVariant$inherit_instance = new TypographyVariant('inherit', 14); } var TypographyVariant$h1_instance; function TypographyVariant$h1_getInstance() { TypographyVariant_initFields(); return TypographyVariant$h1_instance; } var TypographyVariant$h2_instance; function TypographyVariant$h2_getInstance() { TypographyVariant_initFields(); return TypographyVariant$h2_instance; } var TypographyVariant$h3_instance; function TypographyVariant$h3_getInstance() { TypographyVariant_initFields(); return TypographyVariant$h3_instance; } var TypographyVariant$h4_instance; function TypographyVariant$h4_getInstance() { TypographyVariant_initFields(); return TypographyVariant$h4_instance; } var TypographyVariant$h5_instance; function TypographyVariant$h5_getInstance() { TypographyVariant_initFields(); return TypographyVariant$h5_instance; } var TypographyVariant$h6_instance; function TypographyVariant$h6_getInstance() { TypographyVariant_initFields(); return TypographyVariant$h6_instance; } var TypographyVariant$body1_instance; function TypographyVariant$body1_getInstance() { TypographyVariant_initFields(); return TypographyVariant$body1_instance; } var TypographyVariant$body2_instance; function TypographyVariant$body2_getInstance() { TypographyVariant_initFields(); return TypographyVariant$body2_instance; } var TypographyVariant$subtitle1_instance; function TypographyVariant$subtitle1_getInstance() { TypographyVariant_initFields(); return TypographyVariant$subtitle1_instance; } var TypographyVariant$subtitle2_instance; function TypographyVariant$subtitle2_getInstance() { TypographyVariant_initFields(); return TypographyVariant$subtitle2_instance; } var TypographyVariant$caption_instance; function TypographyVariant$caption_getInstance() { TypographyVariant_initFields(); return TypographyVariant$caption_instance; } var TypographyVariant$button_instance; function TypographyVariant$button_getInstance() { TypographyVariant_initFields(); return TypographyVariant$button_instance; } var TypographyVariant$overline_instance; function TypographyVariant$overline_getInstance() { TypographyVariant_initFields(); return TypographyVariant$overline_instance; } var TypographyVariant$srOnly_instance; function TypographyVariant$srOnly_getInstance() { TypographyVariant_initFields(); return TypographyVariant$srOnly_instance; } var TypographyVariant$inherit_instance; function TypographyVariant$inherit_getInstance() { TypographyVariant_initFields(); return TypographyVariant$inherit_instance; } TypographyVariant.$metadata$ = { kind: Kind_CLASS, simpleName: 'TypographyVariant', interfaces: [Enum] }; function TypographyVariant$values() { return [TypographyVariant$h1_getInstance(), TypographyVariant$h2_getInstance(), TypographyVariant$h3_getInstance(), TypographyVariant$h4_getInstance(), TypographyVariant$h5_getInstance(), TypographyVariant$h6_getInstance(), TypographyVariant$body1_getInstance(), TypographyVariant$body2_getInstance(), TypographyVariant$subtitle1_getInstance(), TypographyVariant$subtitle2_getInstance(), TypographyVariant$caption_getInstance(), TypographyVariant$button_getInstance(), TypographyVariant$overline_getInstance(), TypographyVariant$srOnly_getInstance(), TypographyVariant$inherit_getInstance()]; } TypographyVariant.values = TypographyVariant$values; function TypographyVariant$valueOf(name) { switch (name) { case 'h1': return TypographyVariant$h1_getInstance(); case 'h2': return TypographyVariant$h2_getInstance(); case 'h3': return TypographyVariant$h3_getInstance(); case 'h4': return TypographyVariant$h4_getInstance(); case 'h5': return TypographyVariant$h5_getInstance(); case 'h6': return TypographyVariant$h6_getInstance(); case 'body1': return TypographyVariant$body1_getInstance(); case 'body2': return TypographyVariant$body2_getInstance(); case 'subtitle1': return TypographyVariant$subtitle1_getInstance(); case 'subtitle2': return TypographyVariant$subtitle2_getInstance(); case 'caption': return TypographyVariant$caption_getInstance(); case 'button': return TypographyVariant$button_getInstance(); case 'overline': return TypographyVariant$overline_getInstance(); case 'srOnly': return TypographyVariant$srOnly_getInstance(); case 'inherit': return TypographyVariant$inherit_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.components.TypographyVariant.' + name); } } TypographyVariant.valueOf_61zpoe$ = TypographyVariant$valueOf; function umTypography$lambda(closure$align, closure$gutterBottom, closure$noWrap, closure$component, closure$paragraph, closure$variant, closure$text) { return function ($receiver) { $receiver.attrs.align = closure$align.toString(); $receiver.attrs.gutterBottom = closure$gutterBottom; $receiver.attrs.noWrap = closure$noWrap; if (closure$component != null) { var it = closure$component; $receiver.attrs.component = it; }$receiver.attrs.paragraph = closure$paragraph; $receiver.attrs.variant = closure$variant.toString(); if (closure$text != null) { var it_0 = closure$text; $receiver.childList.add_11rb$(it_0); }set_whiteSpace($receiver.css, WhiteSpace.preLine); return Unit; }; } function umTypography($receiver, text, variant, align, gutterBottom, noWrap, component, paragraph, className, handler) { if (text === void 0) text = null; if (variant === void 0) variant = TypographyVariant$body1_getInstance(); if (align === void 0) align = TypographyAlign$left_getInstance(); if (gutterBottom === void 0) gutterBottom = false; if (noWrap === void 0) noWrap = false; if (component === void 0) component = null; if (paragraph === void 0) paragraph = false; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, $module$_mui_material_Typography.default, className, handler, umTypography$lambda(align, gutterBottom, noWrap, component, paragraph, variant, text)); } function toolbarJsCssToPartialCss$addPxSuffixIfNeeded(key, value) { var tmp$; if (contains(key, 'height', true) || contains(key, 'width', true)) { tmp$ = value + 'px'; } else { tmp$ = value; } return tmp$; } function toolbarJsCssToPartialCss$lambda$lambda(closure$value, closure$addPxSuffixIfNeeded) { return function ($receiver) { var keys2 = Object.keys(closure$value); var tmp$; for (tmp$ = 0; tmp$ !== keys2.length; ++tmp$) { var element = keys2[tmp$]; var closure$value_0 = closure$value; var closure$addPxSuffixIfNeeded_0 = closure$addPxSuffixIfNeeded; var value2 = closure$value_0[element]; $receiver.put_puj7f4$(element, closure$addPxSuffixIfNeeded_0(element, value2)); } return Unit; }; } function toolbarJsCssToPartialCss($receiver, jsObject) { var addPxSuffixIfNeeded = toolbarJsCssToPartialCss$addPxSuffixIfNeeded; var keys = Object.keys(jsObject); var tmp$; for (tmp$ = 0; tmp$ !== keys.length; ++tmp$) { var element = keys[tmp$]; var value = jsObject[element]; var tmp$_0 = value != null; if (tmp$_0) { tmp$_0 = equals(typeof value, 'object'); }if (tmp$_0) { if (startsWith(element, '@media', true)) { var $receiver_0 = element.substring(6); var tmp$_1; var query = trim(Kotlin.isCharSequence(tmp$_1 = $receiver_0) ? tmp$_1 : throwCCE()).toString(); $receiver.media_v44dnz$(query, toolbarJsCssToPartialCss$lambda$lambda(value, addPxSuffixIfNeeded)); } else { console.error("Don't know how to handle non query sub-object"); } } else { $receiver.put_puj7f4$(element, addPxSuffixIfNeeded(element, value)); } } } function get_targetInputValue($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; return (tmp$_4 = (tmp$_3 = (tmp$_0 = Kotlin.isType(tmp$ = $receiver.target, HTMLInputElement) ? tmp$ : null) != null ? tmp$_0.value : null) != null ? tmp$_3 : (tmp$_2 = Kotlin.isType(tmp$_1 = $receiver.target, HTMLTextAreaElement) ? tmp$_1 : null) != null ? tmp$_2.value : null) != null ? tmp$_4 : $receiver.target.value.toString(); } function createStyledComponent($receiver, componentType, className, handler, propsHandler) { if (className === void 0) className = null; if (handler === void 0) handler = null; if (propsHandler === void 0) propsHandler = null; var $receiver_0 = StyledElementBuilder.Companion.invoke_k87xji$(componentType); $receiver_0.attrs.className = className; if (propsHandler != null) propsHandler($receiver_0); if (handler != null) handler($receiver_0); var element = $receiver_0.create(); $receiver.child_30b5ua$(element); return element; } function Breakpoint(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function Breakpoint_initFields() { Breakpoint_initFields = function () { }; Breakpoint$xs_instance = new Breakpoint('xs', 0); Breakpoint$sm_instance = new Breakpoint('sm', 1); Breakpoint$md_instance = new Breakpoint('md', 2); Breakpoint$lg_instance = new Breakpoint('lg', 3); Breakpoint$xl_instance = new Breakpoint('xl', 4); } var Breakpoint$xs_instance; function Breakpoint$xs_getInstance() { Breakpoint_initFields(); return Breakpoint$xs_instance; } var Breakpoint$sm_instance; function Breakpoint$sm_getInstance() { Breakpoint_initFields(); return Breakpoint$sm_instance; } var Breakpoint$md_instance; function Breakpoint$md_getInstance() { Breakpoint_initFields(); return Breakpoint$md_instance; } var Breakpoint$lg_instance; function Breakpoint$lg_getInstance() { Breakpoint_initFields(); return Breakpoint$lg_instance; } var Breakpoint$xl_instance; function Breakpoint$xl_getInstance() { Breakpoint_initFields(); return Breakpoint$xl_instance; } Breakpoint.$metadata$ = { kind: Kind_CLASS, simpleName: 'Breakpoint', interfaces: [Enum] }; function Breakpoint$values() { return [Breakpoint$xs_getInstance(), Breakpoint$sm_getInstance(), Breakpoint$md_getInstance(), Breakpoint$lg_getInstance(), Breakpoint$xl_getInstance()]; } Breakpoint.values = Breakpoint$values; function Breakpoint$valueOf(name) { switch (name) { case 'xs': return Breakpoint$xs_getInstance(); case 'sm': return Breakpoint$sm_getInstance(); case 'md': return Breakpoint$md_getInstance(); case 'lg': return Breakpoint$lg_getInstance(); case 'xl': return Breakpoint$xl_getInstance(); default:throwISE('No enum constant Breakpoint.' + name); } } Breakpoint.valueOf_61zpoe$ = Breakpoint$valueOf; function removeMediaString(query) { return startsWith(query, '@media') ? query.substring(6) : query; } function up($receiver, key) { return removeMediaString($receiver.up(key.toString())); } function down($receiver, key) { return removeMediaString($receiver.down(key.toString())); } function between($receiver, startKey, endKey) { return removeMediaString($receiver.between(startKey.toString(), endKey.toString())); } function only($receiver, key) { return removeMediaString($receiver.only(key.toString())); } function width($receiver, key) { return $receiver.width(key.toString()); } var alpha; function UMColor(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function UMColor_initFields() { UMColor_initFields = function () { }; UMColor$default_instance = new UMColor('default', 0); UMColor$inherit_instance = new UMColor('inherit', 1); UMColor$primary_instance = new UMColor('primary', 2); UMColor$secondary_instance = new UMColor('secondary', 3); UMColor$error_instance = new UMColor('error', 4); UMColor$info_instance = new UMColor('info', 5); UMColor$success_instance = new UMColor('success', 6); UMColor$standard_instance = new UMColor('standard', 7); } var UMColor$default_instance; function UMColor$default_getInstance() { UMColor_initFields(); return UMColor$default_instance; } var UMColor$inherit_instance; function UMColor$inherit_getInstance() { UMColor_initFields(); return UMColor$inherit_instance; } var UMColor$primary_instance; function UMColor$primary_getInstance() { UMColor_initFields(); return UMColor$primary_instance; } var UMColor$secondary_instance; function UMColor$secondary_getInstance() { UMColor_initFields(); return UMColor$secondary_instance; } var UMColor$error_instance; function UMColor$error_getInstance() { UMColor_initFields(); return UMColor$error_instance; } var UMColor$info_instance; function UMColor$info_getInstance() { UMColor_initFields(); return UMColor$info_instance; } var UMColor$success_instance; function UMColor$success_getInstance() { UMColor_initFields(); return UMColor$success_instance; } var UMColor$standard_instance; function UMColor$standard_getInstance() { UMColor_initFields(); return UMColor$standard_instance; } UMColor.$metadata$ = { kind: Kind_CLASS, simpleName: 'UMColor', interfaces: [Enum] }; function UMColor$values() { return [UMColor$default_getInstance(), UMColor$inherit_getInstance(), UMColor$primary_getInstance(), UMColor$secondary_getInstance(), UMColor$error_getInstance(), UMColor$info_getInstance(), UMColor$success_getInstance(), UMColor$standard_getInstance()]; } UMColor.values = UMColor$values; function UMColor$valueOf(name) { switch (name) { case 'default': return UMColor$default_getInstance(); case 'inherit': return UMColor$inherit_getInstance(); case 'primary': return UMColor$primary_getInstance(); case 'secondary': return UMColor$secondary_getInstance(); case 'error': return UMColor$error_getInstance(); case 'info': return UMColor$info_getInstance(); case 'success': return UMColor$success_getInstance(); case 'standard': return UMColor$standard_getInstance(); default:throwISE('No enum constant com.ustadmobile.mui.theme.UMColor.' + name); } } UMColor.valueOf_61zpoe$ = UMColor$valueOf; function createMuiTheme(themeOptions, args) { if (themeOptions === void 0) themeOptions = null; if (args === void 0) args = null; var tmp$; if (themeOptions != null) tmp$ = themeOptions; else { var $receiver = {}; tmp$ = $receiver; } var ourThemeOptions = tmp$; return $module$_mui_material_styles.createTheme(ourThemeOptions, args); } function RouteManager() { RouteManager_instance = this; this.destinationList = listOf([new UstadDestination('school', 2914, ClazzList2View.Companion.VIEW_NAME, getKClass(ClazzListComponent), true), new UstadDestination('library_books', 2913, ContentEntryList2View.Companion.VIEW_NAME_HOME, getKClass(ContentEntryListComponent), true), new UstadDestination(void 0, void 0, ContentEntryList2View.Companion.VIEW_NAME, getKClass(ContentEntryListComponent), true), new UstadDestination(void 0, void 0, SchoolListView.Companion.VIEW_NAME, getKClass(SchoolListComponent)), new UstadDestination('person', 2297, PersonListView.Companion.VIEW_NAME, getKClass(PersonListComponent), true), new UstadDestination('message', 2911, ChatListView.Companion.VIEW_NAME, getKClass(ChatListComponent), true), new UstadDestination('pie_chart', 2071, ReportListView.Companion.VIEW_NAME, getKClass(ReportListComponent), void 0, void 0, true), new UstadDestination('settings', 2052, SettingsView.Companion.VIEW_NAME, getKClass(SettingsComponent)), new UstadDestination(void 0, void 0, AccountListView.Companion.VIEW_NAME, getKClass(AccountListComponent)), new UstadDestination(void 0, 2001, Login2View.Companion.VIEW_NAME, getKClass(LoginComponent), void 0, false), new UstadDestination(void 0, void 0, ContentEntryDetailView.Companion.VIEW_NAME, getKClass(ContentEntryDetailComponent)), new UstadDestination(void 0, void 0, ContentEntryDetailOverviewView.Companion.VIEW_NAME, getKClass(ContentEntryDetailOverviewComponent)), new UstadDestination(void 0, void 0, ContentEntryDetailAttemptsListView.Companion.VIEW_NAME, getKClass(ContentEntryDetailAttemptsListComponent), true), new UstadDestination(void 0, void 0, EpubContentView.Companion.VIEW_NAME, getKClass(EpubContentComponent)), new UstadDestination(void 0, void 0, PersonDetailView.Companion.VIEW_NAME, getKClass(PersonDetailComponent)), new UstadDestination(void 0, void 0, PersonAccountEditView.Companion.VIEW_NAME, getKClass(PersonAccountEditComponent)), new UstadDestination(void 0, void 0, PersonEditView.Companion.VIEW_NAME, getKClass(PersonEditComponent)), new UstadDestination(void 0, void 0, PersonEditView.Companion.VIEW_NAME_REGISTER, getKClass(PersonEditComponent), void 0, false), new UstadDestination(void 0, void 0, XapiPackageContentView.Companion.VIEW_NAME, getKClass(XapiPackageContentComponent)), new UstadDestination(void 0, void 0, VideoContentView.Companion.VIEW_NAME, getKClass(VideoContentComponent)), new UstadDestination(void 0, void 0, TimeZoneListView.Companion.VIEW_NAME, getKClass(TimeZoneListComponent), true), new UstadDestination(void 0, void 0, HolidayCalendarListView.Companion.VIEW_NAME, getKClass(HolidayCalendarListComponent), true), new UstadDestination(void 0, void 0, HolidayCalendarEditView.Companion.VIEW_NAME, getKClass(HolidayCalendarEditComponent)), new UstadDestination(void 0, void 0, HolidayEditView.Companion.VIEW_NAME, getKClass(HolidayEditComponent)), new UstadDestination(void 0, void 0, WebChunkView.Companion.VIEW_NAME, getKClass(WebChunkComponent)), new UstadDestination(void 0, void 0, RedirectView.Companion.VIEW_NAME, getKClass(RedirectComponent)), new UstadDestination(void 0, void 0, RegisterAgeRedirectView.Companion.VIEW_NAME, getKClass(RegisterAgeRedirectComponent), void 0, false), new UstadDestination(void 0, void 0, SiteTermsDetailView.Companion.VIEW_NAME, getKClass(SiteTermsDetailComponent)), new UstadDestination(void 0, void 0, SiteTermsDetailView.Companion.VIEW_NAME_ACCEPT_TERMS, getKClass(SiteTermsDetailComponent), void 0, false), new UstadDestination(void 0, void 0, SiteTermsEditView.Companion.VIEW_NAME, getKClass(SiteTermsEditComponent)), new UstadDestination(void 0, void 0, SiteDetailView.Companion.VIEW_NAME, getKClass(SiteDetailComponent)), new UstadDestination(void 0, void 0, SiteEditView.Companion.VIEW_NAME, getKClass(SiteEditComponent)), new UstadDestination(void 0, void 0, ClazzDetailView.Companion.VIEW_NAME, getKClass(ClazzDetailComponent)), new UstadDestination(void 0, void 0, ClazzEdit2View.Companion.VIEW_NAME, getKClass(ClazzEditComponent)), new UstadDestination(void 0, void 0, ClazzMemberListView.Companion.VIEW_NAME, getKClass(ClazzMemberListComponent), true), new UstadDestination(void 0, void 0, ClazzDetailOverviewView.Companion.VIEW_NAME, getKClass(ClazzDetailOverviewComponent)), new UstadDestination(void 0, void 0, ClazzLogListAttendanceView.Companion.VIEW_NAME, getKClass(ClazzLogListAttendanceComponent)), new UstadDestination(void 0, void 0, ClazzLogEditView.Companion.VIEW_NAME, getKClass(ClazzLogEditComponent)), new UstadDestination(void 0, void 0, ClazzLogEditAttendanceView.Companion.VIEW_NAME, getKClass(ClazzLogEditAttendanceComponent)), new UstadDestination(void 0, void 0, SchoolDetailView.Companion.VIEW_NAME, getKClass(SchoolDetailComponent)), new UstadDestination(void 0, void 0, SchoolDetailOverviewView.Companion.VIEW_NAME, getKClass(SchoolDetailOverviewComponent)), new UstadDestination(void 0, void 0, SchoolMemberListView.Companion.VIEW_NAME, getKClass(SchoolMemberListComponent), true), new UstadDestination(void 0, void 0, ClazzEnrolmentEditView.Companion.VIEW_NAME, getKClass(ClazzEnrolmentEditComponent)), new UstadDestination(void 0, void 0, TextCourseBlockEditView.Companion.VIEW_NAME, getKClass(TextCourseBlockEditComponent)), new UstadDestination(void 0, void 0, ModuleCourseBlockEditView.Companion.VIEW_NAME, getKClass(ModuleCourseBlockEditComponent)), new UstadDestination(void 0, void 0, CourseTerminologyListView.Companion.VIEW_NAME, getKClass(CourseTerminologyListComponent)), new UstadDestination(void 0, void 0, CourseTerminologyEditView.Companion.VIEW_NAME, getKClass(CourseTerminologyEditComponent)), new UstadDestination(void 0, void 0, ScheduleEditView.Companion.VIEW_NAME, getKClass(ScheduleEditComponent)), new UstadDestination(void 0, void 0, JoinWithCodeView.Companion.VIEW_NAME, getKClass(JoinWithCodeComponent)), new UstadDestination(void 0, void 0, SchoolEditView.Companion.VIEW_NAME, getKClass(SchoolEditComponent)), new UstadDestination(void 0, void 0, ScopedGrantEditView.Companion.VIEW_NAME, getKClass(ScopedGrantEditComponent)), new UstadDestination(void 0, void 0, ParentalConsentManagementView.Companion.VIEW_NAME, getKClass(ParentalConsentManagementComponent)), new UstadDestination(void 0, void 0, BitmaskEditView.Companion.VIEW_NAME, getKClass(BitmaskEditComponent)), new UstadDestination(void 0, void 0, ContentEntryEdit2View.Companion.VIEW_NAME, getKClass(ContentEntryEditComponent)), new UstadDestination(void 0, void 0, LanguageListView.Companion.VIEW_NAME, getKClass(LanguageListComponent), true), new UstadDestination(void 0, void 0, LanguageEditView.Companion.VIEW_NAME, getKClass(LanguageEditComponent)), new UstadDestination(void 0, void 0, ContentEntryImportLinkView.Companion.VIEW_NAME, getKClass(ContentEntryImportLinkComponent)), new UstadDestination(void 0, void 0, InviteViaLinkView.Companion.VIEW_NAME, getKClass(InviteViaLinkComponent)), new UstadDestination(void 0, void 0, ClazzEnrolmentListView.Companion.VIEW_NAME, getKClass(ClazzEnrolmentListComponent)), new UstadDestination(void 0, void 0, LeavingReasonListView.Companion.VIEW_NAME, getKClass(LeavingReasonListComponent)), new UstadDestination(void 0, void 0, LeavingReasonEditView.Companion.VIEW_NAME, getKClass(LeavingReasonEditComponent)), new UstadDestination(void 0, void 0, ClazzAssignmentEditView.Companion.VIEW_NAME, getKClass(ClazzAssignmentEditComponent)), new UstadDestination(void 0, void 0, ClazzAssignmentDetailView.Companion.VIEW_NAME, getKClass(ClazzAssignmentDetailComponent)), new UstadDestination(void 0, void 0, ClazzAssignmentDetailOverviewView.Companion.VIEW_NAME, getKClass(ClazzAssignmentDetailOverviewComponent)), new UstadDestination(void 0, void 0, ClazzAssignmentDetailStudentProgressOverviewListView.Companion.VIEW_NAME, getKClass(ClazzAssignmentDetailStudentProgressListOverviewComponent)), new UstadDestination(void 0, void 0, ClazzAssignmentDetailStudentProgressView.Companion.VIEW_NAME, getKClass(ClazzAssignmentDetailStudentProgressComponent)), new UstadDestination(void 0, void 0, SessionListView.Companion.VIEW_NAME, getKClass(SessionListComponent), true), new UstadDestination(void 0, void 0, TextAssignmentEditView.Companion.VIEW_NAME, getKClass(TextAssignmentEditComponent)), new UstadDestination(void 0, void 0, HtmlTextViewDetailView.Companion.VIEW_NAME, getKClass(HtmlTextViewComponent)), new UstadDestination(void 0, void 0, SelectFileView.Companion.VIEW_NAME, getKClass(SelectFileComponent)), new UstadDestination(void 0, void 0, StatementListView.Companion.VIEW_NAME, getKClass(StatementListComponent)), new UstadDestination(void 0, void 0, ReportTemplateListView.Companion.VIEW_NAME, getKClass(ReportTemplateListComponent)), new UstadDestination(void 0, void 0, ReportEditView.Companion.VIEW_NAME, getKClass(ReportEditComponent)), new UstadDestination(void 0, void 0, ReportFilterEditView.Companion.VIEW_NAME, getKClass(ReportFilterEditComponent)), new UstadDestination(void 0, void 0, ContentEntryList2View.Companion.FOLDER_VIEW_NAME, getKClass(ContentEntryListComponent)), new UstadDestination(void 0, void 0, SelectFileView.Companion.VIEW_NAME, getKClass(SelectFileComponent)), new UstadDestination(void 0, void 0, CourseGroupSetListView.Companion.VIEW_NAME, getKClass(CourseGroupSetListComponent)), new UstadDestination(void 0, void 0, CourseGroupSetEditView.Companion.VIEW_NAME, getKClass(CourseGroupSetEditComponent)), new UstadDestination(void 0, void 0, CourseGroupSetDetailView.Companion.VIEW_NAME, getKClass(CourseGroupSetDetailComponent)), new UstadDestination(void 0, void 0, ChatDetailView.Companion.VIEW_NAME, getKClass(ChatDetailComponent)), new UstadDestination(void 0, void 0, ReportDetailView.Companion.VIEW_NAME, getKClass(ReportDetailComponent)), new UstadDestination(void 0, void 0, CourseDiscussionEditView.Companion.VIEW_NAME, getKClass(CourseDiscussionEditComponent)), new UstadDestination(void 0, void 0, DiscussionTopicEditView.Companion.VIEW_NAME, getKClass(DiscussionTopicEditComponent)), new UstadDestination(void 0, void 0, CourseDiscussionDetailView.Companion.VIEW_NAME, getKClass(CourseDiscussionDetailComponent)), new UstadDestination(void 0, void 0, DiscussionTopicDetailView.Companion.VIEW_NAME, getKClass(DiscussionTopicDetailComponent)), new UstadDestination(void 0, void 0, DiscussionPostEditView.Companion.VIEW_NAME, getKClass(DiscussionPostEditComponent)), new UstadDestination(void 0, void 0, DiscussionPostDetailView.Companion.VIEW_NAME, getKClass(DiscussionPostDetailComponent)), new UstadDestination(void 0, void 0, SelectExtractFileView.Companion.VIEW_NAME, getKClass(SelectExtractFileComponent))]); this.componentClassToViewNamesMap_rhgr2z$_0 = lazy(RouteManager$componentClassToViewNamesMap$lambda(this)); var $receiver = this.destinationList; var first$result; first$break: do { var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (equals(element.view, RedirectView.Companion.VIEW_NAME)) { first$result = element; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); var $receiver_0 = first$result; $receiver_0.component = getKClass(RedirectComponent); this.defaultDestination = $receiver_0; var $receiver_1 = this.destinationList; var first$result_0; first$break: do { var tmp$_0; tmp$_0 = $receiver_1.iterator(); while (tmp$_0.hasNext()) { var element_0 = tmp$_0.next(); if (equals(element_0.view, ContentEntryList2View.Companion.VIEW_NAME_HOME)) { first$result_0 = element_0; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); this.firstDestination = first$result_0; } Object.defineProperty(RouteManager.prototype, 'componentClassToViewNamesMap_0', { configurable: true, get: function () { return this.componentClassToViewNamesMap_rhgr2z$_0.value; } }); RouteManager.prototype.lookupDestinationName_pdl1vj$ = function (view) { var $receiver = this.destinationList; var firstOrNull$result; firstOrNull$break: do { var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (equals(element.view, view)) { firstOrNull$result = element; break firstOrNull$break; }} firstOrNull$result = null; } while (false); return firstOrNull$result; }; RouteManager.prototype.lookupViewNamesByComponent_xo1ogr$ = function (componentClass) { return this.componentClassToViewNamesMap_0.get_11rb$(componentClass); }; function RouteManager$componentClassToViewNamesMap$lambda(this$RouteManager) { return function () { var $receiver = this$RouteManager.destinationList; var destination = LinkedHashMap_init(); var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var key = element.component; var tmp$_0; var value = destination.get_11rb$(key); if (value == null) { var answer = ArrayList_init_0(); destination.put_xwzc9p$(key, answer); tmp$_0 = answer; } else { tmp$_0 = value; } var list = tmp$_0; list.add_11rb$(element); } var $receiver_0 = destination.entries; var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault($receiver_0, 10)), 16); var destination_0 = LinkedHashMap_init_0(capacity); var tmp$_1; tmp$_1 = $receiver_0.iterator(); while (tmp$_1.hasNext()) { var element_0 = tmp$_1.next(); var tmp$_2 = element_0.key; var $receiver_1 = element_0.value; var destination_1 = ArrayList_init(collectionSizeOrDefault($receiver_1, 10)); var tmp$_3; tmp$_3 = $receiver_1.iterator(); while (tmp$_3.hasNext()) { var item = tmp$_3.next(); destination_1.add_11rb$(item.view); } var pair = to(tmp$_2, destination_1); destination_0.put_xwzc9p$(pair.first, pair.second); } return destination_0; }; } RouteManager.$metadata$ = { kind: Kind_OBJECT, simpleName: 'RouteManager', interfaces: [] }; var RouteManager_instance = null; function RouteManager_getInstance() { if (RouteManager_instance === null) { new RouteManager(); }return RouteManager_instance; } function UstadDestination(icon, labelId, view, component, showSearch, showNavigation, divider) { if (icon === void 0) icon = null; if (labelId === void 0) labelId = 0; if (showSearch === void 0) showSearch = false; if (showNavigation === void 0) showNavigation = true; if (divider === void 0) divider = false; this.icon = icon; this.labelId = labelId; this.view = view; this.component = component; this.showSearch = showSearch; this.showNavigation = showNavigation; this.divider = divider; } UstadDestination.$metadata$ = { kind: Kind_CLASS, simpleName: 'UstadDestination', interfaces: [] }; UstadDestination.prototype.component1 = function () { return this.icon; }; UstadDestination.prototype.component2 = function () { return this.labelId; }; UstadDestination.prototype.component3 = function () { return this.view; }; UstadDestination.prototype.component4 = function () { return this.component; }; UstadDestination.prototype.component5 = function () { return this.showSearch; }; UstadDestination.prototype.component6 = function () { return this.showNavigation; }; UstadDestination.prototype.component7 = function () { return this.divider; }; UstadDestination.prototype.copy_4maoou$ = function (icon, labelId, view, component, showSearch, showNavigation, divider) { return new UstadDestination(icon === void 0 ? this.icon : icon, labelId === void 0 ? this.labelId : labelId, view === void 0 ? this.view : view, component === void 0 ? this.component : component, showSearch === void 0 ? this.showSearch : showSearch, showNavigation === void 0 ? this.showNavigation : showNavigation, divider === void 0 ? this.divider : divider); }; UstadDestination.prototype.toString = function () { return 'UstadDestination(icon=' + Kotlin.toString(this.icon) + (', labelId=' + Kotlin.toString(this.labelId)) + (', view=' + Kotlin.toString(this.view)) + (', component=' + Kotlin.toString(this.component)) + (', showSearch=' + Kotlin.toString(this.showSearch)) + (', showNavigation=' + Kotlin.toString(this.showNavigation)) + (', divider=' + Kotlin.toString(this.divider)) + ')'; }; UstadDestination.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.icon) | 0; result = result * 31 + Kotlin.hashCode(this.labelId) | 0; result = result * 31 + Kotlin.hashCode(this.view) | 0; result = result * 31 + Kotlin.hashCode(this.component) | 0; result = result * 31 + Kotlin.hashCode(this.showSearch) | 0; result = result * 31 + Kotlin.hashCode(this.showNavigation) | 0; result = result * 31 + Kotlin.hashCode(this.divider) | 0; return result; }; UstadDestination.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.icon, other.icon) && Kotlin.equals(this.labelId, other.labelId) && Kotlin.equals(this.view, other.view) && Kotlin.equals(this.component, other.component) && Kotlin.equals(this.showSearch, other.showSearch) && Kotlin.equals(this.showNavigation, other.showNavigation) && Kotlin.equals(this.divider, other.divider))))); }; function ReduxAppState(appTheme, di, db, appToolbar, navStack, appSnackBar) { if (appTheme === void 0) appTheme = new ReduxThemeState(); if (di === void 0) di = new ReduxDiState(); if (db === void 0) db = new ReduxDbState(); if (appToolbar === void 0) appToolbar = new ReduxToolbarState(); if (navStack === void 0) navStack = BrowserTabTracker_getInstance().navStackState; if (appSnackBar === void 0) appSnackBar = new ReduxSnackBarState(); this.appTheme = appTheme; this.di = di; this.db = db; this.appToolbar = appToolbar; this.navStack = navStack; this.appSnackBar = appSnackBar; } ReduxAppState.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxAppState', interfaces: [] }; ReduxAppState.prototype.component1 = function () { return this.appTheme; }; ReduxAppState.prototype.component2 = function () { return this.di; }; ReduxAppState.prototype.component3 = function () { return this.db; }; ReduxAppState.prototype.component4 = function () { return this.appToolbar; }; ReduxAppState.prototype.component5 = function () { return this.navStack; }; ReduxAppState.prototype.component6 = function () { return this.appSnackBar; }; ReduxAppState.prototype.copy_slc2ko$ = function (appTheme, di, db, appToolbar, navStack, appSnackBar) { return new ReduxAppState(appTheme === void 0 ? this.appTheme : appTheme, di === void 0 ? this.di : di, db === void 0 ? this.db : db, appToolbar === void 0 ? this.appToolbar : appToolbar, navStack === void 0 ? this.navStack : navStack, appSnackBar === void 0 ? this.appSnackBar : appSnackBar); }; ReduxAppState.prototype.toString = function () { return 'ReduxAppState(appTheme=' + Kotlin.toString(this.appTheme) + (', di=' + Kotlin.toString(this.di)) + (', db=' + Kotlin.toString(this.db)) + (', appToolbar=' + Kotlin.toString(this.appToolbar)) + (', navStack=' + Kotlin.toString(this.navStack)) + (', appSnackBar=' + Kotlin.toString(this.appSnackBar)) + ')'; }; ReduxAppState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.appTheme) | 0; result = result * 31 + Kotlin.hashCode(this.di) | 0; result = result * 31 + Kotlin.hashCode(this.db) | 0; result = result * 31 + Kotlin.hashCode(this.appToolbar) | 0; result = result * 31 + Kotlin.hashCode(this.navStack) | 0; result = result * 31 + Kotlin.hashCode(this.appSnackBar) | 0; return result; }; ReduxAppState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.appTheme, other.appTheme) && Kotlin.equals(this.di, other.di) && Kotlin.equals(this.db, other.db) && Kotlin.equals(this.appToolbar, other.appToolbar) && Kotlin.equals(this.navStack, other.navStack) && Kotlin.equals(this.appSnackBar, other.appSnackBar))))); }; function ReduxAppStateManager() { ReduxAppStateManager_instance = this; this.storeState_0 = null; } ReduxAppStateManager.prototype.combineReducersInferred_0 = function (reducers) { var destination = LinkedHashMap_init_0(mapCapacity(reducers.size)); var tmp$; tmp$ = reducers.entries.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); destination.put_xwzc9p$(element.key.callableName, element.value); } return combineReducers(destination); }; ReduxAppStateManager.prototype.reducer_0 = function (state, action) { if (state === void 0) state = new ReduxAppState(); var tmp$; if (Kotlin.isType(action, ReduxThemeState)) tmp$ = state.copy_slc2ko$(action); else if (Kotlin.isType(action, ReduxDiState)) tmp$ = state.copy_slc2ko$(void 0, action); else if (Kotlin.isType(action, ReduxDbState)) tmp$ = state.copy_slc2ko$(void 0, void 0, action); else if (Kotlin.isType(action, ReduxToolbarState)) tmp$ = state.copy_slc2ko$(void 0, void 0, void 0, action); else if (Kotlin.isType(action, ReduxNavStackState)) { BrowserTabTracker_getInstance().navStackState = action; tmp$ = state.copy_slc2ko$(void 0, void 0, void 0, void 0, action); } else if (Kotlin.isType(action, ReduxSnackBarState)) tmp$ = state.copy_slc2ko$(void 0, void 0, void 0, void 0, void 0, action); else tmp$ = state; return tmp$; }; ReduxAppStateManager.prototype.dispatch_quwr82$ = function (action) { var tmp$; (tmp$ = this.storeState_0) != null ? tmp$.dispatch(action) : null; }; function ReduxAppStateManager$subscribe$lambda(this$ReduxAppStateManager, closure$listener) { return function () { var tmp$, tmp$_0; if ((tmp$_0 = (tmp$ = this$ReduxAppStateManager.storeState_0) != null ? tmp$.getState() : null) != null) { closure$listener(tmp$_0); }return Unit; }; } ReduxAppStateManager.prototype.subscribe_w8v70w$ = function (listener) { var tmp$; (tmp$ = this.storeState_0) != null ? tmp$.subscribe(ReduxAppStateManager$subscribe$lambda(this, listener)) : null; }; ReduxAppStateManager.prototype.getCurrentState = function () { var tmp$, tmp$_0, tmp$_1; return (tmp$_1 = (tmp$_0 = (tmp$ = this.storeState_0) != null ? tmp$.getState() : null) != null ? tmp$_0.appState : null) != null ? tmp$_1 : new ReduxAppState(); }; ReduxAppStateManager.prototype.createStore_7xsz26$ = function (theme) { this.storeState_0 = createStore(this.combineReducersInferred_0(mapOf(to(getPropertyCallableRef('appState', 1, function ($receiver) { return $receiver.appState; }, function ($receiver, value) { $receiver.appState = value; }), getCallableRef('reducer', function ($receiver, p1, p2) { return $receiver.reducer_0(p1, p2); }.bind(null, ReduxAppStateManager_getInstance()))))), new ReduxStore(), rEnhancer()); this.dispatch_quwr82$(theme); return this.storeState_0; }; ReduxAppStateManager.$metadata$ = { kind: Kind_OBJECT, simpleName: 'ReduxAppStateManager', interfaces: [] }; var ReduxAppStateManager_instance = null; function ReduxAppStateManager_getInstance() { if (ReduxAppStateManager_instance === null) { new ReduxAppStateManager(); }return ReduxAppStateManager_instance; } function ReduxDbState(instance) { if (instance === void 0) instance = null; this.instance = instance; } ReduxDbState.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxDbState', interfaces: [] }; ReduxDbState.prototype.component1 = function () { return this.instance; }; ReduxDbState.prototype.copy_j4q3k4$ = function (instance) { return new ReduxDbState(instance === void 0 ? this.instance : instance); }; ReduxDbState.prototype.toString = function () { return 'ReduxDbState(instance=' + Kotlin.toString(this.instance) + ')'; }; ReduxDbState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.instance) | 0; return result; }; ReduxDbState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.instance, other.instance)))); }; function ReduxDiState(instance) { if (instance === void 0) instance = DI.Companion.lazy_ys71a$(void 0, ReduxDiState_init$lambda); this.instance = instance; } function ReduxDiState_init$lambda($receiver) { return Unit; } ReduxDiState.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxDiState', interfaces: [] }; ReduxDiState.prototype.component1 = function () { return this.instance; }; ReduxDiState.prototype.copy_60ocek$ = function (instance) { return new ReduxDiState(instance === void 0 ? this.instance : instance); }; ReduxDiState.prototype.toString = function () { return 'ReduxDiState(instance=' + Kotlin.toString(this.instance) + ')'; }; ReduxDiState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.instance) | 0; return result; }; ReduxDiState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.instance, other.instance)))); }; function ReduxNavStackState(stack) { if (stack === void 0) { stack = ArrayList_init_0(); }this.stack = stack; } ReduxNavStackState.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxNavStackState', interfaces: [] }; ReduxNavStackState.prototype.component1 = function () { return this.stack; }; ReduxNavStackState.prototype.copy_6xmpro$ = function (stack) { return new ReduxNavStackState(stack === void 0 ? this.stack : stack); }; ReduxNavStackState.prototype.toString = function () { return 'ReduxNavStackState(stack=' + Kotlin.toString(this.stack) + ')'; }; ReduxNavStackState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.stack) | 0; return result; }; ReduxNavStackState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.stack, other.stack)))); }; function ReduxSnackBarState(message, actionLabel, onClick) { if (message === void 0) message = null; if (actionLabel === void 0) actionLabel = null; if (onClick === void 0) onClick = ReduxSnackBarState_init$lambda; this.message = message; this.actionLabel = actionLabel; this.onClick = onClick; } function ReduxSnackBarState_init$lambda() { return Unit; } ReduxSnackBarState.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxSnackBarState', interfaces: [] }; ReduxSnackBarState.prototype.component1 = function () { return this.message; }; ReduxSnackBarState.prototype.component2 = function () { return this.actionLabel; }; ReduxSnackBarState.prototype.component3 = function () { return this.onClick; }; ReduxSnackBarState.prototype.copy_amwjif$ = function (message, actionLabel, onClick) { return new ReduxSnackBarState(message === void 0 ? this.message : message, actionLabel === void 0 ? this.actionLabel : actionLabel, onClick === void 0 ? this.onClick : onClick); }; ReduxSnackBarState.prototype.toString = function () { return 'ReduxSnackBarState(message=' + Kotlin.toString(this.message) + (', actionLabel=' + Kotlin.toString(this.actionLabel)) + (', onClick=' + Kotlin.toString(this.onClick)) + ')'; }; ReduxSnackBarState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.message) | 0; result = result * 31 + Kotlin.hashCode(this.actionLabel) | 0; result = result * 31 + Kotlin.hashCode(this.onClick) | 0; return result; }; ReduxSnackBarState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.message, other.message) && Kotlin.equals(this.actionLabel, other.actionLabel) && Kotlin.equals(this.onClick, other.onClick))))); }; function ReduxStore(appState) { if (appState === void 0) appState = new ReduxAppState(); this.appState = appState; } ReduxStore.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxStore', interfaces: [] }; ReduxStore.prototype.component1 = function () { return this.appState; }; ReduxStore.prototype.copy_pwv7hm$ = function (appState) { return new ReduxStore(appState === void 0 ? this.appState : appState); }; ReduxStore.prototype.toString = function () { return 'ReduxStore(appState=' + Kotlin.toString(this.appState) + ')'; }; ReduxStore.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.appState) | 0; return result; }; ReduxStore.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.appState, other.appState)))); }; function ReduxThemeState(theme) { if (theme === void 0) theme = null; this.theme = theme; } ReduxThemeState.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxThemeState', interfaces: [] }; ReduxThemeState.prototype.component1 = function () { return this.theme; }; ReduxThemeState.prototype.copy_o1pzk8$ = function (theme) { return new ReduxThemeState(theme === void 0 ? this.theme : theme); }; ReduxThemeState.prototype.toString = function () { return 'ReduxThemeState(theme=' + Kotlin.toString(this.theme) + ')'; }; ReduxThemeState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.theme) | 0; return result; }; ReduxThemeState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.theme, other.theme)))); }; function ReduxToolbarState(title) { if (title === void 0) title = null; this.title = title; } ReduxToolbarState.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReduxToolbarState', interfaces: [] }; ReduxToolbarState.prototype.component1 = function () { return this.title; }; ReduxToolbarState.prototype.copy_pdl1vj$ = function (title) { return new ReduxToolbarState(title === void 0 ? this.title : title); }; ReduxToolbarState.prototype.toString = function () { return 'ReduxToolbarState(title=' + Kotlin.toString(this.title) + ')'; }; ReduxToolbarState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.title) | 0; return result; }; ReduxToolbarState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.title, other.title)))); }; function TabState(viewName, arguments_0, id) { TabState$Companion_getInstance(); if (viewName === void 0) viewName = ''; if (arguments_0 === void 0) { arguments_0 = emptyMap(); }if (id === void 0) id = 1; this.viewName = viewName; this.arguments = arguments_0; this.id = id; } function TabState$Companion() { TabState$Companion_instance = this; } TabState$Companion.prototype.serializer = function () { return TabState$$serializer_getInstance(); }; TabState$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var TabState$Companion_instance = null; function TabState$Companion_getInstance() { if (TabState$Companion_instance === null) { new TabState$Companion(); }return TabState$Companion_instance; } function TabState$$serializer() { this.descriptor_7nysoj$_0 = new PluginGeneratedSerialDescriptor('com.ustadmobile.util.TabState', this, 3); this.descriptor.addElement_ivxn3r$('viewName', true); this.descriptor.addElement_ivxn3r$('arguments', true); this.descriptor.addElement_ivxn3r$('id', true); TabState$$serializer_instance = this; } Object.defineProperty(TabState$$serializer.prototype, 'descriptor', { configurable: true, get: function () { return this.descriptor_7nysoj$_0; } }); TabState$$serializer.prototype.serialize_55azsf$ = function (encoder, value) { var output = encoder.beginStructure_24f42q$(this.descriptor); if (!equals(value.viewName, '') || output.shouldEncodeElementDefault_szpzho$(this.descriptor, 0)) output.encodeStringElement_iij8qq$(this.descriptor, 0, value.viewName); if (!equals(value.arguments, emptyMap()) || output.shouldEncodeElementDefault_szpzho$(this.descriptor, 1)) output.encodeSerializableElement_r4qlx7$(this.descriptor, 1, new LinkedHashMapSerializer(internal.StringSerializer, internal.StringSerializer), value.arguments); if (!equals(value.id, 1) || output.shouldEncodeElementDefault_szpzho$(this.descriptor, 2)) output.encodeIntElement_ptg7oe$(this.descriptor, 2, value.id); output.endStructure_24f42q$(this.descriptor); }; TabState$$serializer.prototype.deserialize_bq71mq$ = function (decoder) { var index; var bitMask0 = 0; var local0 , local1 , local2; var input = decoder.beginStructure_24f42q$(this.descriptor); loopLabel: while (true) { index = input.decodeElementIndex_24f42q$(this.descriptor); switch (index) { case 0: local0 = input.decodeStringElement_szpzho$(this.descriptor, 0); bitMask0 |= 1; break; case 1: local1 = input.decodeSerializableElement_12e8id$(this.descriptor, 1, new LinkedHashMapSerializer(internal.StringSerializer, internal.StringSerializer), local1); bitMask0 |= 2; break; case 2: local2 = input.decodeIntElement_szpzho$(this.descriptor, 2); bitMask0 |= 4; break; case -1: break loopLabel; default:throw new UnknownFieldException(index); } } input.endStructure_24f42q$(this.descriptor); return TabState_init(bitMask0, local0, local1, local2, null); }; TabState$$serializer.prototype.childSerializers = function () { return [internal.StringSerializer, new LinkedHashMapSerializer(internal.StringSerializer, internal.StringSerializer), internal.IntSerializer]; }; TabState$$serializer.$metadata$ = { kind: Kind_OBJECT, simpleName: '$serializer', interfaces: [GeneratedSerializer] }; var TabState$$serializer_instance = null; function TabState$$serializer_getInstance() { if (TabState$$serializer_instance === null) { new TabState$$serializer(); }return TabState$$serializer_instance; } function TabState_init(seen1, viewName, arguments_0, id, serializationConstructorMarker) { var $this = serializationConstructorMarker || Object.create(TabState.prototype); if ((seen1 & 1) === 0) $this.viewName = ''; else $this.viewName = viewName; if ((seen1 & 2) === 0) { $this.arguments = emptyMap(); } else $this.arguments = arguments_0; if ((seen1 & 4) === 0) $this.id = 1; else $this.id = id; return $this; } TabState.$metadata$ = { kind: Kind_CLASS, simpleName: 'TabState', interfaces: [] }; TabState.prototype.component1 = function () { return this.viewName; }; TabState.prototype.component2 = function () { return this.arguments; }; TabState.prototype.component3 = function () { return this.id; }; TabState.prototype.copy_9s8wcp$ = function (viewName, arguments_0, id) { return new TabState(viewName === void 0 ? this.viewName : viewName, arguments_0 === void 0 ? this.arguments : arguments_0, id === void 0 ? this.id : id); }; TabState.prototype.toString = function () { return 'TabState(viewName=' + Kotlin.toString(this.viewName) + (', arguments=' + Kotlin.toString(this.arguments)) + (', id=' + Kotlin.toString(this.id)) + ')'; }; TabState.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.viewName) | 0; result = result * 31 + Kotlin.hashCode(this.arguments) | 0; result = result * 31 + Kotlin.hashCode(this.id) | 0; return result; }; TabState.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.viewName, other.viewName) && Kotlin.equals(this.arguments, other.arguments) && Kotlin.equals(this.id, other.id))))); }; function BrowserTabTracker() { BrowserTabTracker_instance = this; this.KEY_STATE_STORAGE_0 = 'key_tab_state_tracker'; this.KEY_ACTIVE_TAB_0 = 'key_active'; this.serializer_0 = ListSerializer(TabState$Companion_getInstance().serializer()); this.activeTabRunning_wqt5gb$_0 = false; } Object.defineProperty(BrowserTabTracker.prototype, 'activeTabRunning', { configurable: true, get: function () { return this.activeTabRunning_wqt5gb$_0; }, set: function (value) { this.activeTabRunning_wqt5gb$_0 = value; } }); function BrowserTabTracker$set_BrowserTabTracker$navStackState$lambda(closure$value) { return function (it) { return !closure$value.stack.isEmpty(); }; } Object.defineProperty(BrowserTabTracker.prototype, 'navStackState', { configurable: true, get: function () { var tabStateList = this.getStoredTabStateList_0(); var navState = new ReduxNavStackState(); var destination = ArrayList_init(collectionSizeOrDefault(tabStateList, 10)); var tmp$; tmp$ = tabStateList.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(Unit); } return navState; }, set: function (value) { var storedStateList = this.getStoredTabStateList_0(); if (storedStateList == null || storedStateList.isEmpty()) { localStorage.setItem(this.KEY_STATE_STORAGE_0, ''); }removeAll(storedStateList, BrowserTabTracker$set_BrowserTabTracker$navStackState$lambda(value)); var tmp$; tmp$ = value.stack.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); storedStateList.add_11rb$(new TabState(element.viewName, element.arguments)); } localStorage.setItem(this.KEY_STATE_STORAGE_0, Json.Default.encodeToString_tf03ej$(this.serializer_0, storedStateList)); } }); function BrowserTabTracker$init$lambda(this$BrowserTabTracker) { return function (it) { localStorage.removeItem(this$BrowserTabTracker.KEY_ACTIVE_TAB_0); return null; }; } BrowserTabTracker.prototype.init_y8twos$ = function (onExtraTabDetected) { var tmp$, tmp$_0; this.activeTabRunning = (tmp$_0 = (tmp$ = localStorage.getItem(this.KEY_ACTIVE_TAB_0)) != null ? toBoolean(tmp$) : null) != null ? tmp$_0 : false; if (!this.activeTabRunning) { localStorage.setItem(this.KEY_ACTIVE_TAB_0, true.toString()); this.activeTabRunning = true; onExtraTabDetected(false); } else { onExtraTabDetected(true); } ReduxAppStateManager_getInstance().dispatch_quwr82$(ReduxAppStateManager_getInstance().getCurrentState().navStack); window.onbeforeunload = BrowserTabTracker$init$lambda(this); }; BrowserTabTracker.prototype.getStoredTabStateList_0 = function () { var tmp$; var storedStateList = localStorage.getItem(this.KEY_STATE_STORAGE_0); if (storedStateList == null || storedStateList.length === 0) { tmp$ = ArrayList_init_0(); } else { tmp$ = toMutableList(Json.Default.decodeFromString_awif5v$(this.serializer_0, storedStateList)); } return tmp$; }; BrowserTabTracker.$metadata$ = { kind: Kind_OBJECT, simpleName: 'BrowserTabTracker', interfaces: [] }; var BrowserTabTracker_instance = null; function BrowserTabTracker_getInstance() { if (BrowserTabTracker_instance === null) { new BrowserTabTracker(); }return BrowserTabTracker_instance; } function ContainerMounterJs() { } ContainerMounterJs.prototype.mountContainer_dckg8j$$default = function (endpointUrl, containerUid, filterMode, continuation) { return util.UMFileUtil.joinPaths_vqirvp$([endpointUrl, 'ContainerMount', containerUid.toString()]); }; ContainerMounterJs.prototype.unMountContainer_puj7f4$ = function (endpointUrl, mountPath, continuation) { }; ContainerMounterJs.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContainerMounterJs', interfaces: [ContainerMounter] }; function DraftJsUtil() { DraftJsUtil_instance = this; } DraftJsUtil.prototype.convertDataToEditorState_61zpoe$ = function (data) { var contentHTML = $module$draft_js.convertFromHTML(data); var state = $module$draft_js.ContentState.createFromBlockArray(contentHTML.contentBlocks, contentHTML.entityMap); return JSON.stringify($module$draft_js.convertToRaw(state)); }; DraftJsUtil.prototype.convertEditorContentToHtml_za3rmp$ = function (content) { return $module$draft_js_export_html.stateToHTML(content).toString(); }; DraftJsUtil.prototype.clean_pdl1vj$ = function (html) { return $module$striptags(html != null ? html : '').toString(); }; DraftJsUtil.$metadata$ = { kind: Kind_OBJECT, simpleName: 'DraftJsUtil', interfaces: [] }; var DraftJsUtil_instance = null; function DraftJsUtil_getInstance() { if (DraftJsUtil_instance === null) { new DraftJsUtil(); }return DraftJsUtil_instance; } function EmptyList(text, icon) { if (text === void 0) text = null; if (icon === void 0) icon = null; this.text = text; this.icon = icon; } EmptyList.$metadata$ = { kind: Kind_CLASS, simpleName: 'EmptyList', interfaces: [] }; EmptyList.prototype.component1 = function () { return this.text; }; EmptyList.prototype.component2 = function () { return this.icon; }; EmptyList.prototype.copy_rkkr90$ = function (text, icon) { return new EmptyList(text === void 0 ? this.text : text, icon === void 0 ? this.icon : icon); }; EmptyList.prototype.toString = function () { return 'EmptyList(text=' + Kotlin.toString(this.text) + (', icon=' + Kotlin.toString(this.icon)) + ')'; }; EmptyList.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.text) | 0; result = result * 31 + Kotlin.hashCode(this.icon) | 0; return result; }; EmptyList.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.text, other.text) && Kotlin.equals(this.icon, other.icon))))); }; function FabManager(viewId, visible) { if (viewId === void 0) viewId = 'um-fab'; if (visible === void 0) visible = false; this.viewId_0 = viewId; this.fabView_0 = null; this.viewInitTimeoutId_0 = -1; this.clickEventHandler_0 = FabManager$clickEventHandler$lambda(this); var tmp$; this.fabView_0 = document.getElementById(this.viewId_0); (tmp$ = this.fabView_0) != null ? (tmp$.addEventListener('click', this.clickEventHandler_0), Unit) : null; this.onClickListener_u1jysn$_0 = null; this.visible_qvq518$_0 = visible; this.icon_d7ip3v$_0 = null; this.text_d1fhsf$_0 = null; } Object.defineProperty(FabManager.prototype, 'onClickListener', { configurable: true, get: function () { return this.onClickListener_u1jysn$_0; }, set: function (value) { this.onClickListener_u1jysn$_0 = value; } }); Object.defineProperty(FabManager.prototype, 'visible', { configurable: true, get: function () { return this.visible_qvq518$_0; }, set: function (value) { this.visible_qvq518$_0 = value; this.updateIconAndFabText_0(value); } }); Object.defineProperty(FabManager.prototype, 'icon', { configurable: true, get: function () { return this.icon_d7ip3v$_0; }, set: function (value) { this.icon_d7ip3v$_0 = value; this.updateIconAndFabText_0(this.visible); } }); Object.defineProperty(FabManager.prototype, 'text', { configurable: true, get: function () { return this.text_d1fhsf$_0; }, set: function (value) { this.text_d1fhsf$_0 = value; this.updateIconAndFabText_0(this.visible); } }); FabManager.prototype.updateIconAndFabText_0 = function (visible) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; (tmp$_1 = (tmp$_0 = (tmp$ = this.fabView_0) != null ? tmp$.childNodes : null) != null ? tmp$_0.item(0) : null) != null ? (tmp$_1.textContent = this.icon) : null; (tmp$_4 = (tmp$_3 = (tmp$_2 = this.fabView_0) != null ? tmp$_2.childNodes : null) != null ? tmp$_3.item(1) : null) != null ? (tmp$_4.textContent = this.text) : null; if (this.fabView_0 != null) { var style = ((tmp$_5 = this.fabView_0) != null ? tmp$_5 : null).style; if (style != null) style.display = visible ? 'flex' : 'none'; }}; FabManager.prototype.onDestroy = function () { window.removeEventListener('click', this.clickEventHandler_0); window.clearTimeout(this.viewInitTimeoutId_0); this.onClickListener = null; this.fabView_0 = null; }; function FabManager$clickEventHandler$lambda(this$FabManager) { return function (it) { var tmp$; (tmp$ = this$FabManager.onClickListener) != null ? tmp$() : null; return Unit; }; } FabManager.$metadata$ = { kind: Kind_CLASS, simpleName: 'FabManager', interfaces: [] }; function FieldLabel(text, errorText, hint, id) { if (text === void 0) text = null; if (errorText === void 0) errorText = null; if (hint === void 0) hint = null; if (id === void 0) id = null; this.text = text; this.errorText = errorText; this.hint = hint; this.id = id; this.error = this.errorText != null; var tmp$, tmp$_0; this.width = ((tmp$_0 = (tmp$ = this.text) != null ? tmp$.length : null) != null ? tmp$_0 : 1) * 8 | 0; } FieldLabel.$metadata$ = { kind: Kind_CLASS, simpleName: 'FieldLabel', interfaces: [] }; FieldLabel.prototype.component1 = function () { return this.text; }; FieldLabel.prototype.component2 = function () { return this.errorText; }; FieldLabel.prototype.component3 = function () { return this.hint; }; FieldLabel.prototype.component4 = function () { return this.id; }; FieldLabel.prototype.copy_d8n4vg$ = function (text, errorText, hint, id) { return new FieldLabel(text === void 0 ? this.text : text, errorText === void 0 ? this.errorText : errorText, hint === void 0 ? this.hint : hint, id === void 0 ? this.id : id); }; FieldLabel.prototype.toString = function () { return 'FieldLabel(text=' + Kotlin.toString(this.text) + (', errorText=' + Kotlin.toString(this.errorText)) + (', hint=' + Kotlin.toString(this.hint)) + (', id=' + Kotlin.toString(this.id)) + ')'; }; FieldLabel.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.text) | 0; result = result * 31 + Kotlin.hashCode(this.errorText) | 0; result = result * 31 + Kotlin.hashCode(this.hint) | 0; result = result * 31 + Kotlin.hashCode(this.id) | 0; return result; }; FieldLabel.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.text, other.text) && Kotlin.equals(this.errorText, other.errorText) && Kotlin.equals(this.hint, other.hint) && Kotlin.equals(this.id, other.id))))); }; function OnFileAttached() { } OnFileAttached.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'OnFileAttached', interfaces: [] }; function FileDropZoneManager(dropZoneId, acceptedMimeTypesAndExtensions) { if (dropZoneId === void 0) dropZoneId = 'um-dropzone'; this.acceptedMimeTypesAndExtensions = acceptedMimeTypesAndExtensions; this.mimeTypeMatcher_0 = new MimeTypeMatcher(this.acceptedMimeTypesAndExtensions); this.dropZoneElement_0 = null; this.dropZoneInput_0 = null; this.onFileInputChangedHandler_0 = FileDropZoneManager$onFileInputChangedHandler$lambda(this); this.onFileDragOverHandler_0 = FileDropZoneManager$onFileDragOverHandler$lambda(this); this.onFileDragLeaveHandler_0 = FileDropZoneManager$onFileDragLeaveHandler$lambda(this); this.onFileDropHandler_0 = FileDropZoneManager$onFileDropHandler$lambda(this); this.onFileBrowseHandler_0 = FileDropZoneManager$onFileBrowseHandler$lambda(this); this.onFileAttached_1uf4l3$_0 = null; var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; this.dropZoneElement_0 = document.getElementById(dropZoneId); this.dropZoneInput_0 = (tmp$ = this.dropZoneElement_0) != null ? tmp$.querySelector('input') : null; (tmp$_0 = this.dropZoneElement_0) != null ? (tmp$_0.addEventListener('click', this.onFileBrowseHandler_0), Unit) : null; (tmp$_1 = this.dropZoneElement_0) != null ? (tmp$_1.addEventListener('dragover', this.onFileDragOverHandler_0), Unit) : null; (tmp$_2 = this.dropZoneElement_0) != null ? (tmp$_2.addEventListener('dragleave', this.onFileDragLeaveHandler_0), Unit) : null; (tmp$_3 = this.dropZoneElement_0) != null ? (tmp$_3.addEventListener('drop', this.onFileDropHandler_0), Unit) : null; (tmp$_4 = this.dropZoneInput_0) != null ? (tmp$_4.addEventListener('change', this.onFileInputChangedHandler_0), Unit) : null; } Object.defineProperty(FileDropZoneManager.prototype, 'onFileAttached', { configurable: true, get: function () { return this.onFileAttached_1uf4l3$_0; }, set: function (value) { this.onFileAttached_1uf4l3$_0 = value; } }); FileDropZoneManager.prototype.handleSelectedFile_0 = function (file) { var tmp$, tmp$_0, tmp$_1, tmp$_2; var $receiver = file.type; var tmp$_3; if ($receiver.length === 0) { var ext = util.UMFileUtil.getExtension_61zpoe$(file.name); tmp$_3 = ext != null ? '.' + toString(ext) : null; } else tmp$_3 = $receiver; var extOrMimeType = tmp$_3; var validFile = this.mimeTypeMatcher_0.match_pdl1vj$(extOrMimeType); if (validFile) { (tmp$ = this.onFileAttached) != null ? (tmp$.onValidFileAttached_6d2hh8$(file), Unit) : null; } else { (tmp$_0 = this.onFileAttached) != null ? (tmp$_0.onInvalidFileAttached(), Unit) : null; } (tmp$_2 = (tmp$_1 = this.dropZoneElement_0) != null ? tmp$_1.classList : null) != null ? (tmp$_2.add(StyleManager_getInstance().name + ('-dropZoneArea' + (validFile ? 'Success' : 'Error'))), Unit) : null; }; FileDropZoneManager.prototype.onDestroy = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; this.onFileAttached = null; (tmp$ = this.dropZoneElement_0) != null ? (tmp$.removeEventListener('click', this.onFileBrowseHandler_0), Unit) : null; (tmp$_0 = this.dropZoneElement_0) != null ? (tmp$_0.removeEventListener('dragover', this.onFileDragOverHandler_0), Unit) : null; (tmp$_1 = this.dropZoneElement_0) != null ? (tmp$_1.removeEventListener('dragleave', this.onFileDragLeaveHandler_0), Unit) : null; (tmp$_2 = this.dropZoneElement_0) != null ? (tmp$_2.removeEventListener('drop', this.onFileDropHandler_0), Unit) : null; (tmp$_3 = this.dropZoneInput_0) != null ? (tmp$_3.removeEventListener('change', this.onFileInputChangedHandler_0), Unit) : null; this.dropZoneElement_0 = null; this.dropZoneInput_0 = null; }; function FileDropZoneManager$onFileInputChangedHandler$lambda(this$FileDropZoneManager) { return function (it) { var tmp$, tmp$_0; Util_getInstance().stopEventPropagation_za3rmp$(it); tmp$_0 = Kotlin.isType(tmp$ = it.target.files[0], File) ? tmp$ : throwCCE(); this$FileDropZoneManager.handleSelectedFile_0(tmp$_0); return Unit; }; } function FileDropZoneManager$onFileDragOverHandler$lambda(this$FileDropZoneManager) { return function (it) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$_0 = (tmp$ = this$FileDropZoneManager.dropZoneElement_0) != null ? tmp$.classList : null) != null ? (tmp$_0.remove(StyleManager_getInstance().name + '-dropZoneAreaSuccess'), Unit) : null; (tmp$_2 = (tmp$_1 = this$FileDropZoneManager.dropZoneElement_0) != null ? tmp$_1.classList : null) != null ? (tmp$_2.remove(StyleManager_getInstance().name + '-dropZoneAreaError'), Unit) : null; (tmp$_4 = (tmp$_3 = this$FileDropZoneManager.dropZoneElement_0) != null ? tmp$_3.classList : null) != null ? (tmp$_4.add(StyleManager_getInstance().name + '-dropZoneAreaActive'), Unit) : null; return Unit; }; } function FileDropZoneManager$onFileDragLeaveHandler$lambda(this$FileDropZoneManager) { return function (it) { var tmp$, tmp$_0; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$_0 = (tmp$ = this$FileDropZoneManager.dropZoneElement_0) != null ? tmp$.classList : null) != null ? (tmp$_0.remove(StyleManager_getInstance().name + '-dropZoneAreaActive'), Unit) : null; return Unit; }; } function FileDropZoneManager$onFileDropHandler$lambda(this$FileDropZoneManager) { return function (it) { var tmp$, tmp$_0; Util_getInstance().stopEventPropagation_za3rmp$(it); tmp$_0 = Kotlin.isType(tmp$ = it.dataTransfer.files[0], File) ? tmp$ : throwCCE(); this$FileDropZoneManager.handleSelectedFile_0(tmp$_0); return Unit; }; } function FileDropZoneManager$onFileBrowseHandler$lambda$lambda(closure$it) { return function () { Util_getInstance().stopEventPropagation_za3rmp$(closure$it); return Unit; }; } function FileDropZoneManager$onFileBrowseHandler$lambda(this$FileDropZoneManager) { return function (it) { var tmp$, tmp$_0, tmp$_1; (tmp$_0 = (tmp$ = this$FileDropZoneManager.dropZoneElement_0) != null ? tmp$.classList : null) != null ? (tmp$_0.add(StyleManager_getInstance().name + '-dropZoneAreaActive'), Unit) : null; ((tmp$_1 = this$FileDropZoneManager.dropZoneInput_0) != null ? tmp$_1 : null).click(); window.setTimeout(FileDropZoneManager$onFileBrowseHandler$lambda$lambda(it), 2000); return Unit; }; } FileDropZoneManager.$metadata$ = { kind: Kind_CLASS, simpleName: 'FileDropZoneManager', interfaces: [] }; function MatchGroup(valid, type, subType) { this.valid = valid; this.type = type; this.subType = subType; } MatchGroup.$metadata$ = { kind: Kind_CLASS, simpleName: 'MatchGroup', interfaces: [] }; MatchGroup.prototype.component1 = function () { return this.valid; }; MatchGroup.prototype.component2 = function () { return this.type; }; MatchGroup.prototype.component3 = function () { return this.subType; }; MatchGroup.prototype.copy_32fsn9$ = function (valid, type, subType) { return new MatchGroup(valid === void 0 ? this.valid : valid, type === void 0 ? this.type : type, subType === void 0 ? this.subType : subType); }; MatchGroup.prototype.toString = function () { return 'MatchGroup(valid=' + Kotlin.toString(this.valid) + (', type=' + Kotlin.toString(this.type)) + (', subType=' + Kotlin.toString(this.subType)) + ')'; }; MatchGroup.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.valid) | 0; result = result * 31 + Kotlin.hashCode(this.type) | 0; result = result * 31 + Kotlin.hashCode(this.subType) | 0; return result; }; MatchGroup.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.valid, other.valid) && Kotlin.equals(this.type, other.type) && Kotlin.equals(this.subType, other.subType))))); }; function MimeTypeMatcher(mimeTypesToMatch) { this.mimeTypesToMatch_0 = mimeTypesToMatch; this.validatedMimeTypes_0 = null; var $receiver = this.mimeTypesToMatch_0; var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10)); var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(this.parse_0(item)); } this.validatedMimeTypes_0 = toList(destination); } MimeTypeMatcher.prototype.parse_0 = function (mimetype) { var tmp$, tmp$_0, tmp$_1, tmp$_2; var regex = Regex_init('(\\S+|\\*|\\.S)/(\\S+|\\*|\\S-\\S)(\\s*;\\s*(\\w+)=\\s*=\\s*(\\S+))?'); var matches = (tmp$ = mimetype != null ? regex.matches_6bul2c$(mimetype) : null) != null ? tmp$ : false; var matchGroups = (tmp$_0 = regex.matchEntire_6bul2c$(mimetype != null ? mimetype : '')) != null ? tmp$_0.groups : null; return new MatchGroup(matches, (tmp$_1 = matchGroups != null ? matchGroups.get_za3lpa$(1) : null) != null ? tmp$_1.value : null, (tmp$_2 = matchGroups != null ? matchGroups.get_za3lpa$(2) : null) != null ? tmp$_2.value : null); }; MimeTypeMatcher.prototype.validateMimeType_0 = function (actual, expected) { return equals(expected, '*') ? true : equals(expected != null ? expected.toLowerCase() : null, actual != null ? actual.toLowerCase() : null); }; MimeTypeMatcher.prototype.match_pdl1vj$ = function (extOrMimeType) { var actualMatchGroup = this.parse_0(extOrMimeType); var $receiver = this.validatedMimeTypes_0; var firstOrNull$result; firstOrNull$break: do { var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (this.validateMimeType_0(actualMatchGroup.type, element.type) && this.validateMimeType_0(actualMatchGroup.subType, element.subType)) { firstOrNull$result = element; break firstOrNull$break; }} firstOrNull$result = null; } while (false); var match = firstOrNull$result; return match != null || indexOf(this.mimeTypesToMatch_0, extOrMimeType) !== -1; }; MimeTypeMatcher.$metadata$ = { kind: Kind_CLASS, simpleName: 'MimeTypeMatcher', interfaces: [] }; function PaginateOnScrollManager(totalItemCount, pageSize) { this.totalItemCount_0 = totalItemCount; this.pageSize_0 = pageSize; this.pageNumber_0 = 1; this.scrollManager_0 = null; this.totalPages_0 = this.totalItemCount_0 / this.pageSize_0; this.startIndex = PaginateOnScrollManager$startIndex$lambda(this); this.endIndex = PaginateOnScrollManager$endIndex$lambda(this); this.onScroll_0 = PaginateOnScrollManager$onScroll$lambda(this); this.onScrollPageChanged_wifbf5$_0 = null; } Object.defineProperty(PaginateOnScrollManager.prototype, 'onScrollPageChanged', { configurable: true, get: function () { return this.onScrollPageChanged_wifbf5$_0; }, set: function (value) { var tmp$; if (value != null) { value(this.pageNumber_0, this.startIndex(), this.endIndex()); }if (this.pageSize_0 !== this.totalItemCount_0 && this.totalPages_0 > 1) { this.scrollManager_0 = new ScrollManager('main-content'); (tmp$ = this.scrollManager_0) != null ? (tmp$.scrollListener = this.onScroll_0) : null; }this.onScrollPageChanged_wifbf5$_0 = value; } }); PaginateOnScrollManager.prototype.onDestroy = function () { var tmp$; (tmp$ = this.scrollManager_0) != null ? (tmp$.onDestroy(), Unit) : null; this.scrollManager_0 = null; this.onScrollPageChanged = null; }; function PaginateOnScrollManager$startIndex$lambda(this$PaginateOnScrollManager) { return function () { return Kotlin.imul(this$PaginateOnScrollManager.pageNumber_0 - 1 | 0, this$PaginateOnScrollManager.pageSize_0) > this$PaginateOnScrollManager.totalItemCount_0 ? 0 : Kotlin.imul(this$PaginateOnScrollManager.pageNumber_0 - 1 | 0, this$PaginateOnScrollManager.pageSize_0); }; } function PaginateOnScrollManager$endIndex$lambda(this$PaginateOnScrollManager) { return function () { return Kotlin.imul(this$PaginateOnScrollManager.pageNumber_0, this$PaginateOnScrollManager.pageSize_0) < this$PaginateOnScrollManager.totalItemCount_0 ? Kotlin.imul(this$PaginateOnScrollManager.pageNumber_0, this$PaginateOnScrollManager.pageSize_0) : this$PaginateOnScrollManager.totalItemCount_0 - 1 | 0; }; } function PaginateOnScrollManager$onScroll$lambda(this$PaginateOnScrollManager) { return function (fullFilled, f) { var tmp$, tmp$_0; if (fullFilled) { var pages = this$PaginateOnScrollManager.totalPages_0; pages = toDouble(Math.ceil(pages).toString()); if (this$PaginateOnScrollManager.pageNumber_0 === pages) this$PaginateOnScrollManager.pageNumber_0; else { tmp$ = this$PaginateOnScrollManager.pageNumber_0; this$PaginateOnScrollManager.pageNumber_0 = tmp$ + 1 | 0; } (tmp$_0 = this$PaginateOnScrollManager.onScrollPageChanged) != null ? tmp$_0(this$PaginateOnScrollManager.pageNumber_0, this$PaginateOnScrollManager.startIndex(), this$PaginateOnScrollManager.endIndex()) : null; }return Unit; }; } PaginateOnScrollManager.$metadata$ = { kind: Kind_CLASS, simpleName: 'PaginateOnScrollManager', interfaces: [] }; function ProgressBarManager() { this.progressView_0 = document.getElementById('um-progress'); this.progressBarVisibility_jqlph9$_0 = false; } Object.defineProperty(ProgressBarManager.prototype, 'progressBarVisibility', { configurable: true, get: function () { return this.progressBarVisibility_jqlph9$_0; }, set: function (value) { var tmp$; this.progressBarVisibility_jqlph9$_0 = value; if (this.progressView_0 != null) { var style = ((tmp$ = this.progressView_0) != null ? tmp$ : null).style; if (style != null) style.display = value ? 'block' : 'none'; }} }); ProgressBarManager.prototype.onDestroy = function () { this.progressView_0 = null; }; ProgressBarManager.$metadata$ = { kind: Kind_CLASS, simpleName: 'ProgressBarManager', interfaces: [] }; function UmProps() { } UmProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'UmProps', interfaces: [] }; function UmState() { } UmState.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'UmState', interfaces: [] }; function ScrollManager(viewToObserve, triggerThreshold, triggerOnDownScroll, delay) { if (triggerThreshold === void 0) triggerThreshold = 50; if (triggerOnDownScroll === void 0) triggerOnDownScroll = true; if (delay === void 0) delay = 200; this.viewToObserve_0 = viewToObserve; this.triggerThreshold_0 = triggerThreshold; this.triggerOnDownScroll_0 = triggerOnDownScroll; this.delay_0 = delay; this.scrollElement_0 = null; this.scrollHandlerTimeOutId_0 = -1; this.lastScrollPercentage_0 = 0; this.scrollHandler_0 = ScrollManager$scrollHandler$lambda(this); this.scrollListener_oq0va9$_0 = null; this.scrollEventCallback_0 = ScrollManager$scrollEventCallback$lambda(this); } Object.defineProperty(ScrollManager.prototype, 'scrollListener', { configurable: true, get: function () { return this.scrollListener_oq0va9$_0; }, set: function (value) { var tmp$; if (value != null) { this.scrollElement_0 = document.getElementById(this.viewToObserve_0); (tmp$ = this.scrollElement_0) != null ? (tmp$.addEventListener('scroll', this.scrollEventCallback_0), Unit) : null; }this.scrollListener_oq0va9$_0 = value; } }); ScrollManager.prototype.onDestroy = function () { var tmp$; (tmp$ = this.scrollElement_0) != null ? (tmp$.removeEventListener('scroll', this.scrollEventCallback_0), Unit) : null; this.scrollElement_0 = null; this.lastScrollPercentage_0 = 0; window.clearTimeout(this.scrollHandlerTimeOutId_0); this.scrollHandlerTimeOutId_0 = -1; this.scrollListener = null; }; function ScrollManager$scrollHandler$lambda(this$ScrollManager) { return function (scrollPercentage) { var tmp$, tmp$_0; if (this$ScrollManager.triggerOnDownScroll_0) tmp$ = scrollPercentage > this$ScrollManager.lastScrollPercentage_0; else tmp$ = this$ScrollManager.lastScrollPercentage_0 > scrollPercentage; var triggerPageChangeEvent = tmp$; (tmp$_0 = this$ScrollManager.scrollListener) != null ? tmp$_0(triggerPageChangeEvent && scrollPercentage >= this$ScrollManager.triggerThreshold_0, scrollPercentage) : null; this$ScrollManager.lastScrollPercentage_0 = scrollPercentage; return Unit; }; } function ScrollManager$scrollEventCallback$lambda(this$ScrollManager) { return function (scrollEvent) { var target = scrollEvent.target; var scrollPercentage = toInt(Math.ceil(target.scrollTop / target.scrollHeight * 100).toString()); if (this$ScrollManager.scrollHandlerTimeOutId_0 !== -1) window.clearTimeout(this$ScrollManager.scrollHandlerTimeOutId_0); this$ScrollManager.scrollHandlerTimeOutId_0 = window.setTimeout(this$ScrollManager.scrollHandler_0, this$ScrollManager.delay_0, scrollPercentage); return Unit; }; } ScrollManager.$metadata$ = { kind: Kind_CLASS, simpleName: 'ScrollManager', interfaces: [] }; function SearchManager(viewId) { if (viewId === void 0) viewId = 'um-search'; this.viewId_0 = viewId; this.searchView_0 = null; this.searchHandlerId_0 = -1; this.viewInitTimeoutId_0 = -1; this.searchListener_94llux$_0 = null; this.searchHandler_0 = SearchManager$searchHandler$lambda(this); } function SearchManager$set_SearchManager$searchListener$lambda(this$SearchManager) { return function () { var tmp$; this$SearchManager.searchView_0 = document.getElementById(this$SearchManager.viewId_0); return (tmp$ = this$SearchManager.searchView_0) != null ? (tmp$.addEventListener('input', this$SearchManager.searchHandler_0), Unit) : null; }; } Object.defineProperty(SearchManager.prototype, 'searchListener', { configurable: true, get: function () { return this.searchListener_94llux$_0; }, set: function (value) { this.viewInitTimeoutId_0 = window.setTimeout(SearchManager$set_SearchManager$searchListener$lambda(this), 1000); this.searchListener_94llux$_0 = value; } }); SearchManager.prototype.onDestroy = function () { window.removeEventListener('input', this.searchHandler_0); window.clearTimeout(this.searchHandlerId_0); window.clearTimeout(this.viewInitTimeoutId_0); this.searchListener = null; this.searchView_0 = null; }; function SearchManager$searchHandler$lambda$lambda(this$SearchManager, closure$event) { return function () { var tmp$; return (tmp$ = this$SearchManager.searchListener) != null ? (tmp$.onSearchSubmitted_pdl1vj$(get_targetInputValue(closure$event)), Unit) : null; }; } function SearchManager$searchHandler$lambda(this$SearchManager) { return function (event) { window.clearTimeout(this$SearchManager.searchHandlerId_0); this$SearchManager.searchHandlerId_0 = window.setTimeout(SearchManager$searchHandler$lambda$lambda(this$SearchManager, event), 500); return Unit; }; } SearchManager.$metadata$ = { kind: Kind_CLASS, simpleName: 'SearchManager', interfaces: [] }; function StyleManager() { StyleManager_instance = this; StyleSheet.call(this, 'ComponentStyles', true); var tmp$; this.theme = ensureNotNull((tmp$ = ReduxAppStateManager_getInstance().getCurrentState().appTheme) != null ? tmp$.theme : null); var tmp$_0; this.systemImpl_b40aij$_0 = Instance(this, Kotlin.isType(tmp$_0 = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$_0 : throwCCE(), null).provideDelegate_tpuvb9$(this, StyleManager$systemImpl_metadata); this.fullWidth_0 = get_pct(100); this.drawerWidth_0 = 240; this.tabletAndHighEnd_0 = Breakpoint$sm_getInstance(); this.alignTextToStart_p5422n$_0 = this.css_uisso7$([], StyleManager$alignTextToStart$lambda).provideDelegate_n5byny$(this, StyleManager$alignTextToStart_metadata); this.contentAfterIconMarginLeft_9cutf$_0 = this.css_uisso7$([], StyleManager$contentAfterIconMarginLeft$lambda).provideDelegate_n5byny$(this, StyleManager$contentAfterIconMarginLeft_metadata); this.umItemWithIconAndText_ffzu7a$_0 = this.css_uisso7$([], StyleManager$umItemWithIconAndText$lambda).provideDelegate_n5byny$(this, StyleManager$umItemWithIconAndText_metadata); this.alignTextCenter_f1vy0p$_0 = this.css_uisso7$([], StyleManager$alignTextCenter$lambda).provideDelegate_n5byny$(this, StyleManager$alignTextCenter_metadata); this.defaultFullWidth_gwv8rm$_0 = this.css_uisso7$([], StyleManager$defaultFullWidth$lambda).provideDelegate_n5byny$(this, StyleManager$defaultFullWidth_metadata); this.defaultMarginTop_r1e7pq$_0 = this.css_uisso7$([], StyleManager$defaultMarginTop$lambda).provideDelegate_n5byny$(this, StyleManager$defaultMarginTop_metadata); this.defaultMarginBottom_u82mnu$_0 = this.css_uisso7$([], StyleManager$defaultMarginBottom$lambda).provideDelegate_n5byny$(this, StyleManager$defaultMarginBottom_metadata); this.defaultPaddingTop_fvmuzf$_0 = this.css_uisso7$([], StyleManager$defaultPaddingTop$lambda).provideDelegate_n5byny$(this, StyleManager$defaultPaddingTop_metadata); this.defaultPaddingTopBottom_pb7v00$_0 = this.css_uisso7$([], StyleManager$defaultPaddingTopBottom$lambda).provideDelegate_n5byny$(this, StyleManager$defaultPaddingTopBottom_metadata); this.defaultDoubleMarginTop_pbnxtr$_0 = this.css_uisso7$([], StyleManager$defaultDoubleMarginTop$lambda).provideDelegate_n5byny$(this, StyleManager$defaultDoubleMarginTop_metadata); this.errorTextClass_heumzz$_0 = this.css_uisso7$([], StyleManager$errorTextClass$lambda(this)).provideDelegate_n5byny$(this, StyleManager$errorTextClass_metadata); this.errorClass_cahu2k$_0 = this.css_uisso7$([], StyleManager$errorClass$lambda(this)).provideDelegate_n5byny$(this, StyleManager$errorClass_metadata); this.successClass_a9gm69$_0 = this.css_uisso7$([], StyleManager$successClass$lambda).provideDelegate_n5byny$(this, StyleManager$successClass_metadata); this.splashComponentContainer_nvcuzt$_0 = this.css_uisso7$([], StyleManager$splashComponentContainer$lambda).provideDelegate_n5byny$(this, StyleManager$splashComponentContainer_metadata); this.splashComponentPreloadContainer_9acrsi$_0 = this.css_uisso7$([], StyleManager$splashComponentPreloadContainer$lambda).provideDelegate_n5byny$(this, StyleManager$splashComponentPreloadContainer_metadata); this.mainComponentErrorPaper_rr327c$_0 = this.css_uisso7$([], StyleManager$mainComponentErrorPaper$lambda).provideDelegate_n5byny$(this, StyleManager$mainComponentErrorPaper_metadata); this.mainComponentProgressIndicator_562tqu$_0 = this.css_uisso7$([], StyleManager$mainComponentProgressIndicator$lambda).provideDelegate_n5byny$(this, StyleManager$mainComponentProgressIndicator_metadata); this.mainComponentContainer_vyvcuv$_0 = this.css_uisso7$([], StyleManager$mainComponentContainer$lambda).provideDelegate_n5byny$(this, StyleManager$mainComponentContainer_metadata); this.mainComponentWrapperContainer_m8b2mm$_0 = this.css_uisso7$([], StyleManager$mainComponentWrapperContainer$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentWrapperContainer_metadata); this.mainComponentAppBar_oyk06u$_0 = this.css_uisso7$([], StyleManager$mainComponentAppBar$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentAppBar_metadata); this.detailPaddingBottom_x4slfv$_0 = this.css_uisso7$([], StyleManager$detailPaddingBottom$lambda(this)).provideDelegate_n5byny$(this, StyleManager$detailPaddingBottom_metadata); this.entryDetailRightSection_3nz7zo$_0 = this.css_uisso7$([], StyleManager$entryDetailRightSection$lambda(this)).provideDelegate_n5byny$(this, StyleManager$entryDetailRightSection_metadata); this.switchMargin_p6ttoy$_0 = this.css_uisso7$([], StyleManager$switchMargin$lambda(this)).provideDelegate_n5byny$(this, StyleManager$switchMargin_metadata); this.screenWithChartOnLeft_5bsg26$_0 = this.css_uisso7$([], StyleManager$screenWithChartOnLeft$lambda(this)).provideDelegate_n5byny$(this, StyleManager$screenWithChartOnLeft_metadata); this.mainComponentAppBarWithNoNav_6st9xq$_0 = this.css_uisso7$([], StyleManager$mainComponentAppBarWithNoNav$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentAppBarWithNoNav_metadata); this.mainComponentContentContainer_p7gwwc$_0 = this.css_uisso7$([], StyleManager$mainComponentContentContainer$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentContentContainer_metadata); this.mainComponentBottomNav_1qjdj4$_0 = this.css_uisso7$([], StyleManager$mainComponentBottomNav$lambda).provideDelegate_n5byny$(this, StyleManager$mainComponentBottomNav_metadata); this.mainComponentBrandIconContainer_yaoyhx$_0 = this.css_uisso7$([], StyleManager$mainComponentBrandIconContainer$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentBrandIconContainer_metadata); this.mainComponentBrandIcon_j2tld4$_0 = this.css_uisso7$([], StyleManager$mainComponentBrandIcon$lambda).provideDelegate_n5byny$(this, StyleManager$mainComponentBrandIcon_metadata); this.mainComponentSideNavMenuList_bvkeup$_0 = this.css_uisso7$([], StyleManager$mainComponentSideNavMenuList$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentSideNavMenuList_metadata); this.toolbarTitle_2ry4pj$_0 = this.css_uisso7$([], StyleManager$toolbarTitle$lambda(this)).provideDelegate_n5byny$(this, StyleManager$toolbarTitle_metadata); this.mainComponentProfileOuterAvatar_5e6967$_0 = this.css_uisso7$([], StyleManager$mainComponentProfileOuterAvatar$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentProfileOuterAvatar_metadata); this.mainComponentProfileInnerAvatar_3rmfqi$_0 = this.css_uisso7$([], StyleManager$mainComponentProfileInnerAvatar$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentProfileInnerAvatar_metadata); this.mainComponentInputSearchClass_71yyiy$_0 = this.css_uisso7$([], StyleManager$mainComponentInputSearchClass$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentInputSearchClass_metadata); this.chatInputMessageClass_6htvtv$_0 = this.css_uisso7$([], StyleManager$chatInputMessageClass$lambda(this)).provideDelegate_n5byny$(this, StyleManager$chatInputMessageClass_metadata); this.mainComponentSearch_kqcv9w$_0 = this.css_uisso7$([], StyleManager$mainComponentSearch$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentSearch_metadata); this.typingMessage_lo4rf4$_0 = this.css_uisso7$([], StyleManager$typingMessage$lambda(this)).provideDelegate_n5byny$(this, StyleManager$typingMessage_metadata); this.messageSendButton_z8yy4f$_0 = this.css_uisso7$([], StyleManager$messageSendButton$lambda(this)).provideDelegate_n5byny$(this, StyleManager$messageSendButton_metadata); this.messageContainer_jd1gh2$_0 = this.css_uisso7$([], StyleManager$messageContainer$lambda(this)).provideDelegate_n5byny$(this, StyleManager$messageContainer_metadata); this.chatDetailNewMessage_s5gm8s$_0 = this.css_uisso7$([], StyleManager$chatDetailNewMessage$lambda(this)).provideDelegate_n5byny$(this, StyleManager$chatDetailNewMessage_metadata); this.mainComponentSearchIcon_g3mujp$_0 = this.css_uisso7$([], StyleManager$mainComponentSearchIcon$lambda).provideDelegate_n5byny$(this, StyleManager$mainComponentSearchIcon_metadata); this.mainComponentToolbarMargins_dml86q$_0 = this.css_uisso7$([], StyleManager$mainComponentToolbarMargins$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentToolbarMargins_metadata); this.mainComponentFab_aypw9d$_0 = this.css_uisso7$([], StyleManager$mainComponentFab$lambda(this)).provideDelegate_n5byny$(this, StyleManager$mainComponentFab_metadata); this.languageComponentLanguageSelectorFormControl_um3nu1$_0 = this.css_uisso7$([], StyleManager$languageComponentLanguageSelectorFormControl$lambda).provideDelegate_n5byny$(this, StyleManager$languageComponentLanguageSelectorFormControl_metadata); this.tabsContainer_ly89wd$_0 = this.css_uisso7$([], StyleManager$tabsContainer$lambda(this)).provideDelegate_n5byny$(this, StyleManager$tabsContainer_metadata); this.fieldsOnlyFormScreen_2e4ev5$_0 = this.css_uisso7$([], StyleManager$fieldsOnlyFormScreen$lambda(this)).provideDelegate_n5byny$(this, StyleManager$fieldsOnlyFormScreen_metadata); this.scrollOnMobile_juvg3q$_0 = this.css_uisso7$([], StyleManager$scrollOnMobile$lambda(this)).provideDelegate_n5byny$(this, StyleManager$scrollOnMobile_metadata); this.contentContainer_cj5b9o$_0 = this.css_uisso7$([], StyleManager$contentContainer$lambda(this)).provideDelegate_n5byny$(this, StyleManager$contentContainer_metadata); this.reportActionText_wxlt99$_0 = this.css_uisso7$([], StyleManager$reportActionText$lambda).provideDelegate_n5byny$(this, StyleManager$reportActionText_metadata); this.startIcon_fcqshx$_0 = this.css_uisso7$([], StyleManager$startIcon$lambda(this)).provideDelegate_n5byny$(this, StyleManager$startIcon_metadata); this.endIcon_67km0c$_0 = this.css_uisso7$([], StyleManager$endIcon$lambda(this)).provideDelegate_n5byny$(this, StyleManager$endIcon_metadata); this.centerContainer_fxue9g$_0 = this.css_uisso7$([], StyleManager$centerContainer$lambda).provideDelegate_n5byny$(this, StyleManager$centerContainer_metadata); this.videoPlayerWrapper_82vsot$_0 = this.css_uisso7$([], StyleManager$videoPlayerWrapper$lambda).provideDelegate_n5byny$(this, StyleManager$videoPlayerWrapper_metadata); this.alignCenterItems_hlvbiq$_0 = this.css_uisso7$([], StyleManager$alignCenterItems$lambda).provideDelegate_n5byny$(this, StyleManager$alignCenterItems_metadata); this.alignStartItems_hnua77$_0 = this.css_uisso7$([], StyleManager$alignStartItems$lambda).provideDelegate_n5byny$(this, StyleManager$alignStartItems_metadata); this.alignEndItems_j2yifq$_0 = this.css_uisso7$([], StyleManager$alignEndItems$lambda).provideDelegate_n5byny$(this, StyleManager$alignEndItems_metadata); this.listComponentContainer_k8vpaq$_0 = this.css_uisso7$([], StyleManager$listComponentContainer$lambda).provideDelegate_n5byny$(this, StyleManager$listComponentContainer_metadata); this.listComponentContainerWithScroll_n6e0pt$_0 = this.css_uisso7$([], StyleManager$listComponentContainerWithScroll$lambda).provideDelegate_n5byny$(this, StyleManager$listComponentContainerWithScroll_metadata); this.entryListItemContainer_h74czu$_0 = this.css_uisso7$([], StyleManager$entryListItemContainer$lambda).provideDelegate_n5byny$(this, StyleManager$entryListItemContainer_metadata); this.listCreateNewContainer_kjendz$_0 = this.css_uisso7$([], StyleManager$listCreateNewContainer$lambda).provideDelegate_n5byny$(this, StyleManager$listCreateNewContainer_metadata); this.contentEntryListContentAvatarClass_qnv095$_0 = this.css_uisso7$([], StyleManager$contentEntryListContentAvatarClass$lambda).provideDelegate_n5byny$(this, StyleManager$contentEntryListContentAvatarClass_metadata); this.contentEntryListContentTyeIconClass_cwe9r$_0 = this.css_uisso7$([], StyleManager$contentEntryListContentTyeIconClass$lambda).provideDelegate_n5byny$(this, StyleManager$contentEntryListContentTyeIconClass_metadata); this.horizontalList_nao56a$_0 = this.css_uisso7$([], StyleManager$horizontalList$lambda(this)).provideDelegate_n5byny$(this, StyleManager$horizontalList_metadata); this.horizontalListEmpty_kgz25x$_0 = this.css_uisso7$([], StyleManager$horizontalListEmpty$lambda).provideDelegate_n5byny$(this, StyleManager$horizontalListEmpty_metadata); this.listItemCreateNewDiv_1dfx6e$_0 = this.css_uisso7$([], StyleManager$listItemCreateNewDiv$lambda).provideDelegate_n5byny$(this, StyleManager$listItemCreateNewDiv_metadata); this.listCreateNewIconClass_w5x4nv$_0 = this.css_uisso7$([], StyleManager$listCreateNewIconClass$lambda).provideDelegate_n5byny$(this, StyleManager$listCreateNewIconClass_metadata); this.dragToReorderClass_7wzuzs$_0 = this.css_uisso7$([], StyleManager$dragToReorderClass$lambda).provideDelegate_n5byny$(this, StyleManager$dragToReorderClass_metadata); this.textGrayedOut_r8mcvz$_0 = this.css_uisso7$([], StyleManager$textGrayedOut$lambda(this)).provideDelegate_n5byny$(this, StyleManager$textGrayedOut_metadata); this.chipSetFilter_h9c2ni$_0 = this.css_uisso7$([], StyleManager$chipSetFilter$lambda).provideDelegate_n5byny$(this, StyleManager$chipSetFilter_metadata); this.selectionContainer_z3ilun$_0 = this.css_uisso7$([], StyleManager$selectionContainer$lambda(this)).provideDelegate_n5byny$(this, StyleManager$selectionContainer_metadata); this.entityImageClass_w73pys$_0 = this.css_uisso7$([], StyleManager$entityImageClass$lambda).provideDelegate_n5byny$(this, StyleManager$entityImageClass_metadata); this.entityThumbnailClass_d38qkb$_0 = this.css_uisso7$([], StyleManager$entityThumbnailClass$lambda(this)).provideDelegate_n5byny$(this, StyleManager$entityThumbnailClass_metadata); this.entityImageIconClass_9yn03$_0 = this.css_uisso7$([], StyleManager$entityImageIconClass$lambda).provideDelegate_n5byny$(this, StyleManager$entityImageIconClass_metadata); this.emptyListIcon_sebcjg$_0 = this.css_uisso7$([], StyleManager$emptyListIcon$lambda).provideDelegate_n5byny$(this, StyleManager$emptyListIcon_metadata); this.tabWarningIconClass_10b8d4$_0 = this.css_uisso7$([], StyleManager$tabWarningIconClass$lambda).provideDelegate_n5byny$(this, StyleManager$tabWarningIconClass_metadata); this.entryItemImageContainer_n94lyj$_0 = this.css_uisso7$([], StyleManager$entryItemImageContainer$lambda).provideDelegate_n5byny$(this, StyleManager$entryItemImageContainer_metadata); this.fallBackAvatarClass_hed2gt$_0 = this.css_uisso7$([], StyleManager$fallBackAvatarClass$lambda).provideDelegate_n5byny$(this, StyleManager$fallBackAvatarClass_metadata); this.maxThumbnailClass_qq78j4$_0 = this.css_uisso7$([], StyleManager$maxThumbnailClass$lambda).provideDelegate_n5byny$(this, StyleManager$maxThumbnailClass_metadata); this.mediumThumbnailClass_3ayqml$_0 = this.css_uisso7$([], StyleManager$mediumThumbnailClass$lambda).provideDelegate_n5byny$(this, StyleManager$mediumThumbnailClass_metadata); this.defaultThumbnailClass_bjx0fn$_0 = this.css_uisso7$([], StyleManager$defaultThumbnailClass$lambda).provideDelegate_n5byny$(this, StyleManager$defaultThumbnailClass_metadata); this.secondaryActionBtn_p622hq$_0 = this.css_uisso7$([], StyleManager$secondaryActionBtn$lambda).provideDelegate_n5byny$(this, StyleManager$secondaryActionBtn_metadata); this.personListItemAvatar_14uk1h$_0 = this.css_uisso7$([], StyleManager$personListItemAvatar$lambda(this)).provideDelegate_n5byny$(this, StyleManager$personListItemAvatar_metadata); this.contentEntryDetailOverviewComponentOpenBtn_3uopok$_0 = this.css_uisso7$([], StyleManager$contentEntryDetailOverviewComponentOpenBtn$lambda(this)).provideDelegate_n5byny$(this, StyleManager$contentEntryDetailOverviewComponentOpenBtn_metadata); this.detailContentProgress_t7otsb$_0 = this.css_uisso7$([], StyleManager$detailContentProgress$lambda).provideDelegate_n5byny$(this, StyleManager$detailContentProgress_metadata); this.itemContentProgress_f0dreb$_0 = this.css_uisso7$([], StyleManager$itemContentProgress$lambda(this)).provideDelegate_n5byny$(this, StyleManager$itemContentProgress_metadata); this.detailIconClass_4ycm7m$_0 = this.css_uisso7$([], StyleManager$detailIconClass$lambda).provideDelegate_n5byny$(this, StyleManager$detailIconClass_metadata); this.iframeComponentResponsiveIframe_h46xf3$_0 = this.css_uisso7$([], StyleManager$iframeComponentResponsiveIframe$lambda(this)).provideDelegate_n5byny$(this, StyleManager$iframeComponentResponsiveIframe_metadata); this.personDetailComponentActions_ivh8z2$_0 = this.css_uisso7$([], StyleManager$personDetailComponentActions$lambda(this)).provideDelegate_n5byny$(this, StyleManager$personDetailComponentActions_metadata); this.personDetailComponentActionIcon_6lbvfe$_0 = this.css_uisso7$([], StyleManager$personDetailComponentActionIcon$lambda).provideDelegate_n5byny$(this, StyleManager$personDetailComponentActionIcon_metadata); this.videoComponentResponsiveMedia_elj6mm$_0 = this.css_uisso7$([], StyleManager$videoComponentResponsiveMedia$lambda(this)).provideDelegate_n5byny$(this, StyleManager$videoComponentResponsiveMedia_metadata); this.clazzItemClass_4d8y7t$_0 = this.css_uisso7$([], StyleManager$clazzItemClass$lambda).provideDelegate_n5byny$(this, StyleManager$clazzItemClass_metadata); this.clazzDetailExtraInfo_smm59d$_0 = this.css_uisso7$([], StyleManager$clazzDetailExtraInfo$lambda).provideDelegate_n5byny$(this, StyleManager$clazzDetailExtraInfo_metadata); this.clazzListRoleChip_qooqq0$_0 = this.css_uisso7$([], StyleManager$clazzListRoleChip$lambda).provideDelegate_n5byny$(this, StyleManager$clazzListRoleChip_metadata); this.gridListSecondaryItemIcons_mz1p0d$_0 = this.css_uisso7$([], StyleManager$gridListSecondaryItemIcons$lambda).provideDelegate_n5byny$(this, StyleManager$gridListSecondaryItemIcons_metadata); this.gridListSecondaryItemDesc_1miq8k$_0 = this.css_uisso7$([], StyleManager$gridListSecondaryItemDesc$lambda).provideDelegate_n5byny$(this, StyleManager$gridListSecondaryItemDesc_metadata); this.hideOnMobile_sqz3zl$_0 = this.css_uisso7$([], StyleManager$hideOnMobile$lambda(this)).provideDelegate_n5byny$(this, StyleManager$hideOnMobile_metadata); this.showOnMobile_e0ubh2$_0 = this.css_uisso7$([], StyleManager$showOnMobile$lambda(this)).provideDelegate_n5byny$(this, StyleManager$showOnMobile_metadata); this.partnerItem_t9ki11$_0 = this.css_uisso7$([], StyleManager$partnerItem$lambda(this)).provideDelegate_n5byny$(this, StyleManager$partnerItem_metadata); this.partnersList_345vuz$_0 = this.css_uisso7$([], StyleManager$partnersList$lambda(this)).provideDelegate_n5byny$(this, StyleManager$partnersList_metadata); this.studentProgressBar_17h22x$_0 = this.css_uisso7$([], StyleManager$studentProgressBar$lambda(this)).provideDelegate_n5byny$(this, StyleManager$studentProgressBar_metadata); this.dropZoneArea_px87os$_0 = this.css_uisso7$([], StyleManager$dropZoneArea$lambda(this)).provideDelegate_n5byny$(this, StyleManager$dropZoneArea_metadata); this.dropZoneAreaActive_4f45x6$_0 = this.css_uisso7$([], StyleManager$dropZoneAreaActive$lambda(this)).provideDelegate_n5byny$(this, StyleManager$dropZoneAreaActive_metadata); this.dropZoneAreaSuccess_1fkth7$_0 = this.css_uisso7$([], StyleManager$dropZoneAreaSuccess$lambda(this)).provideDelegate_n5byny$(this, StyleManager$dropZoneAreaSuccess_metadata); this.dropZoneAreaError_u3k8io$_0 = this.css_uisso7$([], StyleManager$dropZoneAreaError$lambda(this)).provideDelegate_n5byny$(this, StyleManager$dropZoneAreaError_metadata); this.dropZoneIcon_q1d7cw$_0 = this.css_uisso7$([], StyleManager$dropZoneIcon$lambda(this)).provideDelegate_n5byny$(this, StyleManager$dropZoneIcon_metadata); this.dropZoneTxt_m2fhkl$_0 = this.css_uisso7$([], StyleManager$dropZoneTxt$lambda).provideDelegate_n5byny$(this, StyleManager$dropZoneTxt_metadata); this.chatMessageContent_ffyms6$_0 = this.css_uisso7$([], StyleManager$chatMessageContent$lambda).provideDelegate_n5byny$(this, StyleManager$chatMessageContent_metadata); this.chatLeft_foys7f$_0 = this.css_uisso7$([], StyleManager$chatLeft$lambda).provideDelegate_n5byny$(this, StyleManager$chatLeft_metadata); this.chatRight_dmbfp8$_0 = this.css_uisso7$([], StyleManager$chatRight$lambda).provideDelegate_n5byny$(this, StyleManager$chatRight_metadata); } var StyleManager$systemImpl_metadata = new PropertyMetadata('systemImpl'); Object.defineProperty(StyleManager.prototype, 'systemImpl_0', { configurable: true, get: function () { return this.systemImpl_b40aij$_0.value; } }); var StyleManager$alignTextToStart_metadata = new PropertyMetadata('alignTextToStart'); Object.defineProperty(StyleManager.prototype, 'alignTextToStart', { configurable: true, get: function () { return this.alignTextToStart_p5422n$_0.getValue_lrcp0p$(this, StyleManager$alignTextToStart_metadata); } }); var StyleManager$contentAfterIconMarginLeft_metadata = new PropertyMetadata('contentAfterIconMarginLeft'); Object.defineProperty(StyleManager.prototype, 'contentAfterIconMarginLeft', { configurable: true, get: function () { return this.contentAfterIconMarginLeft_9cutf$_0.getValue_lrcp0p$(this, StyleManager$contentAfterIconMarginLeft_metadata); } }); var StyleManager$umItemWithIconAndText_metadata = new PropertyMetadata('umItemWithIconAndText'); Object.defineProperty(StyleManager.prototype, 'umItemWithIconAndText', { configurable: true, get: function () { return this.umItemWithIconAndText_ffzu7a$_0.getValue_lrcp0p$(this, StyleManager$umItemWithIconAndText_metadata); } }); var StyleManager$alignTextCenter_metadata = new PropertyMetadata('alignTextCenter'); Object.defineProperty(StyleManager.prototype, 'alignTextCenter', { configurable: true, get: function () { return this.alignTextCenter_f1vy0p$_0.getValue_lrcp0p$(this, StyleManager$alignTextCenter_metadata); } }); var StyleManager$defaultFullWidth_metadata = new PropertyMetadata('defaultFullWidth'); Object.defineProperty(StyleManager.prototype, 'defaultFullWidth', { configurable: true, get: function () { return this.defaultFullWidth_gwv8rm$_0.getValue_lrcp0p$(this, StyleManager$defaultFullWidth_metadata); } }); var StyleManager$defaultMarginTop_metadata = new PropertyMetadata('defaultMarginTop'); Object.defineProperty(StyleManager.prototype, 'defaultMarginTop', { configurable: true, get: function () { return this.defaultMarginTop_r1e7pq$_0.getValue_lrcp0p$(this, StyleManager$defaultMarginTop_metadata); } }); var StyleManager$defaultMarginBottom_metadata = new PropertyMetadata('defaultMarginBottom'); Object.defineProperty(StyleManager.prototype, 'defaultMarginBottom', { configurable: true, get: function () { return this.defaultMarginBottom_u82mnu$_0.getValue_lrcp0p$(this, StyleManager$defaultMarginBottom_metadata); } }); var StyleManager$defaultPaddingTop_metadata = new PropertyMetadata('defaultPaddingTop'); Object.defineProperty(StyleManager.prototype, 'defaultPaddingTop', { configurable: true, get: function () { return this.defaultPaddingTop_fvmuzf$_0.getValue_lrcp0p$(this, StyleManager$defaultPaddingTop_metadata); } }); var StyleManager$defaultPaddingTopBottom_metadata = new PropertyMetadata('defaultPaddingTopBottom'); Object.defineProperty(StyleManager.prototype, 'defaultPaddingTopBottom', { configurable: true, get: function () { return this.defaultPaddingTopBottom_pb7v00$_0.getValue_lrcp0p$(this, StyleManager$defaultPaddingTopBottom_metadata); } }); var StyleManager$defaultDoubleMarginTop_metadata = new PropertyMetadata('defaultDoubleMarginTop'); Object.defineProperty(StyleManager.prototype, 'defaultDoubleMarginTop', { configurable: true, get: function () { return this.defaultDoubleMarginTop_pbnxtr$_0.getValue_lrcp0p$(this, StyleManager$defaultDoubleMarginTop_metadata); } }); var StyleManager$errorTextClass_metadata = new PropertyMetadata('errorTextClass'); Object.defineProperty(StyleManager.prototype, 'errorTextClass', { configurable: true, get: function () { return this.errorTextClass_heumzz$_0.getValue_lrcp0p$(this, StyleManager$errorTextClass_metadata); } }); var StyleManager$errorClass_metadata = new PropertyMetadata('errorClass'); Object.defineProperty(StyleManager.prototype, 'errorClass', { configurable: true, get: function () { return this.errorClass_cahu2k$_0.getValue_lrcp0p$(this, StyleManager$errorClass_metadata); } }); var StyleManager$successClass_metadata = new PropertyMetadata('successClass'); Object.defineProperty(StyleManager.prototype, 'successClass', { configurable: true, get: function () { return this.successClass_a9gm69$_0.getValue_lrcp0p$(this, StyleManager$successClass_metadata); } }); var StyleManager$splashComponentContainer_metadata = new PropertyMetadata('splashComponentContainer'); Object.defineProperty(StyleManager.prototype, 'splashComponentContainer', { configurable: true, get: function () { return this.splashComponentContainer_nvcuzt$_0.getValue_lrcp0p$(this, StyleManager$splashComponentContainer_metadata); } }); var StyleManager$splashComponentPreloadContainer_metadata = new PropertyMetadata('splashComponentPreloadContainer'); Object.defineProperty(StyleManager.prototype, 'splashComponentPreloadContainer', { configurable: true, get: function () { return this.splashComponentPreloadContainer_9acrsi$_0.getValue_lrcp0p$(this, StyleManager$splashComponentPreloadContainer_metadata); } }); var StyleManager$mainComponentErrorPaper_metadata = new PropertyMetadata('mainComponentErrorPaper'); Object.defineProperty(StyleManager.prototype, 'mainComponentErrorPaper', { configurable: true, get: function () { return this.mainComponentErrorPaper_rr327c$_0.getValue_lrcp0p$(this, StyleManager$mainComponentErrorPaper_metadata); } }); var StyleManager$mainComponentProgressIndicator_metadata = new PropertyMetadata('mainComponentProgressIndicator'); Object.defineProperty(StyleManager.prototype, 'mainComponentProgressIndicator', { configurable: true, get: function () { return this.mainComponentProgressIndicator_562tqu$_0.getValue_lrcp0p$(this, StyleManager$mainComponentProgressIndicator_metadata); } }); var StyleManager$mainComponentContainer_metadata = new PropertyMetadata('mainComponentContainer'); Object.defineProperty(StyleManager.prototype, 'mainComponentContainer', { configurable: true, get: function () { return this.mainComponentContainer_vyvcuv$_0.getValue_lrcp0p$(this, StyleManager$mainComponentContainer_metadata); } }); var StyleManager$mainComponentWrapperContainer_metadata = new PropertyMetadata('mainComponentWrapperContainer'); Object.defineProperty(StyleManager.prototype, 'mainComponentWrapperContainer', { configurable: true, get: function () { return this.mainComponentWrapperContainer_m8b2mm$_0.getValue_lrcp0p$(this, StyleManager$mainComponentWrapperContainer_metadata); } }); var StyleManager$mainComponentAppBar_metadata = new PropertyMetadata('mainComponentAppBar'); Object.defineProperty(StyleManager.prototype, 'mainComponentAppBar', { configurable: true, get: function () { return this.mainComponentAppBar_oyk06u$_0.getValue_lrcp0p$(this, StyleManager$mainComponentAppBar_metadata); } }); var StyleManager$detailPaddingBottom_metadata = new PropertyMetadata('detailPaddingBottom'); Object.defineProperty(StyleManager.prototype, 'detailPaddingBottom', { configurable: true, get: function () { return this.detailPaddingBottom_x4slfv$_0.getValue_lrcp0p$(this, StyleManager$detailPaddingBottom_metadata); } }); var StyleManager$entryDetailRightSection_metadata = new PropertyMetadata('entryDetailRightSection'); Object.defineProperty(StyleManager.prototype, 'entryDetailRightSection', { configurable: true, get: function () { return this.entryDetailRightSection_3nz7zo$_0.getValue_lrcp0p$(this, StyleManager$entryDetailRightSection_metadata); } }); var StyleManager$switchMargin_metadata = new PropertyMetadata('switchMargin'); Object.defineProperty(StyleManager.prototype, 'switchMargin', { configurable: true, get: function () { return this.switchMargin_p6ttoy$_0.getValue_lrcp0p$(this, StyleManager$switchMargin_metadata); } }); var StyleManager$screenWithChartOnLeft_metadata = new PropertyMetadata('screenWithChartOnLeft'); Object.defineProperty(StyleManager.prototype, 'screenWithChartOnLeft', { configurable: true, get: function () { return this.screenWithChartOnLeft_5bsg26$_0.getValue_lrcp0p$(this, StyleManager$screenWithChartOnLeft_metadata); } }); var StyleManager$mainComponentAppBarWithNoNav_metadata = new PropertyMetadata('mainComponentAppBarWithNoNav'); Object.defineProperty(StyleManager.prototype, 'mainComponentAppBarWithNoNav', { configurable: true, get: function () { return this.mainComponentAppBarWithNoNav_6st9xq$_0.getValue_lrcp0p$(this, StyleManager$mainComponentAppBarWithNoNav_metadata); } }); var StyleManager$mainComponentContentContainer_metadata = new PropertyMetadata('mainComponentContentContainer'); Object.defineProperty(StyleManager.prototype, 'mainComponentContentContainer', { configurable: true, get: function () { return this.mainComponentContentContainer_p7gwwc$_0.getValue_lrcp0p$(this, StyleManager$mainComponentContentContainer_metadata); } }); var StyleManager$mainComponentBottomNav_metadata = new PropertyMetadata('mainComponentBottomNav'); Object.defineProperty(StyleManager.prototype, 'mainComponentBottomNav', { configurable: true, get: function () { return this.mainComponentBottomNav_1qjdj4$_0.getValue_lrcp0p$(this, StyleManager$mainComponentBottomNav_metadata); } }); var StyleManager$mainComponentBrandIconContainer_metadata = new PropertyMetadata('mainComponentBrandIconContainer'); Object.defineProperty(StyleManager.prototype, 'mainComponentBrandIconContainer', { configurable: true, get: function () { return this.mainComponentBrandIconContainer_yaoyhx$_0.getValue_lrcp0p$(this, StyleManager$mainComponentBrandIconContainer_metadata); } }); var StyleManager$mainComponentBrandIcon_metadata = new PropertyMetadata('mainComponentBrandIcon'); Object.defineProperty(StyleManager.prototype, 'mainComponentBrandIcon', { configurable: true, get: function () { return this.mainComponentBrandIcon_j2tld4$_0.getValue_lrcp0p$(this, StyleManager$mainComponentBrandIcon_metadata); } }); var StyleManager$mainComponentSideNavMenuList_metadata = new PropertyMetadata('mainComponentSideNavMenuList'); Object.defineProperty(StyleManager.prototype, 'mainComponentSideNavMenuList', { configurable: true, get: function () { return this.mainComponentSideNavMenuList_bvkeup$_0.getValue_lrcp0p$(this, StyleManager$mainComponentSideNavMenuList_metadata); } }); var StyleManager$toolbarTitle_metadata = new PropertyMetadata('toolbarTitle'); Object.defineProperty(StyleManager.prototype, 'toolbarTitle', { configurable: true, get: function () { return this.toolbarTitle_2ry4pj$_0.getValue_lrcp0p$(this, StyleManager$toolbarTitle_metadata); } }); var StyleManager$mainComponentProfileOuterAvatar_metadata = new PropertyMetadata('mainComponentProfileOuterAvatar'); Object.defineProperty(StyleManager.prototype, 'mainComponentProfileOuterAvatar', { configurable: true, get: function () { return this.mainComponentProfileOuterAvatar_5e6967$_0.getValue_lrcp0p$(this, StyleManager$mainComponentProfileOuterAvatar_metadata); } }); var StyleManager$mainComponentProfileInnerAvatar_metadata = new PropertyMetadata('mainComponentProfileInnerAvatar'); Object.defineProperty(StyleManager.prototype, 'mainComponentProfileInnerAvatar', { configurable: true, get: function () { return this.mainComponentProfileInnerAvatar_3rmfqi$_0.getValue_lrcp0p$(this, StyleManager$mainComponentProfileInnerAvatar_metadata); } }); var StyleManager$mainComponentInputSearchClass_metadata = new PropertyMetadata('mainComponentInputSearchClass'); Object.defineProperty(StyleManager.prototype, 'mainComponentInputSearchClass', { configurable: true, get: function () { return this.mainComponentInputSearchClass_71yyiy$_0.getValue_lrcp0p$(this, StyleManager$mainComponentInputSearchClass_metadata); } }); var StyleManager$chatInputMessageClass_metadata = new PropertyMetadata('chatInputMessageClass'); Object.defineProperty(StyleManager.prototype, 'chatInputMessageClass', { configurable: true, get: function () { return this.chatInputMessageClass_6htvtv$_0.getValue_lrcp0p$(this, StyleManager$chatInputMessageClass_metadata); } }); var StyleManager$mainComponentSearch_metadata = new PropertyMetadata('mainComponentSearch'); Object.defineProperty(StyleManager.prototype, 'mainComponentSearch', { configurable: true, get: function () { return this.mainComponentSearch_kqcv9w$_0.getValue_lrcp0p$(this, StyleManager$mainComponentSearch_metadata); } }); var StyleManager$typingMessage_metadata = new PropertyMetadata('typingMessage'); Object.defineProperty(StyleManager.prototype, 'typingMessage', { configurable: true, get: function () { return this.typingMessage_lo4rf4$_0.getValue_lrcp0p$(this, StyleManager$typingMessage_metadata); } }); var StyleManager$messageSendButton_metadata = new PropertyMetadata('messageSendButton'); Object.defineProperty(StyleManager.prototype, 'messageSendButton', { configurable: true, get: function () { return this.messageSendButton_z8yy4f$_0.getValue_lrcp0p$(this, StyleManager$messageSendButton_metadata); } }); var StyleManager$messageContainer_metadata = new PropertyMetadata('messageContainer'); Object.defineProperty(StyleManager.prototype, 'messageContainer', { configurable: true, get: function () { return this.messageContainer_jd1gh2$_0.getValue_lrcp0p$(this, StyleManager$messageContainer_metadata); } }); var StyleManager$chatDetailNewMessage_metadata = new PropertyMetadata('chatDetailNewMessage'); Object.defineProperty(StyleManager.prototype, 'chatDetailNewMessage', { configurable: true, get: function () { return this.chatDetailNewMessage_s5gm8s$_0.getValue_lrcp0p$(this, StyleManager$chatDetailNewMessage_metadata); } }); var StyleManager$mainComponentSearchIcon_metadata = new PropertyMetadata('mainComponentSearchIcon'); Object.defineProperty(StyleManager.prototype, 'mainComponentSearchIcon', { configurable: true, get: function () { return this.mainComponentSearchIcon_g3mujp$_0.getValue_lrcp0p$(this, StyleManager$mainComponentSearchIcon_metadata); } }); var StyleManager$mainComponentToolbarMargins_metadata = new PropertyMetadata('mainComponentToolbarMargins'); Object.defineProperty(StyleManager.prototype, 'mainComponentToolbarMargins', { configurable: true, get: function () { return this.mainComponentToolbarMargins_dml86q$_0.getValue_lrcp0p$(this, StyleManager$mainComponentToolbarMargins_metadata); } }); var StyleManager$mainComponentFab_metadata = new PropertyMetadata('mainComponentFab'); Object.defineProperty(StyleManager.prototype, 'mainComponentFab', { configurable: true, get: function () { return this.mainComponentFab_aypw9d$_0.getValue_lrcp0p$(this, StyleManager$mainComponentFab_metadata); } }); var StyleManager$languageComponentLanguageSelectorFormControl_metadata = new PropertyMetadata('languageComponentLanguageSelectorFormControl'); Object.defineProperty(StyleManager.prototype, 'languageComponentLanguageSelectorFormControl', { configurable: true, get: function () { return this.languageComponentLanguageSelectorFormControl_um3nu1$_0.getValue_lrcp0p$(this, StyleManager$languageComponentLanguageSelectorFormControl_metadata); } }); StyleManager.prototype.displayProperty_dqye30$ = function (visible, isFlexLayout) { if (isFlexLayout === void 0) isFlexLayout = false; return visible ? isFlexLayout ? Display.flex : Display.block : Display.none; }; StyleManager.prototype.maxLines_th7wno$ = function (builder, maxLine) { var baseLineHeight = 1.5; set_lineHeight(builder, new LineHeight('1.5em')); set_height(builder, new LinearDimension((baseLineHeight * maxLine).toString() + 'em')); set_textOverflow(builder, TextOverflow.ellipsis); set_overflow(builder, Overflow.hidden); }; var StyleManager$tabsContainer_metadata = new PropertyMetadata('tabsContainer'); Object.defineProperty(StyleManager.prototype, 'tabsContainer', { configurable: true, get: function () { return this.tabsContainer_ly89wd$_0.getValue_lrcp0p$(this, StyleManager$tabsContainer_metadata); } }); var StyleManager$fieldsOnlyFormScreen_metadata = new PropertyMetadata('fieldsOnlyFormScreen'); Object.defineProperty(StyleManager.prototype, 'fieldsOnlyFormScreen', { configurable: true, get: function () { return this.fieldsOnlyFormScreen_2e4ev5$_0.getValue_lrcp0p$(this, StyleManager$fieldsOnlyFormScreen_metadata); } }); var StyleManager$scrollOnMobile_metadata = new PropertyMetadata('scrollOnMobile'); Object.defineProperty(StyleManager.prototype, 'scrollOnMobile', { configurable: true, get: function () { return this.scrollOnMobile_juvg3q$_0.getValue_lrcp0p$(this, StyleManager$scrollOnMobile_metadata); } }); var StyleManager$contentContainer_metadata = new PropertyMetadata('contentContainer'); Object.defineProperty(StyleManager.prototype, 'contentContainer', { configurable: true, get: function () { return this.contentContainer_cj5b9o$_0.getValue_lrcp0p$(this, StyleManager$contentContainer_metadata); } }); var StyleManager$reportActionText_metadata = new PropertyMetadata('reportActionText'); Object.defineProperty(StyleManager.prototype, 'reportActionText', { configurable: true, get: function () { return this.reportActionText_wxlt99$_0.getValue_lrcp0p$(this, StyleManager$reportActionText_metadata); } }); var StyleManager$startIcon_metadata = new PropertyMetadata('startIcon'); Object.defineProperty(StyleManager.prototype, 'startIcon', { configurable: true, get: function () { return this.startIcon_fcqshx$_0.getValue_lrcp0p$(this, StyleManager$startIcon_metadata); } }); var StyleManager$endIcon_metadata = new PropertyMetadata('endIcon'); Object.defineProperty(StyleManager.prototype, 'endIcon', { configurable: true, get: function () { return this.endIcon_67km0c$_0.getValue_lrcp0p$(this, StyleManager$endIcon_metadata); } }); var StyleManager$centerContainer_metadata = new PropertyMetadata('centerContainer'); Object.defineProperty(StyleManager.prototype, 'centerContainer', { configurable: true, get: function () { return this.centerContainer_fxue9g$_0.getValue_lrcp0p$(this, StyleManager$centerContainer_metadata); } }); var StyleManager$videoPlayerWrapper_metadata = new PropertyMetadata('videoPlayerWrapper'); Object.defineProperty(StyleManager.prototype, 'videoPlayerWrapper', { configurable: true, get: function () { return this.videoPlayerWrapper_82vsot$_0.getValue_lrcp0p$(this, StyleManager$videoPlayerWrapper_metadata); } }); var StyleManager$alignCenterItems_metadata = new PropertyMetadata('alignCenterItems'); Object.defineProperty(StyleManager.prototype, 'alignCenterItems', { configurable: true, get: function () { return this.alignCenterItems_hlvbiq$_0.getValue_lrcp0p$(this, StyleManager$alignCenterItems_metadata); } }); var StyleManager$alignStartItems_metadata = new PropertyMetadata('alignStartItems'); Object.defineProperty(StyleManager.prototype, 'alignStartItems', { configurable: true, get: function () { return this.alignStartItems_hnua77$_0.getValue_lrcp0p$(this, StyleManager$alignStartItems_metadata); } }); var StyleManager$alignEndItems_metadata = new PropertyMetadata('alignEndItems'); Object.defineProperty(StyleManager.prototype, 'alignEndItems', { configurable: true, get: function () { return this.alignEndItems_j2yifq$_0.getValue_lrcp0p$(this, StyleManager$alignEndItems_metadata); } }); var StyleManager$listComponentContainer_metadata = new PropertyMetadata('listComponentContainer'); Object.defineProperty(StyleManager.prototype, 'listComponentContainer', { configurable: true, get: function () { return this.listComponentContainer_k8vpaq$_0.getValue_lrcp0p$(this, StyleManager$listComponentContainer_metadata); } }); var StyleManager$listComponentContainerWithScroll_metadata = new PropertyMetadata('listComponentContainerWithScroll'); Object.defineProperty(StyleManager.prototype, 'listComponentContainerWithScroll', { configurable: true, get: function () { return this.listComponentContainerWithScroll_n6e0pt$_0.getValue_lrcp0p$(this, StyleManager$listComponentContainerWithScroll_metadata); } }); var StyleManager$entryListItemContainer_metadata = new PropertyMetadata('entryListItemContainer'); Object.defineProperty(StyleManager.prototype, 'entryListItemContainer', { configurable: true, get: function () { return this.entryListItemContainer_h74czu$_0.getValue_lrcp0p$(this, StyleManager$entryListItemContainer_metadata); } }); var StyleManager$listCreateNewContainer_metadata = new PropertyMetadata('listCreateNewContainer'); Object.defineProperty(StyleManager.prototype, 'listCreateNewContainer', { configurable: true, get: function () { return this.listCreateNewContainer_kjendz$_0.getValue_lrcp0p$(this, StyleManager$listCreateNewContainer_metadata); } }); var StyleManager$contentEntryListContentAvatarClass_metadata = new PropertyMetadata('contentEntryListContentAvatarClass'); Object.defineProperty(StyleManager.prototype, 'contentEntryListContentAvatarClass', { configurable: true, get: function () { return this.contentEntryListContentAvatarClass_qnv095$_0.getValue_lrcp0p$(this, StyleManager$contentEntryListContentAvatarClass_metadata); } }); var StyleManager$contentEntryListContentTyeIconClass_metadata = new PropertyMetadata('contentEntryListContentTyeIconClass'); Object.defineProperty(StyleManager.prototype, 'contentEntryListContentTyeIconClass', { configurable: true, get: function () { return this.contentEntryListContentTyeIconClass_cwe9r$_0.getValue_lrcp0p$(this, StyleManager$contentEntryListContentTyeIconClass_metadata); } }); var StyleManager$horizontalList_metadata = new PropertyMetadata('horizontalList'); Object.defineProperty(StyleManager.prototype, 'horizontalList', { configurable: true, get: function () { return this.horizontalList_nao56a$_0.getValue_lrcp0p$(this, StyleManager$horizontalList_metadata); } }); var StyleManager$horizontalListEmpty_metadata = new PropertyMetadata('horizontalListEmpty'); Object.defineProperty(StyleManager.prototype, 'horizontalListEmpty', { configurable: true, get: function () { return this.horizontalListEmpty_kgz25x$_0.getValue_lrcp0p$(this, StyleManager$horizontalListEmpty_metadata); } }); var StyleManager$listItemCreateNewDiv_metadata = new PropertyMetadata('listItemCreateNewDiv'); Object.defineProperty(StyleManager.prototype, 'listItemCreateNewDiv', { configurable: true, get: function () { return this.listItemCreateNewDiv_1dfx6e$_0.getValue_lrcp0p$(this, StyleManager$listItemCreateNewDiv_metadata); } }); var StyleManager$listCreateNewIconClass_metadata = new PropertyMetadata('listCreateNewIconClass'); Object.defineProperty(StyleManager.prototype, 'listCreateNewIconClass', { configurable: true, get: function () { return this.listCreateNewIconClass_w5x4nv$_0.getValue_lrcp0p$(this, StyleManager$listCreateNewIconClass_metadata); } }); var StyleManager$dragToReorderClass_metadata = new PropertyMetadata('dragToReorderClass'); Object.defineProperty(StyleManager.prototype, 'dragToReorderClass', { configurable: true, get: function () { return this.dragToReorderClass_7wzuzs$_0.getValue_lrcp0p$(this, StyleManager$dragToReorderClass_metadata); } }); var StyleManager$textGrayedOut_metadata = new PropertyMetadata('textGrayedOut'); Object.defineProperty(StyleManager.prototype, 'textGrayedOut', { configurable: true, get: function () { return this.textGrayedOut_r8mcvz$_0.getValue_lrcp0p$(this, StyleManager$textGrayedOut_metadata); } }); var StyleManager$chipSetFilter_metadata = new PropertyMetadata('chipSetFilter'); Object.defineProperty(StyleManager.prototype, 'chipSetFilter', { configurable: true, get: function () { return this.chipSetFilter_h9c2ni$_0.getValue_lrcp0p$(this, StyleManager$chipSetFilter_metadata); } }); var StyleManager$selectionContainer_metadata = new PropertyMetadata('selectionContainer'); Object.defineProperty(StyleManager.prototype, 'selectionContainer', { configurable: true, get: function () { return this.selectionContainer_z3ilun$_0.getValue_lrcp0p$(this, StyleManager$selectionContainer_metadata); } }); var StyleManager$entityImageClass_metadata = new PropertyMetadata('entityImageClass'); Object.defineProperty(StyleManager.prototype, 'entityImageClass', { configurable: true, get: function () { return this.entityImageClass_w73pys$_0.getValue_lrcp0p$(this, StyleManager$entityImageClass_metadata); } }); var StyleManager$entityThumbnailClass_metadata = new PropertyMetadata('entityThumbnailClass'); Object.defineProperty(StyleManager.prototype, 'entityThumbnailClass', { configurable: true, get: function () { return this.entityThumbnailClass_d38qkb$_0.getValue_lrcp0p$(this, StyleManager$entityThumbnailClass_metadata); } }); var StyleManager$entityImageIconClass_metadata = new PropertyMetadata('entityImageIconClass'); Object.defineProperty(StyleManager.prototype, 'entityImageIconClass', { configurable: true, get: function () { return this.entityImageIconClass_9yn03$_0.getValue_lrcp0p$(this, StyleManager$entityImageIconClass_metadata); } }); var StyleManager$emptyListIcon_metadata = new PropertyMetadata('emptyListIcon'); Object.defineProperty(StyleManager.prototype, 'emptyListIcon', { configurable: true, get: function () { return this.emptyListIcon_sebcjg$_0.getValue_lrcp0p$(this, StyleManager$emptyListIcon_metadata); } }); var StyleManager$tabWarningIconClass_metadata = new PropertyMetadata('tabWarningIconClass'); Object.defineProperty(StyleManager.prototype, 'tabWarningIconClass', { configurable: true, get: function () { return this.tabWarningIconClass_10b8d4$_0.getValue_lrcp0p$(this, StyleManager$tabWarningIconClass_metadata); } }); var StyleManager$entryItemImageContainer_metadata = new PropertyMetadata('entryItemImageContainer'); Object.defineProperty(StyleManager.prototype, 'entryItemImageContainer', { configurable: true, get: function () { return this.entryItemImageContainer_n94lyj$_0.getValue_lrcp0p$(this, StyleManager$entryItemImageContainer_metadata); } }); var StyleManager$fallBackAvatarClass_metadata = new PropertyMetadata('fallBackAvatarClass'); Object.defineProperty(StyleManager.prototype, 'fallBackAvatarClass', { configurable: true, get: function () { return this.fallBackAvatarClass_hed2gt$_0.getValue_lrcp0p$(this, StyleManager$fallBackAvatarClass_metadata); } }); var StyleManager$maxThumbnailClass_metadata = new PropertyMetadata('maxThumbnailClass'); Object.defineProperty(StyleManager.prototype, 'maxThumbnailClass', { configurable: true, get: function () { return this.maxThumbnailClass_qq78j4$_0.getValue_lrcp0p$(this, StyleManager$maxThumbnailClass_metadata); } }); var StyleManager$mediumThumbnailClass_metadata = new PropertyMetadata('mediumThumbnailClass'); Object.defineProperty(StyleManager.prototype, 'mediumThumbnailClass', { configurable: true, get: function () { return this.mediumThumbnailClass_3ayqml$_0.getValue_lrcp0p$(this, StyleManager$mediumThumbnailClass_metadata); } }); var StyleManager$defaultThumbnailClass_metadata = new PropertyMetadata('defaultThumbnailClass'); Object.defineProperty(StyleManager.prototype, 'defaultThumbnailClass', { configurable: true, get: function () { return this.defaultThumbnailClass_bjx0fn$_0.getValue_lrcp0p$(this, StyleManager$defaultThumbnailClass_metadata); } }); var StyleManager$secondaryActionBtn_metadata = new PropertyMetadata('secondaryActionBtn'); Object.defineProperty(StyleManager.prototype, 'secondaryActionBtn', { configurable: true, get: function () { return this.secondaryActionBtn_p622hq$_0.getValue_lrcp0p$(this, StyleManager$secondaryActionBtn_metadata); } }); var StyleManager$personListItemAvatar_metadata = new PropertyMetadata('personListItemAvatar'); Object.defineProperty(StyleManager.prototype, 'personListItemAvatar', { configurable: true, get: function () { return this.personListItemAvatar_14uk1h$_0.getValue_lrcp0p$(this, StyleManager$personListItemAvatar_metadata); } }); var StyleManager$contentEntryDetailOverviewComponentOpenBtn_metadata = new PropertyMetadata('contentEntryDetailOverviewComponentOpenBtn'); Object.defineProperty(StyleManager.prototype, 'contentEntryDetailOverviewComponentOpenBtn', { configurable: true, get: function () { return this.contentEntryDetailOverviewComponentOpenBtn_3uopok$_0.getValue_lrcp0p$(this, StyleManager$contentEntryDetailOverviewComponentOpenBtn_metadata); } }); var StyleManager$detailContentProgress_metadata = new PropertyMetadata('detailContentProgress'); Object.defineProperty(StyleManager.prototype, 'detailContentProgress', { configurable: true, get: function () { return this.detailContentProgress_t7otsb$_0.getValue_lrcp0p$(this, StyleManager$detailContentProgress_metadata); } }); var StyleManager$itemContentProgress_metadata = new PropertyMetadata('itemContentProgress'); Object.defineProperty(StyleManager.prototype, 'itemContentProgress', { configurable: true, get: function () { return this.itemContentProgress_f0dreb$_0.getValue_lrcp0p$(this, StyleManager$itemContentProgress_metadata); } }); var StyleManager$detailIconClass_metadata = new PropertyMetadata('detailIconClass'); Object.defineProperty(StyleManager.prototype, 'detailIconClass', { configurable: true, get: function () { return this.detailIconClass_4ycm7m$_0.getValue_lrcp0p$(this, StyleManager$detailIconClass_metadata); } }); var StyleManager$iframeComponentResponsiveIframe_metadata = new PropertyMetadata('iframeComponentResponsiveIframe'); Object.defineProperty(StyleManager.prototype, 'iframeComponentResponsiveIframe', { configurable: true, get: function () { return this.iframeComponentResponsiveIframe_h46xf3$_0.getValue_lrcp0p$(this, StyleManager$iframeComponentResponsiveIframe_metadata); } }); var StyleManager$personDetailComponentActions_metadata = new PropertyMetadata('personDetailComponentActions'); Object.defineProperty(StyleManager.prototype, 'personDetailComponentActions', { configurable: true, get: function () { return this.personDetailComponentActions_ivh8z2$_0.getValue_lrcp0p$(this, StyleManager$personDetailComponentActions_metadata); } }); var StyleManager$personDetailComponentActionIcon_metadata = new PropertyMetadata('personDetailComponentActionIcon'); Object.defineProperty(StyleManager.prototype, 'personDetailComponentActionIcon', { configurable: true, get: function () { return this.personDetailComponentActionIcon_6lbvfe$_0.getValue_lrcp0p$(this, StyleManager$personDetailComponentActionIcon_metadata); } }); var StyleManager$videoComponentResponsiveMedia_metadata = new PropertyMetadata('videoComponentResponsiveMedia'); Object.defineProperty(StyleManager.prototype, 'videoComponentResponsiveMedia', { configurable: true, get: function () { return this.videoComponentResponsiveMedia_elj6mm$_0.getValue_lrcp0p$(this, StyleManager$videoComponentResponsiveMedia_metadata); } }); var StyleManager$clazzItemClass_metadata = new PropertyMetadata('clazzItemClass'); Object.defineProperty(StyleManager.prototype, 'clazzItemClass', { configurable: true, get: function () { return this.clazzItemClass_4d8y7t$_0.getValue_lrcp0p$(this, StyleManager$clazzItemClass_metadata); } }); var StyleManager$clazzDetailExtraInfo_metadata = new PropertyMetadata('clazzDetailExtraInfo'); Object.defineProperty(StyleManager.prototype, 'clazzDetailExtraInfo', { configurable: true, get: function () { return this.clazzDetailExtraInfo_smm59d$_0.getValue_lrcp0p$(this, StyleManager$clazzDetailExtraInfo_metadata); } }); var StyleManager$clazzListRoleChip_metadata = new PropertyMetadata('clazzListRoleChip'); Object.defineProperty(StyleManager.prototype, 'clazzListRoleChip', { configurable: true, get: function () { return this.clazzListRoleChip_qooqq0$_0.getValue_lrcp0p$(this, StyleManager$clazzListRoleChip_metadata); } }); var StyleManager$gridListSecondaryItemIcons_metadata = new PropertyMetadata('gridListSecondaryItemIcons'); Object.defineProperty(StyleManager.prototype, 'gridListSecondaryItemIcons', { configurable: true, get: function () { return this.gridListSecondaryItemIcons_mz1p0d$_0.getValue_lrcp0p$(this, StyleManager$gridListSecondaryItemIcons_metadata); } }); var StyleManager$gridListSecondaryItemDesc_metadata = new PropertyMetadata('gridListSecondaryItemDesc'); Object.defineProperty(StyleManager.prototype, 'gridListSecondaryItemDesc', { configurable: true, get: function () { return this.gridListSecondaryItemDesc_1miq8k$_0.getValue_lrcp0p$(this, StyleManager$gridListSecondaryItemDesc_metadata); } }); var StyleManager$hideOnMobile_metadata = new PropertyMetadata('hideOnMobile'); Object.defineProperty(StyleManager.prototype, 'hideOnMobile', { configurable: true, get: function () { return this.hideOnMobile_sqz3zl$_0.getValue_lrcp0p$(this, StyleManager$hideOnMobile_metadata); } }); var StyleManager$showOnMobile_metadata = new PropertyMetadata('showOnMobile'); Object.defineProperty(StyleManager.prototype, 'showOnMobile', { configurable: true, get: function () { return this.showOnMobile_e0ubh2$_0.getValue_lrcp0p$(this, StyleManager$showOnMobile_metadata); } }); var StyleManager$partnerItem_metadata = new PropertyMetadata('partnerItem'); Object.defineProperty(StyleManager.prototype, 'partnerItem', { configurable: true, get: function () { return this.partnerItem_t9ki11$_0.getValue_lrcp0p$(this, StyleManager$partnerItem_metadata); } }); var StyleManager$partnersList_metadata = new PropertyMetadata('partnersList'); Object.defineProperty(StyleManager.prototype, 'partnersList', { configurable: true, get: function () { return this.partnersList_345vuz$_0.getValue_lrcp0p$(this, StyleManager$partnersList_metadata); } }); var StyleManager$studentProgressBar_metadata = new PropertyMetadata('studentProgressBar'); Object.defineProperty(StyleManager.prototype, 'studentProgressBar', { configurable: true, get: function () { return this.studentProgressBar_17h22x$_0.getValue_lrcp0p$(this, StyleManager$studentProgressBar_metadata); } }); var StyleManager$dropZoneArea_metadata = new PropertyMetadata('dropZoneArea'); Object.defineProperty(StyleManager.prototype, 'dropZoneArea', { configurable: true, get: function () { return this.dropZoneArea_px87os$_0.getValue_lrcp0p$(this, StyleManager$dropZoneArea_metadata); } }); var StyleManager$dropZoneAreaActive_metadata = new PropertyMetadata('dropZoneAreaActive'); Object.defineProperty(StyleManager.prototype, 'dropZoneAreaActive', { configurable: true, get: function () { return this.dropZoneAreaActive_4f45x6$_0.getValue_lrcp0p$(this, StyleManager$dropZoneAreaActive_metadata); } }); var StyleManager$dropZoneAreaSuccess_metadata = new PropertyMetadata('dropZoneAreaSuccess'); Object.defineProperty(StyleManager.prototype, 'dropZoneAreaSuccess', { configurable: true, get: function () { return this.dropZoneAreaSuccess_1fkth7$_0.getValue_lrcp0p$(this, StyleManager$dropZoneAreaSuccess_metadata); } }); var StyleManager$dropZoneAreaError_metadata = new PropertyMetadata('dropZoneAreaError'); Object.defineProperty(StyleManager.prototype, 'dropZoneAreaError', { configurable: true, get: function () { return this.dropZoneAreaError_u3k8io$_0.getValue_lrcp0p$(this, StyleManager$dropZoneAreaError_metadata); } }); var StyleManager$dropZoneIcon_metadata = new PropertyMetadata('dropZoneIcon'); Object.defineProperty(StyleManager.prototype, 'dropZoneIcon', { configurable: true, get: function () { return this.dropZoneIcon_q1d7cw$_0.getValue_lrcp0p$(this, StyleManager$dropZoneIcon_metadata); } }); var StyleManager$dropZoneTxt_metadata = new PropertyMetadata('dropZoneTxt'); Object.defineProperty(StyleManager.prototype, 'dropZoneTxt', { configurable: true, get: function () { return this.dropZoneTxt_m2fhkl$_0.getValue_lrcp0p$(this, StyleManager$dropZoneTxt_metadata); } }); var StyleManager$chatMessageContent_metadata = new PropertyMetadata('chatMessageContent'); Object.defineProperty(StyleManager.prototype, 'chatMessageContent', { configurable: true, get: function () { return this.chatMessageContent_ffyms6$_0.getValue_lrcp0p$(this, StyleManager$chatMessageContent_metadata); } }); var StyleManager$chatLeft_metadata = new PropertyMetadata('chatLeft'); Object.defineProperty(StyleManager.prototype, 'chatLeft', { configurable: true, get: function () { return this.chatLeft_foys7f$_0.getValue_lrcp0p$(this, StyleManager$chatLeft_metadata); } }); var StyleManager$chatRight_metadata = new PropertyMetadata('chatRight'); Object.defineProperty(StyleManager.prototype, 'chatRight', { configurable: true, get: function () { return this.chatRight_dmbfp8$_0.getValue_lrcp0p$(this, StyleManager$chatRight_metadata); } }); Object.defineProperty(StyleManager.prototype, 'di', { configurable: true, get: function () { return ReduxAppStateManager_getInstance().getCurrentState().di.instance; } }); function StyleManager$alignTextToStart$lambda($receiver) { set_textAlign($receiver, TextAlign.start); return Unit; } function StyleManager$contentAfterIconMarginLeft$lambda($receiver) { set_marginLeft($receiver, get_pct(2)); return Unit; } function StyleManager$umItemWithIconAndText$lambda($receiver) { set_display($receiver, Display.flex); set_flexDirection($receiver, FlexDirection.row); return Unit; } function StyleManager$alignTextCenter$lambda($receiver) { set_textAlign($receiver, TextAlign.center); return Unit; } function StyleManager$defaultFullWidth$lambda($receiver) { set_width($receiver, get_pct(100)); return Unit; } function StyleManager$defaultMarginTop$lambda($receiver) { set_marginTop($receiver, get_spacingUnits(2)); return Unit; } function StyleManager$defaultMarginBottom$lambda($receiver) { set_marginBottom($receiver, get_spacingUnits(2)); return Unit; } function StyleManager$defaultPaddingTop$lambda($receiver) { set_paddingTop($receiver, get_spacingUnits(3)); return Unit; } function StyleManager$defaultPaddingTopBottom$lambda($receiver) { set_paddingTop($receiver, get_spacingUnits(2)); set_paddingBottom($receiver, get_spacingUnits(2)); return Unit; } function StyleManager$defaultDoubleMarginTop$lambda($receiver) { set_marginTop($receiver, get_spacingUnits(4)); return Unit; } function StyleManager$errorTextClass$lambda(this$StyleManager) { return function ($receiver) { set_color($receiver, new Color(this$StyleManager.theme.palette.error.main)); set_marginLeft($receiver, get_px(this$StyleManager.systemImpl_0.isRtlActive() ? 0 : 16)); set_marginRight($receiver, get_px(this$StyleManager.systemImpl_0.isRtlActive() ? 16 : 0)); return Unit; }; } function StyleManager$errorClass$lambda(this$StyleManager) { return function ($receiver) { set_color($receiver, new Color(this$StyleManager.theme.palette.error.main)); return Unit; }; } function StyleManager$successClass$lambda($receiver) { set_color($receiver, Color.Companion.green.lighten_za3lpa$(500)); return Unit; } function StyleManager$splashComponentContainer$lambda($receiver) { set_flexGrow($receiver, 1.0); set_width($receiver, get_pct(100)); set_zIndex($receiver, 1); set_overflow($receiver, Overflow.hidden); set_position($receiver, Position.relative); set_display($receiver, Display.flex); set_flexDirection($receiver, FlexDirection.column); return Unit; } function StyleManager$splashComponentPreloadContainer$lambda($receiver) { set_left($receiver, get_pct(50)); set_top($receiver, get_pct(50)); set_marginLeft($receiver, get_px(-100)); set_marginTop($receiver, get_px(-50)); set_position($receiver, Position.fixed); set_height($receiver, get_px(200)); set_width($receiver, get_px(200)); return Unit; } function StyleManager$mainComponentErrorPaper$lambda($receiver) { padding($receiver, get_spacingUnits(2)); set_marginBottom($receiver, get_spacingUnits(2)); set_color($receiver, Color.Companion.red); return Unit; } function StyleManager$mainComponentProgressIndicator$lambda($receiver) { set_width($receiver, get_pct(100)); set_display($receiver, Display.none); return Unit; } function StyleManager$mainComponentContainer$lambda($receiver) { set_overflow($receiver, Overflow.hidden); set_position($receiver, Position.relative); set_display($receiver, Display.flex); set_width($receiver, get_pct(100)); return Unit; } function StyleManager$mainComponentWrapperContainer$lambda(this$StyleManager) { return function ($receiver) { set_flexGrow($receiver, 1.0); set_width($receiver, get_pct(100)); set_zIndex($receiver, 1); set_overflow($receiver, Overflow.hidden); set_position($receiver, Position.relative); set_display($receiver, Display.flex); set_flexDirection($receiver, FlexDirection.column); set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.background.paper)); return Unit; }; } function StyleManager$mainComponentAppBar$lambda$lambda(this$StyleManager) { return function ($receiver) { var tmp$, tmp$_0; tmp$_0 = this$StyleManager.fullWidth_0; if (this$StyleManager.systemImpl_0.isRtlActive()) tmp$ = get_px(0); else tmp$ = get_px(240); set_width($receiver, tmp$_0.minus_tco10h$(tmp$)); return Unit; }; } function StyleManager$mainComponentAppBar$lambda(this$StyleManager) { return function ($receiver) { var tmp$; set_position($receiver, Position.absolute); if (this$StyleManager.systemImpl_0.isRtlActive()) tmp$ = get_px(0); else tmp$ = get_px(240); set_marginLeft($receiver, tmp$); set_width($receiver, this$StyleManager.fullWidth_0); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$mainComponentAppBar$lambda$lambda(this$StyleManager)); return Unit; }; } function StyleManager$detailPaddingBottom$lambda$lambda($receiver) { padding_0($receiver, void 0, void 0, get_spacingUnits(2)); return Unit; } function StyleManager$detailPaddingBottom$lambda(this$StyleManager) { return function ($receiver) { padding_0($receiver, void 0, void 0, get_spacingUnits(3)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$detailPaddingBottom$lambda$lambda); return Unit; }; } function StyleManager$entryDetailRightSection$lambda$lambda($receiver) { padding_0($receiver, void 0, void 0, get_spacingUnits(2)); return Unit; } function StyleManager$entryDetailRightSection$lambda(this$StyleManager) { return function ($receiver) { var tmp$; tmp$ = get_spacingUnits(3); padding_0($receiver, get_spacingUnits(8), void 0, tmp$); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$entryDetailRightSection$lambda$lambda); return Unit; }; } function StyleManager$switchMargin$lambda$lambda($receiver) { set_paddingRight($receiver, get_spacingUnits(1)); return Unit; } function StyleManager$switchMargin$lambda(this$StyleManager) { return function ($receiver) { set_paddingRight($receiver, get_spacingUnits(5)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$switchMargin$lambda$lambda); return Unit; }; } function StyleManager$screenWithChartOnLeft$lambda$lambda($receiver) { set_marginRight($receiver, get_spacingUnits(2)); return Unit; } function StyleManager$screenWithChartOnLeft$lambda(this$StyleManager) { return function ($receiver) { set_marginRight($receiver, get_spacingUnits(0)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$screenWithChartOnLeft$lambda$lambda); return Unit; }; } function StyleManager$mainComponentAppBarWithNoNav$lambda(this$StyleManager) { return function ($receiver) { set_position($receiver, Position.absolute); set_marginLeft($receiver, get_px(0)); set_width($receiver, this$StyleManager.fullWidth_0); return Unit; }; } function StyleManager$mainComponentContentContainer$lambda$lambda($receiver) { set_height($receiver, get_vh(91)); return Unit; } function StyleManager$mainComponentContentContainer$lambda(this$StyleManager) { return function ($receiver) { set_height($receiver, get_vh(100)); set_flexGrow($receiver, 1.0); set_minWidth($receiver, get_px(0)); set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.background.default)); $receiver.media_v44dnz$(down(this$StyleManager.theme.breakpoints, Breakpoint$xs_getInstance()), StyleManager$mainComponentContentContainer$lambda$lambda); return Unit; }; } function StyleManager$mainComponentBottomNav$lambda($receiver) { set_position($receiver, Position.fixed); set_bottom($receiver, get_px(0)); set_left($receiver, get_px(0)); set_right($receiver, get_px(0)); return Unit; } function StyleManager$mainComponentBrandIconContainer$lambda(this$StyleManager) { return function ($receiver) { set_height($receiver, get_px(43)); set_marginTop($receiver, get_px(20)); set_width($receiver, get_pct(100)); padding_0($receiver, get_px(0), get_px(this$StyleManager.systemImpl_0.isRtlActive() ? 20 : 0), get_px(0), get_px(this$StyleManager.systemImpl_0.isRtlActive() ? 0 : 20)); return Unit; }; } function StyleManager$mainComponentBrandIcon$lambda($receiver) { set_width($receiver, get_pct(80)); set_height($receiver, get_pct(60)); return Unit; } function StyleManager$mainComponentSideNavMenuList$lambda(this$StyleManager) { return function ($receiver) { set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.background.paper)); set_width($receiver, get_px(240)); return Unit; }; } function StyleManager$toolbarTitle$lambda$lambda($receiver) { set_marginRight($receiver, get_px(0)); return Unit; } function StyleManager$toolbarTitle$lambda(this$StyleManager) { return function ($receiver) { if (this$StyleManager.systemImpl_0.isRtlActive()) { set_textAlign($receiver, TextAlign.start); set_marginRight($receiver, get_px(240)); $receiver.media_v44dnz$(down(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$toolbarTitle$lambda$lambda); }return Unit; }; } function StyleManager$mainComponentProfileOuterAvatar$lambda$lambda(this$StyleManager) { return function ($receiver) { margin($receiver, get_px(0), get_pct(this$StyleManager.systemImpl_0.isRtlActive() ? 10 : 3), get_px(0), get_pct(this$StyleManager.systemImpl_0.isRtlActive() ? 0 : 10)); return Unit; }; } function StyleManager$mainComponentProfileOuterAvatar$lambda(this$StyleManager) { return function ($receiver) { set_width($receiver, get_px(40)); set_height($receiver, get_px(40)); set_cursor($receiver, Cursor.pointer); margin($receiver, get_px(0), get_pct(this$StyleManager.systemImpl_0.isRtlActive() ? 10 : 0), get_px(0), get_pct(this$StyleManager.systemImpl_0.isRtlActive() ? 0 : 10)); $receiver.media_v44dnz$(down(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$mainComponentProfileOuterAvatar$lambda$lambda(this$StyleManager)); set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.primary.light)); set_alignItems($receiver, Align.center); set_alignContent($receiver, Align.center); return Unit; }; } function StyleManager$mainComponentProfileInnerAvatar$lambda(this$StyleManager) { return function ($receiver) { set_width($receiver, get_px(36)); set_height($receiver, get_px(36)); set_color($receiver, Color.Companion.white); if (this$StyleManager.systemImpl_0.isRtlActive()) { set_marginRight($receiver, get_px(2.5)); } else { set_marginLeft($receiver, get_px(2.5)); } set_marginTop($receiver, get_px(2)); set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.primary.dark)); return Unit; }; } function StyleManager$mainComponentInputSearchClass$lambda$lambda$lambda($receiver) { set_width($receiver, new LinearDimension('50ch')); return Unit; } function StyleManager$mainComponentInputSearchClass$lambda$lambda($receiver) { set_width($receiver, new LinearDimension('40ch')); $receiver.focus_lx8bml$(StyleManager$mainComponentInputSearchClass$lambda$lambda$lambda); return Unit; } function StyleManager$mainComponentInputSearchClass$lambda(this$StyleManager) { return function ($receiver) { padding_0($receiver, get_px(8), get_px(8), get_px(8), get_px(50)); get_transition($receiver).plusAssign_11rb$(new Transition('width', get_ms(this$StyleManager.theme.transitions.duration.standard), Timing.Companion.easeInOut, get_ms(0))); set_width($receiver, new LinearDimension('30ch')); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$mainComponentInputSearchClass$lambda$lambda); set_flexGrow($receiver, 1.0); set_color($receiver, Color.Companion.inherit); set_paddingRight($receiver, get_px(this$StyleManager.systemImpl_0.isRtlActive() ? 60 : 0)); return Unit; }; } function StyleManager$chatInputMessageClass$lambda(this$StyleManager) { return function ($receiver) { padding($receiver, get_spacingUnits(2)); get_transition($receiver).plusAssign_11rb$(new Transition('width', get_ms(this$StyleManager.theme.transitions.duration.standard), Timing.Companion.easeInOut, get_ms(0))); set_flexGrow($receiver, 1.0); set_color($receiver, Color.Companion.inherit); return Unit; }; } function StyleManager$mainComponentSearch$lambda$lambda(this$StyleManager) { return function ($receiver) { set_backgroundColor($receiver, $module$_mui_material_styles.alpha(this$StyleManager.theme.palette.common.white, 0.25)); return Unit; }; } function StyleManager$mainComponentSearch$lambda$lambda_0($receiver) { set_marginLeft($receiver, get_spacingUnits(1)); set_width($receiver, new LinearDimension('auto')); return Unit; } function StyleManager$mainComponentSearch$lambda$lambda_1($receiver) { set_width($receiver, get_pct(80)); return Unit; } function StyleManager$mainComponentSearch$lambda(this$StyleManager) { return function ($receiver) { set_position($receiver, Position.relative); set_borderRadius($receiver, get_px(this$StyleManager.theme.shape.borderRadius)); set_backgroundColor($receiver, $module$_mui_material_styles.alpha(this$StyleManager.theme.palette.common.white, 0.15)); $receiver.hover_lx8bml$(StyleManager$mainComponentSearch$lambda$lambda(this$StyleManager)); set_marginLeft($receiver, get_px(0)); set_width($receiver, get_pct(100)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$mainComponentSearch$lambda$lambda_0); $receiver.media_v44dnz$(down(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$mainComponentSearch$lambda$lambda_1); return Unit; }; } function StyleManager$typingMessage$lambda$lambda($receiver) { set_width($receiver, get_pct(75)); return Unit; } function StyleManager$typingMessage$lambda$lambda_0($receiver) { set_width($receiver, get_pct(80)); return Unit; } function StyleManager$typingMessage$lambda(this$StyleManager) { return function ($receiver) { $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, Breakpoint$lg_getInstance()), StyleManager$typingMessage$lambda$lambda); $receiver.media_v44dnz$(down(this$StyleManager.theme.breakpoints, Breakpoint$lg_getInstance()), StyleManager$typingMessage$lambda$lambda_0); return Unit; }; } function StyleManager$messageSendButton$lambda$lambda(this$StyleManager) { return function ($receiver) { set_display($receiver, Display.block); if (!this$StyleManager.systemImpl_0.isRtlActive()) set_right($receiver, get_spacingUnits(2)); if (this$StyleManager.systemImpl_0.isRtlActive()) set_left($receiver, get_spacingUnits(2)); return Unit; }; } function StyleManager$messageSendButton$lambda$lambda_0($receiver) { set_display($receiver, Display.none); return Unit; } function StyleManager$messageSendButton$lambda(this$StyleManager) { return function ($receiver) { $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, Breakpoint$lg_getInstance()), StyleManager$messageSendButton$lambda$lambda(this$StyleManager)); $receiver.media_v44dnz$(down(this$StyleManager.theme.breakpoints, Breakpoint$lg_getInstance()), StyleManager$messageSendButton$lambda$lambda_0); return Unit; }; } function StyleManager$messageContainer$lambda$lambda($receiver) { set_bottom($receiver, get_px(15)); set_width($receiver, get_pct(81.5)); return Unit; } function StyleManager$messageContainer$lambda$lambda_0($receiver) { set_bottom($receiver, get_px(70)); set_width($receiver, get_pct(84)); return Unit; } function StyleManager$messageContainer$lambda(this$StyleManager) { return function ($receiver) { set_position($receiver, Position.fixed); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$messageContainer$lambda$lambda); $receiver.media_v44dnz$(down(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$messageContainer$lambda$lambda_0); return Unit; }; } function StyleManager$chatDetailNewMessage$lambda$lambda(this$StyleManager) { return function ($receiver) { set_backgroundColor($receiver, $module$_mui_material_styles.alpha(this$StyleManager.theme.palette.primary.dark, 0.5)); return Unit; }; } function StyleManager$chatDetailNewMessage$lambda$lambda_0($receiver) { set_marginRight($receiver, get_spacingUnits(3)); return Unit; } function StyleManager$chatDetailNewMessage$lambda(this$StyleManager) { return function ($receiver) { set_borderRadius($receiver, get_px(this$StyleManager.theme.shape.borderRadius)); set_backgroundColor($receiver, $module$_mui_material_styles.alpha(this$StyleManager.theme.palette.primary.dark, 0.8)); $receiver.hover_lx8bml$(StyleManager$chatDetailNewMessage$lambda$lambda(this$StyleManager)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$chatDetailNewMessage$lambda$lambda_0); return Unit; }; } function StyleManager$mainComponentSearchIcon$lambda($receiver) { set_padding($receiver, '0 16px'); set_height($receiver, get_pct(100)); set_position($receiver, Position.absolute); set_pointerEvents($receiver, PointerEvents.none); set_display($receiver, Display.flex); set_alignItems($receiver, Align.center); set_justifyContent($receiver, JustifyContent.center); return Unit; } function StyleManager$mainComponentToolbarMargins$lambda(this$StyleManager) { return function ($receiver) { if (this$StyleManager.systemImpl_0.isRtlActive()) { set_paddingRight($receiver, get_px(30)); } else { set_paddingLeft($receiver, get_px(30)); } return Unit; }; } function StyleManager$mainComponentFab$lambda$lambda($receiver) { set_bottom($receiver, get_px(15)); return Unit; } function StyleManager$mainComponentFab$lambda(this$StyleManager) { return function ($receiver) { if (!this$StyleManager.systemImpl_0.isRtlActive()) set_right($receiver, get_px(15)); if (this$StyleManager.systemImpl_0.isRtlActive()) set_left($receiver, get_px(15)); set_position($receiver, Position.fixed); set_bottom($receiver, get_px(70)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$mainComponentFab$lambda$lambda); return Unit; }; } function StyleManager$languageComponentLanguageSelectorFormControl$lambda($receiver) { margin_0($receiver, get_spacingUnits(1)); set_minWidth($receiver, get_px(240 * 0.9)); set_width($receiver, LinearDimension.Companion.auto); set_display($receiver, Display.flex); set_position($receiver, Position.fixed); set_height($receiver, LinearDimension.Companion.auto); set_bottom($receiver, get_px(16)); return Unit; } function StyleManager$tabsContainer$lambda(this$StyleManager) { return function ($receiver) { set_flexGrow($receiver, 1.0); set_height($receiver, get_pct(100)); $receiver.unaryPlus_uoyjcc$(this$StyleManager.defaultFullWidth); return Unit; }; } function StyleManager$fieldsOnlyFormScreen$lambda$lambda($receiver) { set_width($receiver, get_pct(99.5)); return Unit; } function StyleManager$fieldsOnlyFormScreen$lambda(this$StyleManager) { return function ($receiver) { set_paddingLeft($receiver, get_spacingUnits(4)); set_paddingRight($receiver, get_spacingUnits(4)); set_paddingTop($receiver, get_spacingUnits(4)); set_height($receiver, get_vh(100)); set_overflow($receiver, Overflow.scroll); set_paddingBottom($receiver, get_spacingUnits(16)); set_width($receiver, get_pct(99.5)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$fieldsOnlyFormScreen$lambda$lambda); return Unit; }; } function StyleManager$scrollOnMobile$lambda$lambda($receiver) { set_overflow($receiver, Overflow.hidden); return Unit; } function StyleManager$scrollOnMobile$lambda(this$StyleManager) { return function ($receiver) { set_overflow($receiver, Overflow.scroll); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$scrollOnMobile$lambda$lambda); return Unit; }; } function StyleManager$contentContainer$lambda$lambda($receiver) { set_width($receiver, get_pct(95.5)); set_marginLeft($receiver, get_spacingUnits(3)); set_marginRight($receiver, get_spacingUnits(3)); return Unit; } function StyleManager$contentContainer$lambda(this$StyleManager) { return function ($receiver) { set_marginLeft($receiver, get_spacingUnits(1)); set_marginRight($receiver, get_spacingUnits(1)); set_height($receiver, get_vh(100)); set_overflow($receiver, Overflow.scroll); set_paddingLeft($receiver, get_spacingUnits(2)); set_paddingRight($receiver, get_spacingUnits(2)); set_paddingBottom($receiver, get_spacingUnits(16)); set_width($receiver, get_pct(95.5)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$contentContainer$lambda$lambda); return Unit; }; } function StyleManager$reportActionText$lambda($receiver) { set_fontSize($receiver, get_em(1)); set_textAlign($receiver, TextAlign.center); return Unit; } function StyleManager$startIcon$lambda$lambda($receiver) { set_marginRight($receiver, get_spacingUnits(2)); return Unit; } function StyleManager$startIcon$lambda(this$StyleManager) { return function ($receiver) { set_marginRight($receiver, get_spacingUnits(6)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$startIcon$lambda$lambda); return Unit; }; } function StyleManager$endIcon$lambda$lambda($receiver) { set_marginLeft($receiver, get_spacingUnits(2)); return Unit; } function StyleManager$endIcon$lambda(this$StyleManager) { return function ($receiver) { set_marginLeft($receiver, get_spacingUnits(4)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$endIcon$lambda$lambda); return Unit; }; } function StyleManager$centerContainer$lambda($receiver) { set_display($receiver, Display.flex); set_justifyContent($receiver, JustifyContent.center); set_height($receiver, get_vh(70)); set_alignItems($receiver, Align.center); return Unit; } function StyleManager$videoPlayerWrapper$lambda($receiver) { set_display($receiver, Display.flex); set_justifyContent($receiver, JustifyContent.center); set_height($receiver, get_vh(80)); set_width($receiver, get_vw(90)); set_alignItems($receiver, Align.center); return Unit; } function StyleManager$alignCenterItems$lambda($receiver) { set_alignItems($receiver, Align.center); set_textAlign($receiver, TextAlign.center); set_flexShrink($receiver, 0.0); return Unit; } function StyleManager$alignStartItems$lambda($receiver) { set_alignItems($receiver, Align.start); set_textAlign($receiver, TextAlign.start); set_flexShrink($receiver, 0.0); return Unit; } function StyleManager$alignEndItems$lambda($receiver) { set_alignItems($receiver, Align.end); set_textAlign($receiver, TextAlign.end); set_flexShrink($receiver, 0.0); return Unit; } function StyleManager$listComponentContainer$lambda($receiver) { set_display($receiver, Display.inlineFlex); set_flexDirection($receiver, FlexDirection.column); return Unit; } function StyleManager$listComponentContainerWithScroll$lambda($receiver) { set_display($receiver, Display.inlineFlex); set_flexDirection($receiver, FlexDirection.column); set_height($receiver, get_vh(100)); set_overflow($receiver, Overflow.scroll); padding_1($receiver, get_spacingUnits(2), get_spacingUnits(2), get_spacingUnits(0)); set_width($receiver, get_pct(100)); return Unit; } function StyleManager$entryListItemContainer$lambda($receiver) { set_width($receiver, get_pct(100)); set_display($receiver, Display.flex); set_flexDirection($receiver, FlexDirection.row); return Unit; } function StyleManager$listCreateNewContainer$lambda($receiver) { padding($receiver, get_px(10)); set_marginBottom($receiver, get_spacingUnits(2)); return Unit; } function StyleManager$contentEntryListContentAvatarClass$lambda($receiver) { set_height($receiver, get_spacingUnits(3)); set_width($receiver, get_spacingUnits(3)); return Unit; } function StyleManager$contentEntryListContentTyeIconClass$lambda($receiver) { set_fontSize($receiver, get_em(0.65)); set_marginBottom($receiver, get_px(4)); return Unit; } function StyleManager$horizontalList$lambda(this$StyleManager) { return function ($receiver) { set_width($receiver, get_pct(100)); set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.background.paper)); return Unit; }; } function StyleManager$horizontalListEmpty$lambda($receiver) { set_width($receiver, get_pct(100)); return Unit; } function StyleManager$listItemCreateNewDiv$lambda($receiver) { set_display($receiver, Display.inlineFlex); set_marginLeft($receiver, get_px(16)); set_paddingTop($receiver, get_px(10)); set_paddingBottom($receiver, get_px(10)); return Unit; } function StyleManager$listCreateNewIconClass$lambda($receiver) { set_fontSize($receiver, get_em(2.5)); set_marginTop($receiver, get_px(5)); return Unit; } function StyleManager$dragToReorderClass$lambda($receiver) { set_fontSize($receiver, get_em(2)); set_marginTop($receiver, get_spacingUnits(1)); return Unit; } function StyleManager$textGrayedOut$lambda(this$StyleManager) { return function ($receiver) { set_color($receiver, new Color(this$StyleManager.theme.palette.action.disabled)); return Unit; }; } function StyleManager$chipSetFilter$lambda($receiver) { set_display($receiver, Display.flex); set_justifyContent($receiver, JustifyContent.start); set_flexWrap($receiver, FlexWrap.wrap); return Unit; } function StyleManager$selectionContainer$lambda(this$StyleManager) { return function ($receiver) { set_paddingTop($receiver, get_px(12)); set_paddingBottom($receiver, get_px(12)); set_width($receiver, get_pct(100)); set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.background.default)); return Unit; }; } function StyleManager$entityImageClass$lambda($receiver) { set_textAlign($receiver, TextAlign.center); set_position($receiver, Position.relative); set_width($receiver, get_pct(98)); set_height($receiver, get_px(300)); return Unit; } function StyleManager$entityThumbnailClass$lambda$lambda($receiver) { set_width($receiver, get_pct(70)); set_height($receiver, get_px(120)); return Unit; } function StyleManager$entityThumbnailClass$lambda(this$StyleManager) { return function ($receiver) { set_textAlign($receiver, TextAlign.center); set_position($receiver, Position.relative); set_width($receiver, get_pct(100)); set_height($receiver, get_px(80)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$entityThumbnailClass$lambda$lambda); return Unit; }; } function StyleManager$entityImageIconClass$lambda($receiver) { set_fontSize($receiver, get_em(3)); return Unit; } function StyleManager$emptyListIcon$lambda($receiver) { set_display($receiver, Display.table); set_margin($receiver, '0 auto'); set_fontSize($receiver, get_em(7)); return Unit; } function StyleManager$tabWarningIconClass$lambda($receiver) { set_display($receiver, Display.table); set_margin($receiver, '0 auto'); set_fontSize($receiver, get_em(10)); return Unit; } function StyleManager$entryItemImageContainer$lambda($receiver) { set_width($receiver, get_pct(100)); set_textAlign($receiver, TextAlign.center); return Unit; } function StyleManager$fallBackAvatarClass$lambda($receiver) { set_fontSize($receiver, get_em(2)); set_marginBottom($receiver, get_px(4)); return Unit; } function StyleManager$maxThumbnailClass$lambda($receiver) { set_fontSize($receiver, get_em(5)); return Unit; } function StyleManager$mediumThumbnailClass$lambda($receiver) { set_fontSize($receiver, get_em(2)); return Unit; } function StyleManager$defaultThumbnailClass$lambda($receiver) { set_fontSize($receiver, get_em(1.2)); return Unit; } function StyleManager$secondaryActionBtn$lambda($receiver) { set_width($receiver, get_px(60)); padding($receiver, get_px(16)); return Unit; } function StyleManager$personListItemAvatar$lambda(this$StyleManager) { return function ($receiver) { set_width($receiver, get_px(50)); set_height($receiver, get_px(50)); margin($receiver, get_px(2), get_px(this$StyleManager.systemImpl_0.isRtlActive() ? 2.4 : 0), get_px(0), get_px(this$StyleManager.systemImpl_0.isRtlActive() ? 0 : 2.4)); set_color($receiver, new Color(this$StyleManager.theme.palette.background.paper)); set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.action.disabled)); return Unit; }; } function StyleManager$contentEntryDetailOverviewComponentOpenBtn$lambda$lambda($receiver) { margin($receiver, get_pct(2), get_pct(1.5), get_pct(0), get_pct(1.5)); return Unit; } function StyleManager$contentEntryDetailOverviewComponentOpenBtn$lambda(this$StyleManager) { return function ($receiver) { margin_1($receiver, get_pct(3), get_pct(1.5)); set_width($receiver, get_pct(98)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$contentEntryDetailOverviewComponentOpenBtn$lambda$lambda); return Unit; }; } function StyleManager$detailContentProgress$lambda($receiver) { var tmp$; tmp$ = get_pct(1.5); margin($receiver, void 0, get_pct(1.5), void 0, tmp$); set_width($receiver, get_pct(98)); return Unit; } function StyleManager$itemContentProgress$lambda$lambda($receiver) { var tmp$, tmp$_0; tmp$ = get_spacingUnits(1); tmp$_0 = get_pct(1.5); margin($receiver, tmp$, get_pct(1.5), void 0, tmp$_0); return Unit; } function StyleManager$itemContentProgress$lambda(this$StyleManager) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = get_spacingUnits(2); tmp$_0 = get_pct(1.5); margin($receiver, tmp$, get_pct(1.5), void 0, tmp$_0); set_width($receiver, get_pct(43)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$itemContentProgress$lambda$lambda); return Unit; }; } function StyleManager$detailIconClass$lambda($receiver) { set_fontSize($receiver, get_em(2)); set_marginTop($receiver, get_px(3)); return Unit; } function StyleManager$iframeComponentResponsiveIframe$lambda$lambda($receiver) { set_minHeight($receiver, get_pct(100)); margin($receiver, get_pct(5)); return Unit; } function StyleManager$iframeComponentResponsiveIframe$lambda(this$StyleManager) { return function ($receiver) { set_overflow($receiver, Overflow.hidden); set_width($receiver, get_pct(100)); set_backgroundColor($receiver, Color.Companion.transparent); set_border($receiver, '0px'); set_minHeight($receiver, get_pct(75)); margin($receiver, get_pct(10)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$iframeComponentResponsiveIframe$lambda$lambda); return Unit; }; } function StyleManager$personDetailComponentActions$lambda$lambda(this$StyleManager) { return function ($receiver) { set_backgroundColor($receiver, new Color(this$StyleManager.theme.palette.action.selected)); return Unit; }; } function StyleManager$personDetailComponentActions$lambda(this$StyleManager) { return function ($receiver) { set_display($receiver, Display.flex); set_flexDirection($receiver, FlexDirection.column); set_alignContent($receiver, Align.center); set_alignItems($receiver, Align.center); set_paddingBottom($receiver, get_px(16)); padding_0($receiver, get_px(16), get_px(30), get_px(16), get_px(30)); set_cursor($receiver, Cursor.pointer); set_width($receiver, get_pct(100)); $receiver.hover_lx8bml$(StyleManager$personDetailComponentActions$lambda$lambda(this$StyleManager)); return Unit; }; } function StyleManager$personDetailComponentActionIcon$lambda($receiver) { set_marginBottom($receiver, get_px(10)); return Unit; } function StyleManager$videoComponentResponsiveMedia$lambda$lambda($receiver) { set_height($receiver, get_pct(100)); set_minHeight($receiver, get_pct(100)); margin($receiver, get_pct(5)); return Unit; } function StyleManager$videoComponentResponsiveMedia$lambda(this$StyleManager) { return function ($receiver) { set_overflow($receiver, Overflow.hidden); set_width($receiver, get_pct(95)); set_minHeight($receiver, get_pct(70)); set_height($receiver, get_pct(70)); margin($receiver, get_pct(10)); set_backgroundColor($receiver, Color.Companion.transparent); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$videoComponentResponsiveMedia$lambda$lambda); return Unit; }; } function StyleManager$clazzItemClass$lambda($receiver) { set_height($receiver, get_px(200)); set_width($receiver, get_pct(100)); return Unit; } function StyleManager$clazzDetailExtraInfo$lambda($receiver) { set_width($receiver, get_pct(100)); margin($receiver, get_px(0), get_pct(2), get_px(0), get_pct(2)); set_paddingBottom($receiver, get_spacingUnits(10)); return Unit; } function StyleManager$clazzListRoleChip$lambda($receiver) { set_position($receiver, Position.absolute); set_right($receiver, get_px(10)); set_top($receiver, get_px(10)); return Unit; } function StyleManager$gridListSecondaryItemIcons$lambda($receiver) { set_marginTop($receiver, get_px(4)); set_fontSize($receiver, get_em(1)); return Unit; } function StyleManager$gridListSecondaryItemDesc$lambda($receiver) { set_marginTop($receiver, get_px(4)); set_fontSize($receiver, get_rem(0.68)); return Unit; } function StyleManager$hideOnMobile$lambda$lambda($receiver) { set_display($receiver, Display.block); return Unit; } function StyleManager$hideOnMobile$lambda(this$StyleManager) { return function ($receiver) { set_display($receiver, Display.none); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$hideOnMobile$lambda$lambda); return Unit; }; } function StyleManager$showOnMobile$lambda$lambda($receiver) { set_display($receiver, Display.none); return Unit; } function StyleManager$showOnMobile$lambda(this$StyleManager) { return function ($receiver) { set_display($receiver, Display.block); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$showOnMobile$lambda$lambda); return Unit; }; } function StyleManager$partnerItem$lambda$lambda($receiver) { padding_0($receiver, void 0, void 0, void 0, get_spacingUnits(2)); set_height($receiver, get_px(60)); return Unit; } function StyleManager$partnerItem$lambda(this$StyleManager) { return function ($receiver) { set_height($receiver, get_px(40)); padding_0($receiver, void 0, void 0, void 0, get_spacingUnits(1)); set_verticalAlign($receiver, VerticalAlign.Companion.middle); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$partnerItem$lambda$lambda); return Unit; }; } function StyleManager$partnersList$lambda$lambda($receiver) { set_bottom($receiver, get_spacingUnits(4)); set_right($receiver, get_spacingUnits(3)); return Unit; } function StyleManager$partnersList$lambda(this$StyleManager) { return function ($receiver) { set_position($receiver, Position.fixed); set_right($receiver, get_spacingUnits(2)); set_bottom($receiver, get_spacingUnits(2)); set_width($receiver, get_vh(100)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$partnersList$lambda$lambda); return Unit; }; } function StyleManager$studentProgressBar$lambda$lambda($receiver) { set_width($receiver, get_pct(70)); return Unit; } function StyleManager$studentProgressBar$lambda(this$StyleManager) { return function ($receiver) { set_width($receiver, get_pct(50)); set_paddingRight($receiver, get_spacingUnits(2)); set_marginTop($receiver, get_px(10)); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$studentProgressBar$lambda$lambda); return Unit; }; } function StyleManager$dropZoneArea$lambda(this$StyleManager) { return function ($receiver) { set_backgroundColor($receiver, new Color('transparent !important')); set_width($receiver, get_pct(90)); set_minHeight($receiver, get_vh(70)); set_border($receiver, '10px dashed ' + this$StyleManager.theme.palette.action.selected + ' !important'); set_alignItems($receiver, Align.center); set_display($receiver, Display.flex); set_cursor($receiver, Cursor.pointer); set_justifyContent($receiver, JustifyContent.center); set_flexDirection($receiver, FlexDirection.column); return Unit; }; } function StyleManager$dropZoneAreaActive$lambda(this$StyleManager) { return function ($receiver) { set_border($receiver, '10px dashed ' + this$StyleManager.theme.palette.info.main + ' !important'); return Unit; }; } function StyleManager$dropZoneAreaSuccess$lambda(this$StyleManager) { return function ($receiver) { set_border($receiver, '10px dashed ' + this$StyleManager.theme.palette.success.main + ' !important'); return Unit; }; } function StyleManager$dropZoneAreaError$lambda(this$StyleManager) { return function ($receiver) { set_border($receiver, '10px dashed ' + this$StyleManager.theme.palette.error.main + ' !important'); return Unit; }; } function StyleManager$dropZoneIcon$lambda$lambda($receiver) { set_marginTop($receiver, get_pct(5)); return Unit; } function StyleManager$dropZoneIcon$lambda(this$StyleManager) { return function ($receiver) { set_marginTop($receiver, get_pct(15)); set_fontSize($receiver, get_em(16)); set_color($receiver, new Color(this$StyleManager.theme.palette.action.selected + ' !important')); $receiver.media_v44dnz$(up(this$StyleManager.theme.breakpoints, this$StyleManager.tabletAndHighEnd_0), StyleManager$dropZoneIcon$lambda$lambda); return Unit; }; } function StyleManager$dropZoneTxt$lambda($receiver) { set_fontSize($receiver, get_em(2)); return Unit; } function StyleManager$chatMessageContent$lambda($receiver) { padding_2($receiver, get_spacingUnits(1), get_spacingUnits(2)); set_borderRadius($receiver, get_px(4)); set_marginBottom($receiver, get_px(4)); set_display($receiver, Display.inlineBlock); set_wordBreak($receiver, WordBreak.breakWord); set_fontSize($receiver, get_em(1.2)); return Unit; } function StyleManager$chatLeft$lambda($receiver) { set_borderTopRightRadius($receiver, get_px(20)); set_borderBottomRightRadius($receiver, get_px(20)); return Unit; } function StyleManager$chatRight$lambda($receiver) { set_borderTopLeftRadius($receiver, get_px(20)); set_borderBottomLeftRadius($receiver, get_px(20)); return Unit; } StyleManager.$metadata$ = { kind: Kind_OBJECT, simpleName: 'StyleManager', interfaces: [DIAware, StyleSheet] }; var StyleManager_instance = null; function StyleManager_getInstance() { if (StyleManager_instance === null) { new StyleManager(); }return StyleManager_instance; } function ThemeManager() { ThemeManager_instance = this; this.themeOptions_0 = {palette: {type: 'placeholder', primary: {main: 'placeholder'}, secondary: {main: 'placeholder'}}}; this.isDarkModeActive = ThemeManager$isDarkModeActive$lambda; } ThemeManager.prototype.createAppTheme = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; (tmp$ = this.themeOptions_0.palette) != null ? (tmp$.mode = this.isDarkModeActive() ? 'dark' : 'light') : null; ((tmp$_0 = this.themeOptions_0.palette) != null ? tmp$_0.primary : null).light = '#6ab7ff'; ((tmp$_1 = this.themeOptions_0.palette) != null ? tmp$_1.primary : null).main = '#1e88e5'; ((tmp$_2 = this.themeOptions_0.palette) != null ? tmp$_2.primary : null).dark = '#005cb2'; ((tmp$_3 = this.themeOptions_0.palette) != null ? tmp$_3.primary : null).contrastText = '#fff'; ((tmp$_4 = this.themeOptions_0.palette) != null ? tmp$_4.secondary : null).main = this.isDarkModeActive() ? '#bbdefb' : '#bbdefb'; ((tmp$_5 = this.themeOptions_0.palette) != null ? tmp$_5.secondary : null).contrastText = this.isDarkModeActive() ? '#fff' : '#000000'; return createMuiTheme(this.themeOptions_0); }; function ThemeManager$isDarkModeActive$lambda() { return window.matchMedia('(prefers-color-scheme: dark)').matches; } ThemeManager.$metadata$ = { kind: Kind_OBJECT, simpleName: 'ThemeManager', interfaces: [] }; var ThemeManager_instance = null; function ThemeManager_getInstance() { if (ThemeManager_instance === null) { new ThemeManager(); }return ThemeManager_instance; } function TimeZone(timeName, name, offset, abbreviation, isDst, id) { TimeZone$Companion_getInstance(); this.timeName = timeName; this.name = name; this.offset = offset; this.abbreviation = abbreviation; this.isDst = isDst; this.id = id; } function TimeZone$Companion() { TimeZone$Companion_instance = this; } TimeZone$Companion.prototype.serializer = function () { return TimeZone$$serializer_getInstance(); }; TimeZone$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var TimeZone$Companion_instance = null; function TimeZone$Companion_getInstance() { if (TimeZone$Companion_instance === null) { new TimeZone$Companion(); }return TimeZone$Companion_instance; } function TimeZone$$serializer() { this.descriptor_7zm1yi$_0 = new PluginGeneratedSerialDescriptor('com.ustadmobile.util.TimeZone', this, 6); this.descriptor.addElement_ivxn3r$('timeName', false); this.descriptor.addElement_ivxn3r$('name', false); this.descriptor.addElement_ivxn3r$('offset', false); this.descriptor.addElement_ivxn3r$('abbreviation', false); this.descriptor.addElement_ivxn3r$('isDst', false); this.descriptor.addElement_ivxn3r$('id', false); TimeZone$$serializer_instance = this; } Object.defineProperty(TimeZone$$serializer.prototype, 'descriptor', { configurable: true, get: function () { return this.descriptor_7zm1yi$_0; } }); TimeZone$$serializer.prototype.serialize_55azsf$ = function (encoder, value) { var output = encoder.beginStructure_24f42q$(this.descriptor); output.encodeStringElement_iij8qq$(this.descriptor, 0, value.timeName); output.encodeStringElement_iij8qq$(this.descriptor, 1, value.name); output.encodeDoubleElement_powrwi$(this.descriptor, 2, value.offset); output.encodeStringElement_iij8qq$(this.descriptor, 3, value.abbreviation); output.encodeBooleanElement_qh7jdn$(this.descriptor, 4, value.isDst); output.encodeStringElement_iij8qq$(this.descriptor, 5, value.id); output.endStructure_24f42q$(this.descriptor); }; TimeZone$$serializer.prototype.deserialize_bq71mq$ = function (decoder) { var index; var bitMask0 = 0; var local0 , local1 , local2 , local3 , local4 , local5; var input = decoder.beginStructure_24f42q$(this.descriptor); loopLabel: while (true) { index = input.decodeElementIndex_24f42q$(this.descriptor); switch (index) { case 0: local0 = input.decodeStringElement_szpzho$(this.descriptor, 0); bitMask0 |= 1; break; case 1: local1 = input.decodeStringElement_szpzho$(this.descriptor, 1); bitMask0 |= 2; break; case 2: local2 = input.decodeDoubleElement_szpzho$(this.descriptor, 2); bitMask0 |= 4; break; case 3: local3 = input.decodeStringElement_szpzho$(this.descriptor, 3); bitMask0 |= 8; break; case 4: local4 = input.decodeBooleanElement_szpzho$(this.descriptor, 4); bitMask0 |= 16; break; case 5: local5 = input.decodeStringElement_szpzho$(this.descriptor, 5); bitMask0 |= 32; break; case -1: break loopLabel; default:throw new UnknownFieldException(index); } } input.endStructure_24f42q$(this.descriptor); return TimeZone_init(bitMask0, local0, local1, local2, local3, local4, local5, null); }; TimeZone$$serializer.prototype.childSerializers = function () { return [internal.StringSerializer, internal.StringSerializer, internal.DoubleSerializer, internal.StringSerializer, internal.BooleanSerializer, internal.StringSerializer]; }; TimeZone$$serializer.$metadata$ = { kind: Kind_OBJECT, simpleName: '$serializer', interfaces: [GeneratedSerializer] }; var TimeZone$$serializer_instance = null; function TimeZone$$serializer_getInstance() { if (TimeZone$$serializer_instance === null) { new TimeZone$$serializer(); }return TimeZone$$serializer_instance; } function TimeZone_init(seen1, timeName, name, offset, abbreviation, isDst, id, serializationConstructorMarker) { var $this = serializationConstructorMarker || Object.create(TimeZone.prototype); if ((seen1 & 1) === 0) throw MissingFieldException_init('timeName'); else $this.timeName = timeName; if ((seen1 & 2) === 0) throw MissingFieldException_init('name'); else $this.name = name; if ((seen1 & 4) === 0) throw MissingFieldException_init('offset'); else $this.offset = offset; if ((seen1 & 8) === 0) throw MissingFieldException_init('abbreviation'); else $this.abbreviation = abbreviation; if ((seen1 & 16) === 0) throw MissingFieldException_init('isDst'); else $this.isDst = isDst; if ((seen1 & 32) === 0) throw MissingFieldException_init('id'); else $this.id = id; return $this; } TimeZone.$metadata$ = { kind: Kind_CLASS, simpleName: 'TimeZone', interfaces: [] }; TimeZone.prototype.component1 = function () { return this.timeName; }; TimeZone.prototype.component2 = function () { return this.name; }; TimeZone.prototype.component3 = function () { return this.offset; }; TimeZone.prototype.component4 = function () { return this.abbreviation; }; TimeZone.prototype.component5 = function () { return this.isDst; }; TimeZone.prototype.component6 = function () { return this.id; }; TimeZone.prototype.copy_a8736t$ = function (timeName, name, offset, abbreviation, isDst, id) { return new TimeZone(timeName === void 0 ? this.timeName : timeName, name === void 0 ? this.name : name, offset === void 0 ? this.offset : offset, abbreviation === void 0 ? this.abbreviation : abbreviation, isDst === void 0 ? this.isDst : isDst, id === void 0 ? this.id : id); }; TimeZone.prototype.toString = function () { return 'TimeZone(timeName=' + Kotlin.toString(this.timeName) + (', name=' + Kotlin.toString(this.name)) + (', offset=' + Kotlin.toString(this.offset)) + (', abbreviation=' + Kotlin.toString(this.abbreviation)) + (', isDst=' + Kotlin.toString(this.isDst)) + (', id=' + Kotlin.toString(this.id)) + ')'; }; TimeZone.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.timeName) | 0; result = result * 31 + Kotlin.hashCode(this.name) | 0; result = result * 31 + Kotlin.hashCode(this.offset) | 0; result = result * 31 + Kotlin.hashCode(this.abbreviation) | 0; result = result * 31 + Kotlin.hashCode(this.isDst) | 0; result = result * 31 + Kotlin.hashCode(this.id) | 0; return result; }; TimeZone.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.timeName, other.timeName) && Kotlin.equals(this.name, other.name) && Kotlin.equals(this.offset, other.offset) && Kotlin.equals(this.abbreviation, other.abbreviation) && Kotlin.equals(this.isDst, other.isDst) && Kotlin.equals(this.id, other.id))))); }; function TimeZonesUtil() { TimeZonesUtil_instance = this; } function TimeZonesUtil$getTimeZones$lambda(closure$timeZoneList) { return function (zone) { var $receiver = split(zone.utc.join(',').toString(), [',']); var tmp$, tmp$_0; var index = 0; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); var closure$timeZoneList_0 = closure$timeZoneList; if (checkIndexOverflow((tmp$_0 = index, index = tmp$_0 + 1 | 0, tmp$_0)) !== 0) { var name = substringBefore(zone.text.toString(), ')') + ')'; closure$timeZoneList_0.add_11rb$(new TimeZone(name, name + ' ' + item, toDouble(zone.offset.toString()), zone.abbr, toBoolean(zone.isdst.toString()), item)); }} return Unit; }; } TimeZonesUtil.prototype.getTimeZones = function () { var timeZoneList = ArrayList_init_0(); $module$timezones_json.forEach(TimeZonesUtil$getTimeZones$lambda(timeZoneList)); return toList(timeZoneList); }; TimeZonesUtil.$metadata$ = { kind: Kind_OBJECT, simpleName: 'TimeZonesUtil', interfaces: [] }; var TimeZonesUtil_instance = null; function TimeZonesUtil_getInstance() { if (TimeZonesUtil_instance === null) { new TimeZonesUtil(); }return TimeZonesUtil_instance; } function urlSearchParamsToMap(href) { if (href === void 0) href = null; var tmp$, tmp$_0; var queryParts = substringAfter(href != null ? href : window.location.href, '?', ''); if (queryParts.length === 0 === true) { tmp$_0 = emptyMap(); } else { var $receiver = (typeof (tmp$ = Object.entries) === 'function' ? tmp$ : throwCCE())(Object.fromEntries(new URLSearchParams(queryParts))); var destination = ArrayList_init($receiver.length); var tmp$_1; for (tmp$_1 = 0; tmp$_1 !== $receiver.length; ++tmp$_1) { var item = $receiver[tmp$_1]; var tmp$_2, tmp$_3; destination.add_11rb$(to(typeof (tmp$_2 = item[0]) === 'string' ? tmp$_2 : throwCCE(), typeof (tmp$_3 = item[1]) === 'string' ? tmp$_3 : throwCCE())); } tmp$_0 = toMap(destination); } return tmp$_0; } function Util() { Util_instance = this; this.ASSET_ENTRY = 'assets/entry_placeholder.jpeg'; this.ASSET_ACCOUNT = 'assets/account.jpg'; this.ASSET_BOOK = 'assets/book.png'; this.ASSET_FOLDER = 'assets/folder.png'; } function Coroutine$loadAssetsAsText_61zpoe$($this, fileName_0, continuation_0) { CoroutineImpl.call(this, continuation_0); this.exceptionState_0 = 1; this.$this = $this; this.local$fileName = fileName_0; } Coroutine$loadAssetsAsText_61zpoe$.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$loadAssetsAsText_61zpoe$.prototype = Object.create(CoroutineImpl.prototype); Coroutine$loadAssetsAsText_61zpoe$.prototype.constructor = Coroutine$loadAssetsAsText_61zpoe$; Coroutine$loadAssetsAsText_61zpoe$.prototype.doResume = function () { do try { switch (this.state_0) { case 0: var tmp$, tmp$_0, tmp$_1; this.state_0 = 2; this.result_0 = await_0(Kotlin.isType(tmp$ = window.fetch(this.local$fileName), Promise) ? tmp$ : throwCCE(), this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 1: throw this.exception_0; case 2: var res = this.result_0; this.state_0 = 3; this.result_0 = await_0(Kotlin.isType(tmp$_0 = res.text(), Promise) ? tmp$_0 : throwCCE(), this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 3: var data = this.result_0; return typeof (tmp$_1 = data) === 'string' ? tmp$_1 : throwCCE(); default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; Util.prototype.loadAssetsAsText_61zpoe$ = function (fileName_0, continuation_0, suspended) { var instance = new Coroutine$loadAssetsAsText_61zpoe$(this, fileName_0, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; function Coroutine$loadFileContentAsMap_ytbaoo$($this, fileName_0, continuation_0) { CoroutineImpl.call(this, continuation_0); this.exceptionState_0 = 1; this.$this = $this; this.local$fileName = fileName_0; } Coroutine$loadFileContentAsMap_ytbaoo$.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$loadFileContentAsMap_ytbaoo$.prototype = Object.create(CoroutineImpl.prototype); Coroutine$loadFileContentAsMap_ytbaoo$.prototype.constructor = Coroutine$loadFileContentAsMap_ytbaoo$; Coroutine$loadFileContentAsMap_ytbaoo$.prototype.doResume = function () { do try { switch (this.state_0) { case 0: var tmp$, tmp$_0, tmp$_1, tmp$_2; this.state_0 = 2; this.result_0 = await_0(Kotlin.isType(tmp$ = window.fetch(this.local$fileName), Promise) ? tmp$ : throwCCE(), this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 1: throw this.exception_0; case 2: var res = this.result_0; this.state_0 = 3; this.result_0 = await_0(Kotlin.isType(tmp$_0 = res.json(), Promise) ? tmp$_0 : throwCCE(), this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 3: var data = this.result_0; var $receiver = (typeof (tmp$_1 = Object.entries) === 'function' ? tmp$_1 : throwCCE())(data); var destination = ArrayList_init($receiver.length); var tmp$_3; for (tmp$_3 = 0; tmp$_3 !== $receiver.length; ++tmp$_3) { var item = $receiver[tmp$_3]; var tmp$_4; destination.add_11rb$(to(typeof (tmp$_4 = item[0]) === 'string' ? tmp$_4 : throwCCE(), item[1])); } return (tmp$_2 = toMap(destination)) == null || Kotlin.isType(tmp$_2, Any) ? tmp$_2 : throwCCE(); default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; Util.prototype.loadFileContentAsMap_ytbaoo$ = function (fileName_0, continuation_0, suspended) { var instance = new Coroutine$loadFileContentAsMap_ytbaoo$(this, fileName_0, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; Util.prototype.isMobile = function () { var check = false; (function (a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true; }(navigator.userAgent || navigator.vendor || window.opera)); return check; }; Util.prototype.stopEventPropagation_za3rmp$ = function (event) { event.preventDefault(); event.stopPropagation(); }; function Util$copyToClipboard$lambda(closure$copyHandler) { return function (it) { closure$copyHandler(); return Unit; }; } Util.prototype.copyToClipboard_a4mwiz$ = function (text, copyHandler) { var tmp$; var secure = toBoolean((typeof navigator.clipboard != 'undefined' && window.isSecureContext).toString()); if (secure) { window.navigator.clipboard.writeText(text).then(Util$copyToClipboard$lambda(copyHandler)); } else { var element = document.createElement('textarea'); var textArea = element; textArea.value = text; textArea.style.position = 'fixed'; textArea.style.left = '-999999px'; textArea.style.top = '-999999px'; (tmp$ = document.body) != null ? tmp$.appendChild(textArea) : null; textArea.focus(); textArea.select(); var copied = document.execCommand('copy'); if (copied) { copyHandler(); }textArea.remove(); } }; Util.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Util', interfaces: [] }; var Util_instance = null; function Util_getInstance() { if (Util_instance === null) { new Util(); }return Util_instance; } function getViewNameFromUrl(url) { if (url === void 0) url = null; var href = url != null ? url : window.location.href; var viewName = substringBeforeLast(substringAfterLast(href, '#/', ''), '?'); return viewName.length === 0 || startsWith(viewName, 'http') ? null : viewName; } var TIME_FORMAT_H_M; var DATE_FORMAT_DD_MMM_YYYY_HM; var DATE_FORMAT_DD_MMM_YYYY; var DATE_FORMAT_DDDD_MMMM_DD_H_M; var DATE_FORMAT_DD_MM_YYYY; var DATE_FORMAT_MM_YYYY; var DATE_FORMAT_MMMM_DD_YYYY; function formatDate($receiver, format, timezone) { if (format === void 0) format = DATE_FORMAT_DD_MM_YYYY; if (timezone === void 0) timezone = null; var tmp$; var utc = $module$moment_timezone.utc($receiver).toDate(); return typeof (tmp$ = $module$moment_timezone(utc).utcOffset(timezone != null ? timezone : '').format(format)) === 'string' ? tmp$ : throwCCE(); } function standardFormat($receiver, timezone) { if (timezone === void 0) timezone = null; return formatDate($receiver, DATE_FORMAT_DD_MM_YYYY, timezone); } function fullDateFormat($receiver, format, timezone) { if (format === void 0) format = DATE_FORMAT_MMMM_DD_YYYY; if (timezone === void 0) timezone = null; return formatDate($receiver, format, timezone); } function formattedInHoursAndMinutes($receiver, timezone) { if (timezone === void 0) timezone = null; return formatDate($receiver, TIME_FORMAT_H_M, timezone); } function formattedWithFullMonth($receiver, timezone) { if (timezone === void 0) timezone = null; return formatDate($receiver, DATE_FORMAT_DD_MM_YYYY, timezone); } function formatFullDate($receiver, timezone) { if (timezone === void 0) timezone = null; return formatDate($receiver, DATE_FORMAT_DDDD_MMMM_DD_H_M, timezone); } function startOfDay($receiver, timezone) { if (timezone === void 0) timezone = null; var utc = $module$moment_timezone.utc($receiver).toDate(); return $module$moment_timezone(utc).utcOffset(timezone != null ? timezone : '').startOf('day').toDate(); } function fromNow($receiver, locale, withSuffix) { if (locale === void 0) locale = 'en'; if (withSuffix === void 0) withSuffix = true; $module$moment_timezone.locale(locale); var utc = $module$moment_timezone.utc($receiver).toDate(); return $module$moment_timezone(utc).fromNow(!withSuffix).toString(); } function endOfDay($receiver, timezone) { if (timezone === void 0) timezone = null; var utc = $module$moment_timezone.utc($receiver).toDate(); return $module$moment_timezone(utc).utcOffset(timezone != null ? timezone : '').endOf('day').toDate(); } function timeInMillsFromStartOfDay($receiver, timezone) { if (timezone === void 0) timezone = null; return Kotlin.Long.fromNumber($receiver.getTime() - startOfDay($receiver, timezone).getTime()); } function addDays($receiver, days, timezone) { if (timezone === void 0) timezone = null; var utc = $module$moment_timezone.utc($receiver).toDate(); return $module$moment_timezone(utc).utcOffset(timezone != null ? timezone : '').add(days, 'days').toDate(); } function exportToPng$lambda(closure$imgName) { return function (it) { var tmp$, tmp$_0, tmp$_1; var link = Kotlin.isType(tmp$ = document.createElement('a'), HTMLAnchorElement) ? tmp$ : throwCCE(); (tmp$_0 = document.body) != null ? tmp$_0.appendChild(link) : null; link.href = it; link.name; link.download = closure$imgName; link.click(); (tmp$_1 = document.body) != null ? tmp$_1.removeChild(link) : null; return Unit; }; } function exportToPng(id, title) { var tmp$; var task = $module$html_to_image.toPng(document.getElementById(id)); var tmp$_0 = 'chart-' + ((tmp$ = title != null ? title.toLowerCase() : null) != null ? tmp$ : (new Date()).getTime()).toString() + '.png'; var imgName = Regex_init('\\s').replace_x2uqeu$(tmp$_0, '-'); var blobCallback = exportToPng$lambda(imgName); task.then(function (data) { blobCallback(data); }); } function get_MAX_VALUE() { return L8640000000000000; } function toDate($receiver, emptyIfMaxValue) { if (emptyIfMaxValue === void 0) emptyIfMaxValue = true; var tmp$; if (equals($receiver != null ? $receiver : L0, L0) || $receiver == null) tmp$ = null; else if (equals($receiver, Long$Companion$MAX_VALUE)) tmp$ = emptyIfMaxValue ? null : new Date(get_MAX_VALUE()); else tmp$ = new Date($receiver); return tmp$; } function formatToStringHoursMinutesSeconds($receiver, impl) { var context = new Any(); var instance = $module$moment_timezone.duration($receiver != null ? $receiver : L0); var hours = toInt(instance.hours().toString()); var minutes = toInt(instance.minutes().toString()); var seconds = toInt(instance.seconds().toString()); var result = ''; if (hours > 0) { result += hours.toString() + impl.getString(2266, context); }if (minutes > 0) { result += minutes.toString() + impl.getString(2267, context); }if (seconds > 0) { result += seconds.toString() + impl.getString(2268, context); }return result; } function isRealDate($receiver) { return $receiver != null && !equals($receiver, L0) && !equals($receiver, L8640000000000000); } function formatDateRange($receiver, endDate) { var tmp$, tmp$_0, tmp$_1; var date = (tmp$_0 = (tmp$ = toDate(endDate)) != null ? standardFormat(tmp$) : null) != null ? tmp$_0 : ''; var joiner = date.length === 0 ? '' : ' - '; return ((tmp$_1 = toDate($receiver)) != null ? standardFormat(tmp$_1) : null) + joiner + date; } function currentBackStackEntrySavedStateMap($receiver) { var tmp$, tmp$_0; return toStringMap(Kotlin.isType(tmp$_0 = (tmp$ = $receiver.currentBackStackEntry) != null ? tmp$.savedStateHandle : null, UstadSavedStateHandleJs) ? tmp$_0 : throwCCE()); } function format($receiver, args) { var placeHolder = {v: $receiver}; var results = ArrayList_init_0(); var nextMatch = Regex_init('%\\d.\\df%|%\\d\\$d%|%\\d\\$d|%\\d\\$s%|%\\d\\$s').find_905azu$($receiver); do { if ((nextMatch != null ? nextMatch.value : null) != null) { var range = new IntRange(nextMatch.range.first, nextMatch.range.last); println(); results.add_11rb$(substring(placeHolder.v, range)); }nextMatch = nextMatch != null ? nextMatch.next() : null; } while ((nextMatch != null ? nextMatch.value : null) != null); var tmp$, tmp$_0; var index = 0; tmp$ = results.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); placeHolder.v = replace(placeHolder.v, item, args[checkIndexOverflow((tmp$_0 = index, index = tmp$_0 + 1 | 0, tmp$_0))].toString()); } return placeHolder.v; } function joinString($receiver, args) { return $receiver + ' ' + joinToString(args, ' '); } function clean($receiver) { return replace($receiver, '\\', ''); } function wordBreakLimit($receiver, numOfWords) { if (numOfWords === void 0) numOfWords = 10; var $receiver_0 = Regex_init('\\s+').split_905azu$($receiver, 0); var destination = ArrayList_init(collectionSizeOrDefault($receiver_0, 10)); var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(Regex_init('^[,\\.]|[,\\.]$').replace_x2uqeu$(item, '')); } var words = destination; return joinToString_0(take(words, words.size < numOfWords ? words.size : numOfWords), ' ') + (words.size > numOfWords ? '...' : ''); } function toArgumentsMap($receiver) { return urlSearchParamsToMap($receiver); } function styledDiv$lambda(it) { return new DIV_init(html.emptyMap, it); } function styledSpan$lambda(it) { return new SPAN_init(html.emptyMap, it); } function AccountListComponent(mProps) { UstadBaseComponent.call(this, mProps); this.mPresenter_0 = null; this.mCurrentStoredAccounts_0 = null; this.mActiveAccount_0 = null; this.accountListObserver_0 = new ObserverFnWrapper(AccountListComponent$accountListObserver$lambda(this)); this.activeAccountObserver_0 = new ObserverFnWrapper(AccountListComponent$activeAccountObserver$lambda(this)); this.accountListLive_yhw6ae$_0 = null; this.activeAccountLive_rpbm4a$_0 = null; this.intentMessage_3ijn7m$_0 = null; this.title_m1c0gl$_0 = null; } Object.defineProperty(AccountListComponent.prototype, 'accountListLive', { configurable: true, get: function () { return this.accountListLive_yhw6ae$_0; }, set: function (value) { var tmp$; (tmp$ = this.accountListLive_yhw6ae$_0) != null ? (tmp$.removeObserver_jsfaok$(this.accountListObserver_0), Unit) : null; this.accountListLive_yhw6ae$_0 = value; value != null ? (value.observe_igxi3b$(this, this.accountListObserver_0), Unit) : null; } }); Object.defineProperty(AccountListComponent.prototype, 'activeAccountLive', { configurable: true, get: function () { return this.activeAccountLive_rpbm4a$_0; }, set: function (value) { var tmp$; (tmp$ = this.activeAccountLive_rpbm4a$_0) != null ? (tmp$.removeObserver_jsfaok$(this.activeAccountObserver_0), Unit) : null; this.activeAccountLive_rpbm4a$_0 = value; value != null ? (value.observe_igxi3b$(this, this.activeAccountObserver_0), Unit) : null; } }); Object.defineProperty(AccountListComponent.prototype, 'intentMessage', { configurable: true, get: function () { return this.intentMessage_3ijn7m$_0; }, set: function (value) { this.intentMessage_3ijn7m$_0 = value; } }); Object.defineProperty(AccountListComponent.prototype, 'title', { configurable: true, get: function () { return this.title_m1c0gl$_0; }, set: function (value) { this.ustadComponentTitle = value; this.title_m1c0gl$_0 = value; } }); AccountListComponent.prototype.onCreateView = function () { var tmp$; UstadBaseComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new AccountListPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function AccountListComponent$render$lambda$lambda$lambda$lambda(this$AccountListComponent) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$AccountListComponent.mPresenter_0) != null ? (tmp$.handleClickAddAccount(), Unit) : null; return Unit; }; } function AccountListComponent$render$lambda$lambda$lambda(this$AccountListComponent) { return function ($receiver) { $receiver.attrs.onClick = AccountListComponent$render$lambda$lambda$lambda$lambda(this$AccountListComponent); renderCreateNewItemOnList($receiver, format(this$AccountListComponent.getString_za3lpa$(2635), [this$AccountListComponent.getString_za3lpa$(2079)])); return Unit; }; } AccountListComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda); var tmp$, tmp$_0; var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); if ((tmp$ = this.mActiveAccount_0) != null) { this.renderAccountList_0($receiver_0, listOf_0(tmp$), true); }if ((tmp$_0 = this.mCurrentStoredAccounts_0) != null) { this.renderAccountList_0($receiver_0, tmp$_0); }var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda); var $receiver_2 = $receiver_0_0.css; set_marginTop($receiver_2, get_spacingUnits(3)); set_cursor($receiver_2, Cursor.pointer); umListItem_0($receiver_0_0, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$render$lambda$lambda$lambda(this)); $receiver_0.child_30b5ua$($receiver_0_0.create()); $receiver.child_30b5ua$($receiver_0.create()); }; AccountListComponent.prototype.onDestroyView = function () { UstadBaseComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; this.mActiveAccount_0 = null; }; function AccountListComponent$renderAccountList$lambda$lambda(this$AccountListComponent) { return function (it) { this$AccountListComponent.mPresenter_0; return Unit; }; } function AccountListComponent$renderAccountList$lambda(closure$accounts, closure$active, this$AccountListComponent) { return function ($receiver) { var tmp$; $receiver.attrs.entries = closure$accounts; $receiver.attrs.activeAccount = closure$active; if ((tmp$ = this$AccountListComponent.mPresenter_0) != null) { $receiver.attrs.presenter = tmp$; }$receiver.attrs.onEntryClicked = AccountListComponent$renderAccountList$lambda$lambda(this$AccountListComponent); return Unit; }; } AccountListComponent.prototype.renderAccountList_0 = function ($receiver, accounts, active) { if (active === void 0) active = false; $receiver.child_up9nw1$(getKClass(AccountListComponent$AccountListComponent), AccountListComponent$renderAccountList$lambda(accounts, active, this)); }; function AccountListComponent$AccountPros() { } AccountListComponent$AccountPros.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'AccountPros', interfaces: [SimpleListProps] }; function AccountListComponent$AccountListComponent(mProps) { UstadSimpleList.call(this, mProps); } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda(closure$presenter, closure$item) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$presenter.handleClickUserSession_n02xme$(closure$item); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda_0(closure$item) { return function ($receiver) { umProfileAvatar($receiver, closure$item.person.personUid, 'person'); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.person.fullName(), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda($receiver) { umIcon($receiver, 'person'); return Unit; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.person.username, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_1($receiver) { umIcon($receiver, 'link'); return Unit; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_2(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.endpoint.url, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda); umItem($receiver, GridSize$cells10_getInstance(), GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0(closure$item)); umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_1); umItem($receiver, GridSize$cells10_getInstance(), GridSize$cells7_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_2(closure$item)); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda_0(closure$item)); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$presenter, closure$item) { return function (it) { it.stopPropagation(); closure$presenter.handleClickProfile_s8cxhz$(closure$item.person.personUid); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_3(this$AccountListComponent, closure$presenter, closure$item) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$ = format(this$AccountListComponent.getString_za3lpa$(2634), [this$AccountListComponent.getString_za3lpa$(2131)]); tmp$_0 = ButtonSize$large_getInstance(); tmp$_1 = ButtonVariant$outlined_getInstance(); umButton($receiver, tmp$, UMColor$primary_getInstance(), tmp$_1, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$presenter, closure$item), tmp$_0); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$presenter, closure$item) { return function (it) { closure$presenter.handleClickLogout_n02xme$(closure$item); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_4(this$AccountListComponent, closure$presenter, closure$item) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$ = this$AccountListComponent.getString_za3lpa$(2028); tmp$_0 = ButtonSize$large_getInstance(); tmp$_1 = ButtonVariant$outlined_getInstance(); umButton($receiver, tmp$, UMColor$primary_getInstance(), tmp$_1, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$presenter, closure$item), tmp$_0); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda_1(this$AccountListComponent, closure$presenter, closure$item) { return function ($receiver) { umItem($receiver, GridSize$cells7_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_3(this$AccountListComponent, closure$presenter, closure$item)); if (this$AccountListComponent.props.activeAccount) { umItem($receiver, GridSize$cells5_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_4(this$AccountListComponent, closure$presenter, closure$item)); }return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda_1(this$AccountListComponent, closure$presenter, closure$item) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); umGridContainer($receiver, GridSpacing$spacing2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda_1(this$AccountListComponent, closure$presenter, closure$item)); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda_1(closure$item, this$AccountListComponent, closure$presenter) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda_0(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda_1(this$AccountListComponent, closure$presenter, closure$item)); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda_2(closure$presenter, closure$item) { return function (it) { closure$presenter.handleClickDeleteSession_n02xme$(closure$item); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda$lambda_2(closure$presenter, closure$item) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda); var closure$presenter_0 = closure$presenter; var closure$item_0 = closure$item; set_width($receiver_0.css, get_px(50)); umIconButton($receiver_0, 'delete', void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda$lambda$lambda_2(closure$presenter_0, closure$item_0), void 0, void 0, 'delete_account_btn'); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function AccountListComponent$AccountListComponent$renderListItem$lambda(closure$presenter, closure$item, this$AccountListComponent) { return function ($receiver) { StyleManager_getInstance().defaultPaddingTopBottom($receiver.css); $receiver.attrs.onClick = AccountListComponent$AccountListComponent$renderListItem$lambda$lambda(closure$presenter, closure$item); umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda_0(closure$item)); umItem($receiver, !this$AccountListComponent.props.activeAccount ? GridSize$cells7_getInstance() : GridSize$cells9_getInstance(), !this$AccountListComponent.props.activeAccount ? GridSize$cells8_getInstance() : GridSize$cells10_getInstance(), void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda_1(closure$item, this$AccountListComponent, closure$presenter)); if (!this$AccountListComponent.props.activeAccount) { umItem($receiver, GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda$lambda_2(closure$presenter, closure$item)); }return Unit; }; } AccountListComponent$AccountListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { var tmp$; var presenter = Kotlin.isType(tmp$ = this.props.presenter, AccountListPresenter) ? tmp$ : throwCCE(); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, AccountListComponent$AccountListComponent$renderListItem$lambda(presenter, item, this)); }; AccountListComponent$AccountListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'AccountListComponent', interfaces: [UstadSimpleList] }; function AccountListComponent$accountListObserver$lambda$lambda(closure$it, this$AccountListComponent) { return function ($receiver) { this$AccountListComponent.mCurrentStoredAccounts_0 = closure$it; return Unit; }; } function AccountListComponent$accountListObserver$lambda(this$AccountListComponent) { return function (it) { setState(this$AccountListComponent, AccountListComponent$accountListObserver$lambda$lambda(it, this$AccountListComponent)); return Unit; }; } function AccountListComponent$activeAccountObserver$lambda$lambda(closure$it, this$AccountListComponent) { return function ($receiver) { this$AccountListComponent.mActiveAccount_0 = closure$it; return Unit; }; } function AccountListComponent$activeAccountObserver$lambda(this$AccountListComponent) { return function (it) { if (it != null) { setState(this$AccountListComponent, AccountListComponent$activeAccountObserver$lambda$lambda(it, this$AccountListComponent)); }return Unit; }; } AccountListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'AccountListComponent', interfaces: [AccountListView, UstadBaseComponent] }; function styledDiv$lambda_0(it) { return new DIV_init(html.emptyMap, it); } function BitmaskEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.scopeList_0 = null; this.scopedGrantListObserver_0 = new ObserverFnWrapper(BitmaskEditComponent$scopedGrantListObserver$lambda(this)); this.bitmaskList_vzw3w2$_0 = null; this.fieldsEnabled_rpjx9$_0 = false; this.entity_3wi9rg$_0 = null; } Object.defineProperty(BitmaskEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(BitmaskEditComponent.prototype, 'bitmaskList', { configurable: true, get: function () { return this.bitmaskList_vzw3w2$_0; }, set: function (value) { var tmp$, tmp$_0; (tmp$ = this.bitmaskList_vzw3w2$_0) != null ? (tmp$.removeObserver_jsfaok$(this.scopedGrantListObserver_0), Unit) : null; this.bitmaskList_vzw3w2$_0 = value; (tmp$_0 = this.bitmaskList_vzw3w2$_0) != null ? (tmp$_0.observe_igxi3b$(this, this.scopedGrantListObserver_0), Unit) : null; } }); function BitmaskEditComponent$set_BitmaskEditComponent$fieldsEnabled$lambda(closure$value, this$BitmaskEditComponent) { return function ($receiver) { this$BitmaskEditComponent.fieldsEnabled_rpjx9$_0 = closure$value; return Unit; }; } Object.defineProperty(BitmaskEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_rpjx9$_0; }, set: function (value) { setState(this, BitmaskEditComponent$set_BitmaskEditComponent$fieldsEnabled$lambda(value, this)); } }); function BitmaskEditComponent$set_BitmaskEditComponent$entity$lambda(closure$value, this$BitmaskEditComponent) { return function ($receiver) { this$BitmaskEditComponent.entity_3wi9rg$_0 = closure$value; return Unit; }; } Object.defineProperty(BitmaskEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_3wi9rg$_0; }, set: function (value) { setState(this, BitmaskEditComponent$set_BitmaskEditComponent$entity$lambda(value, this)); } }); BitmaskEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.setEditTitle_vux9f0$(2344, 2344); this.mPresenter_0 = new BitmaskEditPresenter(this, this.arguments, this, this.di, this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function BitmaskEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { return Unit; } function BitmaskEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$BitmaskEditComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1; Kotlin.isType(tmp$ = it, BitmaskFlag) ? tmp$ : throwCCE(); var tmp$_2; if ((tmp$_0 = this$BitmaskEditComponent.scopeList_0) != null) { var first$result; first$break: do { var tmp$_3; tmp$_3 = tmp$_0.iterator(); while (tmp$_3.hasNext()) { var element = tmp$_3.next(); if (element.messageId === it.messageId) { first$result = element; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); tmp$_2 = first$result; } else tmp$_2 = null; var scope = tmp$_2; scope != null ? (scope.enabled = !((tmp$_1 = scope != null ? scope.enabled : null) != null ? tmp$_1 : false)) : null; setState(this$BitmaskEditComponent, BitmaskEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function BitmaskEditComponent$render$lambda$lambda$lambda$lambda(closure$scopes, this$BitmaskEditComponent) { return function ($receiver) { $receiver.attrs.entries = closure$scopes; $receiver.attrs.mainList = true; $receiver.attrs.onEntryClicked = BitmaskEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$BitmaskEditComponent); return Unit; }; } function BitmaskEditComponent$render$lambda$lambda(this$BitmaskEditComponent) { return function ($receiver) { var tmp$; if ((tmp$ = this$BitmaskEditComponent.scopeList_0) != null) { var this$BitmaskEditComponent_0 = this$BitmaskEditComponent; $receiver.child_up9nw1$(getKClass(ScopedGrantEditComponent$ScopedGrantComponent), BitmaskEditComponent$render$lambda$lambda$lambda$lambda(tmp$, this$BitmaskEditComponent_0)); }return Unit; }; } BitmaskEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_0); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, BitmaskEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; BitmaskEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function BitmaskEditComponent$scopedGrantListObserver$lambda$lambda(closure$it, this$BitmaskEditComponent) { return function ($receiver) { this$BitmaskEditComponent.scopeList_0 = closure$it; return Unit; }; } function BitmaskEditComponent$scopedGrantListObserver$lambda(this$BitmaskEditComponent) { return function (it) { setState(this$BitmaskEditComponent, BitmaskEditComponent$scopedGrantListObserver$lambda$lambda(it, this$BitmaskEditComponent)); return Unit; }; } BitmaskEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'BitmaskEditComponent', interfaces: [BitmaskEditView, UstadEditComponent] }; function ChatDetailComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter_0 = null; this.typedMessage_0 = ''; this.messages_0 = ArrayList_init_0(); this.enterNewLine_0 = false; this.observer_0 = new ObserverFnWrapper(ChatDetailComponent$observer$lambda(this)); this.messageList_5blwns$_0 = null; this.editButtonMode_ha60yw$_0 = EditButtonMode.GONE; this.entity_vjedhw$_0 = null; } Object.defineProperty(ChatDetailComponent.prototype, 'title', { configurable: true, get: function () { return this.ustadComponentTitle; }, set: function (value) { this.ustadComponentTitle = value; } }); Object.defineProperty(ChatDetailComponent.prototype, 'messageList', { configurable: true, get: function () { return this.messageList_5blwns$_0; }, set: function (value) { this.messageList_5blwns$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.observer_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.observer_0), Unit) : null; } }); Object.defineProperty(ChatDetailComponent.prototype, 'editButtonMode', { configurable: true, get: function () { return this.editButtonMode_ha60yw$_0; }, set: function (editButtonMode) { this.editButtonMode_ha60yw$_0 = editButtonMode; } }); function ChatDetailComponent$set_ChatDetailComponent$entity$lambda(closure$value, this$ChatDetailComponent) { return function ($receiver) { this$ChatDetailComponent.entity_vjedhw$_0 = closure$value; return Unit; }; } function ChatDetailComponent$set_ChatDetailComponent$entity$lambda_0(closure$value, this$ChatDetailComponent) { return function () { this$ChatDetailComponent.ustadComponentTitle = closure$value.chatTitle; return Unit; }; } Object.defineProperty(ChatDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_vjedhw$_0; }, set: function (value) { setState(this, ChatDetailComponent$set_ChatDetailComponent$entity$lambda(value, this)); if ((value != null ? value.chatTitle : null) != null) { this.updateUiWithStateChangeDelay_n53o35$(void 0, ChatDetailComponent$set_ChatDetailComponent$entity$lambda_0(value, this)); }} }); ChatDetailComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new ChatDetailPresenter(this, this.arguments, this, this.di); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function ChatDetailComponent$render$lambda$lambda(this$ChatDetailComponent) { return function ($receiver) { margin($receiver.css, void 0, void 0, get_spacingUnits(10)); var $receiver_0 = this$ChatDetailComponent.messages_0; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var this$ChatDetailComponent_0 = this$ChatDetailComponent; var tmp$_0, tmp$_1, tmp$_2, tmp$_3; var fromMe = equals(this$ChatDetailComponent_0.accountManager.activeAccount.personUid, (tmp$_0 = element.messagePerson) != null ? tmp$_0.personUid : null); if (element.messageRead == null) { var messageRead = MessageRead_init(this$ChatDetailComponent_0.accountManager.activeAccount.personUid, element.messageUid, (tmp$_1 = element.messageEntityUid) != null ? tmp$_1 : L0); (tmp$_2 = this$ChatDetailComponent_0.mPresenter_0) != null ? (tmp$_2.updateMessageRead_q6ck09$(messageRead), Unit) : null; element.messageRead = messageRead; }renderConversationListItem($receiver, !fromMe, fromMe ? this$ChatDetailComponent_0.getString_za3lpa$(2937) : (tmp$_3 = element.messagePerson) != null ? tmp$_3.fullName() : null, element.messageText, this$ChatDetailComponent_0.systemImpl, this$ChatDetailComponent_0.accountManager, $receiver, element.messageTimestamp); } return Unit; }; } function ChatDetailComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$ChatDetailComponent) { return function ($receiver) { this$ChatDetailComponent.typedMessage_0 = get_targetInputValue(closure$it); return Unit; }; } function ChatDetailComponent$render$lambda$lambda$lambda$lambda(this$ChatDetailComponent) { return function (it) { setState(this$ChatDetailComponent, ChatDetailComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$ChatDetailComponent)); return Unit; }; } function ChatDetailComponent$render$lambda$lambda$lambda$lambda_0(this$ChatDetailComponent) { return function (it) { var tmp$ = it.shiftKey; if (tmp$) { tmp$ = equals(it.key.toLowerCase(), 'enter'); }if (tmp$) { it.preventDefault(); it.target.value += '\n'; }var tmp$_0 = !it.shiftKey; if (tmp$_0) { tmp$_0 = equals(it.key.toLowerCase(), 'enter'); }if (tmp$_0) { it.preventDefault(); this$ChatDetailComponent.handleSendMessage_0(); }return Unit; }; } function ChatDetailComponent$render$lambda$lambda$lambda$lambda$ObjectLiteral() { this.className = StyleManager_getInstance().name + '-chatInputMessageClass'; } ChatDetailComponent$render$lambda$lambda$lambda$lambda$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [] }; function ChatDetailComponent$render$lambda$lambda$lambda$lambda_1($receiver) { set_fontSize($receiver.css, get_em(1.3)); $receiver.attrs.inputProps = new ChatDetailComponent$render$lambda$lambda$lambda$lambda$ObjectLiteral(); return Unit; } function ChatDetailComponent$render$lambda$lambda$lambda(this$ChatDetailComponent) { return function ($receiver) { StyleManager_getInstance().chatDetailNewMessage($receiver.css); umInput($receiver, this$ChatDetailComponent.typedMessage_0, void 0, void 0, void 0, void 0, void 0, void 0, this$ChatDetailComponent.getString_za3lpa$(2956), true, void 0, void 0, 'um-message-input', void 0, true, void 0, Color.Companion.white, 2, ChatDetailComponent$render$lambda$lambda$lambda$lambda(this$ChatDetailComponent), void 0, ChatDetailComponent$render$lambda$lambda$lambda$lambda_0(this$ChatDetailComponent), void 0, null, ChatDetailComponent$render$lambda$lambda$lambda$lambda_1); return Unit; }; } function ChatDetailComponent$render$lambda$lambda$lambda$lambda_2(this$ChatDetailComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); if (this$ChatDetailComponent.typedMessage_0.length > 0) { this$ChatDetailComponent.handleSendMessage_0(); }return Unit; }; } function ChatDetailComponent$render$lambda$lambda$lambda$lambda_3($receiver) { set_marginTop($receiver.css, get_spacingUnits(1)); return Unit; } function ChatDetailComponent$render$lambda$lambda$lambda_0(this$ChatDetailComponent) { return function ($receiver) { var tmp$, tmp$_0; StyleManager_getInstance().messageSendButton($receiver.css); tmp$ = FabVariant$round_getInstance(); tmp$_0 = ButtonSize$large_getInstance(); umFab($receiver, 'send', '', UMColor$secondary_getInstance(), void 0, ChatDetailComponent$render$lambda$lambda$lambda$lambda_2(this$ChatDetailComponent), tmp$_0, void 0, 'um-chat-send', tmp$, ChatDetailComponent$render$lambda$lambda$lambda$lambda_3); return Unit; }; } function ChatDetailComponent$render$lambda$lambda_0(this$ChatDetailComponent) { return function ($receiver) { StyleManager_getInstance().messageContainer($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), this$ChatDetailComponent.typedMessage_0.length > 0 ? GridSize$cells10_getInstance() : GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, ChatDetailComponent$render$lambda$lambda$lambda(this$ChatDetailComponent)); if (this$ChatDetailComponent.typedMessage_0.length > 0) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.rowReverse, ChatDetailComponent$render$lambda$lambda$lambda_0(this$ChatDetailComponent)); }return Unit; }; } function ChatDetailComponent$render$lambda(this$ChatDetailComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ChatDetailComponent$render$lambda$lambda(this$ChatDetailComponent)); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ChatDetailComponent$render$lambda$lambda_0(this$ChatDetailComponent)); return Unit; }; } ChatDetailComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ChatDetailComponent$render$lambda(this)); }; function ChatDetailComponent$handleSendMessage$lambda(this$ChatDetailComponent) { return function ($receiver) { this$ChatDetailComponent.typedMessage_0 = ''; return Unit; }; } ChatDetailComponent.prototype.handleSendMessage_0 = function () { var tmp$; if (this.typedMessage_0.length > 0) { (tmp$ = this.mPresenter_0) != null ? (tmp$.addMessage_61zpoe$(this.typedMessage_0), Unit) : null; setState(this, ChatDetailComponent$handleSendMessage$lambda(this)); }}; ChatDetailComponent.prototype.onDestroyView = function () { UstadBaseComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; function ChatDetailComponent$observer$lambda$lambda(closure$it, this$ChatDetailComponent) { return function ($receiver) { this$ChatDetailComponent.messages_0 = reversed(closure$it); return Unit; }; } function ChatDetailComponent$observer$lambda(this$ChatDetailComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ChatDetailComponent, ChatDetailComponent$observer$lambda$lambda(it, this$ChatDetailComponent)); return Unit; }; } ChatDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChatDetailComponent', interfaces: [ChatDetailView, UstadBaseComponent] }; function ChatListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; } Object.defineProperty(ChatListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.chatDao : null; } }); Object.defineProperty(ChatListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ChatListComponent$onCreateView$lambda$lambda(this$ChatListComponent) { return function ($receiver) { this$ChatListComponent.showAddEntryOptions = true; return Unit; }; } function ChatListComponent$onCreateView$lambda(this$ChatListComponent) { return function () { setState(this$ChatListComponent, ChatListComponent$onCreateView$lambda$lambda(this$ChatListComponent)); return Unit; }; } ChatListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1; UstadListComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2911); this.showCreateNewItem = false; (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2936)) : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.onClickListener = ChatListComponent$onCreateView$lambda(this)) : null; this.mPresenter_0 = new ChatListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_1 = this.mPresenter_0) != null) { tmp$_1.onCreate(emptyMap()); }}; function ChatListComponent$renderAddContentOptionsDialog$lambda(this$ChatListComponent) { return function () { var tmp$; (tmp$ = this$ChatListComponent.mPresenter_0) != null ? (tmp$.handleClickCreateNewFab_pdl1vj$(ChatListPresenter.Companion.CHAT_RESULT_KEY), Unit) : null; return Unit; }; } function ChatListComponent$renderAddContentOptionsDialog$lambda_0() { return Unit; } function ChatListComponent$renderAddContentOptionsDialog$lambda$lambda(this$ChatListComponent) { return function ($receiver) { this$ChatListComponent.showAddEntryOptions = false; return Unit; }; } function ChatListComponent$renderAddContentOptionsDialog$lambda_1(this$ChatListComponent) { return function () { setState(this$ChatListComponent, ChatListComponent$renderAddContentOptionsDialog$lambda$lambda(this$ChatListComponent)); return Unit; }; } ChatListComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { if (this.showAddEntryOptions) { var options = listOf([new UmDialogOptionItem('add', 2934, void 0, ChatListComponent$renderAddContentOptionsDialog$lambda(this)), new UmDialogOptionItem('group', 2935, void 0, ChatListComponent$renderAddContentOptionsDialog$lambda_0)]); renderDialogOptions($receiver, this.systemImpl, options, void 0, void 0, ChatListComponent$renderAddContentOptionsDialog$lambda_1(this)); }}; ChatListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var tmp$; renderChatListItemWithCounter($receiver, item.chatName, item.latestMessage, (tmp$ = toDate(item.latestMessageTimestamp)) != null ? fromNow(tmp$, this.systemImpl.getDisplayedLocale_za3rmp$($receiver)) : null, item.unreadMessageCount); }; ChatListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; ChatListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; ChatListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChatListComponent', interfaces: [ChatListView, UstadListComponent] }; function ClazzAssignmentDetailComponent(mProps) { ClazzAssignmentDetailComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.tabsToRender_0 = null; this.tabs_i0caym$_0 = null; this.entity_p2all3$_0 = null; } Object.defineProperty(ClazzAssignmentDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzAssignmentDetailComponent.prototype, 'tabs', { configurable: true, get: function () { return this.tabs_i0caym$_0; }, set: function (value) { var tmp$; this.tabs_i0caym$_0 = value; var tmp$_0; if (value != null) { var destination = ArrayList_init(collectionSizeOrDefault(value, 10)); var tmp$_1, tmp$_0_0; var index = 0; tmp$_1 = value.iterator(); while (tmp$_1.hasNext()) { var item = tmp$_1.next(); var tmp$_2 = destination.add_11rb$; var index_0 = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); var tmp$_3; var messageId = (tmp$_3 = ClazzAssignmentDetailComponent$Companion_getInstance().VIEWNAME_TO_TITLE_MAP.get_11rb$(substringBefore(item, '?'))) != null ? tmp$_3 : 0; var tmp$_4 = substringBefore(item, '?'); var startIndex = lastIndexOf(item, '?'); tmp$_2.call(destination, new UmTab(index_0, tmp$_4, urlSearchParamsToMap(item.substring(startIndex)), this.getString_za3lpa$(messageId))); } tmp$_0 = destination; } else tmp$_0 = null; this.tabsToRender_0 = (tmp$ = tmp$_0) != null ? toList(tmp$) : null; } }); function ClazzAssignmentDetailComponent$set_ClazzAssignmentDetailComponent$entity$lambda(closure$value, this$ClazzAssignmentDetailComponent) { return function ($receiver) { this$ClazzAssignmentDetailComponent.entity_p2all3$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_p2all3$_0; }, set: function (value) { var tmp$; this.ustadComponentTitle = (tmp$ = this.entity) != null ? tmp$.caTitle : null; setState(this, ClazzAssignmentDetailComponent$set_ClazzAssignmentDetailComponent$entity$lambda(value, this)); } }); ClazzAssignmentDetailComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new ClazzAssignmentDetailPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; ClazzAssignmentDetailComponent.prototype.render_ss14n$ = function ($receiver) { var tmp$; if ((tmp$ = this.tabsToRender_0) != null) { var tmp$_0, tmp$_1; renderTabs($receiver, tmp$, void 0, (tmp$_1 = (tmp$_0 = this.arguments.get_11rb$(UstadView.Companion.ARG_ACTIVE_TAB_INDEX)) != null ? toInt(tmp$_0) : null) != null ? tmp$_1 : 0); }}; ClazzAssignmentDetailComponent.prototype.onDestroyView = function () { UstadDetailComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; this.entity = null; this.tabsToRender_0 = null; this.tabs = null; }; function ClazzAssignmentDetailComponent$Companion() { ClazzAssignmentDetailComponent$Companion_instance = this; this.VIEWNAME_TO_TITLE_MAP = mapOf_0([to(ClazzAssignmentDetailOverviewView.Companion.VIEW_NAME, 2562), to(ClazzAssignmentDetailStudentProgressOverviewListView.Companion.VIEW_NAME, 2873)]); } ClazzAssignmentDetailComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ClazzAssignmentDetailComponent$Companion_instance = null; function ClazzAssignmentDetailComponent$Companion_getInstance() { if (ClazzAssignmentDetailComponent$Companion_instance === null) { new ClazzAssignmentDetailComponent$Companion(); }return ClazzAssignmentDetailComponent$Companion_instance; } ClazzAssignmentDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzAssignmentDetailComponent', interfaces: [ClazzAssignmentDetailView, UstadDetailComponent] }; function styledSpan$lambda_0(it) { return new SPAN_init(html.emptyMap, it); } function styledDiv$lambda_1(it) { return new DIV_init(html.emptyMap, it); } function ClazzAssignmentDetailOverviewComponent(mProps) { ClazzAssignmentDetailOverviewComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.classComments_0 = emptyList(); this.privateComments_0 = emptyList(); this.courseAssignmentSubmissions_0 = emptyList(); this.classCommentsObserver_0 = new ObserverFnWrapper(ClazzAssignmentDetailOverviewComponent$classCommentsObserver$lambda(this)); this.privateCommentsObserver_0 = new ObserverFnWrapper(ClazzAssignmentDetailOverviewComponent$privateCommentsObserver$lambda(this)); this.assignmentSubmissionObserver_0 = new ObserverFnWrapper(ClazzAssignmentDetailOverviewComponent$assignmentSubmissionObserver$lambda(this)); this.submittedCourseAssignmentSubmission_4iyd2a$_0 = null; this.addedCourseAssignmentSubmission_gtq4n7$_0 = emptyList(); this.timeZone_1mb0fq$_0 = null; this.clazzAssignmentClazzComments_8ybo70$_0 = null; this.clazzAssignmentPrivateComments_po3ab5$_0 = null; this.showPrivateComments_lfg8xj$_0 = false; this.showSubmission_325um2$_0 = false; this.addTextSubmissionVisible_iofgs5$_0 = false; this.addFileSubmissionVisible_nj5r8m$_0 = false; this.submissionMark_t0g2ei$_0 = null; this.submissionStatus_8gef17$_0 = 0; this.unassignedError_ukjqmo$_0 = null; this.entity_fcxb5s$_0 = null; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'submittedCourseAssignmentSubmission', { configurable: true, get: function () { return this.submittedCourseAssignmentSubmission_4iyd2a$_0; }, set: function (value) { this.submittedCourseAssignmentSubmission_4iyd2a$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.assignmentSubmissionObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.assignmentSubmissionObserver_0), Unit) : null; } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$addedCourseAssignmentSubmission$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.addedCourseAssignmentSubmission_gtq4n7$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'addedCourseAssignmentSubmission', { configurable: true, get: function () { return this.addedCourseAssignmentSubmission_gtq4n7$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$addedCourseAssignmentSubmission$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$timeZone$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.timeZone_1mb0fq$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'timeZone', { configurable: true, get: function () { return this.timeZone_1mb0fq$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$timeZone$lambda(value, this)); } }); Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'clazzAssignmentClazzComments', { configurable: true, get: function () { return this.clazzAssignmentClazzComments_8ybo70$_0; }, set: function (value) { this.clazzAssignmentClazzComments_8ybo70$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.classCommentsObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.classCommentsObserver_0), Unit) : null; } }); Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'clazzAssignmentPrivateComments', { configurable: true, get: function () { return this.clazzAssignmentPrivateComments_po3ab5$_0; }, set: function (value) { this.clazzAssignmentPrivateComments_po3ab5$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.privateCommentsObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.privateCommentsObserver_0), Unit) : null; } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$showPrivateComments$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.showPrivateComments_lfg8xj$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'showPrivateComments', { configurable: true, get: function () { return this.showPrivateComments_lfg8xj$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$showPrivateComments$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$showSubmission$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.showSubmission_325um2$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'showSubmission', { configurable: true, get: function () { return this.showSubmission_325um2$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$showSubmission$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$addTextSubmissionVisible$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.addTextSubmissionVisible_iofgs5$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'addTextSubmissionVisible', { configurable: true, get: function () { return this.addTextSubmissionVisible_iofgs5$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$addTextSubmissionVisible$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$addFileSubmissionVisible$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.addFileSubmissionVisible_nj5r8m$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'addFileSubmissionVisible', { configurable: true, get: function () { return this.addFileSubmissionVisible_nj5r8m$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$addFileSubmissionVisible$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$submissionMark$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.submissionMark_t0g2ei$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'submissionMark', { configurable: true, get: function () { return this.submissionMark_t0g2ei$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$submissionMark$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$submissionStatus$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.submissionStatus_8gef17$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'submissionStatus', { configurable: true, get: function () { return this.submissionStatus_8gef17$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$submissionStatus$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$unassignedError$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.unassignedError_ukjqmo$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'unassignedError', { configurable: true, get: function () { return this.unassignedError_ukjqmo$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$unassignedError$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$entity$lambda(closure$value, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.entity_fcxb5s$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailOverviewComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_fcxb5s$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailOverviewComponent$set_ClazzAssignmentDetailOverviewComponent$entity$lambda(value, this)); } }); function ClazzAssignmentDetailOverviewComponent$onCreateView$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function () { var tmp$; (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleSubmitButtonClicked(), Unit) : null; return Unit; }; } ClazzAssignmentDetailOverviewComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2; UstadDetailComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2623)) : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.icon = 'check') : null; this.mPresenter_0 = new ClazzAssignmentDetailOverviewPresenter(this, this.arguments, this, this, this.di); if ((tmp$_1 = this.mPresenter_0) != null) { tmp$_1.onCreate(emptyMap()); }(tmp$_2 = this.fabManager) != null ? (tmp$_2.onClickListener = ClazzAssignmentDetailOverviewComponent$onCreateView$lambda(this)) : null; }; function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$.caDescription : null); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function (it) { var tmp$; (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleAddTextClicked(), Unit) : null; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { umButton($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2874), void 0, ButtonVariant$contained_getInstance(), void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function (it) { var tmp$; (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleAddFileClicked(), Unit) : null; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { umButton($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2750), void 0, ButtonVariant$contained_getInstance(), void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailOverviewComponent)); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_0); var this$ClazzAssignmentDetailOverviewComponent_0 = this$ClazzAssignmentDetailOverviewComponent; padding_0($receiver_0.css, void 0, get_spacingUnits(2)); umTypography($receiver_0, this$ClazzAssignmentDetailOverviewComponent_0.getString_za3lpa$(2801) + ': ', TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1); $receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_0); var this$ClazzAssignmentDetailOverviewComponent_1 = this$ClazzAssignmentDetailOverviewComponent; var tmp$, tmp$_0, tmp$_1; padding_0($receiver_0_0.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_0, this$ClazzAssignmentDetailOverviewComponent_1.getString_za3lpa$((tmp$_1 = controller.SubmissionConstants.FILE_TYPE_MAP.get_11rb$((tmp$_0 = (tmp$ = this$ClazzAssignmentDetailOverviewComponent_1.entity) != null ? tmp$.caFileType : null) != null ? tmp$_0 : 0)) != null ? tmp$_1 : 0), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2); $receiver.child_30b5ua$($receiver_0_0.create()); var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_0); var this$ClazzAssignmentDetailOverviewComponent_2 = this$ClazzAssignmentDetailOverviewComponent; var tmp$_2, tmp$_3; padding_0($receiver_0_1.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_1, format(this$ClazzAssignmentDetailOverviewComponent_2.getString_za3lpa$(2863), [(tmp$_3 = (tmp$_2 = this$ClazzAssignmentDetailOverviewComponent_2.entity) != null ? tmp$_2.caNumberOfFiles : null) != null ? tmp$_3 : 0]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3); $receiver.child_30b5ua$($receiver_0_1.create()); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_0(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); if (this$ClazzAssignmentDetailOverviewComponent.addTextSubmissionVisible) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent)); }if (this$ClazzAssignmentDetailOverviewComponent.addFileSubmissionVisible) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailOverviewComponent)); }umSpacer($receiver, void 0, void 0, get_spacingUnits(2)); if (this$ClazzAssignmentDetailOverviewComponent.addFileSubmissionVisible) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, FlexDirection.row, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailOverviewComponent)); }return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentDetailOverviewComponent, closure$submission) { return function (secondary, f) { var tmp$, tmp$_0; if (secondary) (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleDeleteSubmission_gh2dp9$(closure$submission), Unit) : null; if (!secondary) (tmp$_0 = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? (tmp$_0.handleOpenSubmission_gh2dp9$(closure$submission), Unit) : null; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(closure$submission, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; var dates = toDate(closure$submission.casTimestamp); tmp$_2 = DraftJsUtil_getInstance().clean_pdl1vj$((tmp$_1 = (tmp$_0 = (tmp$ = closure$submission.attachment) != null ? tmp$.casaFileName : null) != null ? tmp$_0 : closure$submission.casText) != null ? tmp$_1 : ''); if (dates == null) tmp$_4 = ''; else { tmp$_4 = this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2573) + ' ' + (': ' + toString((tmp$_3 = toDate(closure$submission.casTimestamp)) != null ? standardFormat(tmp$_3, this$ClazzAssignmentDetailOverviewComponent.timeZone) : null)); } renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight($receiver, 'class', 'delete', tmp$_2, tmp$_4, true, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentDetailOverviewComponent, closure$submission)); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_1(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { var tmp$; if ((tmp$ = this$ClazzAssignmentDetailOverviewComponent.addedCourseAssignmentSubmission) != null) { var tmp$_0; tmp$_0 = tmp$.iterator(); while (tmp$_0.hasNext()) { var element = tmp$_0.next(); umListItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(element, this$ClazzAssignmentDetailOverviewComponent)); } }return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentDetailOverviewComponent) { return function (it) { var tmp$; (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleSubmitButtonClicked(), Unit) : null; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_4($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { umButton($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2623), void 0, ButtonVariant$contained_getInstance(), void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentDetailOverviewComponent), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_4); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_2(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentDetailOverviewComponent)); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentDetailOverviewComponent, closure$submission) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleOpenSubmission_gh2dp9$(closure$submission), Unit) : null; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentDetailOverviewComponent, closure$submission) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; $receiver.attrs.onClick = ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentDetailOverviewComponent, closure$submission); renderListItemWithLeftIconTitleAndDescription($receiver, 'class', DraftJsUtil_getInstance().clean_pdl1vj$((tmp$_0 = (tmp$ = closure$submission.attachment) != null ? tmp$.casaFileName : null) != null ? tmp$_0 : closure$submission.casText), this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2573) + (' : ' + toString((tmp$_1 = toDate(closure$submission.casTimestamp)) != null ? standardFormat(tmp$_1, this$ClazzAssignmentDetailOverviewComponent.timeZone) : null)), true); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { renderListSectionTitle($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2622), TypographyVariant$h6_getInstance()); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { renderComments($receiver, this$ClazzAssignmentDetailOverviewComponent.classComments_0); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_3(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { var tmp$; umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentDetailOverviewComponent)); renderCreateNewComment($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2620), (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? tmp$.newClassCommentListener : null); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentDetailOverviewComponent)); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { renderListSectionTitle($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2618), TypographyVariant$h6_getInstance()); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { renderComments($receiver, this$ClazzAssignmentDetailOverviewComponent.privateComments_0); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_4(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentDetailOverviewComponent)); renderCreateNewComment($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2621), (tmp$ = this$ClazzAssignmentDetailOverviewComponent.mPresenter_0) != null ? tmp$.newPrivateCommentListener : null); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentDetailOverviewComponent)); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$render$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17, tmp$_18; var $receiver_0 = (tmp$ = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$.caDescription : null; if (!($receiver_0 == null || isBlank($receiver_0))) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda(this$ClazzAssignmentDetailOverviewComponent)); }var date = toDate((tmp$_1 = (tmp$_0 = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$_0.block : null) != null ? tmp$_1.cbDeadlineDate : null); if (date != null) { var dateTime = fullDateFormat(date) + ' - ' + formattedInHoursAndMinutes(date) + ' '; renderInformationOnDetailScreen($receiver, 'event_available', dateTime + '(' + toString(this$ClazzAssignmentDetailOverviewComponent.timeZone) + ')', this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2611), true); }tmp$_3 = ClazzAssignmentDetailOverviewComponent$Companion_getInstance().SUBMISSION_POLICY_MAP; var key = (tmp$_2 = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$_2.caSubmissionPolicy : null; var tmp$_19; tmp$_4 = (Kotlin.isType(tmp$_19 = tmp$_3, Map) ? tmp$_19 : throwCCE()).get_11rb$(key); tmp$_6 = ClazzAssignmentDetailOverviewPresenter.Companion.SUBMISSION_POLICY_OPTIONS; var key_0 = (tmp$_5 = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$_5.caSubmissionPolicy : null; var tmp$_20; tmp$_8 = (tmp$_7 = (Kotlin.isType(tmp$_20 = tmp$_6, Map) ? tmp$_20 : throwCCE()).get_11rb$(key_0)) != null ? tmp$_7 : 0; renderInformationOnDetailScreen($receiver, tmp$_4, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(tmp$_8), this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2949), true); if (this$ClazzAssignmentDetailOverviewComponent.showSubmission) { tmp$_9 = this$ClazzAssignmentDetailOverviewComponent.submissionStatus === 0 ? null : ClazzAssignmentDetailOverviewComponent$Companion_getInstance().ASSIGNMENT_STATUS_MAP.get_11rb$(this$ClazzAssignmentDetailOverviewComponent.submissionStatus); tmp$_11 = (tmp$_10 = controller.SubmissionConstants.STATUS_MAP.get_11rb$(this$ClazzAssignmentDetailOverviewComponent.submissionStatus)) != null ? tmp$_10 : 0; renderInformationOnDetailScreen($receiver, tmp$_9, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(tmp$_11), this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2547), true); var mark = this$ClazzAssignmentDetailOverviewComponent.submissionMark; if (mark != null) { var marks = mark.camMark.toString() + ' / ' + toString((tmp$_13 = (tmp$_12 = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$_12.block : null) != null ? tmp$_13.cbMaxPoints : null) + ' ' + this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2594); if (mark.camPenalty !== 0) { tmp$_17 = ' ' + format(this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2600), [(tmp$_16 = (tmp$_15 = (tmp$_14 = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$_14.block : null) != null ? tmp$_15.cbLateSubmissionPenalty : null) != null ? tmp$_16 : '']); } else tmp$_17 = ''; var penalty = tmp$_17; renderInformationOnDetailScreen($receiver, 'emoji_events', marks + penalty, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2270), true); }umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_0(this$ClazzAssignmentDetailOverviewComponent)); var $receiver_1 = this$ClazzAssignmentDetailOverviewComponent.addedCourseAssignmentSubmission; if (!($receiver_1 == null || $receiver_1.isEmpty())) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_1(this$ClazzAssignmentDetailOverviewComponent)); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_2(this$ClazzAssignmentDetailOverviewComponent)); }var $receiver_2 = this$ClazzAssignmentDetailOverviewComponent.courseAssignmentSubmissions_0; if (!($receiver_2 == null || $receiver_2.isEmpty())) { umSpacer($receiver, void 0, void 0, get_spacingUnits(2)); renderListSectionTitle($receiver, this$ClazzAssignmentDetailOverviewComponent.getString_za3lpa$(2873)); var $receiver_3 = this$ClazzAssignmentDetailOverviewComponent.courseAssignmentSubmissions_0; var tmp$_21; tmp$_21 = $receiver_3.iterator(); while (tmp$_21.hasNext()) { var element = tmp$_21.next(); umListItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentDetailOverviewComponent, element)); } }}if (((tmp$_18 = this$ClazzAssignmentDetailOverviewComponent.entity) != null ? tmp$_18.caClassCommentEnabled : null) === true) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing2_getInstance(), void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_3(this$ClazzAssignmentDetailOverviewComponent)); }if (this$ClazzAssignmentDetailOverviewComponent.showPrivateComments) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing2_getInstance(), void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda$lambda_4(this$ClazzAssignmentDetailOverviewComponent)); }return Unit; }; } ClazzAssignmentDetailOverviewComponent.prototype.render_ss14n$ = function ($receiver) { if (this.entity == null) return; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_1); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing3_getInstance(), void 0, void 0, ClazzAssignmentDetailOverviewComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ClazzAssignmentDetailOverviewComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ClazzAssignmentDetailOverviewComponent$Companion() { ClazzAssignmentDetailOverviewComponent$Companion_instance = this; this.ASSIGNMENT_STATUS_MAP = mapOf_0([to(0, 'timer'), to(1, 'done'), to(2, 'done_all')]); this.SUBMISSION_POLICY_MAP = mapOf_0([to(1, 'task_alt'), to(2, 'add_task')]); } ClazzAssignmentDetailOverviewComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ClazzAssignmentDetailOverviewComponent$Companion_instance = null; function ClazzAssignmentDetailOverviewComponent$Companion_getInstance() { if (ClazzAssignmentDetailOverviewComponent$Companion_instance === null) { new ClazzAssignmentDetailOverviewComponent$Companion(); }return ClazzAssignmentDetailOverviewComponent$Companion_instance; } function ClazzAssignmentDetailOverviewComponent$classCommentsObserver$lambda$lambda(closure$it, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.classComments_0 = closure$it; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$classCommentsObserver$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzAssignmentDetailOverviewComponent, ClazzAssignmentDetailOverviewComponent$classCommentsObserver$lambda$lambda(it, this$ClazzAssignmentDetailOverviewComponent)); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$privateCommentsObserver$lambda$lambda(closure$it, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.privateComments_0 = closure$it; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$privateCommentsObserver$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzAssignmentDetailOverviewComponent, ClazzAssignmentDetailOverviewComponent$privateCommentsObserver$lambda$lambda(it, this$ClazzAssignmentDetailOverviewComponent)); return Unit; }; } function ClazzAssignmentDetailOverviewComponent$assignmentSubmissionObserver$lambda$lambda(closure$it, this$ClazzAssignmentDetailOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailOverviewComponent.courseAssignmentSubmissions_0 = closure$it; return Unit; }; } function ClazzAssignmentDetailOverviewComponent$assignmentSubmissionObserver$lambda(this$ClazzAssignmentDetailOverviewComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzAssignmentDetailOverviewComponent, ClazzAssignmentDetailOverviewComponent$assignmentSubmissionObserver$lambda$lambda(it, this$ClazzAssignmentDetailOverviewComponent)); return Unit; }; } ClazzAssignmentDetailOverviewComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzAssignmentDetailOverviewComponent', interfaces: [ClazzAssignmentDetailOverviewView, UstadDetailComponent] }; function styledDiv$lambda_2(it) { return new DIV_init(html.emptyMap, it); } function ClazzAssignmentDetailStudentProgressComponent(mProps) { UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.markGrade_0 = ''; this.markLabel_0 = new FieldLabel(this.getString_za3lpa$(2594)); this.privateComments_0 = emptyList(); this.contents_0 = emptyList(); this.submissions_0 = emptyList(); this.privateCommentsObserver_0 = new ObserverFnWrapper(ClazzAssignmentDetailStudentProgressComponent$privateCommentsObserver$lambda(this)); this.contentsObserver_0 = new ObserverFnWrapper(ClazzAssignmentDetailStudentProgressComponent$contentsObserver$lambda(this)); this.submissionsObserver_0 = new ObserverFnWrapper(ClazzAssignmentDetailStudentProgressComponent$submissionsObserver$lambda(this)); this.submitMarkError_r0agsj$_0 = null; this.submitterName_kk09de$_0 = null; this.clazzCourseAssignmentSubmissionAttachment_ypxbpz$_0 = null; this.clazzAssignmentPrivateComments_9jipvo$_0 = null; this.submissionScore_d7i3wg$_0 = null; this.submissionStatus_8vyv9s$_0 = 0; this.markNextStudentVisible_rs1piv$_0 = false; this.submitButtonVisible_k2psoy$_0 = false; this.entity_4tnk23$_0 = null; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submitMarkError$lambda(this$ClazzAssignmentDetailStudentProgressComponent, closure$value) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0 = this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'submitMarkError', { configurable: true, get: function () { return this.submitMarkError_r0agsj$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submitMarkError$lambda(this, value)); } }); function ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submitterName$lambda(closure$value, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.submitterName_kk09de$_0 = closure$value; this$ClazzAssignmentDetailStudentProgressComponent.ustadComponentTitle = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'submitterName', { configurable: true, get: function () { return this.submitterName_kk09de$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submitterName$lambda(value, this)); } }); Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'clazzCourseAssignmentSubmissionAttachment', { configurable: true, get: function () { return this.clazzCourseAssignmentSubmissionAttachment_ypxbpz$_0; }, set: function (value) { this.clazzCourseAssignmentSubmissionAttachment_ypxbpz$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.submissionsObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.submissionsObserver_0), Unit) : null; } }); Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'clazzAssignmentPrivateComments', { configurable: true, get: function () { return this.clazzAssignmentPrivateComments_9jipvo$_0; }, set: function (value) { this.clazzAssignmentPrivateComments_9jipvo$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.privateCommentsObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.privateCommentsObserver_0), Unit) : null; } }); function ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submissionScore$lambda(closure$value, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.submissionScore_d7i3wg$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'submissionScore', { configurable: true, get: function () { return this.submissionScore_d7i3wg$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submissionScore$lambda(value, this)); } }); function ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submissionStatus$lambda(closure$value, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.submissionStatus_8vyv9s$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'submissionStatus', { configurable: true, get: function () { return this.submissionStatus_8vyv9s$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submissionStatus$lambda(value, this)); } }); function ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$markNextStudentVisible$lambda(closure$value, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.markNextStudentVisible_rs1piv$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'markNextStudentVisible', { configurable: true, get: function () { return this.markNextStudentVisible_rs1piv$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$markNextStudentVisible$lambda(value, this)); } }); function ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submitButtonVisible$lambda(closure$value, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.submitButtonVisible_k2psoy$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'submitButtonVisible', { configurable: true, get: function () { return this.submitButtonVisible_k2psoy$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$submitButtonVisible$lambda(value, this)); } }); function ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$entity$lambda(closure$value, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.entity_4tnk23$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentDetailStudentProgressComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_4tnk23$_0; }, set: function (value) { setState(this, ClazzAssignmentDetailStudentProgressComponent$set_ClazzAssignmentDetailStudentProgressComponent$entity$lambda(value, this)); } }); ClazzAssignmentDetailStudentProgressComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.editButtonMode = EditButtonMode.GONE; this.mPresenter_0 = new ClazzAssignmentDetailStudentProgressPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { renderListSectionTitle($receiver, this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2873), TypographyVariant$h6_getInstance()); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = this$ClazzAssignmentDetailStudentProgressComponent.submissionStatus === 0 ? null : ClazzAssignmentDetailOverviewComponent$Companion_getInstance().ASSIGNMENT_STATUS_MAP.get_11rb$(this$ClazzAssignmentDetailStudentProgressComponent.submissionStatus); tmp$_1 = (tmp$_0 = controller.SubmissionConstants.STATUS_MAP.get_11rb$(this$ClazzAssignmentDetailStudentProgressComponent.submissionStatus)) != null ? tmp$_0 : 0; renderInformationOnDetailScreen($receiver, tmp$, this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(tmp$_1), this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2547), true); var mark = this$ClazzAssignmentDetailStudentProgressComponent.submissionScore; if (mark != null) { var marks = mark.camMark.toString() + ' / ' + toString((tmp$_3 = (tmp$_2 = this$ClazzAssignmentDetailStudentProgressComponent.entity) != null ? tmp$_2.block : null) != null ? tmp$_3.cbMaxPoints : null) + ' ' + this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2594); if (mark.camPenalty !== 0) { tmp$_7 = ' ' + format(this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2600), [(tmp$_6 = (tmp$_5 = (tmp$_4 = this$ClazzAssignmentDetailStudentProgressComponent.entity) != null ? tmp$_4.block : null) != null ? tmp$_5.cbLateSubmissionPenalty : null) != null ? tmp$_6 : '']); } else tmp$_7 = ''; var penalty = tmp$_7; renderInformationOnDetailScreen($receiver, 'emoji_events', marks + penalty, this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2270), true); }return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent, closure$submission) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$ClazzAssignmentDetailStudentProgressComponent.mPresenter_0) != null ? (tmp$.onClickOpenSubmission_gh2dp9$(closure$submission), Unit) : null; return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent, closure$submission) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; $receiver.attrs.onClick = ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent, closure$submission); tmp$_1 = (tmp$_0 = (tmp$ = closure$submission.attachment) != null ? tmp$.casaFileName : null) != null ? tmp$_0 : closure$submission.casText; renderListItemWithLeftIconTitleAndDescription($receiver, 'class', DraftJsUtil_getInstance().clean_pdl1vj$(tmp$_1), this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2573) + ' ' + (': ' + toString((tmp$_2 = toDate(closure$submission.casTimestamp)) != null ? formatFullDate(tmp$_2) : null)), true); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { var $receiver_0 = this$ClazzAssignmentDetailStudentProgressComponent.submissions_0; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); umListItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent, element)); } return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_1(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { umList($receiver, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.markGrade_0 = closure$it; this$ClazzAssignmentDetailStudentProgressComponent.submitMarkError = null; return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent) { return function (it) { setState(this$ClazzAssignmentDetailStudentProgressComponent, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; $receiver.attrs.endAdornment = umTypography($receiver, '/' + ((tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentDetailStudentProgressComponent.entity) != null ? tmp$.block : null) != null ? tmp$_0.cbMaxPoints : null) != null ? tmp$_1 : 10), TypographyVariant$h6_getInstance()); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().errorTextClass($receiver.css); return Unit; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); tmp$ = toString(this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.text); tmp$_0 = this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.id; tmp$_1 = this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.error; tmp$_2 = FormControlVariant$outlined_getInstance(); umInputLabel($receiver, tmp$, this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.id, tmp$_0, void 0, void 0, tmp$_1, void 0, tmp$_2); tmp$_3 = this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.id; umOutlinedInput($receiver, this$ClazzAssignmentDetailStudentProgressComponent.markGrade_0, void 0, this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.text, void 0, void 0, this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.error, void 0, void 0, void 0, void 0, void 0, InputType$number, tmp$_3, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent), void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailStudentProgressComponent)); if ((tmp$_4 = this$ClazzAssignmentDetailStudentProgressComponent.markLabel_0.errorText) != null) { umFormHelperText($receiver, tmp$_4, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1); }return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent) { return function (it) { var tmp$; if (this$ClazzAssignmentDetailStudentProgressComponent.markGrade_0.length > 0) { if ((tmp$ = this$ClazzAssignmentDetailStudentProgressComponent.mPresenter_0) != null) { tmp$.onClickSubmitGrade_mx4ult$(toDouble(this$ClazzAssignmentDetailStudentProgressComponent.markGrade_0)); }}return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_1($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { umButton($receiver, this$ClazzAssignmentDetailStudentProgressComponent.submissionScore == null ? this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2864) : this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2952), void 0, ButtonVariant$contained_getInstance(), void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_1); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentDetailStudentProgressComponent) { return function (it) { var tmp$; if (this$ClazzAssignmentDetailStudentProgressComponent.markGrade_0.length > 0) { if ((tmp$ = this$ClazzAssignmentDetailStudentProgressComponent.mPresenter_0) != null) { tmp$.onClickSubmitGradeAndMarkNext_mx4ult$(toDouble(this$ClazzAssignmentDetailStudentProgressComponent.markGrade_0)); }}return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_3($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { umButton($receiver, this$ClazzAssignmentDetailStudentProgressComponent.submissionScore == null ? this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2865) : this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2953), void 0, ButtonVariant$contained_getInstance(), void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentDetailStudentProgressComponent), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_3); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_2(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); if (this$ClazzAssignmentDetailStudentProgressComponent.submitButtonVisible) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentDetailStudentProgressComponent)); }if (this$ClazzAssignmentDetailStudentProgressComponent.markNextStudentVisible) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentDetailStudentProgressComponent)); }return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { renderListSectionTitle($receiver, this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2618), TypographyVariant$h6_getInstance()); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { var tmp$; renderCreateNewComment($receiver, this$ClazzAssignmentDetailStudentProgressComponent.getString_za3lpa$(2621), (tmp$ = this$ClazzAssignmentDetailStudentProgressComponent.mPresenter_0) != null ? tmp$.newPrivateCommentListener : null); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { renderComments($receiver, this$ClazzAssignmentDetailStudentProgressComponent.privateComments_0); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentDetailStudentProgressComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentDetailStudentProgressComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_3(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing1_getInstance(), void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { var tmp$; umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda(this$ClazzAssignmentDetailStudentProgressComponent)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_0(this$ClazzAssignmentDetailStudentProgressComponent)); if (!this$ClazzAssignmentDetailStudentProgressComponent.submissions_0.isEmpty()) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_1(this$ClazzAssignmentDetailStudentProgressComponent)); }umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_2(this$ClazzAssignmentDetailStudentProgressComponent)); if (((tmp$ = this$ClazzAssignmentDetailStudentProgressComponent.entity) != null ? tmp$.caPrivateCommentsEnabled : null) === true) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda$lambda_3(this$ClazzAssignmentDetailStudentProgressComponent)); }return Unit; }; } ClazzAssignmentDetailStudentProgressComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_2); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().listComponentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing3_getInstance(), void 0, void 0, ClazzAssignmentDetailStudentProgressComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ClazzAssignmentDetailStudentProgressComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ClazzAssignmentDetailStudentProgressComponent$privateCommentsObserver$lambda$lambda(closure$it, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.privateComments_0 = closure$it; return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$privateCommentsObserver$lambda(this$ClazzAssignmentDetailStudentProgressComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzAssignmentDetailStudentProgressComponent, ClazzAssignmentDetailStudentProgressComponent$privateCommentsObserver$lambda$lambda(it, this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$contentsObserver$lambda$lambda(closure$it, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.contents_0 = closure$it; return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$contentsObserver$lambda(this$ClazzAssignmentDetailStudentProgressComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzAssignmentDetailStudentProgressComponent, ClazzAssignmentDetailStudentProgressComponent$contentsObserver$lambda$lambda(it, this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$submissionsObserver$lambda$lambda(closure$it, this$ClazzAssignmentDetailStudentProgressComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressComponent.submissions_0 = closure$it; return Unit; }; } function ClazzAssignmentDetailStudentProgressComponent$submissionsObserver$lambda(this$ClazzAssignmentDetailStudentProgressComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzAssignmentDetailStudentProgressComponent, ClazzAssignmentDetailStudentProgressComponent$submissionsObserver$lambda$lambda(it, this$ClazzAssignmentDetailStudentProgressComponent)); return Unit; }; } ClazzAssignmentDetailStudentProgressComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzAssignmentDetailStudentProgressComponent', interfaces: [ClazzAssignmentDetailStudentProgressView, UstadDetailComponent] }; function ClazzAssignmentDetailStudentProgressListOverviewComponent(props) { UstadListComponent.call(this, props); this.mPresenter_0 = null; this.summary_0 = null; this.progressObserver_0 = new ObserverFnWrapper(ClazzAssignmentDetailStudentProgressListOverviewComponent$progressObserver$lambda(this)); this.progressSummary_mqdizg$_0 = null; } Object.defineProperty(ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.clazzDao : null; } }); Object.defineProperty(ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype, 'progressSummary', { configurable: true, get: function () { return this.progressSummary_mqdizg$_0; }, set: function (value) { this.progressSummary_mqdizg$_0 = value; value != null ? (value.removeObserver_jsfaok$(this.progressObserver_0), Unit) : null; value != null ? (value.observe_igxi3b$(this, this.progressObserver_0), Unit) : null; } }); ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2322)) : null; this.linearLayout = false; this.useCardsOnGridLayout = false; this.columnSize = GridSize$cells6_getInstance(); this.mPresenter_0 = new ClazzAssignmentDetailStudentProgressOverviewListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function ClazzAssignmentDetailStudentProgressListOverviewComponent$renderListHeaderView$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginBottom); return Unit; } function ClazzAssignmentDetailStudentProgressListOverviewComponent$renderListHeaderView$lambda$lambda($receiver) { umDivider($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressListOverviewComponent$renderListHeaderView$lambda$lambda$lambda); return Unit; } function ClazzAssignmentDetailStudentProgressListOverviewComponent$renderListHeaderView$lambda(this$ClazzAssignmentDetailStudentProgressListOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; renderSummaryCard($receiver, (tmp$ = this$ClazzAssignmentDetailStudentProgressListOverviewComponent.summary_0) != null ? tmp$.calculateNotSubmittedStudents() : null, this$ClazzAssignmentDetailStudentProgressListOverviewComponent.getString_za3lpa$(2533)); renderSummaryCard($receiver, (tmp$_0 = this$ClazzAssignmentDetailStudentProgressListOverviewComponent.summary_0) != null ? tmp$_0.submittedStudents : null, this$ClazzAssignmentDetailStudentProgressListOverviewComponent.getString_za3lpa$(2602)); renderSummaryCard($receiver, (tmp$_1 = this$ClazzAssignmentDetailStudentProgressListOverviewComponent.summary_0) != null ? tmp$_1.markedStudents : null, this$ClazzAssignmentDetailStudentProgressListOverviewComponent.getString_za3lpa$(2572)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressListOverviewComponent$renderListHeaderView$lambda$lambda); return Unit; }; } ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.renderListHeaderView_ss14n$ = function ($receiver) { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentDetailStudentProgressListOverviewComponent$renderListHeaderView$lambda(this)); }; ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { renderAssignmentSubmittedProgress($receiver, item, this.systemImpl, false); }; ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.onClickPerson_ylddm3$(entry), Unit) : null; }; ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.onFabClicked = function () { }; ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { }; ClazzAssignmentDetailStudentProgressListOverviewComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function ClazzAssignmentDetailStudentProgressListOverviewComponent$progressObserver$lambda$lambda(closure$it, this$ClazzAssignmentDetailStudentProgressListOverviewComponent) { return function ($receiver) { this$ClazzAssignmentDetailStudentProgressListOverviewComponent.summary_0 = closure$it; return Unit; }; } function ClazzAssignmentDetailStudentProgressListOverviewComponent$progressObserver$lambda(this$ClazzAssignmentDetailStudentProgressListOverviewComponent) { return function (it) { setState(this$ClazzAssignmentDetailStudentProgressListOverviewComponent, ClazzAssignmentDetailStudentProgressListOverviewComponent$progressObserver$lambda$lambda(it, this$ClazzAssignmentDetailStudentProgressListOverviewComponent)); return Unit; }; } ClazzAssignmentDetailStudentProgressListOverviewComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzAssignmentDetailStudentProgressListOverviewComponent', interfaces: [ClazzAssignmentDetailStudentProgressOverviewListView, UstadListComponent] }; function styledDiv$lambda_3(it) { return new DIV_init(html.emptyMap, it); } function ClazzAssignmentEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.nameLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.descriptionLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2047)); this.doNotShowBeforeLabel_0 = new FieldLabel(clean(this.getString_za3lpa$(2845))); this.startTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.deadlineDateLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2611)); this.deadlineTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.gracePeriodDateLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2591)); this.gracePeriodTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.completionCriteriaLabel_0 = new FieldLabel(this.getString_za3lpa$(2598)); this.submissionTypeLabel_0 = new FieldLabel(this.getString_za3lpa$(2605)); this.fileTypeLabel_0 = new FieldLabel(this.getString_za3lpa$(2858)); this.maxPointsLabel_0 = new FieldLabel(this.getString_za3lpa$(2871)); this.fileSizeLimitLabel_0 = new FieldLabel(this.getString_za3lpa$(2849)); this.fileNumberLimitLabel_0 = new FieldLabel(format(this.getString_za3lpa$(2863), [''])); this.textLimitTypeLabel_0 = new FieldLabel(this.getString_za3lpa$(2850)); this.textLimitMaxLabel_0 = new FieldLabel(this.getString_za3lpa$(2848)); this.penaltyLabel_0 = new FieldLabel(this.getString_za3lpa$(2590)); this.submissionPolicyLabel_0 = new FieldLabel(this.getString_za3lpa$(2949)); this.markedByLabel_0 = new FieldLabel(this.getString_za3lpa$(2856)); this.caGracePeriodError_w2lh3q$_0 = null; this.caDeadlineError_kzweg1$_0 = null; this.caTitleError_l623jf$_0 = null; this.caStartDateError_1z5lhv$_0 = null; this.caMaxPointsError_nhp23o$_0 = null; this.startDate_hpsghr$_0 = L0; this.startTime_hgusam$_0 = L0; this.deadlineDate_hbxxc3$_0 = L0; this.deadlineTime_h3094y$_0 = L0; this.gracePeriodDate_ccn1be$_0 = L0; this.gracePeriodTime_clkpij$_0 = L0; this.timeZone_his00m$_0 = null; this.groupSet_sgdzvk$_0 = null; this.submissionPolicyOptions_86ca0f$_0 = null; this.fileTypeOptions_fwgign$_0 = null; this.textLimitTypeOptions_qp9zt9$_0 = null; this.completionCriteriaOptions_ux387i$_0 = null; this.markingTypeOptions_u3bdxo$_0 = null; this.groupSetEnabled_l68m5p$_0 = false; this.fieldsEnabled_jhjj6x$_0 = false; this.entity_xtjulc$_0 = null; this.requireFileSubmission_8n7rh8$_0 = false; this.requireTextSubmission_7ieywd$_0 = false; this.gracePeriodVisiblity_aw58ov$_0 = false; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caGracePeriodError$lambda(this$ClazzAssignmentEditComponent, closure$value) { return function ($receiver) { this$ClazzAssignmentEditComponent.gracePeriodDateLabel_0 = this$ClazzAssignmentEditComponent.gracePeriodDateLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'caGracePeriodError', { configurable: true, get: function () { return this.caGracePeriodError_w2lh3q$_0; }, set: function (value) { this.caGracePeriodError_w2lh3q$_0 = value; setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caGracePeriodError$lambda(this, value)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caDeadlineError$lambda(this$ClazzAssignmentEditComponent, closure$value) { return function ($receiver) { this$ClazzAssignmentEditComponent.deadlineDateLabel_0 = this$ClazzAssignmentEditComponent.deadlineDateLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'caDeadlineError', { configurable: true, get: function () { return this.caDeadlineError_kzweg1$_0; }, set: function (value) { this.caDeadlineError_kzweg1$_0 = value; setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caDeadlineError$lambda(this, value)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caTitleError$lambda(this$ClazzAssignmentEditComponent, closure$value) { return function ($receiver) { this$ClazzAssignmentEditComponent.nameLabel_0 = this$ClazzAssignmentEditComponent.nameLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'caTitleError', { configurable: true, get: function () { return this.caTitleError_l623jf$_0; }, set: function (value) { this.caTitleError_l623jf$_0 = value; setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caTitleError$lambda(this, value)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caStartDateError$lambda(this$ClazzAssignmentEditComponent, closure$value) { return function ($receiver) { this$ClazzAssignmentEditComponent.doNotShowBeforeLabel_0 = this$ClazzAssignmentEditComponent.doNotShowBeforeLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'caStartDateError', { configurable: true, get: function () { return this.caStartDateError_1z5lhv$_0; }, set: function (value) { this.caStartDateError_1z5lhv$_0 = value; setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caStartDateError$lambda(this, value)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caMaxPointsError$lambda(this$ClazzAssignmentEditComponent, closure$value) { return function ($receiver) { this$ClazzAssignmentEditComponent.maxPointsLabel_0 = this$ClazzAssignmentEditComponent.maxPointsLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'caMaxPointsError', { configurable: true, get: function () { return this.caMaxPointsError_nhp23o$_0; }, set: function (value) { this.caMaxPointsError_nhp23o$_0 = value; setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$caMaxPointsError$lambda(this, value)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$startDate$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.startDate_hpsghr$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'startDate', { configurable: true, get: function () { return this.startDate_hpsghr$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$startDate$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$startTime$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.startTime_hgusam$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'startTime', { configurable: true, get: function () { return this.startTime_hgusam$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$startTime$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$deadlineDate$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.deadlineDate_hbxxc3$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'deadlineDate', { configurable: true, get: function () { return this.deadlineDate_hbxxc3$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$deadlineDate$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$deadlineTime$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.deadlineTime_h3094y$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'deadlineTime', { configurable: true, get: function () { return this.deadlineTime_h3094y$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$deadlineTime$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$gracePeriodDate$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.gracePeriodDate_ccn1be$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'gracePeriodDate', { configurable: true, get: function () { return this.gracePeriodDate_ccn1be$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$gracePeriodDate$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$gracePeriodTime$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.gracePeriodTime_clkpij$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'gracePeriodTime', { configurable: true, get: function () { return this.gracePeriodTime_clkpij$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$gracePeriodTime$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$timeZone$lambda(closure$newText, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.timeZone_his00m$_0 = closure$newText; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'timeZone', { configurable: true, get: function () { return this.timeZone_his00m$_0; }, set: function (value) { var newText = this.getString_za3lpa$(2612) + ' ' + value; setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$timeZone$lambda(newText, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$groupSet$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.groupSet_sgdzvk$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'groupSet', { configurable: true, get: function () { return this.groupSet_sgdzvk$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$groupSet$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$submissionPolicyOptions$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.submissionPolicyOptions_86ca0f$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'submissionPolicyOptions', { configurable: true, get: function () { return this.submissionPolicyOptions_86ca0f$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$submissionPolicyOptions$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$fileTypeOptions$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.fileTypeOptions_fwgign$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'fileTypeOptions', { configurable: true, get: function () { return this.fileTypeOptions_fwgign$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$fileTypeOptions$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$textLimitTypeOptions$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.textLimitTypeOptions_qp9zt9$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'textLimitTypeOptions', { configurable: true, get: function () { return this.textLimitTypeOptions_qp9zt9$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$textLimitTypeOptions$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$completionCriteriaOptions$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.completionCriteriaOptions_ux387i$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'completionCriteriaOptions', { configurable: true, get: function () { return this.completionCriteriaOptions_ux387i$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$completionCriteriaOptions$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$markingTypeOptions$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.markingTypeOptions_u3bdxo$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'markingTypeOptions', { configurable: true, get: function () { return this.markingTypeOptions_u3bdxo$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$markingTypeOptions$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$groupSetEnabled$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.groupSetEnabled_l68m5p$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'groupSetEnabled', { configurable: true, get: function () { return this.groupSetEnabled_l68m5p$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$groupSetEnabled$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$fieldsEnabled$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.fieldsEnabled_jhjj6x$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_jhjj6x$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$fieldsEnabled$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$entity$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; this$ClazzAssignmentEditComponent.entity_xtjulc$_0 = closure$value; this$ClazzAssignmentEditComponent.requireFileSubmission_0 = (tmp$_0 = (tmp$ = closure$value != null ? closure$value.assignment : null) != null ? tmp$.caRequireFileSubmission : null) != null ? tmp$_0 : true; this$ClazzAssignmentEditComponent.requireTextSubmission_0 = (tmp$_2 = (tmp$_1 = closure$value != null ? closure$value.assignment : null) != null ? tmp$_1.caRequireTextSubmission : null) != null ? tmp$_2 : true; if (!equals(closure$value != null ? closure$value.cbDeadlineDate : null, Long$Companion$MAX_VALUE)) { this$ClazzAssignmentEditComponent.gracePeriodVisiblity_0 = true; }return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_xtjulc$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$entity$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$requireFileSubmission$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.requireFileSubmission_8n7rh8$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'requireFileSubmission_0', { configurable: true, get: function () { return this.requireFileSubmission_8n7rh8$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$requireFileSubmission$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$requireTextSubmission$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.requireTextSubmission_7ieywd$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'requireTextSubmission_0', { configurable: true, get: function () { return this.requireTextSubmission_7ieywd$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$requireTextSubmission$lambda(value, this)); } }); function ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$gracePeriodVisiblity$lambda(closure$value, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.gracePeriodVisiblity_aw58ov$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzAssignmentEditComponent.prototype, 'gracePeriodVisiblity_0', { configurable: true, get: function () { return this.gracePeriodVisiblity_aw58ov$_0; }, set: function (value) { setState(this, ClazzAssignmentEditComponent$set_ClazzAssignmentEditComponent$gracePeriodVisiblity$lambda(value, this)); } }); ClazzAssignmentEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.setEditTitle_vux9f0$(2585, 2586); this.mPresenter_0 = new ClazzAssignmentEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? (tmp$_0.caTitle = closure$it) : null; this$ClazzAssignmentEditComponent.caTitleError = null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? (tmp$_0.caDescription = closure$it) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); this$ClazzAssignmentEditComponent.caStartDateError = null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? (tmp$.cbCompletionCriteria = closure$it) : null; this$ClazzAssignmentEditComponent.completionCriteriaLabel_0.errorText = null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? (tmp$.cbMaxPoints = closure$it) : null; this$ClazzAssignmentEditComponent.caMaxPointsError = null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { this$ClazzAssignmentEditComponent.deadlineDate = Kotlin.Long.fromNumber(closure$it.getTime()); this$ClazzAssignmentEditComponent.caDeadlineError = null; this$ClazzAssignmentEditComponent.gracePeriodVisiblity_0 = true; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentEditComponent) { return function (it) { this$ClazzAssignmentEditComponent.gracePeriodDate = Kotlin.Long.fromNumber(it.getTime()); this$ClazzAssignmentEditComponent.caGracePeriodError = null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? (tmp$.cbLateSubmissionPenalty = closure$it) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzAssignmentEditComponent.mPresenter_0) != null ? (tmp$.handleSubmissionTypeClicked(), Unit) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; (tmp$_3 = (tmp$_2 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_2.assignment : null) != null ? (tmp$_3.caRequireFileSubmission = !((tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caRequireFileSubmission : null) != null ? tmp$_1 : false)) : null; this$ClazzAssignmentEditComponent.requireFileSubmission_0 = (tmp$_6 = (tmp$_5 = (tmp$_4 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_4.assignment : null) != null ? tmp$_5.caRequireFileSubmission : null) != null ? tmp$_6 : false; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_8(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; StyleManager_getInstance().defaultMarginTop($receiver.css); renderListItemWithTitleAndSwitch($receiver, this$ClazzAssignmentEditComponent.getString_za3lpa$(2846), (tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caRequireFileSubmission : null) != null ? tmp$_1 : false, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? (tmp$_0.caFileType = toInt(closure$it)) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$ClazzAssignmentEditComponent.fileTypeLabel_0.text); tmp$_2 = toString((tmp$_1 = (tmp$_0 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_0.assignment : null) != null ? tmp$_1.caFileType : null); tmp$_4 = (tmp$_3 = this$ClazzAssignmentEditComponent.fileTypeLabel_0.errorText) != null ? tmp$_3 : ''; tmp$_5 = this$ClazzAssignmentEditComponent.fileTypeLabel_0.error; var tmp$_8; if ((tmp$_6 = this$ClazzAssignmentEditComponent.fileTypeOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_6, 10)); var tmp$_9; tmp$_9 = tmp$_6.iterator(); while (tmp$_9.hasNext()) { var item = tmp$_9.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_8 = destination; } else tmp$_8 = null; umTextFieldSelect($receiver, tmp$, tmp$_2, tmp$_4, void 0, (tmp$_7 = tmp$_8) != null ? toList(tmp$_7) : null, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? (tmp$_0.caSizeLimit = toInt(closure$it)) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$ClazzAssignmentEditComponent.fileSizeLimitLabel_0.text); tmp$_0 = this$ClazzAssignmentEditComponent.fileSizeLimitLabel_0.errorText; tmp$_3 = toString((tmp$_2 = (tmp$_1 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_1.assignment : null) != null ? tmp$_2.caSizeLimit : null); tmp$_4 = this$ClazzAssignmentEditComponent.fileSizeLimitLabel_0.error; tmp$_5 = !this$ClazzAssignmentEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5, tmp$_4); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; (tmp$_1 = (tmp$_0 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_0.assignment : null) != null ? (tmp$_1.caNumberOfFiles = (tmp$ = toIntOrNull(closure$it)) != null ? tmp$ : 0) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$ClazzAssignmentEditComponent.fileNumberLimitLabel_0.text); tmp$_0 = this$ClazzAssignmentEditComponent.fileNumberLimitLabel_0.errorText; tmp$_3 = toString((tmp$_2 = (tmp$_1 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_1.assignment : null) != null ? tmp$_2.caNumberOfFiles : null); tmp$_4 = this$ClazzAssignmentEditComponent.fileNumberLimitLabel_0.error; tmp$_5 = !this$ClazzAssignmentEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5, tmp$_4); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_9(this$ClazzAssignmentEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(this$ClazzAssignmentEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; (tmp$_3 = (tmp$_2 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_2.assignment : null) != null ? (tmp$_3.caRequireTextSubmission = !((tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caRequireTextSubmission : null) != null ? tmp$_1 : false)) : null; this$ClazzAssignmentEditComponent.requireTextSubmission_0 = (tmp$_6 = (tmp$_5 = (tmp$_4 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_4.assignment : null) != null ? tmp$_5.caRequireTextSubmission : null) != null ? tmp$_6 : false; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_10(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; StyleManager_getInstance().defaultMarginTop($receiver.css); renderListItemWithTitleAndSwitch($receiver, this$ClazzAssignmentEditComponent.getString_za3lpa$(2847), (tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caRequireTextSubmission : null) != null ? tmp$_1 : false, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? (tmp$_0.caTextLimitType = toInt(closure$it)) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$ClazzAssignmentEditComponent.textLimitTypeLabel_0.text); tmp$_2 = toString((tmp$_1 = (tmp$_0 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_0.assignment : null) != null ? tmp$_1.caTextLimitType : null); tmp$_4 = (tmp$_3 = this$ClazzAssignmentEditComponent.textLimitTypeLabel_0.errorText) != null ? tmp$_3 : ''; tmp$_5 = this$ClazzAssignmentEditComponent.textLimitTypeLabel_0.error; var tmp$_8; if ((tmp$_6 = this$ClazzAssignmentEditComponent.textLimitTypeOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_6, 10)); var tmp$_9; tmp$_9 = tmp$_6.iterator(); while (tmp$_9.hasNext()) { var item = tmp$_9.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_8 = destination; } else tmp$_8 = null; umTextFieldSelect($receiver, tmp$, tmp$_2, tmp$_4, void 0, (tmp$_7 = tmp$_8) != null ? toList(tmp$_7) : null, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; (tmp$_1 = (tmp$_0 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_0.assignment : null) != null ? (tmp$_1.caTextLimit = (tmp$ = toIntOrNull(closure$it)) != null ? tmp$ : 0) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_12(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$ClazzAssignmentEditComponent.textLimitMaxLabel_0.text); tmp$_0 = this$ClazzAssignmentEditComponent.textLimitMaxLabel_0.errorText; tmp$_3 = toString((tmp$_2 = (tmp$_1 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_1.assignment : null) != null ? tmp$_2.caTextLimit : null); tmp$_4 = this$ClazzAssignmentEditComponent.textLimitMaxLabel_0.error; tmp$_5 = !this$ClazzAssignmentEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5, tmp$_4); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_11(this$ClazzAssignmentEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(this$ClazzAssignmentEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_12(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? (tmp$_0.caSubmissionPolicy = toInt(closure$it)) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_13(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$ClazzAssignmentEditComponent.submissionPolicyLabel_0.text); tmp$_2 = toString((tmp$_1 = (tmp$_0 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_0.assignment : null) != null ? tmp$_1.caSubmissionPolicy : null); tmp$_4 = (tmp$_3 = this$ClazzAssignmentEditComponent.submissionPolicyLabel_0.errorText) != null ? tmp$_3 : ''; tmp$_5 = this$ClazzAssignmentEditComponent.submissionPolicyLabel_0.error; var tmp$_8; if ((tmp$_6 = this$ClazzAssignmentEditComponent.submissionPolicyOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_6, 10)); var tmp$_9; tmp$_9 = tmp$_6.iterator(); while (tmp$_9.hasNext()) { var item = tmp$_9.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_8 = destination; } else tmp$_8 = null; umTextFieldSelect($receiver, tmp$, tmp$_2, tmp$_4, void 0, (tmp$_7 = tmp$_8) != null ? toList(tmp$_7) : null, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(closure$it, this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? (tmp$_0.caMarkingType = toInt(closure$it)) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(it, this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_14(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$ClazzAssignmentEditComponent.markedByLabel_0.text); tmp$_2 = toString((tmp$_1 = (tmp$_0 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_0.assignment : null) != null ? tmp$_1.caMarkingType : null); tmp$_4 = (tmp$_3 = this$ClazzAssignmentEditComponent.markedByLabel_0.errorText) != null ? tmp$_3 : ''; tmp$_5 = this$ClazzAssignmentEditComponent.markedByLabel_0.error; var tmp$_8; if ((tmp$_6 = this$ClazzAssignmentEditComponent.markingTypeOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_6, 10)); var tmp$_9; tmp$_9 = tmp$_6.iterator(); while (tmp$_9.hasNext()) { var item = tmp$_9.next(); destination.add_11rb$(new Pair(item.optionId.toString(), item.toString())); } tmp$_8 = destination; } else tmp$_8 = null; umTextFieldSelect($receiver, tmp$, tmp$_2, tmp$_4, void 0, (tmp$_7 = tmp$_8) != null ? toList(tmp$_7) : null, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_12(this$ClazzAssignmentEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_13(this$ClazzAssignmentEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_14(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_8(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; (tmp$_3 = (tmp$_2 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_2.assignment : null) != null ? (tmp$_3.caClassCommentEnabled = !((tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caClassCommentEnabled : null) != null ? tmp$_1 : false)) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_15(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_8(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_13(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; StyleManager_getInstance().defaultMarginTop($receiver.css); renderListItemWithTitleAndSwitch($receiver, this$ClazzAssignmentEditComponent.getString_za3lpa$(2592), (tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caClassCommentEnabled : null) != null ? tmp$_1 : false, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_15(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_9(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; (tmp$_3 = (tmp$_2 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_2.assignment : null) != null ? (tmp$_3.caPrivateCommentsEnabled = !((tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caPrivateCommentsEnabled : null) != null ? tmp$_1 : false)) : null; return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_16(this$ClazzAssignmentEditComponent) { return function (it) { setState(this$ClazzAssignmentEditComponent, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_9(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_14(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; renderListItemWithTitleAndSwitch($receiver, this$ClazzAssignmentEditComponent.getString_za3lpa$(2610), (tmp$_1 = (tmp$_0 = (tmp$ = this$ClazzAssignmentEditComponent.entity) != null ? tmp$.assignment : null) != null ? tmp$_0.caPrivateCommentsEnabled : null) != null ? tmp$_1 : false, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_16(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda$lambda(this$ClazzAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17, tmp$_18; tmp$ = toString(this$ClazzAssignmentEditComponent.nameLabel_0.text); tmp$_0 = this$ClazzAssignmentEditComponent.nameLabel_0.errorText; tmp$_3 = (tmp$_2 = (tmp$_1 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_1.assignment : null) != null ? tmp$_2.caTitle : null; tmp$_4 = this$ClazzAssignmentEditComponent.nameLabel_0.error; tmp$_5 = !this$ClazzAssignmentEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_5, tmp$_4); tmp$_6 = toString(this$ClazzAssignmentEditComponent.descriptionLabel_0.text); tmp$_7 = this$ClazzAssignmentEditComponent.descriptionLabel_0.errorText; tmp$_10 = (tmp$_9 = (tmp$_8 = this$ClazzAssignmentEditComponent.entity) != null ? tmp$_8.assignment : null) != null ? tmp$_9.caDescription : null; tmp$_11 = this$ClazzAssignmentEditComponent.descriptionLabel_0.error; tmp$_12 = !this$ClazzAssignmentEditComponent.fieldsEnabled; umTextField($receiver, tmp$_6, tmp$_10, tmp$_7, void 0, FormControlVariant$outlined_getInstance(), ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzAssignmentEditComponent), void 0, void 0, tmp$_12, tmp$_11); renderCourseBlockCommonFields($receiver, this$ClazzAssignmentEditComponent.entity, this$ClazzAssignmentEditComponent.doNotShowBeforeLabel_0, this$ClazzAssignmentEditComponent.startDate, this$ClazzAssignmentEditComponent.startTimeLabel_0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzAssignmentEditComponent), this$ClazzAssignmentEditComponent.timeZone, this$ClazzAssignmentEditComponent.completionCriteriaLabel_0, this$ClazzAssignmentEditComponent.completionCriteriaOptions, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzAssignmentEditComponent), this$ClazzAssignmentEditComponent.maxPointsLabel_0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzAssignmentEditComponent), this$ClazzAssignmentEditComponent.deadlineDateLabel_0, this$ClazzAssignmentEditComponent.deadlineTimeLabel_0, this$ClazzAssignmentEditComponent.deadlineDate, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_4(this$ClazzAssignmentEditComponent), this$ClazzAssignmentEditComponent.gracePeriodDateLabel_0, this$ClazzAssignmentEditComponent.gracePeriodTimeLabel_0, this$ClazzAssignmentEditComponent.gracePeriodDate, this$ClazzAssignmentEditComponent.gracePeriodVisiblity_0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_5(this$ClazzAssignmentEditComponent), this$ClazzAssignmentEditComponent.penaltyLabel_0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_6(this$ClazzAssignmentEditComponent), this$ClazzAssignmentEditComponent.getString_za3lpa$(2872), false); tmp$_13 = toString(this$ClazzAssignmentEditComponent.submissionTypeLabel_0.text); tmp$_14 = this$ClazzAssignmentEditComponent.submissionTypeLabel_0.errorText; tmp$_16 = (tmp$_15 = this$ClazzAssignmentEditComponent.groupSet) != null ? tmp$_15.cgsName : null; tmp$_17 = this$ClazzAssignmentEditComponent.nameLabel_0.error; tmp$_18 = !this$ClazzAssignmentEditComponent.groupSetEnabled; umTextField($receiver, tmp$_13, tmp$_16, tmp$_14, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, void 0, tmp$_18, tmp$_17, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_7(this$ClazzAssignmentEditComponent)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_8(this$ClazzAssignmentEditComponent)); if (this$ClazzAssignmentEditComponent.requireFileSubmission_0) { umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_9(this$ClazzAssignmentEditComponent)); }umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_10(this$ClazzAssignmentEditComponent)); if (this$ClazzAssignmentEditComponent.requireTextSubmission_0) { umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_11(this$ClazzAssignmentEditComponent)); }umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_12(this$ClazzAssignmentEditComponent)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_13(this$ClazzAssignmentEditComponent)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda$lambda_14(this$ClazzAssignmentEditComponent)); return Unit; }; } function ClazzAssignmentEditComponent$render$lambda$lambda(this$ClazzAssignmentEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda$lambda(this$ClazzAssignmentEditComponent)); return Unit; }; } ClazzAssignmentEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_3); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzAssignmentEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ClazzAssignmentEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzAssignmentEditComponent', interfaces: [ClazzAssignmentEditView, UstadEditComponent] }; function ClazzDetailComponent(mProps) { ClazzDetailComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.tabsToRender_0 = null; this.tabs_hxdo5n$_0 = null; this.entity_x3pb0a$_0 = null; } Object.defineProperty(ClazzDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzDetailComponent.prototype, 'tabs', { configurable: true, get: function () { return this.tabs_hxdo5n$_0; }, set: function (value) { var tmp$; this.tabs_hxdo5n$_0 = value; var tmp$_0; if (value != null) { var destination = ArrayList_init(collectionSizeOrDefault(value, 10)); var tmp$_1, tmp$_0_0; var index = 0; tmp$_1 = value.iterator(); while (tmp$_1.hasNext()) { var item = tmp$_1.next(); var tmp$_2 = destination.add_11rb$; var index_0 = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); var tmp$_3; var messageId = (tmp$_3 = ClazzDetailComponent$Companion_getInstance().VIEWNAME_TO_TITLE_MAP.get_11rb$(substringBefore(item, '?'))) != null ? tmp$_3 : 0; var tmp$_4 = substringBefore(item, '?'); var startIndex = lastIndexOf(item, '?'); tmp$_2.call(destination, new UmTab(index_0, tmp$_4, urlSearchParamsToMap(item.substring(startIndex)), this.getString_za3lpa$(messageId))); } tmp$_0 = destination; } else tmp$_0 = null; this.tabsToRender_0 = (tmp$ = tmp$_0) != null ? toList(tmp$) : null; } }); function ClazzDetailComponent$set_ClazzDetailComponent$entity$lambda(closure$value, this$ClazzDetailComponent) { return function ($receiver) { this$ClazzDetailComponent.entity_x3pb0a$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_x3pb0a$_0; }, set: function (value) { var tmp$; this.ustadComponentTitle = (tmp$ = this.entity) != null ? tmp$.clazzName : null; setState(this, ClazzDetailComponent$set_ClazzDetailComponent$entity$lambda(value, this)); } }); ClazzDetailComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new ClazzDetailPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; ClazzDetailComponent.prototype.render_ss14n$ = function ($receiver) { var tmp$; if ((tmp$ = this.tabsToRender_0) != null) { var tmp$_0, tmp$_1; renderTabs($receiver, tmp$, void 0, (tmp$_1 = (tmp$_0 = this.arguments.get_11rb$(UstadView.Companion.ARG_ACTIVE_TAB_INDEX)) != null ? toInt(tmp$_0) : null) != null ? tmp$_1 : 0); }}; ClazzDetailComponent.prototype.onDestroyView = function () { UstadDetailComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; this.entity = null; this.tabsToRender_0 = null; this.tabs = null; }; function ClazzDetailComponent$Companion() { ClazzDetailComponent$Companion_instance = this; this.VIEWNAME_TO_TITLE_MAP = mapOf_0([to(ClazzDetailOverviewView.Companion.VIEW_NAME, 2562), to(ContentEntryList2View.Companion.VIEW_NAME, 2543), to(ClazzMemberListView.Companion.VIEW_NAME, 2471), to(ClazzLogListAttendanceView.Companion.VIEW_NAME, 2068), to(CourseGroupSetListView.Companion.VIEW_NAME, 2455)]); } ClazzDetailComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ClazzDetailComponent$Companion_instance = null; function ClazzDetailComponent$Companion_getInstance() { if (ClazzDetailComponent$Companion_instance === null) { new ClazzDetailComponent$Companion(); }return ClazzDetailComponent$Companion_instance; } ClazzDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzDetailComponent', interfaces: [ClazzDetailView, UstadDetailComponent] }; function styledDiv$lambda_4(it) { return new DIV_init(html.emptyMap, it); } function ClazzDetailOverviewComponent(mProps) { ClazzDetailOverviewComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.schedules_0 = emptyList(); this.courseBlocks_0 = emptyList(); this.scheduleObserver_0 = new ObserverFnWrapper(ClazzDetailOverviewComponent$scheduleObserver$lambda(this)); this.courseBlockObserver_0 = new ObserverFnWrapper(ClazzDetailOverviewComponent$courseBlockObserver$lambda(this)); this.scheduleList_2t3bfp$_0 = null; this.courseBlockList_28gzws$_0 = null; this.clazzCodeVisible_gvqqxv$_0 = false; this.showPermissionButton_u7g6um$_0 = false; this.entity_pta83x$_0 = null; } Object.defineProperty(ClazzDetailOverviewComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzDetailOverviewComponent.prototype, 'scheduleList', { configurable: true, get: function () { return this.scheduleList_2t3bfp$_0; }, set: function (value) { this.scheduleList_2t3bfp$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.scheduleObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.scheduleObserver_0), Unit) : null; } }); Object.defineProperty(ClazzDetailOverviewComponent.prototype, 'courseBlockList', { configurable: true, get: function () { return this.courseBlockList_28gzws$_0; }, set: function (value) { this.courseBlockList_28gzws$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.courseBlockObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.courseBlockObserver_0), Unit) : null; } }); function ClazzDetailOverviewComponent$set_ClazzDetailOverviewComponent$clazzCodeVisible$lambda(closure$value, this$ClazzDetailOverviewComponent) { return function ($receiver) { this$ClazzDetailOverviewComponent.clazzCodeVisible_gvqqxv$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzDetailOverviewComponent.prototype, 'clazzCodeVisible', { configurable: true, get: function () { return this.clazzCodeVisible_gvqqxv$_0; }, set: function (value) { setState(this, ClazzDetailOverviewComponent$set_ClazzDetailOverviewComponent$clazzCodeVisible$lambda(value, this)); } }); function ClazzDetailOverviewComponent$set_ClazzDetailOverviewComponent$showPermissionButton$lambda(closure$value, this$ClazzDetailOverviewComponent) { return function ($receiver) { this$ClazzDetailOverviewComponent.showPermissionButton_u7g6um$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzDetailOverviewComponent.prototype, 'showPermissionButton', { configurable: true, get: function () { return this.showPermissionButton_u7g6um$_0; }, set: function (value) { setState(this, ClazzDetailOverviewComponent$set_ClazzDetailOverviewComponent$showPermissionButton$lambda(value, this)); } }); function ClazzDetailOverviewComponent$set_ClazzDetailOverviewComponent$entity$lambda(closure$value, this$ClazzDetailOverviewComponent) { return function ($receiver) { this$ClazzDetailOverviewComponent.entity_pta83x$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzDetailOverviewComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_pta83x$_0; }, set: function (value) { setState(this, ClazzDetailOverviewComponent$set_ClazzDetailOverviewComponent$entity$lambda(value, this)); } }); ClazzDetailOverviewComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.editButtonMode = EditButtonMode.FAB; this.mPresenter_0 = new ClazzDetailOverviewPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda($receiver, attachmentSrc) { umEntityAvatar($receiver, attachmentSrc, Util_getInstance().ASSET_ENTRY, void 0, void 0, void 0, void 0, true); return Unit; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda(this$ClazzDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0; withAttachmentLocalUrlLookup($receiver, (tmp$_0 = (tmp$ = this$ClazzDetailOverviewComponent.entity) != null ? tmp$.clazzUid : null) != null ? tmp$_0 : L0, ClazzDetailOverviewComponent$Companion_getInstance().CLAZZ_PICTURE_LOOKUP_ADAPTER, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda); return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzDetailOverviewComponent) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = this$ClazzDetailOverviewComponent.entity) != null ? tmp$.clazzDesc : null, TypographyVariant$body1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent) { return function () { this$ClazzDetailOverviewComponent.showSnackBar_9pu0dj$(this$ClazzDetailOverviewComponent.getString_za3lpa$(2657)); return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent) { return function () { var tmp$, tmp$_0; Util_getInstance().copyToClipboard_a4mwiz$((tmp$_0 = (tmp$ = this$ClazzDetailOverviewComponent.entity) != null ? tmp$.clazzCode : null) != null ? tmp$_0 : '', ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent)); return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzDetailOverviewComponent) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); renderListSectionTitle($receiver, this$ClazzDetailOverviewComponent.getString_za3lpa$(2302)); return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzDetailOverviewComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; switch (it.cbType) { case 100: (tmp$ = this$ClazzDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleModuleExpandCollapseClicked_dk05ec$(it), Unit) : null; break; case 103: tmp$_2 = this$ClazzDetailOverviewComponent.mPresenter_0; tmp$_1 = Kotlin.isType(tmp$_0 = it.assignment, ClazzAssignment) ? tmp$_0 : throwCCE(); tmp$_2 != null ? (tmp$_2.handleClickAssignment_etrmwv$(tmp$_1), Unit) : null; break; case 104: (tmp$_4 = (tmp$_3 = this$ClazzDetailOverviewComponent.mPresenter_0) != null ? tmp$_3.contentEntryListItemListener : null) != null ? (tmp$_4.onClickContentEntry_dup0gu$(ensureNotNull(it.entry)), Unit) : null; break; case 105: if ((tmp$_5 = it.courseDiscussion) != null) { var tmp$_7; (tmp$_7 = this$ClazzDetailOverviewComponent.mPresenter_0) != null && (tmp$_7.handleClickCourseDiscussion_5tqe7d$(tmp$_5), Unit); } break; case 102: (tmp$_6 = this$ClazzDetailOverviewComponent.mPresenter_0) != null ? (tmp$_6.handleClickTextBlock_guofji$(it), Unit) : null; break; } return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzDetailOverviewComponent) { return function ($receiver) { var $receiver_0 = this$ClazzDetailOverviewComponent.courseBlocks_0; if (!($receiver_0 == null || $receiver_0.isEmpty())) { this$ClazzDetailOverviewComponent.renderCourseBlocks_0($receiver, this$ClazzDetailOverviewComponent.courseBlocks_0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzDetailOverviewComponent)); }return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10; umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzDetailOverviewComponent)); var numOfStudentTeachers = format(this$ClazzDetailOverviewComponent.getString_za3lpa$(2565), [(tmp$_0 = (tmp$ = this$ClazzDetailOverviewComponent.entity) != null ? tmp$.numTeachers : null) != null ? tmp$_0 : 0, (tmp$_2 = (tmp$_1 = this$ClazzDetailOverviewComponent.entity) != null ? tmp$_1.numStudents : null) != null ? tmp$_2 : 0]); renderInformationOnDetailScreen($receiver, 'people', numOfStudentTeachers, this$ClazzDetailOverviewComponent.getString_za3lpa$(2471)); renderInformationOnDetailScreen($receiver, 'login', (tmp$_4 = (tmp$_3 = this$ClazzDetailOverviewComponent.entity) != null ? tmp$_3.clazzCode : null) != null ? tmp$_4 : '', this$ClazzDetailOverviewComponent.getString_za3lpa$(2651), void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent)); renderInformationOnDetailScreen($receiver, 'school', (tmp$_6 = (tmp$_5 = this$ClazzDetailOverviewComponent.entity) != null ? tmp$_5.clazzSchool : null) != null ? tmp$_6.schoolName : null); renderInformationOnDetailScreen($receiver, 'event', formatDateRange((tmp$_7 = this$ClazzDetailOverviewComponent.entity) != null ? tmp$_7.clazzStartTime : null, (tmp$_8 = this$ClazzDetailOverviewComponent.entity) != null ? tmp$_8.clazzEndTime : null)); renderInformationOnDetailScreen($receiver, 'event', (tmp$_10 = (tmp$_9 = this$ClazzDetailOverviewComponent.entity) != null ? tmp$_9.clazzHolidayCalendar : null) != null ? tmp$_10.umCalendarName : null); var $receiver_0 = this$ClazzDetailOverviewComponent.schedules_0; if (!($receiver_0 == null || $receiver_0.isEmpty())) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzDetailOverviewComponent)); renderSchedules($receiver, void 0, this$ClazzDetailOverviewComponent.schedules_0, false); }umSpacer($receiver); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzDetailOverviewComponent)); return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent)); return Unit; }; } function ClazzDetailOverviewComponent$render$lambda$lambda(this$ClazzDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda(this$ClazzDetailOverviewComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda$lambda_0(this$ClazzDetailOverviewComponent)); return Unit; }; } ClazzDetailOverviewComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_4); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, GridSpacing$spacing6_getInstance(), void 0, void 0, void 0, ClazzDetailOverviewComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; function ClazzDetailOverviewComponent$CourseBlockWithCompleteListProps() { } ClazzDetailOverviewComponent$CourseBlockWithCompleteListProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'CourseBlockWithCompleteListProps', interfaces: [SimpleListProps] }; function ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent(mProps) { UstadSimpleList.call(this, mProps); } function ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda$lambda_0(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it); return Unit; }; } function ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda$lambda_1(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it); return Unit; }; } function ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda(closure$onClick, closure$item, this$CourseBlockWithCompleteListComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17; $receiver.attrs.onClick = ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda$lambda(closure$onClick); tmp$ = closure$item.cbType; if (listOf([100, 102]).contains_11rb$(tmp$)) { tmp$_0 = closure$item.cbType; tmp$_1 = closure$item.cbIndentLevel; tmp$_3 = (tmp$_2 = closure$item.cbTitle) != null ? tmp$_2 : ''; tmp$_4 = closure$item.cbType === 100; tmp$_5 = closure$item.expanded ? 'expand_less' : 'expand_more'; tmp$_7 = (tmp$_6 = closure$item.cbDescription) != null ? tmp$_6 : ''; renderCourseBlockTextOrModuleListItem($receiver, tmp$_0, tmp$_1, tmp$_3, DraftJsUtil_getInstance().clean_pdl1vj$(tmp$_7), false, tmp$_4, tmp$_5, void 0, void 0, ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda$lambda_0(closure$onClick)); } else switch (tmp$) { case 103: renderCourseBlockAssignment($receiver, closure$item, this$CourseBlockWithCompleteListComponent.systemImpl); break; case 104: if ((tmp$_8 = closure$item.entry) != null) { var this$CourseBlockWithCompleteListComponent_0 = this$CourseBlockWithCompleteListComponent; var closure$item_0 = closure$item; renderContentEntryListItem($receiver, tmp$_8, this$CourseBlockWithCompleteListComponent_0.systemImpl, void 0, true, void 0, void 0, void 0, closure$item_0); } break; case 105: tmp$_9 = closure$item.cbType; tmp$_10 = closure$item.cbIndentLevel; tmp$_13 = (tmp$_12 = (tmp$_11 = closure$item.courseDiscussion) != null ? tmp$_11.courseDiscussionTitle : null) != null ? tmp$_12 : ''; tmp$_14 = closure$item.cbType === 105; tmp$_17 = (tmp$_16 = (tmp$_15 = closure$item.courseDiscussion) != null ? tmp$_15.courseDiscussionDesc : null) != null ? tmp$_16 : ''; renderCourseBlockTextOrModuleListItem($receiver, tmp$_9, tmp$_10, tmp$_13, DraftJsUtil_getInstance().clean_pdl1vj$(tmp$_17), false, tmp$_14, void 0, void 0, void 0, ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda$lambda_1(closure$onClick)); break; } return Unit; }; } ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent$renderListItem$lambda(onClick, item, this)); }; ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseBlockWithCompleteListComponent', interfaces: [UstadSimpleList] }; function ClazzDetailOverviewComponent$renderCourseBlocks$lambda(closure$blocks, closure$onEntryClicked, closure$createNewItem) { return function ($receiver) { $receiver.attrs.entries = closure$blocks; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; return Unit; }; } ClazzDetailOverviewComponent.prototype.renderCourseBlocks_0 = function ($receiver, blocks, createNewItem, onEntryClicked) { if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent), ClazzDetailOverviewComponent$renderCourseBlocks$lambda(blocks, onEntryClicked, createNewItem)); }; ClazzDetailOverviewComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ClazzDetailOverviewComponent$Companion() { ClazzDetailOverviewComponent$Companion_instance = this; this.CLAZZ_PICTURE_LOOKUP_ADAPTER = new AttachmentImageLookupAdapter(ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda); } function ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral(closure$db, closure$entityUid) { DoorMediatorLiveData.call(this); this.addSource_hfkt56$(closure$db.coursePictureDao.findByClazzUidLive_s8cxhz$(closure$entityUid), this); } ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype.onChanged_11rb$ = function (t) { this.postValue_11rb$(t != null ? t.coursePictureUri : null); }; ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [DoorObserver, DoorMediatorLiveData] }; function ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda(db, entityUid) { return new ClazzDetailOverviewComponent$Companion$CLAZZ_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral(db, entityUid); } ClazzDetailOverviewComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ClazzDetailOverviewComponent$Companion_instance = null; function ClazzDetailOverviewComponent$Companion_getInstance() { if (ClazzDetailOverviewComponent$Companion_instance === null) { new ClazzDetailOverviewComponent$Companion(); }return ClazzDetailOverviewComponent$Companion_instance; } function ClazzDetailOverviewComponent$scheduleObserver$lambda$lambda(closure$it, this$ClazzDetailOverviewComponent) { return function ($receiver) { this$ClazzDetailOverviewComponent.schedules_0 = closure$it; return Unit; }; } function ClazzDetailOverviewComponent$scheduleObserver$lambda(this$ClazzDetailOverviewComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzDetailOverviewComponent, ClazzDetailOverviewComponent$scheduleObserver$lambda$lambda(it, this$ClazzDetailOverviewComponent)); return Unit; }; } function ClazzDetailOverviewComponent$courseBlockObserver$lambda$lambda(closure$it, this$ClazzDetailOverviewComponent) { return function ($receiver) { this$ClazzDetailOverviewComponent.courseBlocks_0 = closure$it; return Unit; }; } function ClazzDetailOverviewComponent$courseBlockObserver$lambda(this$ClazzDetailOverviewComponent) { return function (it) { if (it.isEmpty()) return; setState(this$ClazzDetailOverviewComponent, ClazzDetailOverviewComponent$courseBlockObserver$lambda$lambda(it, this$ClazzDetailOverviewComponent)); return Unit; }; } ClazzDetailOverviewComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzDetailOverviewComponent', interfaces: [ClazzDetailOverviewView, UstadDetailComponent] }; function styledDiv$lambda_5(it) { return new DIV_init(html.emptyMap, it); } function ClazzEditComponent(mProps) { ClazzEditComponent$Companion_getInstance(); UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.nameLabel_0 = new FieldLabel(this.getString_za3lpa$(2046)); this.descriptionLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2047)); this.institutionLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2889)); this.startDateLabel_0 = new FieldLabel(this.getString_za3lpa$(2514)); this.endDateLabel_0 = new FieldLabel(this.getString_za3lpa$(2515)); this.timeZoneLabel_0 = new FieldLabel(this.getString_za3lpa$(2521)); this.holidayCalenderLabel_0 = new FieldLabel(this.getString_za3lpa$(2341)); this.terminologyLabel_0 = new FieldLabel(this.getString_za3lpa$(2898)); this.enrolmentPolicyLabel_0 = new FieldLabel(this.getString_za3lpa$(2948)); this.scheduleList_0 = emptyList(); this.courseBlockList_0 = emptyList(); this.attandenceEnabled_0 = false; this.scheduleObserver_0 = new ObserverFnWrapper(ClazzEditComponent$scheduleObserver$lambda(this)); this.courseBlockObserver_0 = new ObserverFnWrapper(ClazzEditComponent$courseBlockObserver$lambda(this)); this.clazzSchedules_kn09yk$_0 = null; this.courseBlocks_rv5xzj$_0 = null; this.clazzEndDateError_7n3xwz$_0 = null; this.clazzStartDateError_txh6ms$_0 = null; this.coursePicture_adqjr5$_0 = null; this.fieldsEnabled_tvko1w$_0 = false; this.enrolmentPolicyOptions_sb3xrc$_0 = null; this.entity_xql7sd$_0 = null; } Object.defineProperty(ClazzEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzEditComponent.prototype, 'clazzSchedules', { configurable: true, get: function () { return this.clazzSchedules_kn09yk$_0; }, set: function (value) { var tmp$; (tmp$ = this.clazzSchedules_kn09yk$_0) != null ? (tmp$.removeObserver_jsfaok$(this.scheduleObserver_0), Unit) : null; this.clazzSchedules_kn09yk$_0 = value; value != null ? (value.observe_igxi3b$(this, this.scheduleObserver_0), Unit) : null; } }); Object.defineProperty(ClazzEditComponent.prototype, 'courseBlocks', { configurable: true, get: function () { return this.courseBlocks_rv5xzj$_0; }, set: function (value) { var tmp$; (tmp$ = this.courseBlocks_rv5xzj$_0) != null ? (tmp$.removeObserver_jsfaok$(this.courseBlockObserver_0), Unit) : null; this.courseBlocks_rv5xzj$_0 = value; value != null ? (value.observe_igxi3b$(this, this.courseBlockObserver_0), Unit) : null; } }); function ClazzEditComponent$set_ClazzEditComponent$clazzEndDateError$lambda(this$ClazzEditComponent, closure$value) { return function ($receiver) { this$ClazzEditComponent.endDateLabel_0 = this$ClazzEditComponent.endDateLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzEditComponent.prototype, 'clazzEndDateError', { configurable: true, get: function () { return this.clazzEndDateError_7n3xwz$_0; }, set: function (value) { setState(this, ClazzEditComponent$set_ClazzEditComponent$clazzEndDateError$lambda(this, value)); } }); function ClazzEditComponent$set_ClazzEditComponent$clazzStartDateError$lambda(this$ClazzEditComponent, closure$value) { return function ($receiver) { this$ClazzEditComponent.startDateLabel_0 = this$ClazzEditComponent.startDateLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzEditComponent.prototype, 'clazzStartDateError', { configurable: true, get: function () { return this.clazzStartDateError_txh6ms$_0; }, set: function (value) { setState(this, ClazzEditComponent$set_ClazzEditComponent$clazzStartDateError$lambda(this, value)); } }); function ClazzEditComponent$set_ClazzEditComponent$coursePicture$lambda(closure$value, this$ClazzEditComponent) { return function ($receiver) { this$ClazzEditComponent.coursePicture_adqjr5$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEditComponent.prototype, 'coursePicture', { configurable: true, get: function () { return this.coursePicture_adqjr5$_0; }, set: function (value) { setState(this, ClazzEditComponent$set_ClazzEditComponent$coursePicture$lambda(value, this)); } }); function ClazzEditComponent$set_ClazzEditComponent$fieldsEnabled$lambda(closure$value, this$ClazzEditComponent) { return function ($receiver) { this$ClazzEditComponent.fieldsEnabled_tvko1w$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_tvko1w$_0; }, set: function (value) { setState(this, ClazzEditComponent$set_ClazzEditComponent$fieldsEnabled$lambda(value, this)); } }); function ClazzEditComponent$set_ClazzEditComponent$enrolmentPolicyOptions$lambda(closure$value, this$ClazzEditComponent) { return function ($receiver) { this$ClazzEditComponent.enrolmentPolicyOptions_sb3xrc$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEditComponent.prototype, 'enrolmentPolicyOptions', { configurable: true, get: function () { return this.enrolmentPolicyOptions_sb3xrc$_0; }, set: function (value) { setState(this, ClazzEditComponent$set_ClazzEditComponent$enrolmentPolicyOptions$lambda(value, this)); } }); function ClazzEditComponent$set_ClazzEditComponent$entity$lambda(closure$value, this$ClazzEditComponent) { return function () { this$ClazzEditComponent.ustadComponentTitle = closure$value.clazzName; return Unit; }; } function ClazzEditComponent$set_ClazzEditComponent$entity$lambda_0(closure$value, this$ClazzEditComponent) { return function ($receiver) { napier_0.Napier.d_82mfvz$('ClazzEdit: entity set to name=' + toString(closure$value != null ? closure$value.clazzName : null)); this$ClazzEditComponent.entity_xql7sd$_0 = closure$value; this$ClazzEditComponent.attandenceEnabled_0 = (closure$value != null ? isAttendanceEnabledAndRecorded(closure$value) : null) === true; return Unit; }; } Object.defineProperty(ClazzEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_xql7sd$_0; }, set: function (value) { if ((value != null ? value.clazzName : null) != null) { this.updateUiWithStateChangeDelay_n53o35$(void 0, ClazzEditComponent$set_ClazzEditComponent$entity$lambda(value, this)); }setState(this, ClazzEditComponent$set_ClazzEditComponent$entity$lambda_0(value, this)); } }); function ClazzEditComponent$onCreateView$lambda(it) { return it.key + '=' + it.value; } ClazzEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.setEditTitle_vux9f0$(2928, 2930); this.mPresenter_0 = new ClazzEdit2Presenter(this, this.arguments, this, this.di, this); var currentBackStackEntry = this.navController.currentBackStackEntry; var backStackUri = currentBackStackEntry != null ? get_viewUri(currentBackStackEntry) : null; var stateArgs = currentBackStackEntrySavedStateMap(this.navController); napier_0.Napier.d_82mfvz$('ClazzEdit: backStackUri=' + toString(backStackUri) + ' state = ' + joinToString_0(stateArgs.entries, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$onCreateView$lambda)); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(stateArgs), Unit) : null; }; function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ClazzEditComponent) { return function ($receiver) { var tmp$; console.log('ClazzEditComponent: setting course picture uri = ' + toString(closure$it)); (tmp$ = this$ClazzEditComponent.coursePicture) != null ? (tmp$.coursePictureUri = closure$it) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_0($receiver, attachmentImgSrc) { umEntityAvatar($receiver, attachmentImgSrc, Util_getInstance().ASSET_ENTRY, void 0, void 0, void 0, void 0, true); return Unit; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzEditComponent) { return function ($receiver) { var tmp$; $receiver.attrs.attachmentUri = (tmp$ = this$ClazzEditComponent.coursePicture) != null ? tmp$.coursePictureUri : null; $receiver.attrs.onNewImageSelected = ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzEditComponent); $receiver.attrs.contentBlock = ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_0; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda(this$ClazzEditComponent) { return function ($receiver) { $receiver.child_up9nw1$(getKClass(AttachmentImageComponent), ClazzEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(closure$it, this$ClazzEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEditComponent.entity) != null ? (tmp$.clazzName = closure$it) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(it, this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$ClazzEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEditComponent.entity) != null ? (tmp$.clazzDesc = closure$it) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(it, this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleClickSchool(), Unit) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ClazzEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEditComponent.entity) != null ? (tmp$.clazzStartTime = Kotlin.Long.fromNumber(closure$it.getTime())) : null; this$ClazzEditComponent.clazzStartDateError = null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ClazzEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ClazzEditComponent.startDateLabel_0.text); tmp$_0 = this$ClazzEditComponent.startDateLabel_0.error; tmp$_1 = this$ClazzEditComponent.startDateLabel_0.errorText; tmp$_3 = toDate((tmp$_2 = this$ClazzEditComponent.entity) != null ? tmp$_2.clazzStartTime : null); tmp$_4 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzEditComponent), tmp$_3, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_4); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ClazzEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEditComponent.entity) != null ? (tmp$.clazzEndTime = Kotlin.Long.fromNumber(closure$it.getTime())) : null; this$ClazzEditComponent.clazzEndDateError = null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ClazzEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ClazzEditComponent.endDateLabel_0.text); tmp$_0 = this$ClazzEditComponent.endDateLabel_0.error; tmp$_1 = this$ClazzEditComponent.endDateLabel_0.errorText; tmp$_3 = toDate((tmp$_2 = this$ClazzEditComponent.entity) != null ? tmp$_2.clazzEndTime : null); tmp$_4 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzEditComponent), tmp$_3, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_4); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ClazzEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ClazzEditComponent) { return function ($receiver) { this$ClazzEditComponent.showAddEntryOptions = true; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_4(this$ClazzEditComponent) { return function () { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$ClazzEditComponent) { return function (fromIndex, toIndex) { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? tmp$.onItemMove_vux9f0$(fromIndex, toIndex) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(this$ClazzEditComponent) { return function (it) { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.onClickEdit_11rb$(it), Unit) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_5(this$ClazzEditComponent) { return function () { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? tmp$.scheduleOneToManyJoinListener : null) != null ? (tmp$_0.onClickNew(), Unit) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(this$ClazzEditComponent) { return function (it) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? tmp$.scheduleOneToManyJoinListener : null) != null ? (tmp$_0.onClickEdit_11rb$(it), Unit) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleClickTimezone(), Unit) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(this$ClazzEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$ClazzEditComponent.timeZoneLabel_0.text); tmp$_1 = (tmp$_0 = this$ClazzEditComponent.entity) != null ? tmp$_0.clazzTimeZone : null; tmp$_2 = this$ClazzEditComponent.timeZoneLabel_0.error; tmp$_3 = !this$ClazzEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_1, this$ClazzEditComponent.timeZoneLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, void 0, tmp$_3, tmp$_2, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleHolidayCalendarClicked(), Unit) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(this$ClazzEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ClazzEditComponent.holidayCalenderLabel_0.text); tmp$_2 = (tmp$_1 = (tmp$_0 = this$ClazzEditComponent.entity) != null ? tmp$_0.holidayCalendar : null) != null ? tmp$_1.umCalendarName : null; tmp$_3 = this$ClazzEditComponent.holidayCalenderLabel_0.error; tmp$_4 = !this$ClazzEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, this$ClazzEditComponent.holidayCalenderLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, void 0, tmp$_4, tmp$_3, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_6(this$ClazzEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(this$ClazzEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ClazzEditComponent) { return function ($receiver) { var tmp$; this$ClazzEditComponent.attandenceEnabled_0 = !this$ClazzEditComponent.attandenceEnabled_0; (tmp$ = this$ClazzEditComponent.entity) != null ? (tmp$.clazzFeatures = this$ClazzEditComponent.attandenceEnabled_0 ? Clazz$Companion$CLAZZ_FEATURE_ATTENDANCE : L0) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_7(this$ClazzEditComponent) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); renderListItemWithTitleAndSwitch($receiver, this$ClazzEditComponent.getString_za3lpa$(2068), this$ClazzEditComponent.attandenceEnabled_0, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_12(closure$it, this$ClazzEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEditComponent.entity) != null ? (tmp$.clazzEnrolmentPolicy = toInt(closure$it)) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_8(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_12(it, this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda$lambda_9(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleTerminologyClicked(), Unit) : null; return Unit; }; } function ClazzEditComponent$render$lambda$lambda$lambda_0(this$ClazzEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17, tmp$_18, tmp$_19, tmp$_20, tmp$_21, tmp$_22, tmp$_23, tmp$_24, tmp$_25, tmp$_26, tmp$_27, tmp$_28, tmp$_29, tmp$_30, tmp$_31, tmp$_32; renderListSectionTitle($receiver, this$ClazzEditComponent.getString_za3lpa$(2318)); tmp$ = toString(this$ClazzEditComponent.nameLabel_0.text); tmp$_0 = this$ClazzEditComponent.nameLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ClazzEditComponent.entity) != null ? tmp$_1.clazzName : null; tmp$_3 = this$ClazzEditComponent.nameLabel_0.error; tmp$_4 = !this$ClazzEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ClazzEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzEditComponent), void 0, void 0, tmp$_4, tmp$_3, void 0, true); tmp$_5 = toString(this$ClazzEditComponent.descriptionLabel_0.text); tmp$_7 = (tmp$_6 = this$ClazzEditComponent.entity) != null ? tmp$_6.clazzDesc : null; tmp$_8 = this$ClazzEditComponent.descriptionLabel_0.error; tmp$_9 = !this$ClazzEditComponent.fieldsEnabled; umTextField($receiver, tmp$_5, tmp$_7, this$ClazzEditComponent.descriptionLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), ClazzEditComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzEditComponent), void 0, void 0, tmp$_9, tmp$_8); tmp$_10 = toString(this$ClazzEditComponent.institutionLabel_0.text); tmp$_11 = this$ClazzEditComponent.institutionLabel_0.errorText; tmp$_14 = (tmp$_13 = (tmp$_12 = this$ClazzEditComponent.entity) != null ? tmp$_12.school : null) != null ? tmp$_13.schoolName : null; tmp$_15 = this$ClazzEditComponent.nameLabel_0.error; tmp$_16 = !this$ClazzEditComponent.fieldsEnabled; umTextField($receiver, tmp$_10, tmp$_14, tmp$_11, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, void 0, tmp$_16, tmp$_15, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzEditComponent)); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda_3(this$ClazzEditComponent)); renderListSectionTitle($receiver, this$ClazzEditComponent.getString_za3lpa$(2875)); var createCourse = new CreateNewItem(true, this$ClazzEditComponent.getString_za3lpa$(2876), ClazzEditComponent$render$lambda$lambda$lambda$lambda_4(this$ClazzEditComponent)); if ((tmp$_17 = this$ClazzEditComponent.mPresenter_0) != null) { var this$ClazzEditComponent_0 = this$ClazzEditComponent; this$ClazzEditComponent_0.renderCourseBlocks_0($receiver, tmp$_17, toList(toSet(this$ClazzEditComponent_0.courseBlockList_0)), createCourse, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$ClazzEditComponent_0), ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(this$ClazzEditComponent_0)); }umSpacer($receiver); renderListSectionTitle($receiver, this$ClazzEditComponent.getString_za3lpa$(2302)); var createSchedule = new CreateNewItem(true, this$ClazzEditComponent.getString_za3lpa$(2303), ClazzEditComponent$render$lambda$lambda$lambda$lambda_5(this$ClazzEditComponent)); if ((tmp$_18 = this$ClazzEditComponent.mPresenter_0) != null) { var this$ClazzEditComponent_1 = this$ClazzEditComponent; renderSchedules($receiver, tmp$_18.scheduleOneToManyJoinListener, toList(toSet(this$ClazzEditComponent_1.scheduleList_0)), void 0, createSchedule, ClazzEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(this$ClazzEditComponent_1)); }umSpacer($receiver); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda_6(this$ClazzEditComponent)); renderListSectionTitle($receiver, this$ClazzEditComponent.getString_za3lpa$(2903)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda_7(this$ClazzEditComponent)); tmp$_19 = toString(this$ClazzEditComponent.enrolmentPolicyLabel_0.text); tmp$_21 = toString((tmp$_20 = this$ClazzEditComponent.entity) != null ? tmp$_20.clazzEnrolmentPolicy : null); tmp$_23 = (tmp$_22 = this$ClazzEditComponent.enrolmentPolicyLabel_0.errorText) != null ? tmp$_22 : ''; tmp$_24 = this$ClazzEditComponent.enrolmentPolicyLabel_0.error; var tmp$_33; if ((tmp$_25 = this$ClazzEditComponent.enrolmentPolicyOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_25, 10)); var tmp$_34; tmp$_34 = tmp$_25.iterator(); while (tmp$_34.hasNext()) { var item = tmp$_34.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_33 = destination; } else tmp$_33 = null; umTextFieldSelect($receiver, tmp$_19, tmp$_21, tmp$_23, void 0, (tmp$_26 = tmp$_33) != null ? toList(tmp$_26) : null, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda_8(this$ClazzEditComponent), void 0, void 0, tmp$_24); tmp$_27 = toString(this$ClazzEditComponent.terminologyLabel_0.text); tmp$_30 = (tmp$_29 = (tmp$_28 = this$ClazzEditComponent.entity) != null ? tmp$_28.terminology : null) != null ? tmp$_29.ctTitle : null; tmp$_31 = this$ClazzEditComponent.terminologyLabel_0.error; tmp$_32 = !this$ClazzEditComponent.fieldsEnabled; umTextField($receiver, tmp$_27, tmp$_30, this$ClazzEditComponent.terminologyLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, void 0, tmp$_32, tmp$_31, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda$lambda_9(this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$render$lambda$lambda(this$ClazzEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda(this$ClazzEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda$lambda_0(this$ClazzEditComponent)); return Unit; }; } ClazzEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_5); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); this.renderAddContentOptionsDialog_0($receiver_0); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; function ClazzEditComponent$renderAddContentOptionsDialog$lambda(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleClickAddModule(), Unit) : null; return Unit; }; } function ClazzEditComponent$renderAddContentOptionsDialog$lambda_0(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleClickAddText(), Unit) : null; return Unit; }; } function ClazzEditComponent$renderAddContentOptionsDialog$lambda_1(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleClickAddContent(), Unit) : null; return Unit; }; } function ClazzEditComponent$renderAddContentOptionsDialog$lambda_2(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleClickAddAssignment(), Unit) : null; return Unit; }; } function ClazzEditComponent$renderAddContentOptionsDialog$lambda_3(this$ClazzEditComponent) { return function () { var tmp$; (tmp$ = this$ClazzEditComponent.mPresenter_0) != null ? (tmp$.handleClickAddDiscussion(), Unit) : null; return Unit; }; } function ClazzEditComponent$renderAddContentOptionsDialog$lambda$lambda(this$ClazzEditComponent) { return function ($receiver) { this$ClazzEditComponent.showAddEntryOptions = false; return Unit; }; } function ClazzEditComponent$renderAddContentOptionsDialog$lambda_4(this$ClazzEditComponent) { return function () { setState(this$ClazzEditComponent, ClazzEditComponent$renderAddContentOptionsDialog$lambda$lambda(this$ClazzEditComponent)); return Unit; }; } ClazzEditComponent.prototype.renderAddContentOptionsDialog_0 = function ($receiver) { if (this.showAddEntryOptions) { var options = listOf([new UmDialogOptionItem('apps', 2878, 2879, ClazzEditComponent$renderAddContentOptionsDialog$lambda(this)), new UmDialogOptionItem('text_snippet', 2505, 2880, ClazzEditComponent$renderAddContentOptionsDialog$lambda_0(this)), new UmDialogOptionItem('library_books', 2543, 2881, ClazzEditComponent$renderAddContentOptionsDialog$lambda_1(this)), new UmDialogOptionItem('assignment', 2530, 2882, ClazzEditComponent$renderAddContentOptionsDialog$lambda_2(this)), new UmDialogOptionItem('forum', 2883, 2884, ClazzEditComponent$renderAddContentOptionsDialog$lambda_3(this))]); renderDialogOptions($receiver, this.systemImpl, options, Kotlin.Long.fromNumber((new Date()).getTime()), void 0, ClazzEditComponent$renderAddContentOptionsDialog$lambda_4(this)); }}; ClazzEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ClazzEditComponent$Companion() { ClazzEditComponent$Companion_instance = this; this.BLOCK_ICON_MAP = mapOf_0([to(100, 'folder'), to(103, 'assignment_turned_in'), to(104, 'smart_display'), to(102, 'title'), to(105, 'forum')]); } ClazzEditComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ClazzEditComponent$Companion_instance = null; function ClazzEditComponent$Companion_getInstance() { if (ClazzEditComponent$Companion_instance === null) { new ClazzEditComponent$Companion(); }return ClazzEditComponent$Companion_instance; } function ClazzEditComponent$CourseBlockListProps() { } ClazzEditComponent$CourseBlockListProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'CourseBlockListProps', interfaces: [SimpleListProps] }; function ClazzEditComponent$CourseOption(titleId, show, onClick) { if (show === void 0) show = true; this.titleId = titleId; this.show = show; this.onClick = onClick; } ClazzEditComponent$CourseOption.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseOption', interfaces: [] }; ClazzEditComponent$CourseOption.prototype.component1 = function () { return this.titleId; }; ClazzEditComponent$CourseOption.prototype.component2 = function () { return this.show; }; ClazzEditComponent$CourseOption.prototype.component3 = function () { return this.onClick; }; ClazzEditComponent$CourseOption.prototype.copy_pqh3w2$ = function (titleId, show, onClick) { return new ClazzEditComponent$CourseOption(titleId === void 0 ? this.titleId : titleId, show === void 0 ? this.show : show, onClick === void 0 ? this.onClick : onClick); }; ClazzEditComponent$CourseOption.prototype.toString = function () { return 'CourseOption(titleId=' + Kotlin.toString(this.titleId) + (', show=' + Kotlin.toString(this.show)) + (', onClick=' + Kotlin.toString(this.onClick)) + ')'; }; ClazzEditComponent$CourseOption.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.titleId) | 0; result = result * 31 + Kotlin.hashCode(this.show) | 0; result = result * 31 + Kotlin.hashCode(this.onClick) | 0; return result; }; ClazzEditComponent$CourseOption.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.titleId, other.titleId) && Kotlin.equals(this.show, other.show) && Kotlin.equals(this.onClick, other.onClick))))); }; function ClazzEditComponent$CourseBlockListComponent(mProps) { UstadSimpleList.call(this, mProps); this.menuOptions_0 = ArrayList_init_0(); this.showPopOverOptions_0 = false; this.anchorElement_0 = null; } function ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda$lambda(this$CourseBlockListComponent) { return function ($receiver) { this$CourseBlockListComponent.showPopOverOptions_0 = false; this$CourseBlockListComponent.anchorElement_0 = null; return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda(this$CourseBlockListComponent) { return function () { setState(this$CourseBlockListComponent, ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda$lambda(this$CourseBlockListComponent)); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda$lambda$lambda$lambda(this$CourseBlockListComponent) { return function ($receiver) { this$CourseBlockListComponent.showPopOverOptions_0 = false; this$CourseBlockListComponent.anchorElement_0 = null; return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda$lambda$lambda(closure$option, this$CourseBlockListComponent) { return function (it) { closure$option.onClick(it); setState(this$CourseBlockListComponent, ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda$lambda$lambda$lambda(this$CourseBlockListComponent)); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda_0(this$CourseBlockListComponent) { return function ($receiver) { var $receiver_0 = this$CourseBlockListComponent.menuOptions_0; var destination = ArrayList_init_0(); var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (element.show) destination.add_11rb$(element); } var tmp$_0; tmp$_0 = destination.iterator(); while (tmp$_0.hasNext()) { var element_0 = tmp$_0.next(); var this$CourseBlockListComponent_0 = this$CourseBlockListComponent; umMenuItem($receiver, ' ' + this$CourseBlockListComponent_0.getString_za3lpa$(element_0.titleId) + ' ', void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda$lambda$lambda(element_0, this$CourseBlockListComponent_0)); } return Unit; }; } ClazzEditComponent$CourseBlockListComponent.prototype.renderMoreDialogOptions_ss14n$ = function ($receiver) { umMenu($receiver, this.showPopOverOptions_0, this.anchorElement_0, ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda(this), void 0, void 0, ClazzEditComponent$CourseBlockListComponent$renderMoreDialogOptions$lambda_0(this)); }; function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda(closure$presenter, closure$item) { return function (it) { closure$presenter.onClickHide_11rb$(closure$item); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_0(closure$presenter, closure$item) { return function (it) { closure$presenter.onClickHide_11rb$(closure$item); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_1(closure$presenter, closure$item) { return function (it) { closure$presenter.onClickIndent_11rb$(closure$item); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_2(closure$presenter, closure$item) { return function (it) { closure$presenter.onClickUnIndent_11rb$(closure$item); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_3(closure$presenter, closure$item) { return function (it) { closure$presenter.onClickDelete_11rb$(closure$item); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_4(closure$item, this$CourseBlockListComponent) { return function ($receiver) { this$CourseBlockListComponent.anchorElement_0 = document.getElementById(closure$item.cbUid.toString()); this$CourseBlockListComponent.showPopOverOptions_0 = true; return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda_0(closure$presenter, closure$item, this$CourseBlockListComponent) { return function (it) { this$CourseBlockListComponent.menuOptions_0 = mutableListOf([new ClazzEditComponent$CourseOption(2111, void 0, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda(closure$presenter, closure$item)), new ClazzEditComponent$CourseOption(2112, void 0, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_0(closure$presenter, closure$item)), new ClazzEditComponent$CourseOption(2887, void 0, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_1(closure$presenter, closure$item)), new ClazzEditComponent$CourseOption(2888, void 0, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_2(closure$presenter, closure$item)), new ClazzEditComponent$CourseOption(2020, void 0, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_3(closure$presenter, closure$item))]); if (closure$item.cbType === 100) { var $receiver = this$CourseBlockListComponent.menuOptions_0; var first$result; first$break: do { var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (element.titleId === 2887) { first$result = element; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result.show = false; var $receiver_0 = this$CourseBlockListComponent.menuOptions_0; var first$result_0; first$break: do { var tmp$_0; tmp$_0 = $receiver_0.iterator(); while (tmp$_0.hasNext()) { var element_0 = tmp$_0.next(); if (element_0.titleId === 2888) { first$result_0 = element_0; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result_0.show = false; }if (closure$item.cbIndentLevel === 2) { var $receiver_1 = this$CourseBlockListComponent.menuOptions_0; var first$result_1; first$break: do { var tmp$_1; tmp$_1 = $receiver_1.iterator(); while (tmp$_1.hasNext()) { var element_1 = tmp$_1.next(); if (element_1.titleId === 2887) { first$result_1 = element_1; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result_1.show = false; }if (closure$item.cbIndentLevel === 0) { var $receiver_2 = this$CourseBlockListComponent.menuOptions_0; var first$result_2; first$break: do { var tmp$_2; tmp$_2 = $receiver_2.iterator(); while (tmp$_2.hasNext()) { var element_2 = tmp$_2.next(); if (element_2.titleId === 2888) { first$result_2 = element_2; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result_2.show = false; }if (closure$item.cbHidden) { var $receiver_3 = this$CourseBlockListComponent.menuOptions_0; var first$result_3; first$break: do { var tmp$_3; tmp$_3 = $receiver_3.iterator(); while (tmp$_3.hasNext()) { var element_3 = tmp$_3.next(); if (element_3.titleId === 2111) { first$result_3 = element_3; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result_3.show = false; var $receiver_4 = this$CourseBlockListComponent.menuOptions_0; var first$result_4; first$break: do { var tmp$_4; tmp$_4 = $receiver_4.iterator(); while (tmp$_4.hasNext()) { var element_4 = tmp$_4.next(); if (element_4.titleId === 2112) { first$result_4 = element_4; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result_4.show = true; }if (!closure$item.cbHidden) { var $receiver_5 = this$CourseBlockListComponent.menuOptions_0; var first$result_5; first$break: do { var tmp$_5; tmp$_5 = $receiver_5.iterator(); while (tmp$_5.hasNext()) { var element_5 = tmp$_5.next(); if (element_5.titleId === 2111) { first$result_5 = element_5; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result_5.show = true; var $receiver_6 = this$CourseBlockListComponent.menuOptions_0; var first$result_6; first$break: do { var tmp$_6; tmp$_6 = $receiver_6.iterator(); while (tmp$_6.hasNext()) { var element_6 = tmp$_6.next(); if (element_6.titleId === 2112) { first$result_6 = element_6; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); first$result_6.show = false; }setState(this$CourseBlockListComponent, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda$lambda_4(closure$item, this$CourseBlockListComponent)); return Unit; }; } function ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda(closure$onClick, this$CourseBlockListComponent, closure$item) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; $receiver.attrs.onClick = ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda(closure$onClick); var presenter = Kotlin.isType(tmp$ = this$CourseBlockListComponent.props.presenter, ClazzEdit2Presenter) ? tmp$ : throwCCE(); tmp$_0 = closure$item.cbType; tmp$_1 = closure$item.cbIndentLevel; tmp$_2 = closure$item.cbTitle; tmp$_4 = (tmp$_3 = closure$item.cbDescription) != null ? tmp$_3 : ''; tmp$_5 = DraftJsUtil_getInstance().clean_pdl1vj$(tmp$_4); tmp$_6 = closure$item.cbUid.toString(); renderCourseBlockTextOrModuleListItem($receiver, tmp$_0, tmp$_1, tmp$_2, tmp$_5, true, true, 'more_vert', closure$item.cbHidden, tmp$_6, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda$lambda_0(presenter, closure$item, this$CourseBlockListComponent)); return Unit; }; } ClazzEditComponent$CourseBlockListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEditComponent$CourseBlockListComponent$renderListItem$lambda(onClick, this, item)); }; ClazzEditComponent$CourseBlockListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseBlockListComponent', interfaces: [UstadSimpleList] }; function ClazzEditComponent$renderCourseBlocks$lambda(closure$blocks, closure$presenter, closure$onEntryClicked, closure$createNewItem, closure$onSortEnd) { return function ($receiver) { $receiver.attrs.entries = closure$blocks; $receiver.attrs.presenter = closure$presenter; $receiver.attrs.draggable = true; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.onSortEnd = closure$onSortEnd; return Unit; }; } ClazzEditComponent.prototype.renderCourseBlocks_0 = function ($receiver, presenter, blocks, createNewItem, onSortEnd, onEntryClicked) { if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(ClazzEditComponent$CourseBlockListComponent), ClazzEditComponent$renderCourseBlocks$lambda(blocks, presenter, onEntryClicked, createNewItem, onSortEnd)); }; function ClazzEditComponent$scheduleObserver$lambda$lambda(closure$it, this$ClazzEditComponent) { return function ($receiver) { this$ClazzEditComponent.scheduleList_0 = closure$it; return Unit; }; } function ClazzEditComponent$scheduleObserver$lambda(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$scheduleObserver$lambda$lambda(it, this$ClazzEditComponent)); return Unit; }; } function ClazzEditComponent$courseBlockObserver$lambda$lambda(closure$it, this$ClazzEditComponent) { return function ($receiver) { this$ClazzEditComponent.courseBlockList_0 = closure$it; return Unit; }; } function ClazzEditComponent$courseBlockObserver$lambda(this$ClazzEditComponent) { return function (it) { setState(this$ClazzEditComponent, ClazzEditComponent$courseBlockObserver$lambda$lambda(it, this$ClazzEditComponent)); return Unit; }; } ClazzEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzEditComponent', interfaces: [ClazzEdit2View, UstadEditComponent] }; function styledDiv$lambda_6(it) { return new DIV_init(html.emptyMap, it); } function ClazzEnrolmentEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.startDateLabel_0 = new FieldLabel(this.getString_za3lpa$(2514)); this.endDateLabel_0 = new FieldLabel(this.getString_za3lpa$(2515)); this.roleLabel_0 = new FieldLabel(this.getString_za3lpa$(2458), void 0, void 0, 'role-label'); this.outcomeLabel_0 = new FieldLabel(this.getString_za3lpa$(2389), void 0, void 0, 'outcome-label'); this.leavingLabel_0 = new FieldLabel(this.getString_za3lpa$(2382)); this.roleList_vtcay$_0 = null; this.statusList_pe73pi$_0 = null; this.startDateErrorWithDate_86329q$_0 = null; this.endDateError_7c7pzp$_0 = null; this.roleSelectionError_n9ftzc$_0 = null; this.fieldsEnabled_2680se$_0 = false; this.entity_rrsyp3$_0 = null; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$roleList$lambda(closure$value, this$ClazzEnrolmentEditComponent) { return function ($receiver) { this$ClazzEnrolmentEditComponent.roleList_vtcay$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'roleList', { configurable: true, get: function () { return this.roleList_vtcay$_0; }, set: function (value) { setState(this, ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$roleList$lambda(value, this)); } }); function ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$statusList$lambda(closure$value, this$ClazzEnrolmentEditComponent) { return function ($receiver) { this$ClazzEnrolmentEditComponent.statusList_pe73pi$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'statusList', { configurable: true, get: function () { return this.statusList_pe73pi$_0; }, set: function (value) { setState(this, ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$statusList$lambda(value, this)); } }); function ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$startDateErrorWithDate$lambda(this$ClazzEnrolmentEditComponent, closure$startDateValue) { return function ($receiver) { this$ClazzEnrolmentEditComponent.startDateLabel_0 = this$ClazzEnrolmentEditComponent.startDateLabel_0.copy_d8n4vg$(void 0, closure$startDateValue); return Unit; }; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'startDateErrorWithDate', { configurable: true, get: function () { return this.startDateErrorWithDate_86329q$_0; }, set: function (value) { var tmp$, tmp$_0; this.startDateErrorWithDate_86329q$_0 = value; if (((tmp$ = value != null ? value.first : null) != null ? contains(tmp$, '%1$s') : null) === true) { tmp$_0 = replace(value.first, '%1$s', standardFormat(new Date(value.second))); } else { tmp$_0 = value != null ? value.first : null; } var startDateValue = tmp$_0; setState(this, ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$startDateErrorWithDate$lambda(this, startDateValue)); } }); function ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$endDateError$lambda(this$ClazzEnrolmentEditComponent, closure$value) { return function ($receiver) { this$ClazzEnrolmentEditComponent.endDateLabel_0 = this$ClazzEnrolmentEditComponent.endDateLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'endDateError', { configurable: true, get: function () { return this.endDateError_7c7pzp$_0; }, set: function (value) { setState(this, ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$endDateError$lambda(this, value)); } }); function ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$roleSelectionError$lambda(this$ClazzEnrolmentEditComponent, closure$value) { return function ($receiver) { this$ClazzEnrolmentEditComponent.roleLabel_0 = this$ClazzEnrolmentEditComponent.roleLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'roleSelectionError', { configurable: true, get: function () { return this.roleSelectionError_n9ftzc$_0; }, set: function (value) { setState(this, ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$roleSelectionError$lambda(this, value)); } }); function ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$fieldsEnabled$lambda(closure$value, this$ClazzEnrolmentEditComponent) { return function ($receiver) { this$ClazzEnrolmentEditComponent.fieldsEnabled_2680se$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_2680se$_0; }, set: function (value) { setState(this, ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$fieldsEnabled$lambda(value, this)); } }); function ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$entity$lambda(closure$value, this$ClazzEnrolmentEditComponent) { return function ($receiver) { this$ClazzEnrolmentEditComponent.entity_rrsyp3$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEnrolmentEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_rrsyp3$_0; }, set: function (value) { setState(this, ClazzEnrolmentEditComponent$set_ClazzEnrolmentEditComponent$entity$lambda(value, this)); } }); ClazzEnrolmentEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2378); this.mPresenter_0 = new ClazzEnrolmentEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEnrolmentEditComponent.entity) != null ? (tmp$.clazzEnrolmentRole = toInt(closure$it)) : null; return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent) { return function (it) { setState(this$ClazzEnrolmentEditComponent, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$ClazzEnrolmentEditComponent.roleLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ClazzEnrolmentEditComponent.entity) != null ? tmp$_0.clazzEnrolmentRole : null); tmp$_3 = (tmp$_2 = this$ClazzEnrolmentEditComponent.roleLabel_0.errorText) != null ? tmp$_2 : ''; var tmp$_8; if ((tmp$_4 = this$ClazzEnrolmentEditComponent.roleList) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_4, 10)); var tmp$_9; tmp$_9 = tmp$_4.iterator(); while (tmp$_9.hasNext()) { var item = tmp$_9.next(); destination.add_11rb$(new Pair(item.optionId.toString(), item.toString())); } tmp$_8 = destination; } else tmp$_8 = null; tmp$_6 = (tmp$_5 = tmp$_8) != null ? toList(tmp$_5) : null; tmp$_7 = this$ClazzEnrolmentEditComponent.roleLabel_0.error; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, tmp$_6, FormControlVariant$outlined_getInstance(), ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent), void 0, void 0, tmp$_7, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEnrolmentEditComponent.entity) != null ? (tmp$.clazzEnrolmentOutcome = toInt(closure$it)) : null; return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzEnrolmentEditComponent) { return function (it) { setState(this$ClazzEnrolmentEditComponent, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$ClazzEnrolmentEditComponent.outcomeLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ClazzEnrolmentEditComponent.entity) != null ? tmp$_0.clazzEnrolmentOutcome : null); tmp$_3 = (tmp$_2 = this$ClazzEnrolmentEditComponent.outcomeLabel_0.errorText) != null ? tmp$_2 : ''; var tmp$_8; if ((tmp$_4 = this$ClazzEnrolmentEditComponent.statusList) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_4, 10)); var tmp$_9; tmp$_9 = tmp$_4.iterator(); while (tmp$_9.hasNext()) { var item = tmp$_9.next(); destination.add_11rb$(new Pair(item.optionId.toString(), item.toString())); } tmp$_8 = destination; } else tmp$_8 = null; tmp$_6 = (tmp$_5 = tmp$_8) != null ? toList(tmp$_5) : null; tmp$_7 = this$ClazzEnrolmentEditComponent.outcomeLabel_0.error; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, tmp$_6, FormControlVariant$outlined_getInstance(), ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzEnrolmentEditComponent), void 0, void 0, tmp$_7); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$it, this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEnrolmentEditComponent.entity) != null ? (tmp$.clazzEnrolmentDateJoined = Kotlin.Long.fromNumber(closure$it.getTime())) : null; this$ClazzEnrolmentEditComponent.startDateErrorWithDate = null; return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzEnrolmentEditComponent) { return function (it) { setState(this$ClazzEnrolmentEditComponent, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(it, this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ClazzEnrolmentEditComponent.startDateLabel_0.text); tmp$_0 = this$ClazzEnrolmentEditComponent.startDateLabel_0.error; tmp$_1 = this$ClazzEnrolmentEditComponent.startDateLabel_0.errorText; tmp$_3 = toDate((tmp$_2 = this$ClazzEnrolmentEditComponent.entity) != null ? tmp$_2.clazzEnrolmentDateJoined : null); tmp$_4 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzEnrolmentEditComponent), tmp$_3, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_4); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ClazzEnrolmentEditComponent.entity) != null ? (tmp$.clazzEnrolmentDateLeft = Kotlin.Long.fromNumber(closure$it.getTime())) : null; this$ClazzEnrolmentEditComponent.endDateError = null; return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ClazzEnrolmentEditComponent) { return function (it) { setState(this$ClazzEnrolmentEditComponent, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(it, this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ClazzEnrolmentEditComponent.endDateLabel_0.text); tmp$_0 = this$ClazzEnrolmentEditComponent.endDateLabel_0.error; tmp$_1 = this$ClazzEnrolmentEditComponent.endDateLabel_0.errorText; tmp$_3 = toDate((tmp$_2 = this$ClazzEnrolmentEditComponent.entity) != null ? tmp$_2.clazzEnrolmentDateLeft : null); tmp$_4 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ClazzEnrolmentEditComponent), tmp$_3, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_4); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzEnrolmentEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzEnrolmentEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ClazzEnrolmentEditComponent.entity) != null ? tmp$.leavingReason : null) != null ? (tmp$_0.leavingReasonTitle = closure$it) : null; return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzEnrolmentEditComponent) { return function (it) { setState(this$ClazzEnrolmentEditComponent, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(it, this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(closure$disabled, this$ClazzEnrolmentEditComponent) { return function (it) { var tmp$; if (closure$disabled) { (tmp$ = this$ClazzEnrolmentEditComponent.mPresenter_0) != null ? (tmp$.handleReasonLeavingClicked(), Unit) : null; }return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda_2(closure$disabled, this$ClazzEnrolmentEditComponent) { return function ($receiver) { $receiver.attrs.onClick = ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(closure$disabled, this$ClazzEnrolmentEditComponent); StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent)); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzEnrolmentEditComponent)); var disabled = !this$ClazzEnrolmentEditComponent.fieldsEnabled || ((tmp$ = this$ClazzEnrolmentEditComponent.entity) != null ? tmp$.clazzEnrolmentOutcome : null) === 200; tmp$_0 = toString(this$ClazzEnrolmentEditComponent.leavingLabel_0.text); tmp$_1 = this$ClazzEnrolmentEditComponent.leavingLabel_0.errorText; tmp$_4 = (tmp$_3 = (tmp$_2 = this$ClazzEnrolmentEditComponent.entity) != null ? tmp$_2.leavingReason : null) != null ? tmp$_3.leavingReasonTitle : null; tmp$_5 = this$ClazzEnrolmentEditComponent.leavingLabel_0.error; umTextField($receiver, tmp$_0, tmp$_4, tmp$_1, void 0, FormControlVariant$outlined_getInstance(), ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzEnrolmentEditComponent), void 0, void 0, disabled, tmp$_5, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda$lambda_2(disabled, this$ClazzEnrolmentEditComponent)); return Unit; }; } function ClazzEnrolmentEditComponent$render$lambda$lambda(this$ClazzEnrolmentEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda$lambda(this$ClazzEnrolmentEditComponent)); return Unit; }; } ClazzEnrolmentEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_6); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ClazzEnrolmentEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; ClazzEnrolmentEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzEnrolmentEditComponent', interfaces: [ClazzEnrolmentEditView, UstadEditComponent] }; function ClazzEnrolmentListComponent(props) { UstadListComponent.call(this, props); this.mPresenter_0 = null; this.selectedPersonUid_0 = L0; this.headerText_0 = ''; this.person_z388f3$_0 = null; this.clazz_ow1hty$_0 = null; this.enrolmentList_5ftll0$_0 = null; this.isStudentEnrolmentEditVisible_f04g2f$_0 = false; this.isTeacherEnrolmentEditVisible_ajote$_0 = false; } Object.defineProperty(ClazzEnrolmentListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.clazzEnrolmentDao : null; } }); Object.defineProperty(ClazzEnrolmentListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzEnrolmentListComponent.prototype, 'person', { configurable: true, get: function () { return this.person_z388f3$_0; }, set: function (value) { this.person_z388f3$_0 = value; this.ustadComponentTitle = value != null ? personFullName(value) : null; } }); function ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$clazz$lambda(closure$personInClazzStr, this$ClazzEnrolmentListComponent) { return function ($receiver) { this$ClazzEnrolmentListComponent.headerText_0 = closure$personInClazzStr; return Unit; }; } Object.defineProperty(ClazzEnrolmentListComponent.prototype, 'clazz', { configurable: true, get: function () { return this.clazz_ow1hty$_0; }, set: function (value) { var tmp$, tmp$_0, tmp$_1; this.clazz_ow1hty$_0 = value; var personInClazzStr = format(this.getString_za3lpa$(2390), [(tmp$_0 = (tmp$ = this.person) != null ? personFullName(tmp$) : null) != null ? tmp$_0 : '', (tmp$_1 = value != null ? value.clazzName : null) != null ? tmp$_1 : '']); setState(this, ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$clazz$lambda(personInClazzStr, this)); } }); function ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$enrolmentList$lambda(closure$value, this$ClazzEnrolmentListComponent) { return function ($receiver) { this$ClazzEnrolmentListComponent.list = closure$value; return Unit; }; } Object.defineProperty(ClazzEnrolmentListComponent.prototype, 'enrolmentList', { configurable: true, get: function () { return this.enrolmentList_5ftll0$_0; }, set: function (value) { this.enrolmentList_5ftll0$_0 = value; setState(this, ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$enrolmentList$lambda(value, this)); } }); function ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$isStudentEnrolmentEditVisible$lambda(closure$value, this$ClazzEnrolmentListComponent) { return function ($receiver) { this$ClazzEnrolmentListComponent.isStudentEnrolmentEditVisible_f04g2f$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEnrolmentListComponent.prototype, 'isStudentEnrolmentEditVisible', { configurable: true, get: function () { return this.isStudentEnrolmentEditVisible_f04g2f$_0; }, set: function (value) { setState(this, ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$isStudentEnrolmentEditVisible$lambda(value, this)); } }); function ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$isTeacherEnrolmentEditVisible$lambda(closure$value, this$ClazzEnrolmentListComponent) { return function ($receiver) { this$ClazzEnrolmentListComponent.isTeacherEnrolmentEditVisible_ajote$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzEnrolmentListComponent.prototype, 'isTeacherEnrolmentEditVisible', { configurable: true, get: function () { return this.isTeacherEnrolmentEditVisible_ajote$_0; }, set: function (value) { setState(this, ClazzEnrolmentListComponent$set_ClazzEnrolmentListComponent$isTeacherEnrolmentEditVisible$lambda(value, this)); } }); ClazzEnrolmentListComponent.prototype.handleClickEntry_11rc$ = function (entry) { }; ClazzEnrolmentListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.selectedPersonUid_0 = (tmp$_1 = (tmp$_0 = this.arguments.get_11rb$(UstadView.Companion.ARG_PERSON_UID)) != null ? toLong(tmp$_0) : null) != null ? tmp$_1 : L0; this.mPresenter_0 = new ClazzEnrolmentListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_2 = this.mPresenter_0) != null) { tmp$_2.onCreate(emptyMap()); }}; function ClazzEnrolmentListComponent$renderListHeaderView$lambda$lambda$lambda(this$ClazzEnrolmentListComponent) { return function () { var tmp$; (tmp$ = this$ClazzEnrolmentListComponent.mPresenter_0) != null ? (tmp$.handleClickProfile_s8cxhz$(this$ClazzEnrolmentListComponent.selectedPersonUid_0), Unit) : null; return Unit; }; } function ClazzEnrolmentListComponent$renderListHeaderView$lambda$lambda(this$ClazzEnrolmentListComponent) { return function ($receiver) { renderTopMainAction($receiver, 'person', this$ClazzEnrolmentListComponent.getString_za3lpa$(2385), GridSize$cells6_getInstance(), GridSize$cells2_getInstance(), true, void 0, void 0, void 0, ClazzEnrolmentListComponent$renderListHeaderView$lambda$lambda$lambda(this$ClazzEnrolmentListComponent)); return Unit; }; } function ClazzEnrolmentListComponent$renderListHeaderView$lambda$lambda_0(this$ClazzEnrolmentListComponent) { return function ($receiver) { renderListSectionTitle($receiver, this$ClazzEnrolmentListComponent.headerText_0, TypographyVariant$h6_getInstance()); return Unit; }; } function ClazzEnrolmentListComponent$renderListHeaderView$lambda(this$ClazzEnrolmentListComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentListComponent$renderListHeaderView$lambda$lambda(this$ClazzEnrolmentListComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentListComponent$renderListHeaderView$lambda$lambda_0(this$ClazzEnrolmentListComponent)); return Unit; }; } ClazzEnrolmentListComponent.prototype.renderListHeaderView_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing2_getInstance(), void 0, void 0, ClazzEnrolmentListComponent$renderListHeaderView$lambda(this)); }; function ClazzEnrolmentListComponent$renderListItem$lambda$lambda(this$ClazzEnrolmentListComponent, closure$item) { return function (it) { var tmp$; (tmp$ = this$ClazzEnrolmentListComponent.mPresenter_0) != null ? (tmp$.handleClickClazzEnrolment_oewacg$(closure$item), Unit) : null; return Unit; }; } function ClazzEnrolmentListComponent$renderListItem$lambda(closure$item, this$ClazzEnrolmentListComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; var startEndTime = toString((tmp$ = toDate(closure$item.clazzEnrolmentDateJoined)) != null ? standardFormat(tmp$) : null) + ' ' + ('- ' + ((tmp$_1 = (tmp$_0 = toDate(closure$item.clazzEnrolmentDateLeft, true)) != null ? standardFormat(tmp$_0) : null) != null ? tmp$_1 : this$ClazzEnrolmentListComponent.getString_za3lpa$(2311))); renderListItemWithTitleDescriptionAndRightAction($receiver, roleToString(closure$item, $receiver, this$ClazzEnrolmentListComponent.systemImpl) + ' ' + ('- ' + outcomeToString(closure$item, $receiver, this$ClazzEnrolmentListComponent.systemImpl)), 'edit', this$ClazzEnrolmentListComponent.isTeacherEnrolmentEditVisible || this$ClazzEnrolmentListComponent.isStudentEnrolmentEditVisible, startEndTime, ClazzEnrolmentListComponent$renderListItem$lambda$lambda(this$ClazzEnrolmentListComponent, closure$item)); return Unit; }; } ClazzEnrolmentListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzEnrolmentListComponent$renderListItem$lambda(item, this)); }; ClazzEnrolmentListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; ClazzEnrolmentListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzEnrolmentListComponent', interfaces: [ClazzEnrolmentListView, UstadListComponent] }; function styledDiv$lambda_7(it) { return new DIV_init(html.emptyMap, it); } function ClazzListComponent(props) { UstadListComponent.call(this, props); this.mPresenter_0 = null; this.newClazzListOptionVisible_5q0u4v$_0 = false; } Object.defineProperty(ClazzListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.clazzDao : null; } }); Object.defineProperty(ClazzListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); ClazzListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2915)) : null; this.ustadComponentTitle = this.getString_za3lpa$(2914); this.linearLayout = false; this.addNewEntryText = this.getString_za3lpa$(2323); this.mPresenter_0 = new ClazzListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function ClazzListComponent$renderListItem$lambda$lambda($receiver, attachmentSrc) { umEntityAvatar($receiver, attachmentSrc, 'assets/entry_placeholder.jpeg', void 0, void 0, void 0, void 0, true, StyleManager_getInstance().name + '-clazzItemClass'); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda$lambda($receiver) { set_fontSize($receiver.css, new LinearDimension('1.2em')); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda_0($receiver) { StyleManager_getInstance().clazzListRoleChip($receiver.css); $receiver.attrs.icon = umIcon($receiver, 'badge', void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda_1($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); StyleManager_getInstance().maxLines_th7wno$($receiver_0, 1); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda_2(closure$item) { return function ($receiver) { var closure$item_0 = closure$item; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); var $receiver_1 = closure$item_0.clazzDesc; if (!($receiver_1 == null || $receiver_1.length === 0)) { StyleManager_getInstance().maxLines_th7wno$($receiver_0, 2); }return Unit; }; } function ClazzListComponent$renderListItem$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().gridListSecondaryItemIcons($receiver.css); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda$lambda_0($receiver) { umIcon($receiver, 'people', IconColor$inherit_getInstance(), void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda$lambda); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().gridListSecondaryItemDesc); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda$lambda_1(this$ClazzListComponent, closure$item) { return function ($receiver) { var numOfStudentTeachers = format(this$ClazzListComponent.getString_za3lpa$(2565), [closure$item.numTeachers, closure$item.numStudents]); umTypography($receiver, numOfStudentTeachers, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda$lambda_0); return Unit; }; } function ClazzListComponent$renderListItem$lambda$lambda$lambda_2(closure$item) { return function ($receiver) { statusCircleIndicator($receiver, closure$item.attendanceAverage); return Unit; }; } function ClazzListComponent$renderListItem$lambda$lambda$lambda$lambda_1($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().gridListSecondaryItemDesc); return Unit; } function ClazzListComponent$renderListItem$lambda$lambda$lambda_3(this$ClazzListComponent, closure$item) { return function ($receiver) { var attendancesPercentage = format(this$ClazzListComponent.getString_za3lpa$(2576), [roundTo(closure$item.attendanceAverage >= 0 ? closure$item.attendanceAverage * 100 : 0.0)]); umTypography($receiver, attendancesPercentage, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda$lambda_1); return Unit; }; } function ClazzListComponent$renderListItem$lambda$lambda_3(this$ClazzListComponent, closure$item) { return function ($receiver) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda_0); umItem($receiver, GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda_1(this$ClazzListComponent, closure$item)); umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda_2(closure$item)); umItem($receiver, GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda$lambda_3(this$ClazzListComponent, closure$item)); return Unit; }; } ClazzListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_7); var tmp$; set_position($receiver_0.css, Position.relative); withAttachmentLocalUrlLookup($receiver_0, item.clazzUid, ClazzDetailOverviewComponent$Companion_getInstance().CLAZZ_PICTURE_LOOKUP_ADAPTER, ClazzListComponent$renderListItem$lambda$lambda); var memberRole = toString((tmp$ = item.clazzActiveEnrolment) != null ? roleToString(tmp$, $receiver_0, this.systemImpl) : null); if (item.clazzActiveEnrolment != null) { umChip($receiver_0, memberRole, void 0, void 0, void 0, void 0, ChipColor$primary_getInstance(), void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda_0); }$receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_7); var tmp$_0; padding($receiver_0_0.css, get_spacingUnits(2)); umTypography($receiver_0_0, item.clazzName, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda_1); umTypography($receiver_0_0, (tmp$_0 = item.clazzDesc) != null ? wordBreakLimit(tmp$_0) : null, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda_2(item)); umGridContainer($receiver_0_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzListComponent$renderListItem$lambda$lambda_3(this, item)); $receiver.child_30b5ua$($receiver_0_0.create()); }; ClazzListComponent.prototype.handleClickAddNewEntry = function () { var tmp$, tmp$_0, tmp$_1; var args = LinkedHashMap_init(); var filterExcludeMembersOfSchool = (tmp$_0 = (tmp$ = this.arguments.get_11rb$(PersonListView.Companion.ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL)) != null ? toLong(tmp$) : null) != null ? tmp$_0 : L0; if (!equals(filterExcludeMembersOfSchool, L0)) { args = mutableMapOf([to(UstadView.Companion.ARG_SCHOOL_UID, filterExcludeMembersOfSchool.toString())]); }args.putAll_a2k3zr$(this.arguments); (tmp$_1 = this.mPresenter_0) != null ? (tmp$_1.handleClickAddNewItem_a4m1mt$(args), Unit) : null; }; ClazzListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.onClickClazz_yczdf2$(entry), Unit) : null; }; function ClazzListComponent$onFabClicked$lambda(this$ClazzListComponent) { return function ($receiver) { this$ClazzListComponent.showAddEntryOptions = true; return Unit; }; } ClazzListComponent.prototype.onFabClicked = function () { setState(this, ClazzListComponent$onFabClicked$lambda(this)); }; function ClazzListComponent$renderAddContentOptionsDialog$lambda(this$ClazzListComponent) { return function () { var tmp$; (tmp$ = this$ClazzListComponent.mPresenter_0) != null ? (tmp$.handleClickCreateNewFab(), Unit) : null; return Unit; }; } function ClazzListComponent$renderAddContentOptionsDialog$lambda_0(this$ClazzListComponent) { return function () { var tmp$; (tmp$ = this$ClazzListComponent.mPresenter_0) != null ? (tmp$.handleClickJoinClazz(), Unit) : null; return Unit; }; } function ClazzListComponent$renderAddContentOptionsDialog$lambda$lambda(this$ClazzListComponent) { return function ($receiver) { this$ClazzListComponent.showAddEntryOptions = false; return Unit; }; } function ClazzListComponent$renderAddContentOptionsDialog$lambda_1(this$ClazzListComponent) { return function () { setState(this$ClazzListComponent, ClazzListComponent$renderAddContentOptionsDialog$lambda$lambda(this$ClazzListComponent)); return Unit; }; } ClazzListComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { var tmp$; if (this.showAddEntryOptions) { if (this.newClazzListOptionVisible) { tmp$ = listOf_0(new UmDialogOptionItem('add', 2928, void 0, ClazzListComponent$renderAddContentOptionsDialog$lambda(this))); } else { tmp$ = emptyList(); } var options = plus(tmp$, listOf_0(new UmDialogOptionItem('login', 2929, void 0, ClazzListComponent$renderAddContentOptionsDialog$lambda_0(this)))); renderDialogOptions($receiver, this.systemImpl, options, Kotlin.Long.fromNumber((new Date()).getTime()), void 0, ClazzListComponent$renderAddContentOptionsDialog$lambda_1(this)); }}; function ClazzListComponent$set_ClazzListComponent$newClazzListOptionVisible$lambda(closure$value, this$ClazzListComponent) { return function ($receiver) { this$ClazzListComponent.newClazzListOptionVisible_5q0u4v$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzListComponent.prototype, 'newClazzListOptionVisible', { configurable: true, get: function () { return this.newClazzListOptionVisible_5q0u4v$_0; }, set: function (value) { setState(this, ClazzListComponent$set_ClazzListComponent$newClazzListOptionVisible$lambda(value, this)); } }); ClazzListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; ClazzListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzListComponent', interfaces: [ClazzList2View, UstadListComponent] }; function styledDiv$lambda_8(it) { return new DIV_init(html.emptyMap, it); } function ClazzLogEditAttendanceComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.disablePrevBtn_0 = false; this.disableNextBtn_0 = false; this.activeLogIndex_0 = 0; this.recordWithPersonList = emptyList(); this.clazzLogAttendanceRecordListObserver_0 = new ObserverFnWrapper(ClazzLogEditAttendanceComponent$clazzLogAttendanceRecordListObserver$lambda(this)); this.clazzLogAttendanceRecordList_a5bzz1$_0 = null; this.clazzLogTimezone_xca5no$_0 = null; this.clazzLogsList_8106pa$_0 = null; this.fieldsEnabled_cf6c2d$_0 = false; this.entity_x5l2g2$_0 = null; } Object.defineProperty(ClazzLogEditAttendanceComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzLogEditAttendanceComponent.prototype, 'clazzLogAttendanceRecordList', { configurable: true, get: function () { return this.clazzLogAttendanceRecordList_a5bzz1$_0; }, set: function (value) { var tmp$; (tmp$ = this.clazzLogAttendanceRecordList_a5bzz1$_0) != null ? (tmp$.removeObserver_jsfaok$(this.clazzLogAttendanceRecordListObserver_0), Unit) : null; this.clazzLogAttendanceRecordList_a5bzz1$_0 = value; value != null ? (value.observe_igxi3b$(this, this.clazzLogAttendanceRecordListObserver_0), Unit) : null; } }); function ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$clazzLogTimezone$lambda(closure$value, this$ClazzLogEditAttendanceComponent) { return function ($receiver) { this$ClazzLogEditAttendanceComponent.clazzLogTimezone_xca5no$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogEditAttendanceComponent.prototype, 'clazzLogTimezone', { configurable: true, get: function () { return this.clazzLogTimezone_xca5no$_0; }, set: function (value) { setState(this, ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$clazzLogTimezone$lambda(value, this)); } }); function ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$clazzLogsList$lambda(closure$value, this$ClazzLogEditAttendanceComponent) { return function ($receiver) { this$ClazzLogEditAttendanceComponent.clazzLogsList_8106pa$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogEditAttendanceComponent.prototype, 'clazzLogsList', { configurable: true, get: function () { return this.clazzLogsList_8106pa$_0; }, set: function (value) { setState(this, ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$clazzLogsList$lambda(value, this)); } }); function ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$fieldsEnabled$lambda(closure$value, this$ClazzLogEditAttendanceComponent) { return function ($receiver) { this$ClazzLogEditAttendanceComponent.fieldsEnabled_cf6c2d$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogEditAttendanceComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_cf6c2d$_0; }, set: function (value) { setState(this, ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$fieldsEnabled$lambda(value, this)); } }); ClazzLogEditAttendanceComponent.prototype.handleOnDateChange_0 = function (next) { var tmp$, tmp$_0, tmp$_1, tmp$_2; var oldIndex = this.activeLogIndex_0; this.activeLogIndex_0 = this.activeLogIndex_0 === ((tmp$ = this.clazzLogsList) != null ? get_lastIndex(tmp$) : null) && next ? (tmp$_1 = (tmp$_0 = this.clazzLogsList) != null ? get_lastIndex(tmp$_0) : null) != null ? tmp$_1 : 0 : this.activeLogIndex_0 === 0 && !next ? 0 : this.activeLogIndex_0 + (next ? 1 : -1) | 0; if ((tmp$_2 = this.clazzLogsList) != null) { var tmp$_3; (tmp$_3 = this.mPresenter_0) != null && (tmp$_3.handleSelectClazzLog_3aopzo$(tmp$_2.get_za3lpa$(oldIndex), tmp$_2.get_za3lpa$(this.activeLogIndex_0)), Unit); }}; function ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$entity$lambda(closure$value, this$ClazzLogEditAttendanceComponent) { return function ($receiver) { var tmp$, tmp$_0; if (closure$value != null) { var this$ClazzLogEditAttendanceComponent_0 = this$ClazzLogEditAttendanceComponent; var closure$value_0 = closure$value; var tmp$_1, tmp$_2; this$ClazzLogEditAttendanceComponent_0.activeLogIndex_0 = (tmp$_2 = (tmp$_1 = this$ClazzLogEditAttendanceComponent_0.clazzLogsList) != null ? tmp$_1.indexOf_11rb$(closure$value_0) : null) != null ? tmp$_2 : 0; }this$ClazzLogEditAttendanceComponent.entity_x5l2g2$_0 = closure$value; this$ClazzLogEditAttendanceComponent.disableNextBtn_0 = this$ClazzLogEditAttendanceComponent.activeLogIndex_0 >= ((tmp$_0 = (tmp$ = this$ClazzLogEditAttendanceComponent.clazzLogsList) != null ? get_lastIndex(tmp$) : null) != null ? tmp$_0 : 0); this$ClazzLogEditAttendanceComponent.disablePrevBtn_0 = this$ClazzLogEditAttendanceComponent.activeLogIndex_0 === 0; return Unit; }; } Object.defineProperty(ClazzLogEditAttendanceComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_x5l2g2$_0; }, set: function (value) { setState(this, ClazzLogEditAttendanceComponent$set_ClazzLogEditAttendanceComponent$entity$lambda(value, this)); } }); ClazzLogEditAttendanceComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2068); this.mPresenter_0 = new ClazzLogEditAttendancePresenter(this, this.arguments, this, this.di, this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$ClazzLogEditAttendanceComponent.handleOnDateChange_0(false); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { $receiver.attrs.onClick = ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent); umIcon($receiver, 'arrow_back_ios'); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { StyleManager_getInstance().alignStartItems($receiver.css); umToggleButton($receiver, 0, ToggleButtonSize$medium_getInstance(), void 0, void 0, this$ClazzLogEditAttendanceComponent.disablePrevBtn_0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda_0($receiver) { margin($receiver.css, get_spacingUnits(1)); return Unit; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { var tmp$, tmp$_0; $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); umTypography($receiver, (tmp$_0 = toDate((tmp$ = this$ClazzLogEditAttendanceComponent.entity) != null ? tmp$.logDate : null)) != null ? formatDate(tmp$_0, DATE_FORMAT_DD_MMM_YYYY_HM, this$ClazzLogEditAttendanceComponent.clazzLogTimezone) : null, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$ClazzLogEditAttendanceComponent.handleOnDateChange_0(true); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { $receiver.attrs.onClick = ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent); umIcon($receiver, 'arrow_forward_ios'); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { StyleManager_getInstance().alignEndItems($receiver.css); umToggleButton($receiver, 0, ToggleButtonSize$medium_getInstance(), void 0, void 0, this$ClazzLogEditAttendanceComponent.disableNextBtn_0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ClazzLogEditAttendanceComponent)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent)); umItem($receiver, GridSize$cells10_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent)); umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda_1(this$ClazzLogEditAttendanceComponent)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$ClazzLogEditAttendanceComponent.mPresenter_0) != null ? (tmp$.handleClickMarkAll_za3lpa$(1), Unit) : null; return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { $receiver.attrs.onClick = ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent); renderCreateNewItemOnList($receiver, this$ClazzLogEditAttendanceComponent.getString_za3lpa$(2309), 'library_add_check'); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$ClazzLogEditAttendanceComponent.mPresenter_0) != null ? (tmp$.handleClickMarkAll_za3lpa$(2), Unit) : null; return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { $receiver.attrs.onClick = ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent); renderCreateNewItemOnList($receiver, this$ClazzLogEditAttendanceComponent.getString_za3lpa$(2310), 'content_copy'); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$record) { return function ($receiver) { var tmp$, tmp$_0; umProfileAvatar($receiver, (tmp$_0 = (tmp$ = closure$record.person) != null ? tmp$.personUid : null) != null ? tmp$_0 : L0, 'person'); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$record) { return function ($receiver) { var tmp$, tmp$_0; umTypography($receiver, (tmp$_0 = (tmp$ = closure$record.person) != null ? tmp$.fullName() : null) != null ? tmp$_0 : '', TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$record, closure$selected, this$ClazzLogEditAttendanceComponent, closure$index) { return function ($receiver) { this$ClazzLogEditAttendanceComponent.recordWithPersonList.get_za3lpa$(closure$index).attendanceStatus = closure$record.attendanceStatus === closure$selected ? 0 : closure$selected; return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$record, this$ClazzLogEditAttendanceComponent, closure$index) { return function (it) { var selected = first(it); setState(this$ClazzLogEditAttendanceComponent, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$record, selected, this$ClazzLogEditAttendanceComponent, closure$index)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { umIcon($receiver, 'check'); return Unit; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { umIcon($receiver, 'close'); return Unit; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2($receiver) { umIcon($receiver, 'query_builder'); return Unit; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$record, this$ClazzLogEditAttendanceComponent) { return function ($receiver) { var selectedPresent = 1 === closure$record.attendanceStatus; var selectedAbsent = 2 === closure$record.attendanceStatus; var selectedPartial = 4 === closure$record.attendanceStatus; umToggleButton($receiver, 1, void 0, this$ClazzLogEditAttendanceComponent.setSelectedColor_0(selectedPresent), selectedPresent, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0); umToggleButton($receiver, 2, void 0, this$ClazzLogEditAttendanceComponent.setSelectedColor_0(selectedAbsent), selectedAbsent, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1); umToggleButton($receiver, 4, void 0, this$ClazzLogEditAttendanceComponent.setSelectedColor_0(selectedPartial), selectedPartial, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$record, this$ClazzLogEditAttendanceComponent, closure$index) { return function ($receiver) { umToggleButtonGroup($receiver, void 0, void 0, Util_getInstance().isMobile() ? ToggleButtonSize$small_getInstance() : ToggleButtonSize$medium_getInstance(), void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$record, this$ClazzLogEditAttendanceComponent, closure$index), ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$record, this$ClazzLogEditAttendanceComponent)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$record, this$ClazzLogEditAttendanceComponent, closure$index) { return function ($receiver) { umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$record)); umItem($receiver, GridSize$cells6_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$record)); umItem($receiver, GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$record, this$ClazzLogEditAttendanceComponent, closure$index)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$record, this$ClazzLogEditAttendanceComponent, closure$index) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$record, this$ClazzLogEditAttendanceComponent, closure$index)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ClazzLogEditAttendanceComponent)); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ClazzLogEditAttendanceComponent)); umSpacer($receiver); var $receiver_0 = this$ClazzLogEditAttendanceComponent.recordWithPersonList; var tmp$, tmp$_0; var index = 0; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(item, this$ClazzLogEditAttendanceComponent, checkIndexOverflow((tmp$_0 = index, index = tmp$_0 + 1 | 0, tmp$_0)))); } return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { StyleManager_getInstance().tabsContainer($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ClazzLogEditAttendanceComponent)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda$lambda_2(this$ClazzLogEditAttendanceComponent)); return Unit; }; } function ClazzLogEditAttendanceComponent$render$lambda$lambda(this$ClazzLogEditAttendanceComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda(this$ClazzLogEditAttendanceComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda$lambda_0(this$ClazzLogEditAttendanceComponent)); return Unit; }; } ClazzLogEditAttendanceComponent.prototype.render_ss14n$ = function ($receiver) { var tmp$ = this.entity == null; if (!tmp$) { var $receiver_0 = this.clazzLogsList; tmp$ = $receiver_0 == null || $receiver_0.isEmpty(); }if (tmp$) return; var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_8); var $receiver_1 = $receiver_0_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogEditAttendanceComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0_0.create()); }; ClazzLogEditAttendanceComponent.prototype.setSelectedColor_0 = function (selected) { return selected ? UMColor$primary_getInstance() : UMColor$standard_getInstance(); }; ClazzLogEditAttendanceComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ClazzLogEditAttendanceComponent$clazzLogAttendanceRecordListObserver$lambda$lambda(closure$it, this$ClazzLogEditAttendanceComponent) { return function ($receiver) { this$ClazzLogEditAttendanceComponent.recordWithPersonList = closure$it; return Unit; }; } function ClazzLogEditAttendanceComponent$clazzLogAttendanceRecordListObserver$lambda(this$ClazzLogEditAttendanceComponent) { return function (it) { setState(this$ClazzLogEditAttendanceComponent, ClazzLogEditAttendanceComponent$clazzLogAttendanceRecordListObserver$lambda$lambda(it, this$ClazzLogEditAttendanceComponent)); return Unit; }; } ClazzLogEditAttendanceComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzLogEditAttendanceComponent', interfaces: [ClazzLogEditAttendanceView, UstadEditComponent] }; function styledDiv$lambda_9(it) { return new DIV_init(html.emptyMap, it); } function ClazzLogEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.dateLabel_0 = new FieldLabel(this.getString_za3lpa$(2425)); this.timeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.date_j5o99g$_0 = L0; this.time_iwql2b$_0 = L0; this.dateError_b6b7w0$_0 = null; this.timeZone_33z1u9$_0 = null; this.timeError_fhunbj$_0 = null; this.fieldsEnabled_rn1jqa$_0 = false; this.dateFieldValue = Kotlin.Long.fromNumber((new Date()).getTime()); this.timeFieldValue = Kotlin.Long.fromNumber((new Date()).getTime()); this.entity_7dq5qf$_0 = null; } Object.defineProperty(ClazzLogEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ClazzLogEditComponent$set_ClazzLogEditComponent$date$lambda(closure$value, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.date_j5o99g$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogEditComponent.prototype, 'date', { configurable: true, get: function () { return this.date_j5o99g$_0; }, set: function (value) { setState(this, ClazzLogEditComponent$set_ClazzLogEditComponent$date$lambda(value, this)); } }); function ClazzLogEditComponent$set_ClazzLogEditComponent$time$lambda(closure$value, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.time_iwql2b$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogEditComponent.prototype, 'time', { configurable: true, get: function () { return this.time_iwql2b$_0; }, set: function (value) { setState(this, ClazzLogEditComponent$set_ClazzLogEditComponent$time$lambda(value, this)); } }); function ClazzLogEditComponent$set_ClazzLogEditComponent$dateError$lambda(closure$value, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.dateError_b6b7w0$_0 = closure$value; this$ClazzLogEditComponent.dateLabel_0 = this$ClazzLogEditComponent.dateLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzLogEditComponent.prototype, 'dateError', { configurable: true, get: function () { return this.dateError_b6b7w0$_0; }, set: function (value) { setState(this, ClazzLogEditComponent$set_ClazzLogEditComponent$dateError$lambda(value, this)); } }); function ClazzLogEditComponent$set_ClazzLogEditComponent$timeZone$lambda(closure$value, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.timeZone_33z1u9$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogEditComponent.prototype, 'timeZone', { configurable: true, get: function () { return this.timeZone_33z1u9$_0; }, set: function (value) { setState(this, ClazzLogEditComponent$set_ClazzLogEditComponent$timeZone$lambda(value, this)); } }); function ClazzLogEditComponent$set_ClazzLogEditComponent$timeError$lambda(closure$value, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.timeError_fhunbj$_0 = closure$value; this$ClazzLogEditComponent.timeLabel_0 = this$ClazzLogEditComponent.timeLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ClazzLogEditComponent.prototype, 'timeError', { configurable: true, get: function () { return this.timeError_fhunbj$_0; }, set: function (value) { setState(this, ClazzLogEditComponent$set_ClazzLogEditComponent$timeError$lambda(value, this)); } }); function ClazzLogEditComponent$set_ClazzLogEditComponent$fieldsEnabled$lambda(closure$value, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.fieldsEnabled_rn1jqa$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_rn1jqa$_0; }, set: function (value) { setState(this, ClazzLogEditComponent$set_ClazzLogEditComponent$fieldsEnabled$lambda(value, this)); } }); Object.defineProperty(ClazzLogEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_7dq5qf$_0; }, set: function (value) { this.entity_7dq5qf$_0 = value; } }); ClazzLogEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2681); this.mPresenter_0 = new ClazzLogEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ClazzLogEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.date = Kotlin.Long.fromNumber(closure$it.getTime()); this$ClazzLogEditComponent.dateFieldValue = Kotlin.Long.fromNumber(closure$it.getTime()); this$ClazzLogEditComponent.dateError = null; return Unit; }; } function ClazzLogEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzLogEditComponent) { return function (it) { setState(this$ClazzLogEditComponent, ClazzLogEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$ClazzLogEditComponent)); return Unit; }; } function ClazzLogEditComponent$render$lambda$lambda$lambda(this$ClazzLogEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$ClazzLogEditComponent.dateLabel_0.text); tmp$_0 = this$ClazzLogEditComponent.dateLabel_0.error; tmp$_1 = this$ClazzLogEditComponent.dateLabel_0.errorText; tmp$_2 = toDate(this$ClazzLogEditComponent.dateFieldValue); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, ClazzLogEditComponent$render$lambda$lambda$lambda$lambda(this$ClazzLogEditComponent), tmp$_2, DATE_FORMAT_DD_MMM_YYYY, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function ClazzLogEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ClazzLogEditComponent) { return function ($receiver) { this$ClazzLogEditComponent.time = timeInMillsFromStartOfDay(closure$it); this$ClazzLogEditComponent.timeFieldValue = Kotlin.Long.fromNumber(closure$it.getTime()); this$ClazzLogEditComponent.timeError = null; return Unit; }; } function ClazzLogEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzLogEditComponent) { return function (it) { setState(this$ClazzLogEditComponent, ClazzLogEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(it, this$ClazzLogEditComponent)); return Unit; }; } function ClazzLogEditComponent$render$lambda$lambda$lambda_0(this$ClazzLogEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$ClazzLogEditComponent.timeLabel_0.text); tmp$_0 = this$ClazzLogEditComponent.timeLabel_0.error; tmp$_1 = this$ClazzLogEditComponent.timeLabel_0.errorText; tmp$_2 = toDate(this$ClazzLogEditComponent.timeFieldValue); tmp$_3 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, ClazzLogEditComponent$render$lambda$lambda$lambda$lambda_0(this$ClazzLogEditComponent), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function ClazzLogEditComponent$render$lambda$lambda(this$ClazzLogEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzLogEditComponent$render$lambda$lambda$lambda(this$ClazzLogEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzLogEditComponent$render$lambda$lambda$lambda_0(this$ClazzLogEditComponent)); return Unit; }; } ClazzLogEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_9); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ClazzLogEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ClazzLogEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; ClazzLogEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzLogEditComponent', interfaces: [ClazzLogEditView, UstadEditComponent] }; function styledDiv$lambda_10(it) { return new DIV_init(html.emptyMap, it); } function ClazzLogListAttendanceComponent(mProps) { ClazzLogListAttendanceComponent$Companion_getInstance(); UstadListComponent.call(this, mProps); this.mPresenter_0 = null; this.selectedFilter = first_0(toList(ClazzLogListAttendanceComponent$Companion_getInstance().VIEW_ID_TO_NUMDAYS_MAP.entries)).key; this.graphRawData_0 = []; this.clazzTimeZone_3cql06$_0 = null; this.graphDataObserver_0 = new ObserverFnWrapper(ClazzLogListAttendanceComponent$graphDataObserver$lambda); this.graphData_hgajwx$_0 = null; this.recordAttendanceOptions_xg4knx$_0 = null; } Object.defineProperty(ClazzLogListAttendanceComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.clazzLogDao : null; } }); Object.defineProperty(ClazzLogListAttendanceComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ClazzLogListAttendanceComponent$set_ClazzLogListAttendanceComponent$clazzTimeZone$lambda(closure$value, this$ClazzLogListAttendanceComponent) { return function ($receiver) { this$ClazzLogListAttendanceComponent.clazzTimeZone_3cql06$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzLogListAttendanceComponent.prototype, 'clazzTimeZone', { configurable: true, get: function () { return this.clazzTimeZone_3cql06$_0; }, set: function (value) { setState(this, ClazzLogListAttendanceComponent$set_ClazzLogListAttendanceComponent$clazzTimeZone$lambda(value, this)); } }); Object.defineProperty(ClazzLogListAttendanceComponent.prototype, 'graphData', { configurable: true, get: function () { return this.graphData_hgajwx$_0; }, set: function (value) { var tmp$, tmp$_0; (tmp$ = this.graphData_hgajwx$_0) != null ? (tmp$.removeObserver_jsfaok$(this.graphDataObserver_0), Unit) : null; this.graphData_hgajwx$_0 = value; (tmp$_0 = this.graphData_hgajwx$_0) != null ? (tmp$_0.observe_igxi3b$(this, this.graphDataObserver_0), Unit) : null; } }); function ClazzLogListAttendanceComponent$set_ClazzLogListAttendanceComponent$recordAttendanceOptions$lambda(closure$value, this$ClazzLogListAttendanceComponent) { return function () { var tmp$; if ((tmp$ = this$ClazzLogListAttendanceComponent.fabManager) != null) { var $receiver = closure$value; tmp$.visible = !($receiver == null || $receiver.isEmpty()); }return Unit; }; } Object.defineProperty(ClazzLogListAttendanceComponent.prototype, 'recordAttendanceOptions', { configurable: true, get: function () { return this.recordAttendanceOptions_xg4knx$_0; }, set: function (value) { this.recordAttendanceOptions_xg4knx$_0 = value; this.updateUiWithStateChangeDelay_n53o35$(void 0, ClazzLogListAttendanceComponent$set_ClazzLogListAttendanceComponent$recordAttendanceOptions$lambda(value, this)); } }); ClazzLogListAttendanceComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2298)) : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.icon = 'assignment_turned_in') : null; this.mPresenter_0 = new ClazzLogListAttendancePresenter(this, this.arguments, this, this.di, this); if ((tmp$_1 = this.mPresenter_0) != null) { tmp$_1.onCreate(emptyMap()); }}; function ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda($receiver) { return Unit; } function ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda(this$ClazzLogListAttendanceComponent) { return function ($receiver) { umChart($receiver, this$ClazzLogListAttendanceComponent.graphRawData_0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda); return Unit; }; } function ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda$lambda(closure$entry, this$ClazzLogListAttendanceComponent) { return function ($receiver) { this$ClazzLogListAttendanceComponent.selectedFilter = closure$entry.key; return Unit; }; } function ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda_0(closure$entry, this$ClazzLogListAttendanceComponent) { return function (it) { var tmp$; setState(this$ClazzLogListAttendanceComponent, ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda$lambda(closure$entry, this$ClazzLogListAttendanceComponent)); (tmp$ = this$ClazzLogListAttendanceComponent.mPresenter_0) != null ? (tmp$.handleClickGraphDuration_za3lpa$(closure$entry.value), Unit) : null; return Unit; }; } function ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda_1($receiver) { var $receiver_0 = $receiver.css; var tmp$; tmp$ = get_spacingUnits(1); margin($receiver_0, void 0, get_spacingUnits(1), void 0, tmp$); return Unit; } function ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda_0(this$ClazzLogListAttendanceComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); padding($receiver_0, get_spacingUnits(2)); tmp$ = ClazzLogListAttendanceComponent$Companion_getInstance().VIEW_ID_TO_NUMDAYS_MAP.entries.iterator(); while (tmp$.hasNext()) { var entry = tmp$.next(); tmp$_0 = this$ClazzLogListAttendanceComponent.getString_za3lpa$(entry.key); tmp$_1 = entry.key === this$ClazzLogListAttendanceComponent.selectedFilter ? ChipColor$primary_getInstance() : ChipColor$default_getInstance(); umChip($receiver, tmp$_0, void 0, ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda_0(entry, this$ClazzLogListAttendanceComponent), void 0, void 0, tmp$_1, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda$lambda_1); } return Unit; }; } function ClazzLogListAttendanceComponent$renderListHeaderView$lambda(this$ClazzLogListAttendanceComponent) { return function ($receiver) { if (!(this$ClazzLogListAttendanceComponent.graphRawData_0.length === 0)) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda(this$ClazzLogListAttendanceComponent)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, ClazzLogListAttendanceComponent$renderListHeaderView$lambda$lambda_0(this$ClazzLogListAttendanceComponent)); return Unit; }; } ClazzLogListAttendanceComponent.prototype.renderListHeaderView_ss14n$ = function ($receiver) { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListHeaderView$lambda(this)); }; function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda($receiver) { umItemThumbnail($receiver, 'calendar_today', void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); return Unit; } function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda(closure$item, this$ClazzLogListAttendanceComponent) { return function ($receiver) { umTypography($receiver, formatFullDate(new Date(closure$item.logDate), this$ClazzLogListAttendanceComponent.clazzTimeZone), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda_0(closure$item, closure$total, this$ClazzLogListAttendanceComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; set_display($receiver_0, Display.flex); set_marginTop($receiver_0, get_px(5)); set_marginBottom($receiver_0, get_px(5)); set_flexDirection($receiver_0, FlexDirection.row); this$ClazzLogListAttendanceComponent.createAttendanceIndicator_0($receiver, closure$item.clazzLogNumPresent / closure$total, Color.Companion.green); this$ClazzLogListAttendanceComponent.createAttendanceIndicator_0($receiver, closure$item.clazzLogNumPartial / closure$total, Color.Companion.orange); this$ClazzLogListAttendanceComponent.createAttendanceIndicator_0($receiver, closure$item.clazzLogNumAbsent / closure$total, Color.Companion.red); return Unit; }; } function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda_1(closure$item, this$ClazzLogListAttendanceComponent) { return function ($receiver) { umTypography($receiver, this$ClazzLogListAttendanceComponent.makeStatus_0(closure$item), TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda(closure$item, this$ClazzLogListAttendanceComponent, closure$total) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda(closure$item, this$ClazzLogListAttendanceComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda_0(closure$item, closure$total, this$ClazzLogListAttendanceComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda$lambda_1(closure$item, this$ClazzLogListAttendanceComponent)); return Unit; }; } function ClazzLogListAttendanceComponent$renderListItem$lambda$lambda_0(closure$item, this$ClazzLogListAttendanceComponent, closure$total) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda$lambda(closure$item, this$ClazzLogListAttendanceComponent, closure$total)); return Unit; }; } function ClazzLogListAttendanceComponent$renderListItem$lambda(closure$item, this$ClazzLogListAttendanceComponent, closure$total) { return function ($receiver) { umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda$lambda_0(closure$item, this$ClazzLogListAttendanceComponent, closure$total)); return Unit; }; } ClazzLogListAttendanceComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var total = item.clazzLogNumPresent + item.clazzLogNumPartial + item.clazzLogNumAbsent | 0; umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ClazzLogListAttendanceComponent$renderListItem$lambda(item, this, total)); }; ClazzLogListAttendanceComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; function ClazzLogListAttendanceComponent$renderAddContentOptionsDialog$lambda$lambda(this$ClazzLogListAttendanceComponent, closure$option) { return function () { var tmp$; (tmp$ = this$ClazzLogListAttendanceComponent.mPresenter_0) != null ? (tmp$.handleClickRecordAttendance_ng2yy3$(closure$option), Unit) : null; return Unit; }; } function ClazzLogListAttendanceComponent$renderAddContentOptionsDialog$lambda$lambda_0(this$ClazzLogListAttendanceComponent) { return function ($receiver) { this$ClazzLogListAttendanceComponent.showAddEntryOptions = false; return Unit; }; } function ClazzLogListAttendanceComponent$renderAddContentOptionsDialog$lambda(this$ClazzLogListAttendanceComponent) { return function () { setState(this$ClazzLogListAttendanceComponent, ClazzLogListAttendanceComponent$renderAddContentOptionsDialog$lambda$lambda_0(this$ClazzLogListAttendanceComponent)); return Unit; }; } ClazzLogListAttendanceComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { var tmp$, tmp$_0; if (this.showAddEntryOptions) { var tmp$_1; if ((tmp$ = this.recordAttendanceOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$, 10)); var tmp$_2; tmp$_2 = tmp$.iterator(); loop_label: while (tmp$_2.hasNext()) { var item = tmp$_2.next(); var tmp$_3 = destination.add_11rb$; var optionCode = item.messageId === 2681 ? 2 : 1; var recordNew = item.messageId === 2681; var $receiver_0 = ClazzLogListAttendancePresenter$RecordAttendanceOption$values(); var first$result; first$break: do { var tmp$_4; for (tmp$_4 = 0; tmp$_4 !== $receiver_0.length; ++tmp$_4) { var element = $receiver_0[tmp$_4]; if (element.commandId === optionCode) { first$result = element; break first$break; }} throw new NoSuchElementException_init('Array contains no element matching the predicate.'); } while (false); var option = first$result; tmp$_3.call(destination, new UmDialogOptionItem(recordNew ? 'add' : 'calendar_today', item.messageId, void 0, ClazzLogListAttendanceComponent$renderAddContentOptionsDialog$lambda$lambda(this, option))); } tmp$_1 = destination; } else tmp$_1 = null; var options = (tmp$_0 = tmp$_1) != null ? tmp$_0 : emptyList(); renderDialogOptions($receiver, this.systemImpl, options, void 0, void 0, ClazzLogListAttendanceComponent$renderAddContentOptionsDialog$lambda(this)); }}; function ClazzLogListAttendanceComponent$onFabClicked$lambda(this$ClazzLogListAttendanceComponent) { return function ($receiver) { this$ClazzLogListAttendanceComponent.showAddEntryOptions = true; return Unit; }; } ClazzLogListAttendanceComponent.prototype.onFabClicked = function () { setState(this, ClazzLogListAttendanceComponent$onFabClicked$lambda(this)); }; ClazzLogListAttendanceComponent.prototype.makeStatus_0 = function (item) { var tmp$; switch (item.clazzLogStatusFlag) { case 0: tmp$ = this.getString_za3lpa$(2454); break; case 1: tmp$ = this.getString_za3lpa$(2337) + ' - ' + toString(item.cancellationNote); break; case 4: tmp$ = format(this.getString_za3lpa$(2571), [item.clazzLogNumPresent, item.clazzLogNumPartial, item.clazzLogNumAbsent]); break; default:tmp$ = ''; break; } return tmp$; }; ClazzLogListAttendanceComponent.prototype.createAttendanceIndicator_0 = function ($receiver, attendance, color) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_10); var $receiver_1 = $receiver_0.css; set_backgroundColor($receiver_1, color); set_height($receiver_1, new LinearDimension('4px')); set_width($receiver_1, new LinearDimension((attendance * 100).toString() + '%')); $receiver.child_30b5ua$($receiver_0.create()); }; ClazzLogListAttendanceComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function ClazzLogListAttendanceComponent$Companion() { ClazzLogListAttendanceComponent$Companion_instance = this; this.VIEW_ID_TO_NUMDAYS_MAP = mapOf_0([to(2307, 7), to(2359, 30), to(2423, 90)]); } ClazzLogListAttendanceComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ClazzLogListAttendanceComponent$Companion_instance = null; function ClazzLogListAttendanceComponent$Companion_getInstance() { if (ClazzLogListAttendanceComponent$Companion_instance === null) { new ClazzLogListAttendanceComponent$Companion(); }return ClazzLogListAttendanceComponent$Companion_instance; } function ClazzLogListAttendanceComponent$graphDataObserver$lambda(it) { return Unit; } ClazzLogListAttendanceComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzLogListAttendanceComponent', interfaces: [ClazzLogListAttendanceView, UstadListComponent] }; function ClazzMemberListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; this.addNewStudentText_0 = this.getString_za3lpa$(2076); this.teacherSectionHeaderText_0 = this.getString_za3lpa$(2403); this.studentSectionHeaderText_0 = this.getString_za3lpa$(2075); this.students_0 = emptyList(); this.studentListObserver_0 = new ObserverFnWrapper(ClazzMemberListComponent$studentListObserver$lambda(this)); this.studentList_aq77zt$_0 = null; this.pendingStudents_0 = emptyList(); this.pendingStudentObserver_0 = new ObserverFnWrapper(ClazzMemberListComponent$pendingStudentObserver$lambda(this)); this.pendingStudentList_wxm69s$_0 = null; this.addTeacherVisible_xgzwqn$_0 = false; this.addStudentVisible_5igvdm$_0 = false; this.termMap_h73agu$_0 = null; this.filterByClazzUid_0 = L0; } Object.defineProperty(ClazzMemberListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.personDao : null; } }); Object.defineProperty(ClazzMemberListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ClazzMemberListComponent.prototype, 'studentList', { configurable: true, get: function () { return this.studentList_aq77zt$_0; }, set: function (value) { this.studentList_aq77zt$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.studentListObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.studentListObserver_0), Unit) : null; } }); Object.defineProperty(ClazzMemberListComponent.prototype, 'pendingStudentList', { configurable: true, get: function () { return this.pendingStudentList_wxm69s$_0; }, set: function (value) { this.pendingStudentList_wxm69s$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.pendingStudentObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.pendingStudentObserver_0), Unit) : null; } }); Object.defineProperty(ClazzMemberListComponent.prototype, 'addTeacherVisible', { configurable: true, get: function () { return this.addTeacherVisible_xgzwqn$_0; }, set: function (value) { this.addTeacherVisible_xgzwqn$_0 = value; this.showCreateNewItem = value; } }); function ClazzMemberListComponent$set_ClazzMemberListComponent$addStudentVisible$lambda(closure$value, this$ClazzMemberListComponent) { return function ($receiver) { this$ClazzMemberListComponent.addStudentVisible_5igvdm$_0 = closure$value; return Unit; }; } Object.defineProperty(ClazzMemberListComponent.prototype, 'addStudentVisible', { configurable: true, get: function () { return this.addStudentVisible_5igvdm$_0; }, set: function (value) { setState(this, ClazzMemberListComponent$set_ClazzMemberListComponent$addStudentVisible$lambda(value, this)); } }); function ClazzMemberListComponent$set_ClazzMemberListComponent$termMap$lambda(closure$value, this$ClazzMemberListComponent) { return function ($receiver) { this$ClazzMemberListComponent.addNewEntryText = toString(closure$value != null ? closure$value.get_11rb$(controller.TerminologyKeys.ADD_TEACHER_KEY) : null); this$ClazzMemberListComponent.teacherSectionHeaderText_0 = toString(closure$value != null ? closure$value.get_11rb$(controller.TerminologyKeys.TEACHERS_KEY) : null); this$ClazzMemberListComponent.addNewStudentText_0 = toString(closure$value != null ? closure$value.get_11rb$(controller.TerminologyKeys.ADD_STUDENT_KEY) : null); this$ClazzMemberListComponent.studentSectionHeaderText_0 = toString(closure$value != null ? closure$value.get_11rb$(controller.TerminologyKeys.STUDENTS_KEY) : null); return Unit; }; } Object.defineProperty(ClazzMemberListComponent.prototype, 'termMap', { configurable: true, get: function () { return this.termMap_h73agu$_0; }, set: function (value) { this.termMap_h73agu$_0 = value; setState(this, ClazzMemberListComponent$set_ClazzMemberListComponent$termMap$lambda(value, this)); } }); ClazzMemberListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1; UstadListComponent.prototype.onCreateView.call(this); this.showEmptyState = false; this.addNewEntryText = this.getString_za3lpa$(2401); this.filterByClazzUid_0 = (tmp$_0 = (tmp$ = this.arguments.get_11rb$(UstadView.Companion.ARG_CLAZZUID)) != null ? toLong(tmp$) : null) != null ? tmp$_0 : L0; this.mPresenter_0 = new ClazzMemberListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_1 = this.mPresenter_0) != null) { tmp$_1.onCreate(emptyMap()); }}; ClazzMemberListComponent.prototype.renderListHeaderView_ss14n$ = function ($receiver) { renderListSectionTitle($receiver, this.teacherSectionHeaderText_0); }; ClazzMemberListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { renderListItemWithPersonAttendanceAndPendingRequests($receiver, item.personUid, item.fullName(), void 0, item.attendance, this.getString_za3lpa$(2576), false); }; function ClazzMemberListComponent$renderListFooterView$lambda(this$ClazzMemberListComponent) { return function ($receiver) { this$ClazzMemberListComponent.createMemberList_0($receiver, this$ClazzMemberListComponent.students_0, this$ClazzMemberListComponent.studentSectionHeaderText_0, 1000, this$ClazzMemberListComponent.addNewStudentText_0, this$ClazzMemberListComponent.addStudentVisible); if (!this$ClazzMemberListComponent.pendingStudents_0.isEmpty()) { this$ClazzMemberListComponent.createMemberList_0($receiver, this$ClazzMemberListComponent.pendingStudents_0, this$ClazzMemberListComponent.getString_za3lpa$(2652), 1002, void 0, this$ClazzMemberListComponent.addTeacherVisible, true); }return Unit; }; } ClazzMemberListComponent.prototype.renderListFooterView_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing2_getInstance(), void 0, void 0, ClazzMemberListComponent$renderListFooterView$lambda(this)); }; ClazzMemberListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; ClazzMemberListComponent.prototype.handleClickAddNewEntry = function () { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handlePickNewMemberClicked_za3lpa$(1001), Unit) : null; }; function ClazzMemberListComponent$createMemberList$lambda$lambda(closure$sectionTitle) { return function ($receiver) { renderListSectionTitle($receiver, closure$sectionTitle); return Unit; }; } function ClazzMemberListComponent$createMemberList$lambda$lambda$lambda(this$ClazzMemberListComponent, closure$role) { return function () { var tmp$; (tmp$ = this$ClazzMemberListComponent.mPresenter_0) != null ? (tmp$.handlePickNewMemberClicked_za3lpa$(closure$role), Unit) : null; return Unit; }; } function ClazzMemberListComponent$createMemberList$lambda$lambda$lambda$lambda(this$ClazzMemberListComponent) { return function (entry) { this$ClazzMemberListComponent.handleClickEntry_11rc$(entry); return Unit; }; } function ClazzMemberListComponent$createMemberList$lambda$lambda_0(closure$showCreateNewItem, closure$createNewLabel, this$ClazzMemberListComponent, closure$role, closure$members, closure$pending) { return function ($receiver) { var tmp$; var createNewItem = new CreateNewItem(closure$showCreateNewItem, closure$createNewLabel, ClazzMemberListComponent$createMemberList$lambda$lambda$lambda(this$ClazzMemberListComponent, closure$role)); if ((tmp$ = this$ClazzMemberListComponent.mPresenter_0) != null) { renderMembers($receiver, tmp$, closure$members, createNewItem, closure$pending, ClazzMemberListComponent$createMemberList$lambda$lambda$lambda$lambda(this$ClazzMemberListComponent)); }return Unit; }; } function ClazzMemberListComponent$createMemberList$lambda(closure$sectionTitle, closure$showCreateNewItem, closure$createNewLabel, this$ClazzMemberListComponent, closure$role, closure$members, closure$pending) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzMemberListComponent$createMemberList$lambda$lambda(closure$sectionTitle)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ClazzMemberListComponent$createMemberList$lambda$lambda_0(closure$showCreateNewItem, closure$createNewLabel, this$ClazzMemberListComponent, closure$role, closure$members, closure$pending)); return Unit; }; } ClazzMemberListComponent.prototype.createMemberList_0 = function ($receiver, members, sectionTitle, role, createNewLabel, showCreateNewItem, pending) { if (createNewLabel === void 0) createNewLabel = ''; if (showCreateNewItem === void 0) showCreateNewItem = true; if (pending === void 0) pending = false; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing1_getInstance(), void 0, void 0, ClazzMemberListComponent$createMemberList$lambda(sectionTitle, showCreateNewItem, createNewLabel, this, role, members, pending)); }; ClazzMemberListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function ClazzMemberListComponent$studentListObserver$lambda$lambda(closure$it, this$ClazzMemberListComponent) { return function ($receiver) { this$ClazzMemberListComponent.students_0 = closure$it; return Unit; }; } function ClazzMemberListComponent$studentListObserver$lambda(this$ClazzMemberListComponent) { return function (it) { setState(this$ClazzMemberListComponent, ClazzMemberListComponent$studentListObserver$lambda$lambda(it, this$ClazzMemberListComponent)); return Unit; }; } function ClazzMemberListComponent$pendingStudentObserver$lambda$lambda(closure$it, this$ClazzMemberListComponent) { return function ($receiver) { this$ClazzMemberListComponent.pendingStudents_0 = closure$it; return Unit; }; } function ClazzMemberListComponent$pendingStudentObserver$lambda(this$ClazzMemberListComponent) { return function (it) { setState(this$ClazzMemberListComponent, ClazzMemberListComponent$pendingStudentObserver$lambda$lambda(it, this$ClazzMemberListComponent)); return Unit; }; } ClazzMemberListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzMemberListComponent', interfaces: [ClazzMemberListView, UstadListComponent] }; function MemberListProps() { } MemberListProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'MemberListProps', interfaces: [SimpleListProps] }; function MembersListComponent(mProps) { UstadSimpleList.call(this, mProps); } function MembersListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function MembersListComponent$renderListItem$lambda$lambda_0(closure$presenter, closure$item) { return function () { closure$presenter.handleClickPendingRequest_7mxlo2$(closure$item, true); return Unit; }; } function MembersListComponent$renderListItem$lambda$lambda_1(closure$presenter, closure$item) { return function () { closure$presenter.handleClickPendingRequest_7mxlo2$(closure$item, false); return Unit; }; } function MembersListComponent$renderListItem$lambda(closure$onClick, this$MembersListComponent, closure$item) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; $receiver.attrs.onClick = MembersListComponent$renderListItem$lambda$lambda(closure$onClick); var presenter = Kotlin.isType(tmp$ = this$MembersListComponent.props.presenter, ClazzMemberListPresenter) ? tmp$ : throwCCE(); tmp$_0 = closure$item.personUid; tmp$_1 = closure$item.fullName(); tmp$_2 = this$MembersListComponent.props.pending; tmp$_3 = closure$item.attendance; tmp$_4 = this$MembersListComponent.getString_za3lpa$(2576); tmp$_5 = MembersListComponent$renderListItem$lambda$lambda_0(presenter, closure$item); renderListItemWithPersonAttendanceAndPendingRequests($receiver, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, void 0, MembersListComponent$renderListItem$lambda$lambda_1(presenter, closure$item), tmp$_5); return Unit; }; } MembersListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, MembersListComponent$renderListItem$lambda(onClick, this, item)); }; MembersListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'MembersListComponent', interfaces: [UstadSimpleList] }; function renderMembers$lambda(closure$members, closure$onEntryClicked, closure$createNewItem, closure$presenter, closure$pending) { return function ($receiver) { $receiver.attrs.entries = closure$members; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.presenter = closure$presenter; $receiver.attrs.pending = closure$pending; return Unit; }; } function renderMembers($receiver, presenter, members, createNewItem, pending, onEntryClicked) { if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (pending === void 0) pending = false; if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(MembersListComponent), renderMembers$lambda(members, onEntryClicked, createNewItem, presenter, pending)); } function CommentsListComponent(mProps) { UstadSimpleList.call(this, mProps); } function CommentsListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function CommentsListComponent$renderListItem$lambda(closure$onClick, closure$item, this$CommentsListComponent) { return function ($receiver) { var tmp$, tmp$_0; $receiver.attrs.onClick = CommentsListComponent$renderListItem$lambda$lambda(closure$onClick); renderListItemWithPersonTitleDescriptionAndAvatarOnLeft($receiver, (tmp$_0 = (tmp$ = closure$item.commentsPerson) != null ? tmp$.fullName() : null) != null ? tmp$_0 : '', closure$item.commentsText, 'person', this$CommentsListComponent.systemImpl, this$CommentsListComponent.accountManager, $receiver); return Unit; }; } CommentsListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, CommentsListComponent$renderListItem$lambda(onClick, item, this)); }; CommentsListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CommentsListComponent', interfaces: [UstadSimpleList] }; function renderComments$lambda(closure$entries, closure$onEntryClicked) { return function ($receiver) { $receiver.attrs.entries = closure$entries; $receiver.attrs.hideDivider = true; FormControlComponent$div_getInstance(); $receiver.attrs.onEntryClicked = closure$onEntryClicked; return Unit; }; } function renderComments($receiver, entries, onEntryClicked) { if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(CommentsListComponent), renderComments$lambda(entries, onEntryClicked)); } function ContentEntryDetailAttemptsListComponent(props) { UstadListComponent.call(this, props); this.mPresenter_0 = null; } Object.defineProperty(ContentEntryDetailAttemptsListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ContentEntryDetailAttemptsListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.statementDao : null; } }); ContentEntryDetailAttemptsListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new ContentEntryDetailAttemptsListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; ContentEntryDetailAttemptsListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { renderPersonWithAttemptProgress($receiver, item, this.systemImpl); }; ContentEntryDetailAttemptsListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.onClickPersonWithStatementDisplay_nhm5s1$(entry), Unit) : null; }; ContentEntryDetailAttemptsListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; ContentEntryDetailAttemptsListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContentEntryDetailAttemptsListComponent', interfaces: [ContentEntryDetailAttemptsListView, UstadListComponent] }; function ContentEntryDetailComponent(mProps) { ContentEntryDetailComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.tabsToRender_0 = null; this.tabs_2i2iqg$_0 = null; this.entity_bbtkrx$_0 = null; } Object.defineProperty(ContentEntryDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ContentEntryDetailComponent.prototype, 'tabs', { configurable: true, get: function () { return this.tabs_2i2iqg$_0; }, set: function (value) { this.tabs_2i2iqg$_0 = value; var tmp$; if (value != null) { var destination = ArrayList_init(collectionSizeOrDefault(value, 10)); var tmp$_0, tmp$_0_0; var index = 0; tmp$_0 = value.iterator(); while (tmp$_0.hasNext()) { var item = tmp$_0.next(); var tmp$_1 = destination.add_11rb$; var index_0 = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); var tmp$_2; var messageId = (tmp$_2 = ContentEntryDetailComponent$Companion_getInstance().viewNameToTitleMap.get_11rb$(substringBefore(item, '?'))) != null ? tmp$_2 : 0; var tmp$_3 = substringBefore(item, '?'); var startIndex = lastIndexOf(item, '?'); tmp$_1.call(destination, new UmTab(index_0, tmp$_3, urlSearchParamsToMap(item.substring(startIndex)), this.getString_za3lpa$(messageId))); } tmp$ = destination; } else tmp$ = null; this.tabsToRender_0 = tmp$; } }); Object.defineProperty(ContentEntryDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_bbtkrx$_0; }, set: function (value) { this.entity_bbtkrx$_0 = value; this.ustadComponentTitle = value != null ? value.title : null; } }); ContentEntryDetailComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new ContentEntryDetailPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; ContentEntryDetailComponent.prototype.render_ss14n$ = function ($receiver) { var tmp$; if ((tmp$ = this.tabsToRender_0) != null) { var tmp$_0, tmp$_1; renderTabs($receiver, tmp$, true, (tmp$_1 = (tmp$_0 = this.arguments.get_11rb$(UstadView.Companion.ARG_ACTIVE_TAB_INDEX)) != null ? toInt(tmp$_0) : null) != null ? tmp$_1 : 0); }}; ContentEntryDetailComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function ContentEntryDetailComponent$Companion() { ContentEntryDetailComponent$Companion_instance = this; this.viewNameToTitleMap = mapOf_0([to(ContentEntryDetailOverviewView.Companion.VIEW_NAME, 2562), to(ContentEntryDetailAttemptsListView.Companion.VIEW_NAME, 2116)]); } ContentEntryDetailComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ContentEntryDetailComponent$Companion_instance = null; function ContentEntryDetailComponent$Companion_getInstance() { if (ContentEntryDetailComponent$Companion_instance === null) { new ContentEntryDetailComponent$Companion(); }return ContentEntryDetailComponent$Companion_instance; } ContentEntryDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContentEntryDetailComponent', interfaces: [ContentEntryDetailView, UstadDetailComponent] }; function styledDiv$lambda_11(it) { return new DIV_init(html.emptyMap, it); } function ContentEntryDetailOverviewComponent(mProps) { ContentEntryDetailOverviewComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.translations_0 = emptyList(); this.observer_0 = new ObserverFnWrapper(ContentEntryDetailOverviewComponent$observer$lambda(this)); this.availableTranslationsList_oxir9q$_0 = null; this.scoreProgress_xvpwnc$_0 = null; this.locallyAvailable_fwkd58$_0 = false; this.markCompleteVisible_yl1xaj$_0 = false; this.contentEntryButtons_a0kxb$_0 = null; this.activeContentJobItems_y8x27z$_0 = null; this.entity_up1x46$_0 = null; } Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'availableTranslationsList', { configurable: true, get: function () { return this.availableTranslationsList_oxir9q$_0; }, set: function (value) { this.availableTranslationsList_oxir9q$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.observer_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.observer_0), Unit) : null; } }); Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'scoreProgress', { configurable: true, get: function () { return this.scoreProgress_xvpwnc$_0; }, set: function (value) { this.scoreProgress_xvpwnc$_0 = value; } }); Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'locallyAvailable', { configurable: true, get: function () { return this.locallyAvailable_fwkd58$_0; }, set: function (value) { this.locallyAvailable_fwkd58$_0 = value; } }); function ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$markCompleteVisible$lambda(closure$value, this$ContentEntryDetailOverviewComponent) { return function ($receiver) { this$ContentEntryDetailOverviewComponent.markCompleteVisible_yl1xaj$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'markCompleteVisible', { configurable: true, get: function () { return this.markCompleteVisible_yl1xaj$_0; }, set: function (value) { setState(this, ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$markCompleteVisible$lambda(value, this)); } }); function ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$contentEntryButtons$lambda(closure$value, this$ContentEntryDetailOverviewComponent) { return function ($receiver) { this$ContentEntryDetailOverviewComponent.contentEntryButtons_a0kxb$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'contentEntryButtons', { configurable: true, get: function () { return this.contentEntryButtons_a0kxb$_0; }, set: function (value) { setState(this, ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$contentEntryButtons$lambda(value, this)); } }); function ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$activeContentJobItems$lambda(closure$value, this$ContentEntryDetailOverviewComponent) { return function ($receiver) { this$ContentEntryDetailOverviewComponent.activeContentJobItems_y8x27z$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'activeContentJobItems', { configurable: true, get: function () { return this.activeContentJobItems_y8x27z$_0; }, set: function (value) { setState(this, ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$activeContentJobItems$lambda(value, this)); } }); function ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$entity$lambda(closure$value, this$ContentEntryDetailOverviewComponent) { return function ($receiver) { this$ContentEntryDetailOverviewComponent.entity_up1x46$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryDetailOverviewComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_up1x46$_0; }, set: function (value) { setState(this, ContentEntryDetailOverviewComponent$set_ContentEntryDetailOverviewComponent$entity$lambda(value, this)); } }); ContentEntryDetailOverviewComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new ContentEntryDetailOverviewPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda(this$ContentEntryDetailOverviewComponent) { return function ($receiver, attachmentSrc) { var tmp$; umEntityAvatar($receiver, attachmentSrc, ((tmp$ = this$ContentEntryDetailOverviewComponent.entity) != null ? tmp$.leaf : null) === true ? Util_getInstance().ASSET_BOOK : Util_getInstance().ASSET_FOLDER, void 0, void 0, void 0, false); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().detailContentProgress($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_1(this$ContentEntryDetailOverviewComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1; if (((tmp$ = this$ContentEntryDetailOverviewComponent.contentEntryButtons) != null ? tmp$.showDownloadButton : null) === true) { (tmp$_0 = this$ContentEntryDetailOverviewComponent.mPresenter_0) != null ? (tmp$_0.handleClickDownloadButton(), Unit) : null; } else { (tmp$_1 = this$ContentEntryDetailOverviewComponent.mPresenter_0) != null ? (tmp$_1.handleClickOpenButton(), Unit) : null; } return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().contentEntryDetailOverviewComponentOpenBtn($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; set_flexDirection($receiver.css, FlexDirection.column); withAttachmentLocalUrlLookup($receiver, (tmp$_0 = (tmp$ = this$ContentEntryDetailOverviewComponent.entity) != null ? tmp$.contentEntryUid : null) != null ? tmp$_0 : L0, ContentEntryDetailOverviewComponent$Companion_getInstance().ATTACHMENT_URI_LOOKUP_ADAPTER, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda(this$ContentEntryDetailOverviewComponent)); if (((tmp$_2 = (tmp$_1 = this$ContentEntryDetailOverviewComponent.scoreProgress) != null ? tmp$_1.progress : null) != null ? tmp$_2 : 0) > 0) { umLinearProgress($receiver, (tmp$_4 = (tmp$_3 = this$ContentEntryDetailOverviewComponent.scoreProgress) != null ? tmp$_3.progress : null) != null ? tmp$_4 : 0, void 0, ProgressVariant$determinate_getInstance(), void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_0); }var buttonLabelId = ((tmp$_5 = this$ContentEntryDetailOverviewComponent.contentEntryButtons) != null ? tmp$_5.showDownloadButton : null) === true ? 2011 : 2084; tmp$_6 = this$ContentEntryDetailOverviewComponent.getString_za3lpa$(buttonLabelId); tmp$_7 = ButtonSize$large_getInstance(); umButton($receiver, tmp$_6, UMColor$secondary_getInstance(), ButtonVariant$contained_getInstance(), void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_1(this$ContentEntryDetailOverviewComponent), tmp$_7, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_2); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = this$ContentEntryDetailOverviewComponent.entity) != null ? tmp$.title : null, TypographyVariant$h4_getInstance(), void 0, true, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0; var this$ContentEntryDetailOverviewComponent_0 = this$ContentEntryDetailOverviewComponent; var $receiver_0 = $receiver.css; var tmp$_1, tmp$_2; var $receiver_1 = (tmp$_1 = this$ContentEntryDetailOverviewComponent_0.entity) != null ? tmp$_1.author : null; tmp$_2 = !($receiver_1 == null || $receiver_1.length === 0); set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(tmp$_2)); var tmp$_3; tmp$_3 = (tmp$_0 = (tmp$ = this$ContentEntryDetailOverviewComponent.entity) != null ? tmp$.author : null) != null ? joinString(this$ContentEntryDetailOverviewComponent.getString_za3lpa$(2167), [tmp$_0]) : null; umTypography($receiver, tmp$_3, TypographyVariant$h6_getInstance(), void 0, true, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0; var this$ContentEntryDetailOverviewComponent_0 = this$ContentEntryDetailOverviewComponent; var $receiver_0 = $receiver.css; var tmp$_1, tmp$_2; var $receiver_1 = (tmp$_1 = this$ContentEntryDetailOverviewComponent_0.entity) != null ? tmp$_1.publisher : null; tmp$_2 = !($receiver_1 == null || $receiver_1.length === 0); set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(tmp$_2)); var tmp$_3; tmp$_3 = (tmp$_0 = (tmp$ = this$ContentEntryDetailOverviewComponent.entity) != null ? tmp$.publisher : null) != null ? joinString(this$ContentEntryDetailOverviewComponent.getString_za3lpa$(2168), [':', tmp$_0]) : null; umTypography($receiver, tmp$_3, TypographyVariant$subtitle1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0; var this$ContentEntryDetailOverviewComponent_0 = this$ContentEntryDetailOverviewComponent; var $receiver_0 = $receiver.css; var tmp$_1, tmp$_2; var $receiver_1 = (tmp$_1 = this$ContentEntryDetailOverviewComponent_0.entity) != null ? tmp$_1.licenseName : null; tmp$_2 = !($receiver_1 == null || $receiver_1.length === 0); set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(tmp$_2)); var tmp$_3; if ((tmp$_0 = (tmp$ = this$ContentEntryDetailOverviewComponent.entity) != null ? tmp$.licenseName : null) != null) { var this$ContentEntryDetailOverviewComponent_1 = this$ContentEntryDetailOverviewComponent; var tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$_3 = joinString(joinString(this$ContentEntryDetailOverviewComponent_1.getString_za3lpa$(2169), [tmp$_0]), [' ' + ((tmp$_7 = (tmp$_6 = (tmp$_5 = (tmp$_4 = this$ContentEntryDetailOverviewComponent_1.entity) != null ? tmp$_4.container : null) != null ? tmp$_5.fileSize : null) != null ? ', ' + util.UMFileUtil.formatFileSize_s8cxhz$(tmp$_6) : null) != null ? tmp$_7 : '')]); } else tmp$_3 = null; umTypography($receiver, tmp$_3, TypographyVariant$subtitle1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { set_marginTop($receiver.css, get_px(4)); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { umIcon($receiver, 'emoji_events', void 0, void 0, StyleManager_getInstance().name + '-contentEntryListContentTyeIconClass', ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { umAvatar($receiver, void 0, void 0, void 0, void 0, void 0, void 0, StyleManager_getInstance().name + '-contentEntryListContentAvatarClass', ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$; umTypography($receiver, toString((tmp$ = this$ContentEntryDetailOverviewComponent.scoreProgress) != null ? calculateScoreWithPenalty(tmp$) : null) + '%', TypographyVariant$subtitle1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0; umTypography($receiver, '( ' + toString((tmp$ = this$ContentEntryDetailOverviewComponent.scoreProgress) != null ? tmp$.resultScore : null) + ' / ' + toString((tmp$_0 = this$ContentEntryDetailOverviewComponent.scoreProgress) != null ? tmp$_0.resultMax : null) + ' )', TypographyVariant$subtitle1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda); umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent)); umItem($receiver, GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryDetailOverviewComponent)); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var this$ContentEntryDetailOverviewComponent_0 = this$ContentEntryDetailOverviewComponent; var $receiver_0 = $receiver.css; var tmp$, tmp$_0, tmp$_1; tmp$_1 = ((tmp$_0 = (tmp$ = this$ContentEntryDetailOverviewComponent_0.scoreProgress) != null ? tmp$.progress : null) != null ? tmp$_0 : 0) > 0; set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(tmp$_1)); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent)); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryDetailOverviewComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryDetailOverviewComponent)); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var tmp$; var this$ContentEntryDetailOverviewComponent_0 = this$ContentEntryDetailOverviewComponent; var $receiver_0 = $receiver.css; var tmp$_0, tmp$_1; set_paddingTop($receiver_0, get_spacingUnits(2)); var $receiver_1 = (tmp$_0 = this$ContentEntryDetailOverviewComponent_0.entity) != null ? tmp$_0.description : null; tmp$_1 = !($receiver_1 == null || $receiver_1.length === 0); set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(tmp$_1)); umTypography($receiver, this$ContentEntryDetailOverviewComponent.getString_za3lpa$(2047), TypographyVariant$caption_getInstance(), void 0, void 0, void 0, void 0, true, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4); umTypography($receiver, (tmp$ = this$ContentEntryDetailOverviewComponent.entity) != null ? tmp$.description : null, void 0, void 0, void 0, void 0, void 0, true, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6(this$ContentEntryDetailOverviewComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleOnClickMarkComplete(), Unit) : null; return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_7(this$ContentEntryDetailOverviewComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleOnClickConfirmDelete(), Unit) : null; return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_8(this$ContentEntryDetailOverviewComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleOnClickManageDownload(), Unit) : null; return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { StyleManager_getInstance().defaultPaddingTop($receiver.css); renderTopMainAction($receiver, 'library_add_check', this$ContentEntryDetailOverviewComponent.getString_za3lpa$(2599), GridSize$cells4_getInstance(), GridSize$cells4_getInstance(), this$ContentEntryDetailOverviewComponent.markCompleteVisible, TypographyVariant$body2_getInstance(), void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6(this$ContentEntryDetailOverviewComponent)); renderTopMainAction($receiver, 'delete', this$ContentEntryDetailOverviewComponent.getString_za3lpa$(2020), GridSize$cells4_getInstance(), GridSize$cells4_getInstance(), this$ContentEntryDetailOverviewComponent.markCompleteVisible, TypographyVariant$body2_getInstance(), void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_7(this$ContentEntryDetailOverviewComponent)); renderTopMainAction($receiver, 'download', this$ContentEntryDetailOverviewComponent.getString_za3lpa$(2703), GridSize$cells4_getInstance(), GridSize$cells4_getInstance(), this$ContentEntryDetailOverviewComponent.markCompleteVisible, TypographyVariant$body2_getInstance(), void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_8(this$ContentEntryDetailOverviewComponent)); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_9($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryDetailOverviewComponent, closure$translation) { return function (it) { var tmp$, tmp$_0, tmp$_1, tmp$_2; tmp$_2 = this$ContentEntryDetailOverviewComponent.mPresenter_0; tmp$_1 = (tmp$_0 = (tmp$ = closure$translation.language) != null ? tmp$.langUid : null) != null ? tmp$_0 : L0; tmp$_2 != null ? (tmp$_2.handleOnTranslationClicked_s8cxhz$(tmp$_1), Unit) : null; return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3($receiver) { margin_0($receiver.css, get_spacingUnits(1)); return Unit; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { var this$ContentEntryDetailOverviewComponent_0 = this$ContentEntryDetailOverviewComponent; set_display($receiver.css, StyleManager_getInstance().displayProperty_dqye30$(!this$ContentEntryDetailOverviewComponent_0.translations_0.isEmpty())); umTypography($receiver, this$ContentEntryDetailOverviewComponent.getString_za3lpa$(2136), TypographyVariant$caption_getInstance(), void 0, void 0, void 0, void 0, true, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_9); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_11); var this$ContentEntryDetailOverviewComponent_1 = this$ContentEntryDetailOverviewComponent; StyleManager_getInstance().chipSetFilter($receiver_0.css); var tmp$; tmp$ = this$ContentEntryDetailOverviewComponent_1.translations_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var tmp$_0; umChip($receiver_0, toString((tmp$_0 = element.language) != null ? tmp$_0.name : null), void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryDetailOverviewComponent_1, element), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3); } $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_3(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$ContentEntryDetailOverviewComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryDetailOverviewComponent)); umGridContainer($receiver, GridSpacing$spacing3_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryDetailOverviewComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryDetailOverviewComponent)); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ContentEntryDetailOverviewComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ContentEntryDetailOverviewComponent)); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { StyleManager_getInstance().entryDetailRightSection($receiver.css); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda$lambda_3(this$ContentEntryDetailOverviewComponent)); return Unit; }; } function ContentEntryDetailOverviewComponent$render$lambda$lambda(this$ContentEntryDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda(this$ContentEntryDetailOverviewComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda$lambda_0(this$ContentEntryDetailOverviewComponent)); return Unit; }; } ContentEntryDetailOverviewComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_11); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ContentEntryDetailOverviewComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ContentEntryDetailOverviewComponent.prototype.onFabClicked = function () { var tmp$; UstadDetailComponent.prototype.onFabClicked.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEdit(), Unit) : null; }; ContentEntryDetailOverviewComponent.prototype.showDownloadDialog_y0zsll$ = function (args) { throw new NotImplementedError_init('An operation is not implemented: ' + 'showDownloadDialog: Not yet implemented'); }; ContentEntryDetailOverviewComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ContentEntryDetailOverviewComponent$Companion() { ContentEntryDetailOverviewComponent$Companion_instance = this; this.ATTACHMENT_URI_LOOKUP_ADAPTER = new AttachmentImageLookupAdapter(ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda); } function ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda$ObjectLiteral(closure$db, closure$entityUid) { DoorMediatorLiveData.call(this); this.addSource_hfkt56$(closure$db.contentEntryPictureDao.findByContentEntryUidLive_s8cxhz$(closure$entityUid), this); } ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype.onChanged_11rb$ = function (t) { this.postValue_11rb$(t != null ? t.cepUri : null); }; ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [DoorObserver, DoorMediatorLiveData] }; function ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda(db, entityUid) { return new ContentEntryDetailOverviewComponent$Companion$ATTACHMENT_URI_LOOKUP_ADAPTER$lambda$ObjectLiteral(db, entityUid); } ContentEntryDetailOverviewComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ContentEntryDetailOverviewComponent$Companion_instance = null; function ContentEntryDetailOverviewComponent$Companion_getInstance() { if (ContentEntryDetailOverviewComponent$Companion_instance === null) { new ContentEntryDetailOverviewComponent$Companion(); }return ContentEntryDetailOverviewComponent$Companion_instance; } function ContentEntryDetailOverviewComponent$observer$lambda$lambda(closure$it, this$ContentEntryDetailOverviewComponent) { return function ($receiver) { this$ContentEntryDetailOverviewComponent.translations_0 = closure$it; return Unit; }; } function ContentEntryDetailOverviewComponent$observer$lambda(this$ContentEntryDetailOverviewComponent) { return function (it) { if (this$ContentEntryDetailOverviewComponent.translations_0.isEmpty()) return; setState(this$ContentEntryDetailOverviewComponent, ContentEntryDetailOverviewComponent$observer$lambda$lambda(it, this$ContentEntryDetailOverviewComponent)); return Unit; }; } ContentEntryDetailOverviewComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContentEntryDetailOverviewComponent', interfaces: [ContentEntryDetailOverviewView, UstadDetailComponent] }; function styledDiv$lambda_12(it) { return new DIV_init(html.emptyMap, it); } function ContentEntryEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.descLabel_0 = new FieldLabel(this.getString_za3lpa$(2047)); this.minScoreLabel_0 = new FieldLabel(this.getString_za3lpa$(2595)); this.authorLabel_0 = new FieldLabel(this.getString_za3lpa$(2167)); this.publisherLabel_0 = new FieldLabel(this.getString_za3lpa$(2168)); this.languageLabel_0 = new FieldLabel(this.getString_za3lpa$(2053)); this.doNotShowBeforeLabel_0 = new FieldLabel(clean(this.getString_za3lpa$(2845))); this.startTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.deadlineDateLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2611)); this.deadlineTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.gracePeriodDateLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2591)); this.gracePeriodTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.completionCriteriaLabel_0 = new FieldLabel(this.getString_za3lpa$(2598)); this.penaltyLabel_0 = new FieldLabel(this.getString_za3lpa$(2590)); this.licenseLabel_0 = new FieldLabel(this.getString_za3lpa$(2103)); this.maxPointsLabel_0 = new FieldLabel(this.getString_za3lpa$(2871)); this.contentEntryPicture_pykgc2$_0 = null; this.licenceOptions_rpcgpc$_0 = null; this.completionCriteriaOptions_f59ioc$_0 = null; this.selectedStorageIndex_iwz1yj$_0 = 0; this.titleErrorEnabled_hr0qfu$_0 = false; this.fileImportErrorVisible_kts1ma$_0 = false; this.storageOptions_qxn3ju$_0 = null; this.metadataResult_72vkq7$_0 = null; this.compressionEnabled_kbu5ni$_0 = false; this.videoDimensions_o1mcdr$_0 = new Pair(0, 0); this.showVideoPreview = false; this.showWebPreview_0 = false; this.videoUri_hqbqzw$_0 = null; this.showUpdateContentButton_ofuqr6$_0 = false; this.caGracePeriodError_pibq9c$_0 = null; this.caDeadlineError_flx58b$_0 = null; this.caStartDateError_mzz87b$_0 = null; this.caMaxPointsError_mka66a$_0 = null; this.startDate_i3t389$_0 = L0; this.startTime_huvf14$_0 = L0; this.deadlineDate_vtwb4n$_0 = L0; this.deadlineTime_w2tzbs$_0 = L0; this.gracePeriodDate_hqmaj4$_0 = L0; this.gracePeriodTime_hzjyq9$_0 = L0; this.gracePeriodVisiblity_3qq1wb$_0 = false; this.timeZone_3saz7g$_0 = null; this.fieldsEnabled_j5wdv5$_0 = false; this.minScoreVisible_3xujmj$_0 = false; this.entity_iba2d6$_0 = null; this.updateItemOptionsDialogVisible_h4irf9$_0 = false; } Object.defineProperty(ContentEntryEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$contentEntryPicture$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.contentEntryPicture_pykgc2$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'contentEntryPicture', { configurable: true, get: function () { return this.contentEntryPicture_pykgc2$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$contentEntryPicture$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$licenceOptions$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.licenceOptions_rpcgpc$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'licenceOptions', { configurable: true, get: function () { return this.licenceOptions_rpcgpc$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$licenceOptions$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$completionCriteriaOptions$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.completionCriteriaOptions_f59ioc$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'completionCriteriaOptions', { configurable: true, get: function () { return this.completionCriteriaOptions_f59ioc$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$completionCriteriaOptions$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$selectedStorageIndex$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.selectedStorageIndex_iwz1yj$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'selectedStorageIndex', { configurable: true, get: function () { return this.selectedStorageIndex_iwz1yj$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$selectedStorageIndex$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$titleErrorEnabled$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.titleErrorEnabled_hr0qfu$_0 = closure$value; if (closure$value) { this$ContentEntryEditComponent.titleLabel_0 = this$ContentEntryEditComponent.titleLabel_0.copy_d8n4vg$(void 0, this$ContentEntryEditComponent.getString_za3lpa$(2127)); }return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'titleErrorEnabled', { configurable: true, get: function () { return this.titleErrorEnabled_hr0qfu$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$titleErrorEnabled$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$fileImportErrorVisible$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.fileImportErrorVisible_kts1ma$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'fileImportErrorVisible', { configurable: true, get: function () { return this.fileImportErrorVisible_kts1ma$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$fileImportErrorVisible$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$storageOptions$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.storageOptions_qxn3ju$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'storageOptions', { configurable: true, get: function () { return this.storageOptions_qxn3ju$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$storageOptions$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$metadataResult$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.metadataResult_72vkq7$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'metadataResult', { configurable: true, get: function () { return this.metadataResult_72vkq7$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$metadataResult$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$compressionEnabled$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.compressionEnabled_kbu5ni$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'compressionEnabled', { configurable: true, get: function () { return this.compressionEnabled_kbu5ni$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$compressionEnabled$lambda(value, this)); } }); Object.defineProperty(ContentEntryEditComponent.prototype, 'videoDimensions', { configurable: true, get: function () { return this.videoDimensions_o1mcdr$_0; } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$videoUri$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.videoUri_hqbqzw$_0 = closure$value; this$ContentEntryEditComponent.showVideoPreview = !startsWith(closure$value, 'http'); this$ContentEntryEditComponent.showWebPreview_0 = startsWith(closure$value, 'http'); return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'videoUri', { configurable: true, get: function () { return this.videoUri_hqbqzw$_0; }, set: function (value) { if (value == null) return; setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$videoUri$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$showUpdateContentButton$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.showUpdateContentButton_ofuqr6$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'showUpdateContentButton', { configurable: true, get: function () { return this.showUpdateContentButton_ofuqr6$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$showUpdateContentButton$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$caGracePeriodError$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.caGracePeriodError_pibq9c$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'caGracePeriodError', { configurable: true, get: function () { return this.caGracePeriodError_pibq9c$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$caGracePeriodError$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$caDeadlineError$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.caDeadlineError_flx58b$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'caDeadlineError', { configurable: true, get: function () { return this.caDeadlineError_flx58b$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$caDeadlineError$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$caStartDateError$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.caStartDateError_mzz87b$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'caStartDateError', { configurable: true, get: function () { return this.caStartDateError_mzz87b$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$caStartDateError$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$caMaxPointsError$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.caMaxPointsError_mka66a$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'caMaxPointsError', { configurable: true, get: function () { return this.caMaxPointsError_mka66a$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$caMaxPointsError$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$startDate$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.startDate_i3t389$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'startDate', { configurable: true, get: function () { return this.startDate_i3t389$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$startDate$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$startTime$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.startTime_huvf14$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'startTime', { configurable: true, get: function () { return this.startTime_huvf14$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$startTime$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$deadlineDate$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.deadlineDate_vtwb4n$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'deadlineDate', { configurable: true, get: function () { return this.deadlineDate_vtwb4n$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$deadlineDate$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$deadlineTime$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.deadlineTime_w2tzbs$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'deadlineTime', { configurable: true, get: function () { return this.deadlineTime_w2tzbs$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$deadlineTime$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$gracePeriodDate$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.gracePeriodDate_hqmaj4$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'gracePeriodDate', { configurable: true, get: function () { return this.gracePeriodDate_hqmaj4$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$gracePeriodDate$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$gracePeriodTime$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.gracePeriodTime_hzjyq9$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'gracePeriodTime', { configurable: true, get: function () { return this.gracePeriodTime_hzjyq9$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$gracePeriodTime$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$gracePeriodVisiblity$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.gracePeriodVisiblity_3qq1wb$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'gracePeriodVisiblity_0', { configurable: true, get: function () { return this.gracePeriodVisiblity_3qq1wb$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$gracePeriodVisiblity$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$timeZone$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.timeZone_3saz7g$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'timeZone', { configurable: true, get: function () { return this.timeZone_3saz7g$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$timeZone$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$fieldsEnabled$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.fieldsEnabled_j5wdv5$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_j5wdv5$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$fieldsEnabled$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$minScoreVisible$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.minScoreVisible_3xujmj$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'minScoreVisible', { configurable: true, get: function () { return this.minScoreVisible_3xujmj$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$minScoreVisible$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$entity$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0; this$ContentEntryEditComponent.entity_iba2d6$_0 = closure$value; if (!equals((tmp$ = closure$value != null ? closure$value.block : null) != null ? tmp$.cbDeadlineDate : null, Long$Companion$MAX_VALUE)) { this$ContentEntryEditComponent.gracePeriodVisiblity_0 = true; }this$ContentEntryEditComponent.minScoreVisible = ((tmp$_0 = closure$value != null ? closure$value.block : null) != null ? tmp$_0.cbCompletionCriteria : null) === 1; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_iba2d6$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$entity$lambda(value, this)); } }); function ContentEntryEditComponent$set_ContentEntryEditComponent$updateItemOptionsDialogVisible$lambda(closure$value, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.updateItemOptionsDialogVisible_h4irf9$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryEditComponent.prototype, 'updateItemOptionsDialogVisible_0', { configurable: true, get: function () { return this.updateItemOptionsDialogVisible_h4irf9$_0; }, set: function (value) { setState(this, ContentEntryEditComponent$set_ContentEntryEditComponent$updateItemOptionsDialogVisible$lambda(value, this)); } }); ContentEntryEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2543); this.mPresenter_0 = new ContentEntryEdit2Presenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ContentEntryEditComponent$render$lambda$lambda(this$ContentEntryEditComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryEditComponent.mPresenter_0) != null ? (tmp$.onClickImportFile(), Unit) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda_0(this$ContentEntryEditComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryEditComponent.mPresenter_0) != null ? (tmp$.onClickImportLink(), Unit) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda(this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.updateItemOptionsDialogVisible_0 = false; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda_1(this$ContentEntryEditComponent) { return function () { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; console.log('ClazzEditComponent: setting course picture uri = ' + toString(closure$it)); (tmp$ = this$ContentEntryEditComponent.contentEntryPicture) != null ? (tmp$.cepUri = closure$it) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_0($receiver, attachmentImgSrc) { umEntityAvatar($receiver, attachmentImgSrc, Util_getInstance().ASSET_ENTRY, void 0, void 0, void 0, void 0, true); return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; $receiver.attrs.attachmentUri = (tmp$ = this$ContentEntryEditComponent.contentEntryPicture) != null ? tmp$.cepUri : null; $receiver.attrs.onNewImageSelected = ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ContentEntryEditComponent); $receiver.attrs.contentBlock = ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_0; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda_0(this$ContentEntryEditComponent) { return function ($receiver) { $receiver.child_up9nw1$(getKClass(AttachmentImageComponent), ContentEntryEditComponent$render$lambda$lambda$lambda$lambda(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.updateItemOptionsDialogVisible_0 = true; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_0(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_1($receiver) { var $receiver_0 = $receiver.css; set_padding($receiver_0, '15px'); set_marginTop($receiver_0, new LinearDimension('13px')); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda_1(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = this$ContentEntryEditComponent.getString_za3lpa$(2100); tmp$_0 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, UMColor$secondary_getInstance(), ButtonVariant$contained_getInstance(), void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_0(this$ContentEntryEditComponent), tmp$_0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_1); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_2(this$ContentEntryEditComponent) { return function ($receiver) { var this$ContentEntryEditComponent_0 = this$ContentEntryEditComponent; var $receiver_0 = $receiver.css; var tmp$, tmp$_0; tmp$_0 = ((tmp$ = this$ContentEntryEditComponent_0.entity) != null ? tmp$.leaf : null) === true; set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(tmp$_0)); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); umTypography($receiver, this$ContentEntryEditComponent.getString_za3lpa$(2179), TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_2); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda_2(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0; set_marginTop($receiver.css, get_px(12)); if (this$ContentEntryEditComponent.videoUri != null && (this$ContentEntryEditComponent.showWebPreview_0 || this$ContentEntryEditComponent.showVideoPreview)) { if ((tmp$ = this$ContentEntryEditComponent.videoUri) != null) { renderIframe($receiver, listOf_0(tmp$), 1); }}if (this$ContentEntryEditComponent.showUpdateContentButton) { if (((tmp$_0 = this$ContentEntryEditComponent.entity) != null ? tmp$_0.leaf : null) === true) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_2(this$ContentEntryEditComponent)); }}return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ContentEntryEditComponent.entity) != null ? (tmp$.title = closure$it) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_3(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_4($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ContentEntryEditComponent.entity) != null ? (tmp$.description = closure$it) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_5(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_6($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); this$ContentEntryEditComponent.caStartDateError = null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_7(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ContentEntryEditComponent.entity) != null ? tmp$.block : null) != null ? (tmp$_0.cbCompletionCriteria = closure$it) : null; this$ContentEntryEditComponent.completionCriteriaLabel_0.errorText = null; this$ContentEntryEditComponent.minScoreVisible = closure$it === 1; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_8(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ContentEntryEditComponent.entity) != null ? tmp$.block : null) != null ? (tmp$_0.cbMaxPoints = closure$it) : null; this$ContentEntryEditComponent.caMaxPointsError = null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_9(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.deadlineDate = Kotlin.Long.fromNumber(closure$it.getTime()); this$ContentEntryEditComponent.caDeadlineError = null; this$ContentEntryEditComponent.gracePeriodVisiblity_0 = true; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_10(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_11(this$ContentEntryEditComponent) { return function (it) { this$ContentEntryEditComponent.gracePeriodDate = Kotlin.Long.fromNumber(it.getTime()); this$ContentEntryEditComponent.caGracePeriodError = null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ContentEntryEditComponent.entity) != null ? tmp$.block : null) != null ? (tmp$_0.cbLateSubmissionPenalty = closure$it) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_12(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_13(this$ContentEntryEditComponent) { return function (it) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$ContentEntryEditComponent.entity) != null ? tmp$.block : null) != null ? (tmp$_0.cbMinPoints = it) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ContentEntryEditComponent.entity) != null ? (tmp$.author = closure$it) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_14(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_15($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ContentEntryEditComponent.entity) != null ? (tmp$.publisher = closure$it) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_16(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_17($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ContentEntryEditComponent.entity) != null ? (tmp$.licenseType = toInt(closure$it)) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_12(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ContentEntryEditComponent.licenseLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ContentEntryEditComponent.entity) != null ? tmp$_0.licenseType : null); tmp$_2 = this$ContentEntryEditComponent.licenseLabel_0.error; tmp$_3 = !this$ContentEntryEditComponent.fieldsEnabled; tmp$_4 = this$ContentEntryEditComponent.licenseLabel_0.errorText; var tmp$_7; if ((tmp$_5 = this$ContentEntryEditComponent.licenceOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_4, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, FormControlVariant$outlined_getInstance(), ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ContentEntryEditComponent), void 0, tmp$_3, tmp$_2); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { return Unit; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryEditComponent) { return function () { var tmp$; return (tmp$ = this$ContentEntryEditComponent.mPresenter_0) != null ? (tmp$.handleClickLanguage(), Unit) : null; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryEditComponent) { return function ($receiver) { $receiver.attrs.onClick = ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryEditComponent); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_13(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$ContentEntryEditComponent.languageLabel_0.text); tmp$_0 = this$ContentEntryEditComponent.languageLabel_0.errorText; tmp$_3 = (tmp$_2 = (tmp$_1 = this$ContentEntryEditComponent.entity) != null ? tmp$_1.language : null) != null ? tmp$_2.name : null; tmp$_4 = this$ContentEntryEditComponent.languageLabel_0.error; tmp$_5 = !this$ContentEntryEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ContentEntryEditComponent), void 0, void 0, tmp$_5, tmp$_4, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_18(this$ContentEntryEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_12(this$ContentEntryEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_13(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryEditComponent) { return function ($receiver) { this$ContentEntryEditComponent.compressionEnabled = !this$ContentEntryEditComponent.compressionEnabled; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_14(this$ContentEntryEditComponent) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); createSwitchItem($receiver, this$ContentEntryEditComponent.getString_za3lpa$(2113), this$ContentEntryEditComponent.compressionEnabled, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; (tmp$_1 = this$ContentEntryEditComponent.entity) != null ? (tmp$_1.publik = !((tmp$_0 = (tmp$ = this$ContentEntryEditComponent.entity) != null ? tmp$.publik : null) != null ? tmp$_0 : false)) : null; return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ContentEntryEditComponent) { return function (it) { setState(this$ContentEntryEditComponent, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_15(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; createSwitchItem($receiver, this$ContentEntryEditComponent.getString_za3lpa$(2101), ((tmp$ = this$ContentEntryEditComponent.entity) != null ? tmp$.publik : null) === true, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_19(this$ContentEntryEditComponent) { return function ($receiver) { if (this$ContentEntryEditComponent.metadataResult != null) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_14(this$ContentEntryEditComponent)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda$lambda_15(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda$lambda_3(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17, tmp$_18, tmp$_19, tmp$_20, tmp$_21; tmp$ = toString(this$ContentEntryEditComponent.titleLabel_0.text); tmp$_0 = this$ContentEntryEditComponent.titleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ContentEntryEditComponent.entity) != null ? tmp$_1.title : null; tmp$_3 = this$ContentEntryEditComponent.titleLabel_0.error; tmp$_4 = !this$ContentEntryEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_3(this$ContentEntryEditComponent), void 0, void 0, tmp$_4, tmp$_3, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_4); tmp$_5 = toString(this$ContentEntryEditComponent.descLabel_0.text); tmp$_7 = (tmp$_6 = this$ContentEntryEditComponent.entity) != null ? tmp$_6.description : null; tmp$_8 = this$ContentEntryEditComponent.descLabel_0.error; tmp$_9 = !this$ContentEntryEditComponent.fieldsEnabled; umTextField($receiver, tmp$_5, tmp$_7, this$ContentEntryEditComponent.descLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_5(this$ContentEntryEditComponent), void 0, void 0, tmp$_9, tmp$_8, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_6); if (((tmp$_10 = this$ContentEntryEditComponent.entity) != null ? tmp$_10.block : null) != null) { renderCourseBlockCommonFields($receiver, (tmp$_11 = this$ContentEntryEditComponent.entity) != null ? tmp$_11.block : null, this$ContentEntryEditComponent.doNotShowBeforeLabel_0, this$ContentEntryEditComponent.startDate, this$ContentEntryEditComponent.startTimeLabel_0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_7(this$ContentEntryEditComponent), this$ContentEntryEditComponent.timeZone, this$ContentEntryEditComponent.completionCriteriaLabel_0, this$ContentEntryEditComponent.completionCriteriaOptions, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_8(this$ContentEntryEditComponent), this$ContentEntryEditComponent.maxPointsLabel_0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_9(this$ContentEntryEditComponent), this$ContentEntryEditComponent.deadlineDateLabel_0, this$ContentEntryEditComponent.deadlineTimeLabel_0, this$ContentEntryEditComponent.deadlineDate, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_10(this$ContentEntryEditComponent), this$ContentEntryEditComponent.gracePeriodDateLabel_0, this$ContentEntryEditComponent.gracePeriodTimeLabel_0, this$ContentEntryEditComponent.gracePeriodDate, this$ContentEntryEditComponent.gracePeriodVisiblity_0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_11(this$ContentEntryEditComponent), this$ContentEntryEditComponent.penaltyLabel_0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_12(this$ContentEntryEditComponent), this$ContentEntryEditComponent.getString_za3lpa$(2872), this$ContentEntryEditComponent.minScoreVisible, this$ContentEntryEditComponent.minScoreLabel_0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_13(this$ContentEntryEditComponent)); }tmp$_12 = toString(this$ContentEntryEditComponent.authorLabel_0.text); tmp$_14 = (tmp$_13 = this$ContentEntryEditComponent.entity) != null ? tmp$_13.author : null; tmp$_15 = this$ContentEntryEditComponent.authorLabel_0.error; tmp$_16 = !this$ContentEntryEditComponent.fieldsEnabled; umTextField($receiver, tmp$_12, tmp$_14, this$ContentEntryEditComponent.authorLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_14(this$ContentEntryEditComponent), void 0, void 0, tmp$_16, tmp$_15, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_15); tmp$_17 = toString(this$ContentEntryEditComponent.publisherLabel_0.text); tmp$_19 = (tmp$_18 = this$ContentEntryEditComponent.entity) != null ? tmp$_18.publisher : null; tmp$_20 = this$ContentEntryEditComponent.publisherLabel_0.error; tmp$_21 = !this$ContentEntryEditComponent.fieldsEnabled; umTextField($receiver, tmp$_17, tmp$_19, this$ContentEntryEditComponent.publisherLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_16(this$ContentEntryEditComponent), void 0, void 0, tmp$_21, tmp$_20, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_17); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_18(this$ContentEntryEditComponent)); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda$lambda_19(this$ContentEntryEditComponent)); return Unit; }; } function ContentEntryEditComponent$render$lambda$lambda_2(this$ContentEntryEditComponent) { return function ($receiver) { var tmp$; umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda_0(this$ContentEntryEditComponent)); var showPreviews = ((tmp$ = this$ContentEntryEditComponent.entity) != null ? tmp$.leaf : null) === true && this$ContentEntryEditComponent.videoUri != null && (this$ContentEntryEditComponent.showWebPreview_0 || this$ContentEntryEditComponent.showVideoPreview); if (this$ContentEntryEditComponent.showUpdateContentButton) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, GridAlignItems$center_getInstance(), void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda_1(this$ContentEntryEditComponent)); }if (showPreviews) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda_2(this$ContentEntryEditComponent)); }umItem($receiver, GridSize$cells12_getInstance(), showPreviews ? GridSize$cells8_getInstance() : GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda$lambda_3(this$ContentEntryEditComponent)); return Unit; }; } ContentEntryEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_12); var $receiver_1 = $receiver_0.css; var tmp$; if (((tmp$ = this.entity) != null ? tmp$.leaf : null) === true) { $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); } else { $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); } $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); if (this.updateItemOptionsDialogVisible_0) { renderAddContentEntryOptionsDialog($receiver_0, this.systemImpl, false, void 0, ContentEntryEditComponent$render$lambda$lambda_0(this), ContentEntryEditComponent$render$lambda$lambda(this), ContentEntryEditComponent$render$lambda$lambda_1(this)); }umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryEditComponent$render$lambda$lambda_2(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ContentEntryEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; ContentEntryEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContentEntryEditComponent', interfaces: [ContentEntryEdit2View, UstadEditComponent] }; function createSwitchItem$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_marginTop($receiver_0, new LinearDimension('3px')); set_marginRight($receiver_0, new LinearDimension('10px')); return Unit; } function createSwitchItem$lambda$lambda(closure$label) { return function ($receiver) { umTypography($receiver, closure$label, TypographyVariant$body1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, createSwitchItem$lambda$lambda$lambda); return Unit; }; } function createSwitchItem$lambda$lambda$lambda$lambda(closure$onClick) { return function (it) { closure$onClick(it.nativeEvent); return Unit; }; } function createSwitchItem$lambda$lambda$lambda_0(closure$onClick) { return function ($receiver) { $receiver.attrs.onClick = createSwitchItem$lambda$lambda$lambda$lambda(closure$onClick); return Unit; }; } function createSwitchItem$lambda$lambda_0(closure$enabled, closure$onClick) { return function ($receiver) { umSwitch($receiver, closure$enabled, void 0, void 0, void 0, void 0, createSwitchItem$lambda$lambda$lambda_0(closure$onClick)); return Unit; }; } function createSwitchItem$lambda(closure$label, closure$enabled, closure$onClick) { return function ($receiver) { umItem($receiver, GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, createSwitchItem$lambda$lambda(closure$label)); umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, createSwitchItem$lambda$lambda_0(closure$enabled, closure$onClick)); var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().switchMargin); set_marginTop($receiver_0, new LinearDimension('16px')); set_marginBottom($receiver_0, new LinearDimension('16px')); return Unit; }; } function createSwitchItem($receiver, label, enabled, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, createSwitchItem$lambda(label, enabled, onClick)); } function styledDiv$lambda_13(it) { return new DIV_init(html.emptyMap, it); } function ContentEntryImportLinkComponent(mProps) { UstadBaseComponent.call(this, mProps); this.mPresenter_0 = null; this.importLinkLabel = new FieldLabel(this.getString_za3lpa$(2274)); this.importLink = ''; this.inProgress_r80lh2$_0 = false; this.validLink_c9ecui$_0 = false; } function ContentEntryImportLinkComponent$set_ContentEntryImportLinkComponent$inProgress$lambda(closure$value, this$ContentEntryImportLinkComponent) { return function ($receiver) { this$ContentEntryImportLinkComponent.inProgress_r80lh2$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryImportLinkComponent.prototype, 'inProgress', { configurable: true, get: function () { return this.inProgress_r80lh2$_0; }, set: function (value) { this.loading = value; setState(this, ContentEntryImportLinkComponent$set_ContentEntryImportLinkComponent$inProgress$lambda(value, this)); } }); function ContentEntryImportLinkComponent$set_ContentEntryImportLinkComponent$validLink$lambda(closure$value, this$ContentEntryImportLinkComponent) { return function ($receiver) { this$ContentEntryImportLinkComponent.validLink_c9ecui$_0 = closure$value; this$ContentEntryImportLinkComponent.importLinkLabel = this$ContentEntryImportLinkComponent.importLinkLabel.copy_d8n4vg$(void 0, closure$value ? null : this$ContentEntryImportLinkComponent.getString_za3lpa$(2275)); return Unit; }; } Object.defineProperty(ContentEntryImportLinkComponent.prototype, 'validLink', { configurable: true, get: function () { return this.validLink_c9ecui$_0; }, set: function (value) { setState(this, ContentEntryImportLinkComponent$set_ContentEntryImportLinkComponent$validLink$lambda(value, this)); } }); function ContentEntryImportLinkComponent$onCreateView$lambda(this$ContentEntryImportLinkComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryImportLinkComponent.mPresenter_0) != null ? (tmp$.handleClickDone_61zpoe$(this$ContentEntryImportLinkComponent.importLink), Unit) : null; return Unit; }; } ContentEntryImportLinkComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; UstadBaseComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2274); (tmp$ = this.fabManager) != null ? (tmp$.visible = true) : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.icon = 'done') : null; (tmp$_1 = this.fabManager) != null ? (tmp$_1.text = this.getString_za3lpa$(2031)) : null; (tmp$_2 = this.fabManager) != null ? (tmp$_2.onClickListener = ContentEntryImportLinkComponent$onCreateView$lambda(this)) : null; this.mPresenter_0 = new ContentEntryImportLinkPresenter(this, this.arguments, this, this.di); if ((tmp$_3 = this.mPresenter_0) != null) { tmp$_3.onCreate(emptyMap()); }}; function ContentEntryImportLinkComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$ContentEntryImportLinkComponent) { return function ($receiver) { this$ContentEntryImportLinkComponent.importLink = closure$it; return Unit; }; } function ContentEntryImportLinkComponent$render$lambda$lambda$lambda$lambda(this$ContentEntryImportLinkComponent) { return function (it) { setState(this$ContentEntryImportLinkComponent, ContentEntryImportLinkComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$ContentEntryImportLinkComponent)); return Unit; }; } function ContentEntryImportLinkComponent$render$lambda$lambda$lambda(this$ContentEntryImportLinkComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$ContentEntryImportLinkComponent.importLinkLabel.text); tmp$_0 = this$ContentEntryImportLinkComponent.importLinkLabel.errorText; tmp$_1 = this$ContentEntryImportLinkComponent.importLink; tmp$_2 = this$ContentEntryImportLinkComponent.importLinkLabel.error; tmp$_3 = this$ContentEntryImportLinkComponent.inProgress; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ContentEntryImportLinkComponent$render$lambda$lambda$lambda$lambda(this$ContentEntryImportLinkComponent), void 0, void 0, tmp$_3, tmp$_2); return Unit; }; } function ContentEntryImportLinkComponent$render$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function ContentEntryImportLinkComponent$render$lambda$lambda$lambda_0(this$ContentEntryImportLinkComponent) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); umTypography($receiver, this$ContentEntryImportLinkComponent.getString_za3lpa$(2279), TypographyVariant$body1_getInstance(), TypographyAlign$center_getInstance(), void 0, void 0, void 0, void 0, void 0, ContentEntryImportLinkComponent$render$lambda$lambda$lambda$lambda_0); return Unit; }; } function ContentEntryImportLinkComponent$render$lambda$lambda(this$ContentEntryImportLinkComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryImportLinkComponent$render$lambda$lambda$lambda(this$ContentEntryImportLinkComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryImportLinkComponent$render$lambda$lambda$lambda_0(this$ContentEntryImportLinkComponent)); return Unit; }; } ContentEntryImportLinkComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_13); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); set_marginTop($receiver_1, get_spacingUnits(4)); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryImportLinkComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ContentEntryImportLinkComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; ContentEntryImportLinkComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContentEntryImportLinkComponent', interfaces: [ContentEntryImportLinkView, UstadBaseComponent] }; function styledDiv$lambda_14(it) { return new DIV_init(html.emptyMap, it); } function ContentEntryListComponent(props) { ContentEntryListComponent$Companion_getInstance(); UstadListComponent.call(this, props); this.mPresenter_0 = null; this.showingEditOptions_0 = false; this.anchorElement_0 = null; this.editOptionVisible_5l1h6g$_0 = false; this.title_1rt6lp$_0 = null; } Object.defineProperty(ContentEntryListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ContentEntryListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.contentEntryDao : null; } }); function ContentEntryListComponent$set_ContentEntryListComponent$editOptionVisible$lambda(closure$value, this$ContentEntryListComponent) { return function ($receiver) { this$ContentEntryListComponent.editOptionVisible_5l1h6g$_0 = closure$value; return Unit; }; } Object.defineProperty(ContentEntryListComponent.prototype, 'editOptionVisible', { configurable: true, get: function () { return this.editOptionVisible_5l1h6g$_0; }, set: function (value) { this.showEditOptionsMenu = value; setState(this, ContentEntryListComponent$set_ContentEntryListComponent$editOptionVisible$lambda(value, this)); } }); Object.defineProperty(ContentEntryListComponent.prototype, 'title', { configurable: true, get: function () { return this.title_1rt6lp$_0; }, set: function (value) { this.ustadComponentTitle = value; this.title_1rt6lp$_0 = value; } }); ContentEntryListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1; UstadListComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = (tmp$ = this.arguments.get_11rb$(UstadView.Companion.ARG_PARENT_ENTRY_TITLE)) != null ? tmp$ : this.getString_za3lpa$(2543); (tmp$_0 = this.fabManager) != null ? (tmp$_0.text = this.getString_za3lpa$(2543)) : null; this.mPresenter_0 = new ContentEntryList2Presenter(this, this.arguments, this, this.di, this); if ((tmp$_1 = this.mPresenter_0) != null) { tmp$_1.onCreate(emptyMap()); }}; function ContentEntryListComponent$renderListItem$lambda(closure$showSelectBtn, this$ContentEntryListComponent, closure$item) { return function () { var tmp$, tmp$_0; if (closure$showSelectBtn) { (tmp$ = this$ContentEntryListComponent.mPresenter_0) != null ? (tmp$.onClickSelectContentEntry_dup0gu$(closure$item), Unit) : null; } else { (tmp$_0 = this$ContentEntryListComponent.mPresenter_0) != null ? (tmp$_0.onClickDownloadContentEntry_dup0gu$(closure$item), Unit) : null; } return Unit; }; } ContentEntryListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var tmp$, tmp$_0; var showSelectBtn = equals(determineListMode(this.arguments).toString(), ListViewMode.PICKER.toString()) && (((tmp$_0 = (tmp$ = this.arguments.get_11rb$(ContentEntryList2View.Companion.ARG_SELECT_FOLDER_VISIBLE)) != null ? toBoolean(tmp$) : null) != null ? tmp$_0 : true) || item.leaf); var showStatus = !equals(determineListMode(this.arguments).toString(), ListViewMode.PICKER.toString()); renderContentEntryListItem($receiver, item, this.systemImpl, showSelectBtn, showStatus, void 0, void 0, void 0, void 0, ContentEntryListComponent$renderListItem$lambda(showSelectBtn, this, item)); }; ContentEntryListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.onClickContentEntry_dup0gu$(entry), Unit) : null; }; function ContentEntryListComponent$showContentEntryAddOptions$lambda(this$ContentEntryListComponent) { return function ($receiver) { this$ContentEntryListComponent.showAddEntryOptions = true; return Unit; }; } ContentEntryListComponent.prototype.showContentEntryAddOptions = function () { setState(this, ContentEntryListComponent$showContentEntryAddOptions$lambda(this)); }; function ContentEntryListComponent$renderAddContentOptionsDialog$lambda(this$ContentEntryListComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryListComponent.mPresenter_0) != null ? (tmp$.onClickNewFolder(), Unit) : null; return Unit; }; } function ContentEntryListComponent$renderAddContentOptionsDialog$lambda_0(this$ContentEntryListComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryListComponent.mPresenter_0) != null ? (tmp$.onClickImportLink(), Unit) : null; return Unit; }; } function ContentEntryListComponent$renderAddContentOptionsDialog$lambda_1(this$ContentEntryListComponent) { return function () { var tmp$; (tmp$ = this$ContentEntryListComponent.mPresenter_0) != null ? (tmp$.onClickImportFile(), Unit) : null; return Unit; }; } function ContentEntryListComponent$renderAddContentOptionsDialog$lambda$lambda(this$ContentEntryListComponent) { return function ($receiver) { this$ContentEntryListComponent.showAddEntryOptions = false; return Unit; }; } function ContentEntryListComponent$renderAddContentOptionsDialog$lambda_2(this$ContentEntryListComponent) { return function () { setState(this$ContentEntryListComponent, ContentEntryListComponent$renderAddContentOptionsDialog$lambda$lambda(this$ContentEntryListComponent)); return Unit; }; } ContentEntryListComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { if (this.showAddEntryOptions) { renderAddContentEntryOptionsDialog($receiver, this.systemImpl, void 0, ContentEntryListComponent$renderAddContentOptionsDialog$lambda(this), ContentEntryListComponent$renderAddContentOptionsDialog$lambda_0(this), ContentEntryListComponent$renderAddContentOptionsDialog$lambda_1(this), ContentEntryListComponent$renderAddContentOptionsDialog$lambda_2(this)); }}; ContentEntryListComponent.prototype.showDownloadDialog_y0zsll$ = function (args) { throw new NotImplementedError_init('An operation is not implemented: ' + 'showDownloadDialog: Not yet implemented'); }; function ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda(this$ContentEntryListComponent) { return function ($receiver) { this$ContentEntryListComponent.showingEditOptions_0 = true; this$ContentEntryListComponent.anchorElement_0 = document.getElementById('more-option'); return Unit; }; } function ContentEntryListComponent$renderEditOptionMenu$lambda$lambda(this$ContentEntryListComponent) { return function (it) { setState(this$ContentEntryListComponent, ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda(this$ContentEntryListComponent)); return Unit; }; } function ContentEntryListComponent$renderEditOptionMenu$lambda(this$ContentEntryListComponent) { return function ($receiver) { var this$ContentEntryListComponent_0 = this$ContentEntryListComponent; set_display($receiver.css, StyleManager_getInstance().displayProperty_dqye30$(this$ContentEntryListComponent_0.editOptionVisible)); umIconButton($receiver, 'more_vert', void 0, void 0, ContentEntryListComponent$renderEditOptionMenu$lambda$lambda(this$ContentEntryListComponent), void 0, void 0, 'more-option'); return Unit; }; } function ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda_0(this$ContentEntryListComponent) { return function ($receiver) { this$ContentEntryListComponent.showingEditOptions_0 = false; this$ContentEntryListComponent.anchorElement_0 = null; return Unit; }; } function ContentEntryListComponent$renderEditOptionMenu$lambda$lambda_0(this$ContentEntryListComponent) { return function () { setState(this$ContentEntryListComponent, ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda_0(this$ContentEntryListComponent)); return Unit; }; } function ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda_1(this$ContentEntryListComponent) { return function (it) { var tmp$; (tmp$ = this$ContentEntryListComponent.mPresenter_0) != null ? (tmp$.handleClickEditFolder(), Unit) : null; return Unit; }; } function ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda_2(this$ContentEntryListComponent) { return function (it) { var tmp$; (tmp$ = this$ContentEntryListComponent.mPresenter_0) != null ? (tmp$.handleClickShowHiddenItems(), Unit) : null; return Unit; }; } function ContentEntryListComponent$renderEditOptionMenu$lambda$lambda_1(this$ContentEntryListComponent) { return function ($receiver) { umMenuItem($receiver, this$ContentEntryListComponent.getString_za3lpa$(2321), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda_1(this$ContentEntryListComponent)); umMenuItem($receiver, this$ContentEntryListComponent.getString_za3lpa$(2183), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryListComponent$renderEditOptionMenu$lambda$lambda$lambda_2(this$ContentEntryListComponent)); return Unit; }; } ContentEntryListComponent.prototype.renderEditOptionMenu_ss14n$ = function ($receiver) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ContentEntryListComponent$renderEditOptionMenu$lambda(this)); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_14); umMenu($receiver_0, this.showingEditOptions_0, this.anchorElement_0, ContentEntryListComponent$renderEditOptionMenu$lambda$lambda_0(this), void 0, void 0, ContentEntryListComponent$renderEditOptionMenu$lambda$lambda_1(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ContentEntryListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function ContentEntryListComponent$Companion() { ContentEntryListComponent$Companion_instance = this; this.CONTENT_ENTRY_TYPE_ICON_MAP = mapOf_0([to(2, 'book'), to(4, 'smart_display'), to(6, 'description'), to(7, 'article'), to(1, 'collections'), to(3, 'touch_app'), to(5, 'audiotrack')]); this.CONTENT_ENTRY_TYPE_LABEL_MAP = mapOf_0([to(2, 2104), to(4, 2699), to(6, 2107), to(7, 2108), to(1, 2106), to(3, 2105), to(5, 2109)]); } ContentEntryListComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ContentEntryListComponent$Companion_instance = null; function ContentEntryListComponent$Companion_getInstance() { if (ContentEntryListComponent$Companion_instance === null) { new ContentEntryListComponent$Companion(); }return ContentEntryListComponent$Companion_instance; } ContentEntryListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContentEntryListComponent', interfaces: [ContentEntryList2View, UstadListComponent] }; function ContentListProps() { } ContentListProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'ContentListProps', interfaces: [SimpleListProps] }; function ContentListComponent(mProps) { UstadSimpleList.call(this, mProps); } function ContentListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function ContentListComponent$renderListItem$lambda$lambda_0(this$ContentListComponent, closure$item) { return function (it) { var tmp$; (tmp$ = this$ContentListComponent.props.listener) != null ? (tmp$.onClickDelete_11rb$(closure$item), Unit) : null; return Unit; }; } function ContentListComponent$renderListItem$lambda(closure$onClick, closure$item, this$ContentListComponent) { return function ($receiver) { var tmp$; $receiver.attrs.onClick = ContentListComponent$renderListItem$lambda$lambda(closure$onClick); renderListItemWithTitleDescriptionAndRightAction($receiver, (tmp$ = closure$item.title) != null ? tmp$ : '', 'delete', this$ContentListComponent.props.withDelete, void 0, ContentListComponent$renderListItem$lambda$lambda_0(this$ContentListComponent, closure$item)); return Unit; }; } ContentListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ContentListComponent$renderListItem$lambda(onClick, item, this)); }; ContentListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ContentListComponent', interfaces: [UstadSimpleList] }; function renderContentEntries$lambda(closure$contents, closure$onEntryClicked, closure$createNewItem, closure$listener, closure$withDelete) { return function ($receiver) { $receiver.attrs.entries = closure$contents; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.listener = closure$listener; $receiver.attrs.withDelete = closure$withDelete; return Unit; }; } function renderContentEntries($receiver, listener, contents, withDelete, createNewItem, onEntryClicked) { if (listener === void 0) listener = null; if (withDelete === void 0) withDelete = true; if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(ContentListComponent), renderContentEntries$lambda(contents, onEntryClicked, createNewItem, listener, withDelete)); } function styledDiv$lambda_15(it) { return new DIV_init(html.emptyMap, it); } function CourseDiscussionDetailComponent(mProps) { CourseDiscussionDetailComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.topicList_0 = emptyList(); this.topicsObserver_0 = new ObserverFnWrapper(CourseDiscussionDetailComponent$topicsObserver$lambda(this)); this.topics_qc0hh4$_0 = null; this.entity_xtgo5z$_0 = null; } Object.defineProperty(CourseDiscussionDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(CourseDiscussionDetailComponent.prototype, 'topics', { configurable: true, get: function () { return this.topics_qc0hh4$_0; }, set: function (value) { this.topics_qc0hh4$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.topicsObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.topicsObserver_0), Unit) : null; } }); function CourseDiscussionDetailComponent$set_CourseDiscussionDetailComponent$entity$lambda(closure$value, this$CourseDiscussionDetailComponent) { return function ($receiver) { this$CourseDiscussionDetailComponent.entity_xtgo5z$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseDiscussionDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_xtgo5z$_0; }, set: function (value) { this.ustadComponentTitle = value != null ? value.courseDiscussionTitle : null; setState(this, CourseDiscussionDetailComponent$set_CourseDiscussionDetailComponent$entity$lambda(value, this)); } }); function CourseDiscussionDetailComponent$onCreateView$lambda() { return Unit; } CourseDiscussionDetailComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2; UstadDetailComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2623)) : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.icon = 'check') : null; this.mPresenter_0 = new CourseDiscussionDetailPresenter(this, this.arguments, this, this.di, this); if ((tmp$_1 = this.mPresenter_0) != null) { tmp$_1.onCreate(emptyMap()); }(tmp$_2 = this.fabManager) != null ? (tmp$_2.onClickListener = CourseDiscussionDetailComponent$onCreateView$lambda) : null; }; function CourseDiscussionDetailComponent$render$lambda$lambda$lambda(this$CourseDiscussionDetailComponent) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = this$CourseDiscussionDetailComponent.entity) != null ? tmp$.courseDiscussionDesc : null); return Unit; }; } function CourseDiscussionDetailComponent$render$lambda$lambda$lambda_0(this$CourseDiscussionDetailComponent) { return function ($receiver) { this$CourseDiscussionDetailComponent.renderTopicListDetail_tf3go2$($receiver, this$CourseDiscussionDetailComponent.topicList_0); return Unit; }; } function CourseDiscussionDetailComponent$render$lambda$lambda(this$CourseDiscussionDetailComponent) { return function ($receiver) { var tmp$; var $receiver_0 = (tmp$ = this$CourseDiscussionDetailComponent.entity) != null ? tmp$.courseDiscussionDesc : null; if (!($receiver_0 == null || isBlank($receiver_0))) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionDetailComponent$render$lambda$lambda$lambda(this$CourseDiscussionDetailComponent)); }renderListSectionTitle($receiver, this$CourseDiscussionDetailComponent.getString_za3lpa$(2908)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionDetailComponent$render$lambda$lambda$lambda_0(this$CourseDiscussionDetailComponent)); return Unit; }; } CourseDiscussionDetailComponent.prototype.render_ss14n$ = function ($receiver) { if (this.entity == null) return; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_15); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing3_getInstance(), void 0, void 0, CourseDiscussionDetailComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; function CourseDiscussionDetailComponent$TopicListDetailComponent(mProps) { UstadSimpleList.call(this, mProps); } function CourseDiscussionDetailComponent$TopicListDetailComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function CourseDiscussionDetailComponent$TopicListDetailComponent$renderListItem$lambda(closure$onClick, closure$item) { return function ($receiver) { var tmp$, tmp$_0; $receiver.attrs.onClick = CourseDiscussionDetailComponent$TopicListDetailComponent$renderListItem$lambda$lambda(closure$onClick); renderListItemWithLeftIconTitleAndDescription($receiver, 'featured_play_list', (tmp$ = closure$item.discussionTopicTitle) != null ? tmp$ : '', (tmp$_0 = closure$item.discussionTopicDesc) != null ? tmp$_0 : ''); return Unit; }; } CourseDiscussionDetailComponent$TopicListDetailComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionDetailComponent$TopicListDetailComponent$renderListItem$lambda(onClick, item)); }; CourseDiscussionDetailComponent$TopicListDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'TopicListDetailComponent', interfaces: [UstadSimpleList] }; function CourseDiscussionDetailComponent$renderTopicListDetail$lambda$lambda(this$CourseDiscussionDetailComponent) { return function (topic) { var tmp$; (tmp$ = this$CourseDiscussionDetailComponent.mPresenter_0) != null ? (tmp$.onClickTopic_5oep0w$(topic), Unit) : null; return Unit; }; } function CourseDiscussionDetailComponent$renderTopicListDetail$lambda(closure$entries, this$CourseDiscussionDetailComponent) { return function ($receiver) { $receiver.attrs.entries = closure$entries; $receiver.attrs.hideDivider = true; FormControlComponent$div_getInstance(); $receiver.attrs.onEntryClicked = CourseDiscussionDetailComponent$renderTopicListDetail$lambda$lambda(this$CourseDiscussionDetailComponent); return Unit; }; } CourseDiscussionDetailComponent.prototype.renderTopicListDetail_tf3go2$ = function ($receiver, entries, onEntryClicked) { if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(CourseDiscussionDetailComponent$TopicListDetailComponent), CourseDiscussionDetailComponent$renderTopicListDetail$lambda(entries, this)); }; CourseDiscussionDetailComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function CourseDiscussionDetailComponent$Companion() { CourseDiscussionDetailComponent$Companion_instance = this; } CourseDiscussionDetailComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var CourseDiscussionDetailComponent$Companion_instance = null; function CourseDiscussionDetailComponent$Companion_getInstance() { if (CourseDiscussionDetailComponent$Companion_instance === null) { new CourseDiscussionDetailComponent$Companion(); }return CourseDiscussionDetailComponent$Companion_instance; } function CourseDiscussionDetailComponent$topicsObserver$lambda$lambda(closure$it, this$CourseDiscussionDetailComponent) { return function ($receiver) { this$CourseDiscussionDetailComponent.topicList_0 = closure$it; return Unit; }; } function CourseDiscussionDetailComponent$topicsObserver$lambda(this$CourseDiscussionDetailComponent) { return function (it) { if (it.isEmpty()) return; setState(this$CourseDiscussionDetailComponent, CourseDiscussionDetailComponent$topicsObserver$lambda$lambda(it, this$CourseDiscussionDetailComponent)); return Unit; }; } CourseDiscussionDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseDiscussionDetailComponent', interfaces: [CourseDiscussionDetailView, UstadDetailComponent] }; function styledDiv$lambda_16(it) { return new DIV_init(html.emptyMap, it); } function CourseDiscussionEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.descriptionLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2047)); this.doNotShowBeforeLabel_0 = new FieldLabel(clean(this.getString_za3lpa$(2845))); this.startTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.topicsList_0 = emptyList(); this.topicListObserver_0 = new ObserverFnWrapper(CourseDiscussionEditComponent$topicListObserver$lambda(this)); this.blockTitleError_u6nmp0$_0 = null; this.startDate_4zkgkv$_0 = L0; this.startTime_4qmsdq$_0 = L0; this.timeZone_q9y2li$_0 = null; this.topicList_7cvs6s$_0 = null; this.fieldsEnabled_hu9v2f$_0 = false; this.entity_mr01c$_0 = null; } Object.defineProperty(CourseDiscussionEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$blockTitleError$lambda(this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.titleLabel_0 = this$CourseDiscussionEditComponent.titleLabel_0.copy_d8n4vg$(void 0, this$CourseDiscussionEditComponent.blockTitleError_u6nmp0$_0); return Unit; }; } Object.defineProperty(CourseDiscussionEditComponent.prototype, 'blockTitleError', { configurable: true, get: function () { return this.blockTitleError_u6nmp0$_0; }, set: function (value) { this.blockTitleError_u6nmp0$_0 = value; setState(this, CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$blockTitleError$lambda(this)); } }); function CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$startDate$lambda(closure$value, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.startDate_4zkgkv$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseDiscussionEditComponent.prototype, 'startDate', { configurable: true, get: function () { return this.startDate_4zkgkv$_0; }, set: function (value) { setState(this, CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$startDate$lambda(value, this)); } }); function CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$startTime$lambda(closure$value, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.startTime_4qmsdq$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseDiscussionEditComponent.prototype, 'startTime', { configurable: true, get: function () { return this.startTime_4qmsdq$_0; }, set: function (value) { setState(this, CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$startTime$lambda(value, this)); } }); function CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$timeZone$lambda(closure$value, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.timeZone_q9y2li$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseDiscussionEditComponent.prototype, 'timeZone', { configurable: true, get: function () { return this.timeZone_q9y2li$_0; }, set: function (value) { setState(this, CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$timeZone$lambda(value, this)); } }); Object.defineProperty(CourseDiscussionEditComponent.prototype, 'topicList', { configurable: true, get: function () { return this.topicList_7cvs6s$_0; }, set: function (value) { var tmp$; (tmp$ = this.topicList_7cvs6s$_0) != null ? (tmp$.removeObserver_jsfaok$(this.topicListObserver_0), Unit) : null; this.topicList_7cvs6s$_0 = value; value != null ? (value.observe_igxi3b$(this, this.topicListObserver_0), Unit) : null; } }); function CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$fieldsEnabled$lambda(closure$value, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.fieldsEnabled_hu9v2f$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseDiscussionEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_hu9v2f$_0; }, set: function (value) { setState(this, CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$fieldsEnabled$lambda(value, this)); } }); function CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$entity$lambda(closure$value, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.entity_mr01c$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseDiscussionEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_mr01c$_0; }, set: function (value) { setState(this, CourseDiscussionEditComponent$set_CourseDiscussionEditComponent$entity$lambda(value, this)); } }); CourseDiscussionEditComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new CourseDiscussionEditPresenter(this, this.arguments, this, this, this.di); this.setEditTitle_vux9f0$(2954, 2955); napier_0.Napier.d_82mfvz$('CourseDiscussionEditComponent: navController viewName = ' + toString((tmp$ = this.navController.currentBackStackEntry) != null ? tmp$.viewName : null) + ('stateHandle=' + toString((tmp$_2 = Kotlin.isType(tmp$_1 = (tmp$_0 = this.navController.currentBackStackEntry) != null ? tmp$_0.savedStateHandle : null, UstadSavedStateHandleJs) ? tmp$_1 : null) != null ? tmp$_2.dumpToString() : null))); (tmp$_3 = this.mPresenter_0) != null ? (tmp$_3.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$CourseDiscussionEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$CourseDiscussionEditComponent.entity) != null ? tmp$.courseDiscussion : null) != null ? (tmp$_0.courseDiscussionTitle = closure$it) : null; this$CourseDiscussionEditComponent.blockTitleError = null; return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda(this$CourseDiscussionEditComponent) { return function (it) { setState(this$CourseDiscussionEditComponent, CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda(it, this$CourseDiscussionEditComponent)); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda(this$CourseDiscussionEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$CourseDiscussionEditComponent.titleLabel_0.text); tmp$_0 = this$CourseDiscussionEditComponent.titleLabel_0.errorText; tmp$_3 = (tmp$_2 = (tmp$_1 = this$CourseDiscussionEditComponent.entity) != null ? tmp$_1.courseDiscussion : null) != null ? tmp$_2.courseDiscussionTitle : null; tmp$_4 = this$CourseDiscussionEditComponent.titleLabel_0.error; tmp$_5 = !this$CourseDiscussionEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), CourseDiscussionEditComponent$render$lambda$lambda$lambda(this$CourseDiscussionEditComponent), void 0, void 0, tmp$_5, tmp$_4); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda_0(closure$it, this$CourseDiscussionEditComponent) { return function ($receiver) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$CourseDiscussionEditComponent.entity) != null ? tmp$.courseDiscussion : null) != null ? (tmp$_0.courseDiscussionDesc = closure$it) : null; this$CourseDiscussionEditComponent.blockTitleError = null; return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda_0(this$CourseDiscussionEditComponent) { return function (it) { setState(this$CourseDiscussionEditComponent, CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda_0(it, this$CourseDiscussionEditComponent)); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda_0(this$CourseDiscussionEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$CourseDiscussionEditComponent.descriptionLabel_0.text); tmp$_0 = this$CourseDiscussionEditComponent.descriptionLabel_0.errorText; tmp$_3 = (tmp$_2 = (tmp$_1 = this$CourseDiscussionEditComponent.entity) != null ? tmp$_1.courseDiscussion : null) != null ? tmp$_2.courseDiscussionDesc : null; tmp$_4 = this$CourseDiscussionEditComponent.descriptionLabel_0.error; tmp$_5 = !this$CourseDiscussionEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), CourseDiscussionEditComponent$render$lambda$lambda$lambda_0(this$CourseDiscussionEditComponent), void 0, void 0, tmp$_5, tmp$_4); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda_1(this$CourseDiscussionEditComponent) { return function (it) { setState(this$CourseDiscussionEditComponent, CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$CourseDiscussionEditComponent)); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda_1(this$CourseDiscussionEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$CourseDiscussionEditComponent.doNotShowBeforeLabel_0.text); tmp$_0 = this$CourseDiscussionEditComponent.doNotShowBeforeLabel_0.error; tmp$_1 = this$CourseDiscussionEditComponent.doNotShowBeforeLabel_0.errorText; tmp$_2 = toDate(this$CourseDiscussionEditComponent.startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda_1(this$CourseDiscussionEditComponent), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda_2(this$CourseDiscussionEditComponent) { return function (it) { setState(this$CourseDiscussionEditComponent, CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(it, this$CourseDiscussionEditComponent)); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda_2(this$CourseDiscussionEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$CourseDiscussionEditComponent.startTimeLabel_0.text); tmp$_0 = this$CourseDiscussionEditComponent.startTimeLabel_0.error; tmp$_1 = this$CourseDiscussionEditComponent.startTimeLabel_0.errorText; tmp$_2 = toDate(this$CourseDiscussionEditComponent.startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, CourseDiscussionEditComponent$render$lambda$lambda$lambda$lambda_2(this$CourseDiscussionEditComponent), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda_1(this$CourseDiscussionEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, CourseDiscussionEditComponent$render$lambda$lambda$lambda_1(this$CourseDiscussionEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, CourseDiscussionEditComponent$render$lambda$lambda$lambda_2(this$CourseDiscussionEditComponent)); return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda_3(this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.showAddEntryOptions = true; return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda_2(this$CourseDiscussionEditComponent) { return function () { var tmp$; setState(this$CourseDiscussionEditComponent, CourseDiscussionEditComponent$render$lambda$lambda$lambda_3(this$CourseDiscussionEditComponent)); (tmp$ = this$CourseDiscussionEditComponent.mPresenter_0) != null ? (tmp$.handleClickAddTopic(), Unit) : null; return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda_4(this$CourseDiscussionEditComponent) { return function (fromIndex, toIndex) { var tmp$; (tmp$ = this$CourseDiscussionEditComponent.mPresenter_0) != null ? tmp$.onItemMove_vux9f0$(fromIndex, toIndex) : null; return Unit; }; } function CourseDiscussionEditComponent$render$lambda$lambda$lambda_5(this$CourseDiscussionEditComponent) { return function (it) { var tmp$; (tmp$ = this$CourseDiscussionEditComponent.mPresenter_0) != null ? (tmp$.handleClickTopic_1ddffl$(it), Unit) : null; return Unit; }; } CourseDiscussionEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_16); var tmp$; $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionEditComponent$render$lambda$lambda(this)); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionEditComponent$render$lambda$lambda_0(this)); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionEditComponent$render$lambda$lambda_1(this)); renderListSectionTitle($receiver_0, this.getString_za3lpa$(2908)); var createTopic = new CreateNewItem(true, this.getString_za3lpa$(2909), CourseDiscussionEditComponent$render$lambda$lambda_2(this)); if ((tmp$ = this.mPresenter_0) != null) { this.renderTopics_0($receiver_0, tmp$, toList(toSet(this.topicsList_0)), createTopic, CourseDiscussionEditComponent$render$lambda$lambda$lambda_4(this), CourseDiscussionEditComponent$render$lambda$lambda$lambda_5(this)); }umSpacer($receiver_0); $receiver.child_30b5ua$($receiver_0.create()); }; function CourseDiscussionEditComponent$renderTopics$lambda(closure$blocks, closure$presenter, closure$onEntryClicked, closure$createNewItem, closure$onSortEnd) { return function ($receiver) { $receiver.attrs.entries = closure$blocks; $receiver.attrs.presenter = closure$presenter; $receiver.attrs.draggable = true; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.onSortEnd = closure$onSortEnd; return Unit; }; } CourseDiscussionEditComponent.prototype.renderTopics_0 = function ($receiver, presenter, blocks, createNewItem, onSortEnd, onEntryClicked) { if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(CourseDiscussionEditComponent$DiscussionTopicListComponent), CourseDiscussionEditComponent$renderTopics$lambda(blocks, presenter, onEntryClicked, createNewItem, onSortEnd)); }; function CourseDiscussionEditComponent$DiscussionTopicListProps() { } CourseDiscussionEditComponent$DiscussionTopicListProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'DiscussionTopicListProps', interfaces: [SimpleListProps] }; function CourseDiscussionEditComponent$DiscussionTopicListComponent(mProps) { UstadSimpleList.call(this, mProps); this.menuOptions_0 = ArrayList_init_0(); this.showPopOverOptions_0 = false; this.anchorElement_0 = null; } function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda$lambda(this$DiscussionTopicListComponent) { return function ($receiver) { this$DiscussionTopicListComponent.showPopOverOptions_0 = false; this$DiscussionTopicListComponent.anchorElement_0 = null; return Unit; }; } function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda(this$DiscussionTopicListComponent) { return function () { setState(this$DiscussionTopicListComponent, CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda$lambda(this$DiscussionTopicListComponent)); return Unit; }; } function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda$lambda$lambda$lambda(this$DiscussionTopicListComponent) { return function ($receiver) { this$DiscussionTopicListComponent.showPopOverOptions_0 = false; this$DiscussionTopicListComponent.anchorElement_0 = null; return Unit; }; } function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda$lambda$lambda(closure$option, this$DiscussionTopicListComponent) { return function (it) { closure$option.onClick(it); setState(this$DiscussionTopicListComponent, CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda$lambda$lambda$lambda(this$DiscussionTopicListComponent)); return Unit; }; } function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda_0(this$DiscussionTopicListComponent) { return function ($receiver) { var $receiver_0 = this$DiscussionTopicListComponent.menuOptions_0; var destination = ArrayList_init_0(); var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (element.show) destination.add_11rb$(element); } var tmp$_0; tmp$_0 = destination.iterator(); while (tmp$_0.hasNext()) { var element_0 = tmp$_0.next(); var this$DiscussionTopicListComponent_0 = this$DiscussionTopicListComponent; umMenuItem($receiver, ' ' + this$DiscussionTopicListComponent_0.getString_za3lpa$(element_0.titleId) + ' ', void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda$lambda$lambda(element_0, this$DiscussionTopicListComponent_0)); } return Unit; }; } CourseDiscussionEditComponent$DiscussionTopicListComponent.prototype.renderMoreDialogOptions_ss14n$ = function ($receiver) { umMenu($receiver, this.showPopOverOptions_0, this.anchorElement_0, CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda(this), void 0, void 0, CourseDiscussionEditComponent$DiscussionTopicListComponent$renderMoreDialogOptions$lambda_0(this)); }; function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderListItem$lambda$lambda_0(closure$presenter, closure$item) { return function (it) { closure$presenter.handleClickDeleteTopic_1ddffl$(closure$item); return Unit; }; } function CourseDiscussionEditComponent$DiscussionTopicListComponent$renderListItem$lambda(closure$onClick, this$DiscussionTopicListComponent, closure$item) { return function ($receiver) { var tmp$; $receiver.attrs.onClick = CourseDiscussionEditComponent$DiscussionTopicListComponent$renderListItem$lambda$lambda(closure$onClick); var presenter = Kotlin.isType(tmp$ = this$DiscussionTopicListComponent.props.presenter, CourseDiscussionEditPresenter) ? tmp$ : throwCCE(); renderListItemWithTitleDescriptionAndRightAction($receiver, toString(closure$item.discussionTopicTitle), 'delete', this$DiscussionTopicListComponent.props.withDelete, void 0, CourseDiscussionEditComponent$DiscussionTopicListComponent$renderListItem$lambda$lambda_0(presenter, closure$item)); return Unit; }; } CourseDiscussionEditComponent$DiscussionTopicListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, CourseDiscussionEditComponent$DiscussionTopicListComponent$renderListItem$lambda(onClick, this, item)); }; CourseDiscussionEditComponent$DiscussionTopicListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'DiscussionTopicListComponent', interfaces: [UstadSimpleList] }; CourseDiscussionEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.blockTitleError = null; }; function CourseDiscussionEditComponent$topicListObserver$lambda$lambda(closure$it, this$CourseDiscussionEditComponent) { return function ($receiver) { this$CourseDiscussionEditComponent.topicsList_0 = closure$it; return Unit; }; } function CourseDiscussionEditComponent$topicListObserver$lambda(this$CourseDiscussionEditComponent) { return function (it) { setState(this$CourseDiscussionEditComponent, CourseDiscussionEditComponent$topicListObserver$lambda$lambda(it, this$CourseDiscussionEditComponent)); return Unit; }; } CourseDiscussionEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseDiscussionEditComponent', interfaces: [CourseDiscussionEditView, UstadEditComponent] }; function CourseGroupSetDetailComponent(props) { UstadDetailComponent.call(this, props); this.mPresenter_0 = null; this.memberList_o95irr$_0 = null; this.entity_488jda$_0 = null; } Object.defineProperty(CourseGroupSetDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function CourseGroupSetDetailComponent$set_CourseGroupSetDetailComponent$memberList$lambda(closure$value, this$CourseGroupSetDetailComponent) { return function ($receiver) { this$CourseGroupSetDetailComponent.memberList_o95irr$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseGroupSetDetailComponent.prototype, 'memberList', { configurable: true, get: function () { return this.memberList_o95irr$_0; }, set: function (value) { setState(this, CourseGroupSetDetailComponent$set_CourseGroupSetDetailComponent$memberList$lambda(value, this)); } }); function CourseGroupSetDetailComponent$set_CourseGroupSetDetailComponent$entity$lambda(closure$value, this$CourseGroupSetDetailComponent) { return function () { this$CourseGroupSetDetailComponent.ustadComponentTitle = closure$value != null ? closure$value.cgsName : null; return Unit; }; } Object.defineProperty(CourseGroupSetDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_488jda$_0; }, set: function (value) { this.entity_488jda$_0 = value; this.updateUiWithStateChangeDelay_n53o35$(void 0, CourseGroupSetDetailComponent$set_CourseGroupSetDetailComponent$entity$lambda(value, this)); } }); CourseGroupSetDetailComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new CourseGroupSetDetailPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function CourseGroupSetDetailComponent$render$lambda$lambda$lambda$lambda(closure$it) { return function ($receiver) { renderListItemWithLeftIconTitleAndDescription($receiver, 'person', closure$it.fullName(), void 0, true, void 0, TypographyVariant$h6_getInstance()); return Unit; }; } function CourseGroupSetDetailComponent$render$lambda$lambda(this$CourseGroupSetDetailComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().horizontalList($receiver.css); if ((tmp$ = this$CourseGroupSetDetailComponent.memberList) != null) { var tmp$_0; tmp$_0 = tmp$.iterator(); while (tmp$_0.hasNext()) { var element = tmp$_0.next(); var this$CourseGroupSetDetailComponent_0 = this$CourseGroupSetDetailComponent; var tmp$_1; if (equals(element.personUid, L0)) { umSpacer($receiver); renderListSectionTitle($receiver, format(this$CourseGroupSetDetailComponent_0.getString_za3lpa$(2921), [toString((tmp$_1 = element.member) != null ? tmp$_1.cgmGroupNumber : null)])); } else { umListItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, CourseGroupSetDetailComponent$render$lambda$lambda$lambda$lambda(element)); } } }return Unit; }; } function CourseGroupSetDetailComponent$render$lambda(this$CourseGroupSetDetailComponent) { return function ($receiver) { StyleManager_getInstance().contentContainer($receiver.css); umList($receiver, void 0, void 0, void 0, void 0, void 0, CourseGroupSetDetailComponent$render$lambda$lambda(this$CourseGroupSetDetailComponent)); return Unit; }; } CourseGroupSetDetailComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, CourseGroupSetDetailComponent$render$lambda(this)); }; CourseGroupSetDetailComponent.prototype.onDestroyView = function () { UstadDetailComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; CourseGroupSetDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseGroupSetDetailComponent', interfaces: [CourseGroupSetDetailView, UstadDetailComponent] }; function styledDiv$lambda_17(it) { return new DIV_init(html.emptyMap, it); } function CourseGroupSetEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.groupLabel_0 = new FieldLabel(this.getString_za3lpa$(2844)); this.numberOfGroups_0 = 0; this.memberList_ur3f8g$_0 = null; this.groupList_eaxsv3$_0 = null; this.fieldsEnabled_hfqqj0$_0 = false; this.groupNumberChangeTaskId = -1; this.entity_ddkzhx$_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.numberOfLabel_0 = new FieldLabel(this.getString_za3lpa$(2904)); } Object.defineProperty(CourseGroupSetEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$memberList$lambda(closure$value, this$CourseGroupSetEditComponent) { return function ($receiver) { this$CourseGroupSetEditComponent.memberList_ur3f8g$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseGroupSetEditComponent.prototype, 'memberList', { configurable: true, get: function () { return this.memberList_ur3f8g$_0; }, set: function (value) { setState(this, CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$memberList$lambda(value, this)); } }); function CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$groupList$lambda(closure$value, this$CourseGroupSetEditComponent) { return function ($receiver) { this$CourseGroupSetEditComponent.groupList_eaxsv3$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseGroupSetEditComponent.prototype, 'groupList', { configurable: true, get: function () { return this.groupList_eaxsv3$_0; }, set: function (value) { setState(this, CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$groupList$lambda(value, this)); } }); function CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$fieldsEnabled$lambda(closure$value, this$CourseGroupSetEditComponent) { return function ($receiver) { this$CourseGroupSetEditComponent.fieldsEnabled_hfqqj0$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseGroupSetEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_hfqqj0$_0; }, set: function (value) { setState(this, CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$fieldsEnabled$lambda(value, this)); } }); function CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$entity$lambda(closure$value, this$CourseGroupSetEditComponent) { return function ($receiver) { this$CourseGroupSetEditComponent.entity_ddkzhx$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseGroupSetEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_ddkzhx$_0; }, set: function (value) { setState(this, CourseGroupSetEditComponent$set_CourseGroupSetEditComponent$entity$lambda(value, this)); } }); CourseGroupSetEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new CourseGroupSetEditPresenter(this, this.arguments, this, this, this.di); this.setEditTitle_vux9f0$(2906, 2924); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$CourseGroupSetEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$CourseGroupSetEditComponent.entity) != null ? (tmp$.cgsName = closure$it) : null; return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda(this$CourseGroupSetEditComponent) { return function (it) { setState(this$CourseGroupSetEditComponent, CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$CourseGroupSetEditComponent)); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda(this$CourseGroupSetEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$CourseGroupSetEditComponent.titleLabel_0.text); tmp$_0 = this$CourseGroupSetEditComponent.titleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$CourseGroupSetEditComponent.entity) != null ? tmp$_1.cgsName : null; tmp$_3 = this$CourseGroupSetEditComponent.titleLabel_0.error; tmp$_4 = !this$CourseGroupSetEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda(this$CourseGroupSetEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$numberOfGroups, this$CourseGroupSetEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$CourseGroupSetEditComponent.entity) != null ? (tmp$.cgsTotalGroups = closure$numberOfGroups) : null; return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$CourseGroupSetEditComponent, closure$numberOfGroups) { return function () { var tmp$; return (tmp$ = this$CourseGroupSetEditComponent.mPresenter_0) != null ? (tmp$.handleNumberOfGroupsChanged_za3lpa$(closure$numberOfGroups), Unit) : null; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda_0(this$CourseGroupSetEditComponent) { return function (nOfGroups) { var numberOfGroups = toInt(nOfGroups.length === 0 ? '0' : nOfGroups); setState(this$CourseGroupSetEditComponent, CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(numberOfGroups, this$CourseGroupSetEditComponent)); window.clearTimeout(this$CourseGroupSetEditComponent.groupNumberChangeTaskId); this$CourseGroupSetEditComponent.groupNumberChangeTaskId = window.setTimeout(CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$CourseGroupSetEditComponent, numberOfGroups), 1000); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda_0(this$CourseGroupSetEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$CourseGroupSetEditComponent.numberOfLabel_0.text); tmp$_0 = this$CourseGroupSetEditComponent.numberOfLabel_0.errorText; tmp$_2 = toString((tmp$_1 = this$CourseGroupSetEditComponent.entity) != null ? tmp$_1.cgsTotalGroups : null); tmp$_3 = this$CourseGroupSetEditComponent.numberOfLabel_0.error; tmp$_4 = !this$CourseGroupSetEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda_0(this$CourseGroupSetEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda_1(this$CourseGroupSetEditComponent) { return function (it) { var tmp$; (tmp$ = this$CourseGroupSetEditComponent.mPresenter_0) != null ? (tmp$.handleAssignRandomGroupsClicked(), Unit) : null; return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda_2($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda_1(this$CourseGroupSetEditComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = this$CourseGroupSetEditComponent.getString_za3lpa$(2905); tmp$_0 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, UMColor$secondary_getInstance(), ButtonVariant$contained_getInstance(), void 0, CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda_1(this$CourseGroupSetEditComponent), tmp$_0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda_2); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda(this$CourseGroupSetEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda$lambda(this$CourseGroupSetEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda$lambda_0(this$CourseGroupSetEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda$lambda_1(this$CourseGroupSetEditComponent)); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { return Unit; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$CourseGroupSetEditComponent, closure$index) { return function (it) { var tmp$; (tmp$ = ensureNotNull(this$CourseGroupSetEditComponent.memberList).get_za3lpa$(closure$index).member) != null ? (tmp$.cgmGroupNumber = toInt(it)) : null; setState(this$CourseGroupSetEditComponent, CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(closure$groupMember, this$CourseGroupSetEditComponent, closure$index) { return function ($receiver) { var tmp$; renderListItemWithLeftIconTitleAndOptionOnRight($receiver, toString((tmp$ = closure$groupMember.member) != null ? tmp$.cgmGroupNumber : null), 'person', toString(closure$groupMember.firstNames) + ' ' + toString(closure$groupMember.lastName), this$CourseGroupSetEditComponent.groupList, this$CourseGroupSetEditComponent.groupLabel_0, CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$CourseGroupSetEditComponent, closure$index)); return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda$lambda_2(this$CourseGroupSetEditComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().horizontalList($receiver.css); if ((tmp$ = this$CourseGroupSetEditComponent.memberList) != null) { var tmp$_0, tmp$_0_0; var index = 0; tmp$_0 = tmp$.iterator(); while (tmp$_0.hasNext()) { var item = tmp$_0.next(); umListItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(item, this$CourseGroupSetEditComponent, checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)))); } }return Unit; }; } function CourseGroupSetEditComponent$render$lambda$lambda_0(this$CourseGroupSetEditComponent) { return function ($receiver) { umList($receiver, void 0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda$lambda_2(this$CourseGroupSetEditComponent)); return Unit; }; } CourseGroupSetEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_17); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda(this)); umSpacer($receiver_0); umItem($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, CourseGroupSetEditComponent$render$lambda$lambda_0(this)); $receiver.child_30b5ua$($receiver_0.create()); }; CourseGroupSetEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; CourseGroupSetEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseGroupSetEditComponent', interfaces: [CourseGroupSetEditView, UstadEditComponent] }; function CourseGroupSetListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; this.individualList_mbzpw3$_0 = null; } Object.defineProperty(CourseGroupSetListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.courseGroupSetDao : null; } }); Object.defineProperty(CourseGroupSetListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function CourseGroupSetListComponent$set_CourseGroupSetListComponent$individualList$lambda(closure$value, this$CourseGroupSetListComponent) { return function ($receiver) { this$CourseGroupSetListComponent.individualList_mbzpw3$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseGroupSetListComponent.prototype, 'individualList', { configurable: true, get: function () { return this.individualList_mbzpw3$_0; }, set: function (value) { setState(this, CourseGroupSetListComponent$set_CourseGroupSetListComponent$individualList$lambda(value, this)); } }); CourseGroupSetListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2455); this.showCreateNewItem = true; this.addNewEntryText = this.getString_za3lpa$(2906); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2455)) : null; this.mPresenter_0 = new CourseGroupSetListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function CourseGroupSetListComponent$renderListJoinView$lambda$lambda$lambda$lambda(closure$group, this$CourseGroupSetListComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$CourseGroupSetListComponent.handleClickEntry_11rc$(closure$group); return Unit; }; } function CourseGroupSetListComponent$renderListJoinView$lambda$lambda$lambda(closure$group, this$CourseGroupSetListComponent) { return function ($receiver) { $receiver.attrs.onClick = CourseGroupSetListComponent$renderListJoinView$lambda$lambda$lambda$lambda(closure$group, this$CourseGroupSetListComponent); renderListItemWithLeftIconTitleAndDescription($receiver, 'groups', closure$group.cgsName, void 0, true, void 0, TypographyVariant$h6_getInstance()); return Unit; }; } function CourseGroupSetListComponent$renderListJoinView$lambda(this$CourseGroupSetListComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().horizontalList($receiver.css); if ((tmp$ = this$CourseGroupSetListComponent.individualList) != null) { var tmp$_0; tmp$_0 = tmp$.iterator(); while (tmp$_0.hasNext()) { var element = tmp$_0.next(); umListItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, CourseGroupSetListComponent$renderListJoinView$lambda$lambda$lambda(element, this$CourseGroupSetListComponent)); } }return Unit; }; } CourseGroupSetListComponent.prototype.renderListJoinView_ss14n$ = function ($receiver) { umList($receiver, void 0, void 0, void 0, void 0, void 0, CourseGroupSetListComponent$renderListJoinView$lambda(this)); }; CourseGroupSetListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { renderListItemWithLeftIconTitleAndDescription($receiver, 'groups', item.cgsName, void 0, true, void 0, TypographyVariant$h6_getInstance()); }; CourseGroupSetListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; CourseGroupSetListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; CourseGroupSetListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseGroupSetListComponent', interfaces: [CourseGroupSetListView, UstadListComponent] }; function styledDiv$lambda_18(it) { return new DIV_init(html.emptyMap, it); } function CourseTerminologyEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2046)); this.titleErrorText_1f17t9$_0 = null; this.terminologyTermList_mqaftl$_0 = null; this.fieldsEnabled_pu41l0$_0 = false; this.entity_2mbjmb$_0 = null; } Object.defineProperty(CourseTerminologyEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$titleErrorText$lambda(this$CourseTerminologyEditComponent, closure$value) { return function ($receiver) { this$CourseTerminologyEditComponent.titleLabel_0 = this$CourseTerminologyEditComponent.titleLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(CourseTerminologyEditComponent.prototype, 'titleErrorText', { configurable: true, get: function () { return this.titleErrorText_1f17t9$_0; }, set: function (value) { this.titleErrorText_1f17t9$_0 = value; setState(this, CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$titleErrorText$lambda(this, value)); } }); function CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$terminologyTermList$lambda(closure$value, this$CourseTerminologyEditComponent) { return function ($receiver) { this$CourseTerminologyEditComponent.terminologyTermList_mqaftl$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseTerminologyEditComponent.prototype, 'terminologyTermList', { configurable: true, get: function () { return this.terminologyTermList_mqaftl$_0; }, set: function (value) { this.terminologyTermList_mqaftl$_0 = value; setState(this, CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$terminologyTermList$lambda(value, this)); } }); function CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$fieldsEnabled$lambda(closure$value, this$CourseTerminologyEditComponent) { return function ($receiver) { this$CourseTerminologyEditComponent.fieldsEnabled_pu41l0$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseTerminologyEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_pu41l0$_0; }, set: function (value) { setState(this, CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$fieldsEnabled$lambda(value, this)); } }); function CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$entity$lambda(closure$value, this$CourseTerminologyEditComponent) { return function ($receiver) { this$CourseTerminologyEditComponent.entity_2mbjmb$_0 = closure$value; return Unit; }; } Object.defineProperty(CourseTerminologyEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_2mbjmb$_0; }, set: function (value) { setState(this, CourseTerminologyEditComponent$set_CourseTerminologyEditComponent$entity$lambda(value, this)); } }); CourseTerminologyEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new CourseTerminologyEditPresenter(this, this.arguments, this, this, this.di); this.setEditTitle_vux9f0$(2900, 2901); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$CourseTerminologyEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$CourseTerminologyEditComponent.entity) != null ? (tmp$.ctTitle = closure$it) : null; this$CourseTerminologyEditComponent.titleErrorText = null; return Unit; }; } function CourseTerminologyEditComponent$render$lambda$lambda$lambda(this$CourseTerminologyEditComponent) { return function (it) { setState(this$CourseTerminologyEditComponent, CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda(it, this$CourseTerminologyEditComponent)); return Unit; }; } function CourseTerminologyEditComponent$render$lambda$lambda(this$CourseTerminologyEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$CourseTerminologyEditComponent.titleLabel_0.text); tmp$_0 = this$CourseTerminologyEditComponent.titleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$CourseTerminologyEditComponent.entity) != null ? tmp$_1.ctTitle : null; tmp$_3 = this$CourseTerminologyEditComponent.titleLabel_0.error; tmp$_4 = !this$CourseTerminologyEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), CourseTerminologyEditComponent$render$lambda$lambda$lambda(this$CourseTerminologyEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$CourseTerminologyEditComponent, closure$index) { return function ($receiver) { ensureNotNull(this$CourseTerminologyEditComponent.terminologyTermList).get_za3lpa$(closure$index).term = closure$it; ensureNotNull(this$CourseTerminologyEditComponent.terminologyTermList).get_za3lpa$(closure$index).errorMessage = null; return Unit; }; } function CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$CourseTerminologyEditComponent, closure$index) { return function (it) { setState(this$CourseTerminologyEditComponent, CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$CourseTerminologyEditComponent, closure$index)); return Unit; }; } function CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda_0(closure$fieldLabel, closure$item, this$CourseTerminologyEditComponent, closure$index) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$fieldLabel.text); tmp$_0 = closure$fieldLabel.errorText; tmp$_1 = closure$item.term; tmp$_2 = closure$fieldLabel.error; tmp$_3 = !this$CourseTerminologyEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$CourseTerminologyEditComponent, closure$index), void 0, void 0, tmp$_3, tmp$_2); return Unit; }; } function CourseTerminologyEditComponent$render$lambda$lambda_0(this$CourseTerminologyEditComponent) { return function ($receiver) { var tmp$; if ((tmp$ = this$CourseTerminologyEditComponent.terminologyTermList) != null) { var tmp$_0, tmp$_0_0; var index = 0; tmp$_0 = tmp$.iterator(); while (tmp$_0.hasNext()) { var item = tmp$_0.next(); var this$CourseTerminologyEditComponent_0 = this$CourseTerminologyEditComponent; var index_0 = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); var fieldLabel = new FieldLabel(this$CourseTerminologyEditComponent_0.getString_za3lpa$(item.messageId), item.errorMessage); umItem($receiver, GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, CourseTerminologyEditComponent$render$lambda$lambda$lambda$lambda_0(fieldLabel, item, this$CourseTerminologyEditComponent_0, index_0)); } }return Unit; }; } CourseTerminologyEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_18); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, CourseTerminologyEditComponent$render$lambda$lambda(this)); umSpacer($receiver_0); renderListSectionTitle($receiver_0, this.getString_za3lpa$(2902)); umSpacer($receiver_0); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, CourseTerminologyEditComponent$render$lambda$lambda_0(this)); $receiver.child_30b5ua$($receiver_0.create()); }; CourseTerminologyEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.titleErrorText = null; }; CourseTerminologyEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseTerminologyEditComponent', interfaces: [CourseTerminologyEditView, UstadEditComponent] }; function CourseTerminologyListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; } Object.defineProperty(CourseTerminologyListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.courseTerminologyDao : null; } }); Object.defineProperty(CourseTerminologyListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); CourseTerminologyListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2899); this.showCreateNewItem = true; this.addNewEntryText = this.getString_za3lpa$(2900); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new CourseTerminologyListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; CourseTerminologyListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { renderListItemWithLeftIconTitleAndDescription($receiver, 'language', item.ctTitle, void 0, true); }; CourseTerminologyListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.onClickCourseTerminology_9k9ym$(entry), Unit) : null; }; CourseTerminologyListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; CourseTerminologyListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'CourseTerminologyListComponent', interfaces: [CourseTerminologyListView, UstadListComponent] }; function DiscussionPostDetailComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter_0 = null; this.typedMessage_0 = ''; this.messages_0 = ArrayList_init_0(); this.enterNewLine_0 = false; this.observer_0 = new ObserverFnWrapper(DiscussionPostDetailComponent$observer$lambda(this)); this.replies_rq1bt1$_0 = null; this.editButtonMode_pkicoo$_0 = EditButtonMode.GONE; this.entity_kmayyk$_0 = null; } Object.defineProperty(DiscussionPostDetailComponent.prototype, 'title', { configurable: true, get: function () { return this.ustadComponentTitle; }, set: function (value) { this.ustadComponentTitle = value; } }); Object.defineProperty(DiscussionPostDetailComponent.prototype, 'replies', { configurable: true, get: function () { return this.replies_rq1bt1$_0; }, set: function (value) { this.replies_rq1bt1$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.observer_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.observer_0), Unit) : null; } }); Object.defineProperty(DiscussionPostDetailComponent.prototype, 'editButtonMode', { configurable: true, get: function () { return this.editButtonMode_pkicoo$_0; }, set: function (editButtonMode) { this.editButtonMode_pkicoo$_0 = editButtonMode; } }); function DiscussionPostDetailComponent$set_DiscussionPostDetailComponent$entity$lambda(closure$value, this$DiscussionPostDetailComponent) { return function ($receiver) { this$DiscussionPostDetailComponent.entity_kmayyk$_0 = closure$value; return Unit; }; } function DiscussionPostDetailComponent$set_DiscussionPostDetailComponent$entity$lambda_0(closure$value, this$DiscussionPostDetailComponent) { return function () { this$DiscussionPostDetailComponent.ustadComponentTitle = closure$value.discussionPostTitle; return Unit; }; } Object.defineProperty(DiscussionPostDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_kmayyk$_0; }, set: function (value) { setState(this, DiscussionPostDetailComponent$set_DiscussionPostDetailComponent$entity$lambda(value, this)); if ((value != null ? value.discussionPostTitle : null) != null) { this.updateUiWithStateChangeDelay_n53o35$(void 0, DiscussionPostDetailComponent$set_DiscussionPostDetailComponent$entity$lambda_0(value, this)); }} }); DiscussionPostDetailComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new DiscussionPostDetailPresenter(this, this.arguments, this, this.di); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function DiscussionPostDetailComponent$render$lambda$lambda($receiver) { umItemThumbnail($receiver, 'person', void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); return Unit; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); return Unit; } function DiscussionPostDetailComponent$render$lambda$lambda_0(this$DiscussionPostDetailComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; umTypography($receiver, ((tmp$ = this$DiscussionPostDetailComponent.entity) != null ? tmp$.authorPersonFirstNames : null) + ' ' + ((tmp$_0 = this$DiscussionPostDetailComponent.entity) != null ? tmp$_0.authorPersonLastName : null), TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, DiscussionPostDetailComponent$render$lambda$lambda$lambda); linkifyReactTextView($receiver, (tmp$_1 = this$DiscussionPostDetailComponent.entity) != null ? tmp$_1.discussionPostMessage : null, this$DiscussionPostDetailComponent.systemImpl, this$DiscussionPostDetailComponent.accountManager, $receiver); return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda_1(this$DiscussionPostDetailComponent) { return function ($receiver) { margin($receiver.css, void 0, void 0, get_spacingUnits(10)); var $receiver_0 = this$DiscussionPostDetailComponent.messages_0; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var this$DiscussionPostDetailComponent_0 = this$DiscussionPostDetailComponent; var tmp$_0, tmp$_1; var fromMe = equals(this$DiscussionPostDetailComponent_0.accountManager.activeAccount.personUid, (tmp$_0 = element.messagePerson) != null ? tmp$_0.personUid : null); renderConversationListItem($receiver, !fromMe, fromMe ? this$DiscussionPostDetailComponent_0.getString_za3lpa$(2937) : (tmp$_1 = element.messagePerson) != null ? tmp$_1.fullName() : null, element.messageText, this$DiscussionPostDetailComponent_0.systemImpl, this$DiscussionPostDetailComponent_0.accountManager, $receiver, element.messageTimestamp); } return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$DiscussionPostDetailComponent) { return function ($receiver) { this$DiscussionPostDetailComponent.typedMessage_0 = get_targetInputValue(closure$it); return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda(this$DiscussionPostDetailComponent) { return function (it) { setState(this$DiscussionPostDetailComponent, DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$DiscussionPostDetailComponent)); return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_0(this$DiscussionPostDetailComponent) { return function (it) { var tmp$ = it.shiftKey; if (tmp$) { tmp$ = equals(it.key.toLowerCase(), 'enter'); }if (tmp$) { it.preventDefault(); it.target.value += '\n'; }var tmp$_0 = !it.shiftKey; if (tmp$_0) { tmp$_0 = equals(it.key.toLowerCase(), 'enter'); }if (tmp$_0) { it.preventDefault(); this$DiscussionPostDetailComponent.handleSendMessage_0(); }return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda$ObjectLiteral() { this.className = StyleManager_getInstance().name + '-chatInputMessageClass'; } DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [] }; function DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_1($receiver) { set_fontSize($receiver.css, get_em(1.3)); $receiver.attrs.inputProps = new DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda$ObjectLiteral(); return Unit; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda_0(this$DiscussionPostDetailComponent) { return function ($receiver) { StyleManager_getInstance().chatDetailNewMessage($receiver.css); umInput($receiver, this$DiscussionPostDetailComponent.typedMessage_0, void 0, void 0, void 0, void 0, void 0, void 0, this$DiscussionPostDetailComponent.getString_za3lpa$(2956), true, void 0, void 0, 'um-message-input', void 0, true, void 0, Color.Companion.white, 2, DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda(this$DiscussionPostDetailComponent), void 0, DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_0(this$DiscussionPostDetailComponent), void 0, null, DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_1); return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_2(this$DiscussionPostDetailComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); if (this$DiscussionPostDetailComponent.typedMessage_0.length > 0) { this$DiscussionPostDetailComponent.handleSendMessage_0(); }return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_3($receiver) { set_marginTop($receiver.css, get_spacingUnits(1)); return Unit; } function DiscussionPostDetailComponent$render$lambda$lambda$lambda_1(this$DiscussionPostDetailComponent) { return function ($receiver) { var tmp$, tmp$_0; StyleManager_getInstance().messageSendButton($receiver.css); tmp$ = FabVariant$round_getInstance(); tmp$_0 = ButtonSize$large_getInstance(); umFab($receiver, 'send', '', UMColor$secondary_getInstance(), void 0, DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_2(this$DiscussionPostDetailComponent), tmp$_0, void 0, 'um-chat-send', tmp$, DiscussionPostDetailComponent$render$lambda$lambda$lambda$lambda_3); return Unit; }; } function DiscussionPostDetailComponent$render$lambda$lambda_2(this$DiscussionPostDetailComponent) { return function ($receiver) { StyleManager_getInstance().messageContainer($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), this$DiscussionPostDetailComponent.typedMessage_0.length > 0 ? GridSize$cells10_getInstance() : GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, DiscussionPostDetailComponent$render$lambda$lambda$lambda_0(this$DiscussionPostDetailComponent)); if (this$DiscussionPostDetailComponent.typedMessage_0.length > 0) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.rowReverse, DiscussionPostDetailComponent$render$lambda$lambda$lambda_1(this$DiscussionPostDetailComponent)); }return Unit; }; } function DiscussionPostDetailComponent$render$lambda(this$DiscussionPostDetailComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, DiscussionPostDetailComponent$render$lambda$lambda); umItem($receiver, GridSize$cells8_getInstance(), GridSize$cells9_getInstance(), void 0, void 0, void 0, void 0, void 0, DiscussionPostDetailComponent$render$lambda$lambda_0(this$DiscussionPostDetailComponent)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, DiscussionPostDetailComponent$render$lambda$lambda_1(this$DiscussionPostDetailComponent)); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, DiscussionPostDetailComponent$render$lambda$lambda_2(this$DiscussionPostDetailComponent)); return Unit; }; } DiscussionPostDetailComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, DiscussionPostDetailComponent$render$lambda(this)); }; function DiscussionPostDetailComponent$handleSendMessage$lambda(this$DiscussionPostDetailComponent) { return function ($receiver) { this$DiscussionPostDetailComponent.typedMessage_0 = ''; return Unit; }; } DiscussionPostDetailComponent.prototype.handleSendMessage_0 = function () { var tmp$; if (this.typedMessage_0.length > 0) { (tmp$ = this.mPresenter_0) != null ? (tmp$.addMessage_61zpoe$(this.typedMessage_0), Unit) : null; setState(this, DiscussionPostDetailComponent$handleSendMessage$lambda(this)); }}; DiscussionPostDetailComponent.prototype.onDestroyView = function () { UstadBaseComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; function DiscussionPostDetailComponent$observer$lambda$lambda(closure$it, this$DiscussionPostDetailComponent) { return function ($receiver) { this$DiscussionPostDetailComponent.messages_0 = reversed(closure$it); return Unit; }; } function DiscussionPostDetailComponent$observer$lambda(this$DiscussionPostDetailComponent) { return function (it) { if (it.isEmpty()) return; setState(this$DiscussionPostDetailComponent, DiscussionPostDetailComponent$observer$lambda$lambda(it, this$DiscussionPostDetailComponent)); return Unit; }; } DiscussionPostDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'DiscussionPostDetailComponent', interfaces: [DiscussionPostDetailView, UstadBaseComponent] }; function styledDiv$lambda_19(it) { return new DIV_init(html.emptyMap, it); } function DiscussionPostEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.descriptionLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2912)); this.blockTitleError_vmao2x$_0 = null; this.fieldsEnabled_6988se$_0 = false; this.entity_5d9y23$_0 = null; } Object.defineProperty(DiscussionPostEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function DiscussionPostEditComponent$set_DiscussionPostEditComponent$blockTitleError$lambda(this$DiscussionPostEditComponent) { return function ($receiver) { this$DiscussionPostEditComponent.titleLabel_0 = this$DiscussionPostEditComponent.titleLabel_0.copy_d8n4vg$(void 0, this$DiscussionPostEditComponent.blockTitleError_vmao2x$_0); return Unit; }; } Object.defineProperty(DiscussionPostEditComponent.prototype, 'blockTitleError', { configurable: true, get: function () { return this.blockTitleError_vmao2x$_0; }, set: function (value) { this.blockTitleError_vmao2x$_0 = value; setState(this, DiscussionPostEditComponent$set_DiscussionPostEditComponent$blockTitleError$lambda(this)); } }); function DiscussionPostEditComponent$set_DiscussionPostEditComponent$fieldsEnabled$lambda(closure$value, this$DiscussionPostEditComponent) { return function ($receiver) { this$DiscussionPostEditComponent.fieldsEnabled_6988se$_0 = closure$value; return Unit; }; } Object.defineProperty(DiscussionPostEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_6988se$_0; }, set: function (value) { setState(this, DiscussionPostEditComponent$set_DiscussionPostEditComponent$fieldsEnabled$lambda(value, this)); } }); function DiscussionPostEditComponent$set_DiscussionPostEditComponent$entity$lambda(closure$value, this$DiscussionPostEditComponent) { return function ($receiver) { this$DiscussionPostEditComponent.entity_5d9y23$_0 = closure$value; return Unit; }; } Object.defineProperty(DiscussionPostEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_5d9y23$_0; }, set: function (value) { setState(this, DiscussionPostEditComponent$set_DiscussionPostEditComponent$entity$lambda(value, this)); } }); DiscussionPostEditComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new DiscussionPostEditPresenter(this, this.arguments, this, this.di, this); this.setEditTitle_vux9f0$(2940, 2940); napier_0.Napier.d_82mfvz$('DiscussionPostEditComponent: navController viewName = ' + toString((tmp$ = this.navController.currentBackStackEntry) != null ? tmp$.viewName : null) + ('stateHandle=' + toString((tmp$_2 = Kotlin.isType(tmp$_1 = (tmp$_0 = this.navController.currentBackStackEntry) != null ? tmp$_0.savedStateHandle : null, UstadSavedStateHandleJs) ? tmp$_1 : null) != null ? tmp$_2.dumpToString() : null))); (tmp$_3 = this.mPresenter_0) != null ? (tmp$_3.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function DiscussionPostEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$DiscussionPostEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$DiscussionPostEditComponent.entity) != null ? (tmp$.discussionPostTitle = closure$it) : null; this$DiscussionPostEditComponent.blockTitleError = null; return Unit; }; } function DiscussionPostEditComponent$render$lambda$lambda$lambda(this$DiscussionPostEditComponent) { return function (it) { setState(this$DiscussionPostEditComponent, DiscussionPostEditComponent$render$lambda$lambda$lambda$lambda(it, this$DiscussionPostEditComponent)); return Unit; }; } function DiscussionPostEditComponent$render$lambda$lambda(this$DiscussionPostEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$DiscussionPostEditComponent.titleLabel_0.text); tmp$_0 = this$DiscussionPostEditComponent.titleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$DiscussionPostEditComponent.entity) != null ? tmp$_1.discussionPostTitle : null; tmp$_3 = this$DiscussionPostEditComponent.titleLabel_0.error; tmp$_4 = !this$DiscussionPostEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), DiscussionPostEditComponent$render$lambda$lambda$lambda(this$DiscussionPostEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function DiscussionPostEditComponent$render$lambda$lambda$lambda$lambda_0(closure$it, this$DiscussionPostEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$DiscussionPostEditComponent.entity) != null ? (tmp$.discussionPostMessage = closure$it) : null; this$DiscussionPostEditComponent.blockTitleError = null; return Unit; }; } function DiscussionPostEditComponent$render$lambda$lambda$lambda_0(this$DiscussionPostEditComponent) { return function (it) { setState(this$DiscussionPostEditComponent, DiscussionPostEditComponent$render$lambda$lambda$lambda$lambda_0(it, this$DiscussionPostEditComponent)); return Unit; }; } function DiscussionPostEditComponent$render$lambda$lambda_0(this$DiscussionPostEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$DiscussionPostEditComponent.descriptionLabel_0.text); tmp$_0 = this$DiscussionPostEditComponent.descriptionLabel_0.errorText; tmp$_2 = (tmp$_1 = this$DiscussionPostEditComponent.entity) != null ? tmp$_1.discussionPostMessage : null; tmp$_3 = this$DiscussionPostEditComponent.descriptionLabel_0.error; tmp$_4 = !this$DiscussionPostEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), DiscussionPostEditComponent$render$lambda$lambda$lambda_0(this$DiscussionPostEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } DiscussionPostEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_19); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, DiscussionPostEditComponent$render$lambda$lambda(this)); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, DiscussionPostEditComponent$render$lambda$lambda_0(this)); $receiver.child_30b5ua$($receiver_0.create()); }; DiscussionPostEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.blockTitleError = null; }; DiscussionPostEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'DiscussionPostEditComponent', interfaces: [DiscussionPostEditView, UstadEditComponent] }; function styledDiv$lambda_20(it) { return new DIV_init(html.emptyMap, it); } function DiscussionTopicDetailComponent(mProps) { DiscussionTopicDetailComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.postList_0 = emptyList(); this.postsObserver_0 = new ObserverFnWrapper(DiscussionTopicDetailComponent$postsObserver$lambda(this)); this.posts_177fmh$_0 = null; this.entity_dyvsrb$_0 = null; } Object.defineProperty(DiscussionTopicDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(DiscussionTopicDetailComponent.prototype, 'posts', { configurable: true, get: function () { return this.posts_177fmh$_0; }, set: function (value) { this.posts_177fmh$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.postsObserver_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.postsObserver_0), Unit) : null; } }); function DiscussionTopicDetailComponent$set_DiscussionTopicDetailComponent$entity$lambda(closure$value, this$DiscussionTopicDetailComponent) { return function ($receiver) { this$DiscussionTopicDetailComponent.entity_dyvsrb$_0 = closure$value; return Unit; }; } Object.defineProperty(DiscussionTopicDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_dyvsrb$_0; }, set: function (value) { this.ustadComponentTitle = value != null ? value.discussionTopicTitle : null; setState(this, DiscussionTopicDetailComponent$set_DiscussionTopicDetailComponent$entity$lambda(value, this)); } }); function DiscussionTopicDetailComponent$onCreateView$lambda(this$DiscussionTopicDetailComponent) { return function () { var tmp$; (tmp$ = this$DiscussionTopicDetailComponent.mPresenter_0) != null ? (tmp$.onClickAddPost(), Unit) : null; return Unit; }; } DiscussionTopicDetailComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8; UstadDetailComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = true) : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.text = this.getString_za3lpa$(2940)) : null; (tmp$_1 = this.fabManager) != null ? (tmp$_1.icon = 'add') : null; (tmp$_2 = this.fabManager) != null ? (tmp$_2.visible = true) : null; this.mPresenter_0 = new DiscussionTopicDetailPresenter(this, this.arguments, this, this.di, this); if ((tmp$_3 = this.mPresenter_0) != null) { tmp$_3.onCreate(emptyMap()); }(tmp$_4 = this.fabManager) != null ? (tmp$_4.visible = true) : null; (tmp$_5 = this.fabManager) != null ? (tmp$_5.text = this.getString_za3lpa$(2940)) : null; (tmp$_6 = this.fabManager) != null ? (tmp$_6.icon = 'add') : null; (tmp$_7 = this.fabManager) != null ? (tmp$_7.visible = true) : null; (tmp$_8 = this.fabManager) != null ? (tmp$_8.onClickListener = DiscussionTopicDetailComponent$onCreateView$lambda(this)) : null; }; function DiscussionTopicDetailComponent$render$lambda$lambda$lambda(this$DiscussionTopicDetailComponent) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = this$DiscussionTopicDetailComponent.entity) != null ? tmp$.discussionTopicDesc : null); return Unit; }; } function DiscussionTopicDetailComponent$render$lambda$lambda$lambda_0(this$DiscussionTopicDetailComponent) { return function ($receiver) { this$DiscussionTopicDetailComponent.renderPostListDetail_0($receiver, this$DiscussionTopicDetailComponent.postList_0); return Unit; }; } function DiscussionTopicDetailComponent$render$lambda$lambda(this$DiscussionTopicDetailComponent) { return function ($receiver) { var tmp$; var $receiver_0 = (tmp$ = this$DiscussionTopicDetailComponent.entity) != null ? tmp$.discussionTopicDesc : null; if (!($receiver_0 == null || isBlank($receiver_0))) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, DiscussionTopicDetailComponent$render$lambda$lambda$lambda(this$DiscussionTopicDetailComponent)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, DiscussionTopicDetailComponent$render$lambda$lambda$lambda_0(this$DiscussionTopicDetailComponent)); return Unit; }; } DiscussionTopicDetailComponent.prototype.render_ss14n$ = function ($receiver) { if (this.entity == null) return; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_20); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing3_getInstance(), void 0, void 0, DiscussionTopicDetailComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; function DiscussionTopicDetailComponent$PostListDetailComponent(mProps) { UstadSimpleList.call(this, mProps); } function DiscussionTopicDetailComponent$PostListDetailComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function DiscussionTopicDetailComponent$PostListDetailComponent$renderListItem$lambda(closure$onClick, closure$item, this$PostListDetailComponent) { return function ($receiver) { var tmp$; $receiver.attrs.onClick = DiscussionTopicDetailComponent$PostListDetailComponent$renderListItem$lambda$lambda(closure$onClick); renderPostsDetail($receiver, closure$item.authorPersonFirstNames + ' ' + closure$item.authorPersonLastName, closure$item.discussionPostMessage, closure$item.postLatestMessage, (tmp$ = toDate(closure$item.postLatestMessageTimestamp)) != null ? fromNow(tmp$, this$PostListDetailComponent.systemImpl.getDisplayedLocale_za3rmp$($receiver)) : null, closure$item.postRepliesCount, this$PostListDetailComponent.systemImpl); return Unit; }; } DiscussionTopicDetailComponent$PostListDetailComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, DiscussionTopicDetailComponent$PostListDetailComponent$renderListItem$lambda(onClick, item, this)); }; DiscussionTopicDetailComponent$PostListDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'PostListDetailComponent', interfaces: [UstadSimpleList] }; function DiscussionTopicDetailComponent$renderPostListDetail$lambda$lambda(this$DiscussionTopicDetailComponent) { return function (post) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = this$DiscussionTopicDetailComponent.mPresenter_0; tmp$_0 = Kotlin.isType(tmp$ = post, DiscussionPostWithDetails) ? tmp$ : throwCCE(); tmp$_1 != null ? (tmp$_1.onClickPost_w5x7jm$(tmp$_0), Unit) : null; return Unit; }; } function DiscussionTopicDetailComponent$renderPostListDetail$lambda(closure$entries, this$DiscussionTopicDetailComponent) { return function ($receiver) { $receiver.attrs.entries = closure$entries; $receiver.attrs.hideDivider = true; FormControlComponent$div_getInstance(); $receiver.attrs.onEntryClicked = DiscussionTopicDetailComponent$renderPostListDetail$lambda$lambda(this$DiscussionTopicDetailComponent); return Unit; }; } DiscussionTopicDetailComponent.prototype.renderPostListDetail_0 = function ($receiver, entries, onEntryClicked) { if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(DiscussionTopicDetailComponent$PostListDetailComponent), DiscussionTopicDetailComponent$renderPostListDetail$lambda(entries, this)); }; DiscussionTopicDetailComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function DiscussionTopicDetailComponent$Companion() { DiscussionTopicDetailComponent$Companion_instance = this; } DiscussionTopicDetailComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DiscussionTopicDetailComponent$Companion_instance = null; function DiscussionTopicDetailComponent$Companion_getInstance() { if (DiscussionTopicDetailComponent$Companion_instance === null) { new DiscussionTopicDetailComponent$Companion(); }return DiscussionTopicDetailComponent$Companion_instance; } function DiscussionTopicDetailComponent$postsObserver$lambda$lambda(closure$it, this$DiscussionTopicDetailComponent) { return function ($receiver) { this$DiscussionTopicDetailComponent.postList_0 = closure$it; return Unit; }; } function DiscussionTopicDetailComponent$postsObserver$lambda(this$DiscussionTopicDetailComponent) { return function (it) { if (it.isEmpty()) return; setState(this$DiscussionTopicDetailComponent, DiscussionTopicDetailComponent$postsObserver$lambda$lambda(it, this$DiscussionTopicDetailComponent)); return Unit; }; } DiscussionTopicDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'DiscussionTopicDetailComponent', interfaces: [DiscussionTopicDetailView, UstadDetailComponent] }; function styledDiv$lambda_21(it) { return new DIV_init(html.emptyMap, it); } function DiscussionTopicEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2909)); this.descriptionLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2047)); this.blockTitleError_jp65sa$_0 = null; this.fieldsEnabled_do20sr$_0 = false; this.entity_22tyda$_0 = null; } Object.defineProperty(DiscussionTopicEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function DiscussionTopicEditComponent$set_DiscussionTopicEditComponent$blockTitleError$lambda(this$DiscussionTopicEditComponent) { return function ($receiver) { this$DiscussionTopicEditComponent.titleLabel_0 = this$DiscussionTopicEditComponent.titleLabel_0.copy_d8n4vg$(void 0, this$DiscussionTopicEditComponent.blockTitleError_jp65sa$_0); return Unit; }; } Object.defineProperty(DiscussionTopicEditComponent.prototype, 'blockTitleError', { configurable: true, get: function () { return this.blockTitleError_jp65sa$_0; }, set: function (value) { this.blockTitleError_jp65sa$_0 = value; setState(this, DiscussionTopicEditComponent$set_DiscussionTopicEditComponent$blockTitleError$lambda(this)); } }); function DiscussionTopicEditComponent$set_DiscussionTopicEditComponent$fieldsEnabled$lambda(closure$value, this$DiscussionTopicEditComponent) { return function ($receiver) { this$DiscussionTopicEditComponent.fieldsEnabled_do20sr$_0 = closure$value; return Unit; }; } Object.defineProperty(DiscussionTopicEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_do20sr$_0; }, set: function (value) { setState(this, DiscussionTopicEditComponent$set_DiscussionTopicEditComponent$fieldsEnabled$lambda(value, this)); } }); function DiscussionTopicEditComponent$set_DiscussionTopicEditComponent$entity$lambda(closure$value, this$DiscussionTopicEditComponent) { return function ($receiver) { this$DiscussionTopicEditComponent.entity_22tyda$_0 = closure$value; return Unit; }; } Object.defineProperty(DiscussionTopicEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_22tyda$_0; }, set: function (value) { setState(this, DiscussionTopicEditComponent$set_DiscussionTopicEditComponent$entity$lambda(value, this)); } }); DiscussionTopicEditComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new DiscussionTopicEditPresenter(this, this.arguments, this, this, this.di); this.setEditTitle_vux9f0$(2927, 2886); napier_0.Napier.d_82mfvz$('DiscussionTopicEditComponent: navController viewName = ' + toString((tmp$ = this.navController.currentBackStackEntry) != null ? tmp$.viewName : null) + ('stateHandle=' + toString((tmp$_2 = Kotlin.isType(tmp$_1 = (tmp$_0 = this.navController.currentBackStackEntry) != null ? tmp$_0.savedStateHandle : null, UstadSavedStateHandleJs) ? tmp$_1 : null) != null ? tmp$_2.dumpToString() : null))); (tmp$_3 = this.mPresenter_0) != null ? (tmp$_3.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function DiscussionTopicEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$DiscussionTopicEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$DiscussionTopicEditComponent.entity) != null ? (tmp$.discussionTopicTitle = closure$it) : null; this$DiscussionTopicEditComponent.blockTitleError = null; return Unit; }; } function DiscussionTopicEditComponent$render$lambda$lambda$lambda(this$DiscussionTopicEditComponent) { return function (it) { setState(this$DiscussionTopicEditComponent, DiscussionTopicEditComponent$render$lambda$lambda$lambda$lambda(it, this$DiscussionTopicEditComponent)); return Unit; }; } function DiscussionTopicEditComponent$render$lambda$lambda(this$DiscussionTopicEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$DiscussionTopicEditComponent.titleLabel_0.text); tmp$_0 = this$DiscussionTopicEditComponent.titleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$DiscussionTopicEditComponent.entity) != null ? tmp$_1.discussionTopicTitle : null; tmp$_3 = this$DiscussionTopicEditComponent.titleLabel_0.error; tmp$_4 = !this$DiscussionTopicEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), DiscussionTopicEditComponent$render$lambda$lambda$lambda(this$DiscussionTopicEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function DiscussionTopicEditComponent$render$lambda$lambda$lambda$lambda_0(closure$it, this$DiscussionTopicEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$DiscussionTopicEditComponent.entity) != null ? (tmp$.discussionTopicDesc = closure$it) : null; this$DiscussionTopicEditComponent.blockTitleError = null; return Unit; }; } function DiscussionTopicEditComponent$render$lambda$lambda$lambda_0(this$DiscussionTopicEditComponent) { return function (it) { setState(this$DiscussionTopicEditComponent, DiscussionTopicEditComponent$render$lambda$lambda$lambda$lambda_0(it, this$DiscussionTopicEditComponent)); return Unit; }; } function DiscussionTopicEditComponent$render$lambda$lambda_0(this$DiscussionTopicEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$DiscussionTopicEditComponent.descriptionLabel_0.text); tmp$_0 = this$DiscussionTopicEditComponent.descriptionLabel_0.errorText; tmp$_2 = (tmp$_1 = this$DiscussionTopicEditComponent.entity) != null ? tmp$_1.discussionTopicDesc : null; tmp$_3 = this$DiscussionTopicEditComponent.descriptionLabel_0.error; tmp$_4 = !this$DiscussionTopicEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), DiscussionTopicEditComponent$render$lambda$lambda$lambda_0(this$DiscussionTopicEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } DiscussionTopicEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_21); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, DiscussionTopicEditComponent$render$lambda$lambda(this)); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, DiscussionTopicEditComponent$render$lambda$lambda_0(this)); $receiver.child_30b5ua$($receiver_0.create()); }; DiscussionTopicEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.blockTitleError = null; }; DiscussionTopicEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'DiscussionTopicEditComponent', interfaces: [DiscussionTopicEditView, UstadEditComponent] }; function EpubContentComponent(mProps) { UstadBaseComponent.call(this, mProps); this.setContainerTitle_46e63u$_0 = null; this.windowTitle_lbb1lx$_0 = null; this.setSpineUrls_pacq3w$_0 = null; this.setTableOfContents_i392cs$_0 = null; this.setCoverImage_id1rst$_0 = null; this.setAuthorName_xmurh1$_0 = ''; this.setProgressBarVisible_3pk7pn$_0 = false; this.setProgressBarProgress_jska00$_0 = -1; this.mPresenter_0 = null; } Object.defineProperty(EpubContentComponent.prototype, 'setContainerTitle', { configurable: true, get: function () { return this.setContainerTitle_46e63u$_0; }, set: function (value) { this.ustadComponentTitle = value; this.setContainerTitle_46e63u$_0 = value; } }); Object.defineProperty(EpubContentComponent.prototype, 'windowTitle', { configurable: true, get: function () { return this.windowTitle_lbb1lx$_0; }, set: function (value) { this.windowTitle_lbb1lx$_0 = value; } }); function EpubContentComponent$set_EpubContentComponent$spineUrls$lambda(closure$value, this$EpubContentComponent) { return function ($receiver) { this$EpubContentComponent.setSpineUrls_pacq3w$_0 = closure$value; return Unit; }; } Object.defineProperty(EpubContentComponent.prototype, 'setSpineUrls', { configurable: true, get: function () { return this.setSpineUrls_pacq3w$_0; }, set: function (value) { this.loading = value == null; setState(this, EpubContentComponent$set_EpubContentComponent$spineUrls$lambda(value, this)); } }); function EpubContentComponent$set_EpubContentComponent$tableOfContents$lambda(closure$value, this$EpubContentComponent) { return function ($receiver) { this$EpubContentComponent.setTableOfContents_i392cs$_0 = closure$value; return Unit; }; } Object.defineProperty(EpubContentComponent.prototype, 'setTableOfContents', { configurable: true, get: function () { return this.setTableOfContents_i392cs$_0; }, set: function (value) { setState(this, EpubContentComponent$set_EpubContentComponent$tableOfContents$lambda(value, this)); } }); function EpubContentComponent$set_EpubContentComponent$coverImageUrl$lambda(closure$value, this$EpubContentComponent) { return function ($receiver) { this$EpubContentComponent.setCoverImage_id1rst$_0 = closure$value; return Unit; }; } Object.defineProperty(EpubContentComponent.prototype, 'setCoverImage', { configurable: true, get: function () { return this.setCoverImage_id1rst$_0; }, set: function (value) { setState(this, EpubContentComponent$set_EpubContentComponent$coverImageUrl$lambda(value, this)); } }); function EpubContentComponent$set_EpubContentComponent$authorName$lambda(closure$value, this$EpubContentComponent) { return function ($receiver) { this$EpubContentComponent.setAuthorName_xmurh1$_0 = closure$value; return Unit; }; } Object.defineProperty(EpubContentComponent.prototype, 'setAuthorName', { configurable: true, get: function () { return this.setAuthorName_xmurh1$_0; }, set: function (value) { setState(this, EpubContentComponent$set_EpubContentComponent$authorName$lambda(value, this)); } }); Object.defineProperty(EpubContentComponent.prototype, 'setProgressBarVisible', { configurable: true, get: function () { return this.setProgressBarVisible_3pk7pn$_0; }, set: function (value) { this.loading = value; this.setProgressBarVisible_3pk7pn$_0 = value; } }); function EpubContentComponent$set_EpubContentComponent$progressValue$lambda(closure$value, this$EpubContentComponent) { return function ($receiver) { this$EpubContentComponent.setProgressBarProgress_jska00$_0 = closure$value; return Unit; }; } Object.defineProperty(EpubContentComponent.prototype, 'setProgressBarProgress', { configurable: true, get: function () { return this.setProgressBarProgress_jska00$_0; }, set: function (value) { setState(this, EpubContentComponent$set_EpubContentComponent$progressValue$lambda(value, this)); } }); EpubContentComponent.prototype.scrollToSpinePosition_vqvrqt$$default = function (spinePosition, hashAnchor) { }; EpubContentComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new EpubContentPresenter(this, this.arguments, this, this.di); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; EpubContentComponent.prototype.render_ss14n$ = function ($receiver) { var urls = this.setSpineUrls; if (urls != null) { renderIframe($receiver, urls, void 0, true); }}; EpubContentComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.setTableOfContents = null; this.setSpineUrls = null; this.windowTitle = null; this.setContainerTitle = null; }; EpubContentComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'EpubContentComponent', interfaces: [EpubContentView, UstadBaseComponent] }; function styledDiv$lambda_22(it) { return new DIV_init(html.emptyMap, it); } function ExtraActiveTabWarningComponent(props) { RComponent_init(props, this); var tmp$; this.impl_d2p97v$_0 = Instance(props.di, Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$ : throwCCE(), null).provideDelegate_tpuvb9$(this, ExtraActiveTabWarningComponent$impl_metadata); } var ExtraActiveTabWarningComponent$impl_metadata = new PropertyMetadata('impl'); Object.defineProperty(ExtraActiveTabWarningComponent.prototype, 'impl', { configurable: true, get: function () { return this.impl_d2p97v$_0.value; } }); function ExtraActiveTabWarningComponent$render$lambda$lambda$lambda$lambda($receiver) { set_marginTop($receiver.css, get_px(20)); return Unit; } function ExtraActiveTabWarningComponent$render$lambda$lambda(this$ExtraActiveTabWarningComponent) { return function ($receiver) { StyleManager_getInstance().centerContainer($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_22); var this$ExtraActiveTabWarningComponent_0 = this$ExtraActiveTabWarningComponent; var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); margin($receiver_1, get_spacingUnits(12)); set_width($receiver_1, new LinearDimension('30% !important')); umIcon($receiver_0, 'warning', void 0, void 0, StyleManager_getInstance().name + '-tabWarningIconClass'); umTypography($receiver_0, this$ExtraActiveTabWarningComponent_0.impl.getString(2841, $receiver_0), TypographyVariant$h5_getInstance(), TypographyAlign$center_getInstance(), void 0, void 0, void 0, void 0, void 0, ExtraActiveTabWarningComponent$render$lambda$lambda$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function ExtraActiveTabWarningComponent$render$lambda(this$ExtraActiveTabWarningComponent) { return function ($receiver, f) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ExtraActiveTabWarningComponent$render$lambda$lambda(this$ExtraActiveTabWarningComponent)); return Unit; }; } ExtraActiveTabWarningComponent.prototype.render_ss14n$ = function ($receiver) { umCssBaseline($receiver); $receiver.invoke_c0v1gl$(themeContext.Consumer, ExtraActiveTabWarningComponent$render$lambda(this)); }; ExtraActiveTabWarningComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ExtraActiveTabWarningComponent', interfaces: [RComponent] }; function renderExtraActiveTabWarningComponent$lambda(closure$di) { return function ($receiver) { $receiver.attrs.di = closure$di; return Unit; }; } function renderExtraActiveTabWarningComponent($receiver, di) { $receiver.child_up9nw1$(getKClass(ExtraActiveTabWarningComponent), renderExtraActiveTabWarningComponent$lambda(di)); } var googleChartsComponent; function ChartOptions(title, hAxis, xAxis, seriesType, series, colors) { if (title === void 0) title = null; if (hAxis === void 0) hAxis = null; if (xAxis === void 0) xAxis = null; if (seriesType === void 0) seriesType = null; if (series === void 0) series = null; if (colors === void 0) colors = null; this.title = title; this.hAxis = hAxis; this.xAxis = xAxis; this.seriesType = seriesType; this.series = series; this.colors = colors; } ChartOptions.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChartOptions', interfaces: [] }; ChartOptions.prototype.component1 = function () { return this.title; }; ChartOptions.prototype.component2 = function () { return this.hAxis; }; ChartOptions.prototype.component3 = function () { return this.xAxis; }; ChartOptions.prototype.component4 = function () { return this.seriesType; }; ChartOptions.prototype.component5 = function () { return this.series; }; ChartOptions.prototype.component6 = function () { return this.colors; }; ChartOptions.prototype.copy_x7t11x$ = function (title, hAxis, xAxis, seriesType, series, colors) { return new ChartOptions(title === void 0 ? this.title : title, hAxis === void 0 ? this.hAxis : hAxis, xAxis === void 0 ? this.xAxis : xAxis, seriesType === void 0 ? this.seriesType : seriesType, series === void 0 ? this.series : series, colors === void 0 ? this.colors : colors); }; ChartOptions.prototype.toString = function () { return 'ChartOptions(title=' + Kotlin.toString(this.title) + (', hAxis=' + Kotlin.toString(this.hAxis)) + (', xAxis=' + Kotlin.toString(this.xAxis)) + (', seriesType=' + Kotlin.toString(this.seriesType)) + (', series=' + Kotlin.toString(this.series)) + (', colors=' + Kotlin.toString(this.colors)) + ')'; }; ChartOptions.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.title) | 0; result = result * 31 + Kotlin.hashCode(this.hAxis) | 0; result = result * 31 + Kotlin.hashCode(this.xAxis) | 0; result = result * 31 + Kotlin.hashCode(this.seriesType) | 0; result = result * 31 + Kotlin.hashCode(this.series) | 0; result = result * 31 + Kotlin.hashCode(this.colors) | 0; return result; }; ChartOptions.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.title, other.title) && Kotlin.equals(this.hAxis, other.hAxis) && Kotlin.equals(this.xAxis, other.xAxis) && Kotlin.equals(this.seriesType, other.seriesType) && Kotlin.equals(this.series, other.series) && Kotlin.equals(this.colors, other.colors))))); }; function ChartType(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function ChartType_initFields() { ChartType_initFields = function () { }; ChartType$ColumnChart_instance = new ChartType('ColumnChart', 0); ChartType$ComboChart_instance = new ChartType('ComboChart', 1); ChartType$LineChart_instance = new ChartType('LineChart', 2); } var ChartType$ColumnChart_instance; function ChartType$ColumnChart_getInstance() { ChartType_initFields(); return ChartType$ColumnChart_instance; } var ChartType$ComboChart_instance; function ChartType$ComboChart_getInstance() { ChartType_initFields(); return ChartType$ComboChart_instance; } var ChartType$LineChart_instance; function ChartType$LineChart_getInstance() { ChartType_initFields(); return ChartType$LineChart_instance; } ChartType.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChartType', interfaces: [Enum] }; function ChartType$values() { return [ChartType$ColumnChart_getInstance(), ChartType$ComboChart_getInstance(), ChartType$LineChart_getInstance()]; } ChartType.values = ChartType$values; function ChartType$valueOf(name) { switch (name) { case 'ColumnChart': return ChartType$ColumnChart_getInstance(); case 'ComboChart': return ChartType$ComboChart_getInstance(); case 'LineChart': return ChartType$LineChart_getInstance(); default:throwISE('No enum constant com.ustadmobile.view.ChartType.' + name); } } ChartType.valueOf_61zpoe$ = ChartType$valueOf; function umChart$lambda(closure$width, closure$height, closure$chartType, closure$data, closure$options) { return function ($receiver) { $receiver.attrs.width = toString(closure$width); $receiver.attrs.height = toString(closure$height); $receiver.attrs.chartType = closure$chartType.toString(); $receiver.attrs.data = closure$data; $receiver.attrs.options = closure$options; return Unit; }; } function umChart($receiver, data, width, height, chartType, options, className, handler) { if (width === void 0) width = '100%'; if (height === void 0) height = '400px'; if (chartType === void 0) chartType = ChartType$ColumnChart_getInstance(); if (options === void 0) options = null; if (className === void 0) className = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, googleChartsComponent, className, handler, umChart$lambda(width, height, chartType, data, options)); } function styledDiv$lambda_23(it) { return new DIV_init(html.emptyMap, it); } function HolidayCalendarEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.holidays_0 = emptyList(); this.holidayObserver_0 = new ObserverFnWrapper(HolidayCalendarEditComponent$holidayObserver$lambda(this)); this.holidayList_7ejnsk$_0 = null; this.holidayLabel_0 = new FieldLabel(this.getString_za3lpa$(2046)); this.fieldsEnabled_ldrnq2$_0 = false; this.entity_pbf9kh$_0 = null; } Object.defineProperty(HolidayCalendarEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(HolidayCalendarEditComponent.prototype, 'holidayList', { configurable: true, get: function () { return this.holidayList_7ejnsk$_0; }, set: function (value) { var tmp$; this.holidayList_7ejnsk$_0 = value; (tmp$ = this.holidayList_7ejnsk$_0) != null ? (tmp$.removeObserver_jsfaok$(this.holidayObserver_0), Unit) : null; value != null ? (value.observe_igxi3b$(this, this.holidayObserver_0), Unit) : null; } }); function HolidayCalendarEditComponent$set_HolidayCalendarEditComponent$fieldsEnabled$lambda(closure$value, this$HolidayCalendarEditComponent) { return function ($receiver) { this$HolidayCalendarEditComponent.fieldsEnabled_ldrnq2$_0 = closure$value; return Unit; }; } Object.defineProperty(HolidayCalendarEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_ldrnq2$_0; }, set: function (value) { setState(this, HolidayCalendarEditComponent$set_HolidayCalendarEditComponent$fieldsEnabled$lambda(value, this)); } }); function HolidayCalendarEditComponent$set_HolidayCalendarEditComponent$entity$lambda(closure$value, this$HolidayCalendarEditComponent) { return function ($receiver) { this$HolidayCalendarEditComponent.entity_pbf9kh$_0 = closure$value; return Unit; }; } Object.defineProperty(HolidayCalendarEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_pbf9kh$_0; }, set: function (value) { setState(this, HolidayCalendarEditComponent$set_HolidayCalendarEditComponent$entity$lambda(value, this)); } }); HolidayCalendarEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new HolidayCalendarEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; this.setEditTitle_vux9f0$(2338, 2339); }; function HolidayCalendarEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$HolidayCalendarEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$HolidayCalendarEditComponent.entity) != null ? (tmp$.umCalendarName = closure$it) : null; return Unit; }; } function HolidayCalendarEditComponent$render$lambda$lambda$lambda$lambda(this$HolidayCalendarEditComponent) { return function (it) { setState(this$HolidayCalendarEditComponent, HolidayCalendarEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$HolidayCalendarEditComponent)); return Unit; }; } function HolidayCalendarEditComponent$render$lambda$lambda$lambda(this$HolidayCalendarEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$HolidayCalendarEditComponent.holidayLabel_0.text); tmp$_0 = this$HolidayCalendarEditComponent.holidayLabel_0.errorText; tmp$_2 = (tmp$_1 = this$HolidayCalendarEditComponent.entity) != null ? tmp$_1.umCalendarName : null; tmp$_3 = this$HolidayCalendarEditComponent.holidayLabel_0.error; tmp$_4 = !this$HolidayCalendarEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), HolidayCalendarEditComponent$render$lambda$lambda$lambda$lambda(this$HolidayCalendarEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function HolidayCalendarEditComponent$render$lambda$lambda(this$HolidayCalendarEditComponent) { return function ($receiver) { padding_1($receiver.css, get_spacingUnits(2), get_spacingUnits(2), get_spacingUnits(0)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, HolidayCalendarEditComponent$render$lambda$lambda$lambda(this$HolidayCalendarEditComponent)); return Unit; }; } function HolidayCalendarEditComponent$render$lambda$lambda_0(this$HolidayCalendarEditComponent) { return function () { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$HolidayCalendarEditComponent.mPresenter_0) != null ? tmp$.holidayToManyJoinListener : null) != null ? (tmp$_0.onClickEdit_11rb$(new Holiday()), Unit) : null; return Unit; }; } function HolidayCalendarEditComponent$render$lambda$lambda_1(this$HolidayCalendarEditComponent) { return function (holiday) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$HolidayCalendarEditComponent.mPresenter_0) != null ? tmp$.holidayToManyJoinListener : null) != null ? (tmp$_0.onClickEdit_11rb$(holiday), Unit) : null; return Unit; }; } HolidayCalendarEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_23); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, HolidayCalendarEditComponent$render$lambda$lambda(this)); var newItem = new CreateNewItem(true, this.getString_za3lpa$(2338), HolidayCalendarEditComponent$render$lambda$lambda_0(this)); renderHolidays($receiver_0, this.holidays_0, newItem, HolidayCalendarEditComponent$render$lambda$lambda_1(this)); $receiver.child_30b5ua$($receiver_0.create()); }; HolidayCalendarEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function HolidayCalendarEditComponent$holidayObserver$lambda$lambda(closure$it, this$HolidayCalendarEditComponent) { return function ($receiver) { this$HolidayCalendarEditComponent.holidays_0 = closure$it; return Unit; }; } function HolidayCalendarEditComponent$holidayObserver$lambda(this$HolidayCalendarEditComponent) { return function (it) { setState(this$HolidayCalendarEditComponent, HolidayCalendarEditComponent$holidayObserver$lambda$lambda(it, this$HolidayCalendarEditComponent)); return Unit; }; } HolidayCalendarEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'HolidayCalendarEditComponent', interfaces: [HolidayCalendarEditView, UstadEditComponent] }; function HolidayListComponent(mProps) { UstadSimpleList.call(this, mProps); } function HolidayListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { closure$onClick(it.nativeEvent); return Unit; }; } function HolidayListComponent$renderListItem$lambda(closure$onClick, closure$item) { return function ($receiver) { $receiver.attrs.onClick = HolidayListComponent$renderListItem$lambda$lambda(closure$onClick); renderListItemWithLeftIconTitleAndDescription($receiver, 'date_range', closure$item.holName, standardFormat(new Date(closure$item.holStartTime)) + ' ' + ('- ' + standardFormat(new Date(closure$item.holEndTime))), true); return Unit; }; } HolidayListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, HolidayListComponent$renderListItem$lambda(onClick, item)); }; HolidayListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'HolidayListComponent', interfaces: [UstadSimpleList] }; function renderHolidays$lambda(closure$holidays, closure$onEntryClicked, closure$createNewItem) { return function ($receiver) { $receiver.attrs.entries = closure$holidays; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.mainList = true; return Unit; }; } function renderHolidays($receiver, holidays, createNewItem, onEntryClicked) { if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(HolidayListComponent), renderHolidays$lambda(holidays, onEntryClicked, createNewItem)); } function HolidayCalendarListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; } Object.defineProperty(HolidayCalendarListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.holidayCalendarDao : null; } }); Object.defineProperty(HolidayCalendarListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); HolidayCalendarListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.showCreateNewItem = true; (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2341)) : null; this.addNewEntryText = this.getString_za3lpa$(2342); this.mPresenter_0 = new HolidayCalendarListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; HolidayCalendarListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var titleText = format(this.getString_za3lpa$(2551), [item.numEntries, this.getString_za3lpa$(2340)]); renderListItemWithLeftIconTitleAndDescription($receiver, 'calendar_today', item.umCalendarName, titleText, true); }; HolidayCalendarListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = this.mPresenter_0; tmp$_0 = Kotlin.isType(tmp$ = entry, HolidayCalendar) ? tmp$ : throwCCE(); tmp$_1 != null ? (tmp$_1.handleClickEntry_11rc$(tmp$_0), Unit) : null; }; HolidayCalendarListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'HolidayCalendarListComponent', interfaces: [HolidayCalendarListView, UstadListComponent] }; function styledDiv$lambda_24(it) { return new DIV_init(html.emptyMap, it); } function HolidayEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.holidayName_0 = new FieldLabel(this.getString_za3lpa$(2046)); this.holidayStart_0 = new FieldLabel(this.getString_za3lpa$(2514)); this.holidayEnd_0 = new FieldLabel(this.getString_za3lpa$(2515)); this.fieldsEnabled_hrvbek$_0 = false; this.entity_vlo4t$_0 = null; this.loading_lha7ig$_0 = false; } Object.defineProperty(HolidayEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function HolidayEditComponent$set_HolidayEditComponent$fieldsEnabled$lambda(closure$value, this$HolidayEditComponent) { return function ($receiver) { this$HolidayEditComponent.fieldsEnabled_hrvbek$_0 = closure$value; return Unit; }; } Object.defineProperty(HolidayEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_hrvbek$_0; }, set: function (value) { setState(this, HolidayEditComponent$set_HolidayEditComponent$fieldsEnabled$lambda(value, this)); } }); function HolidayEditComponent$set_HolidayEditComponent$entity$lambda(closure$value, this$HolidayEditComponent) { return function ($receiver) { this$HolidayEditComponent.entity_vlo4t$_0 = closure$value; return Unit; }; } Object.defineProperty(HolidayEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_vlo4t$_0; }, set: function (value) { setState(this, HolidayEditComponent$set_HolidayEditComponent$entity$lambda(value, this)); } }); Object.defineProperty(HolidayEditComponent.prototype, 'loading', { configurable: true, get: function () { return this.loading_lha7ig$_0; }, set: function (loading) { this.loading_lha7ig$_0 = loading; } }); HolidayEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.setEditTitle_vux9f0$(2338, 2339); this.mPresenter_0 = new HolidayEditPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$HolidayEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$HolidayEditComponent.entity) != null ? (tmp$.holName = closure$it) : null; return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda(this$HolidayEditComponent) { return function (it) { setState(this$HolidayEditComponent, HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$HolidayEditComponent)); return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda_0($receiver) { return Unit; } function HolidayEditComponent$render$lambda$lambda$lambda(this$HolidayEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$HolidayEditComponent.holidayName_0.text); tmp$_0 = this$HolidayEditComponent.holidayName_0.errorText; tmp$_2 = (tmp$_1 = this$HolidayEditComponent.entity) != null ? tmp$_1.holName : null; tmp$_3 = this$HolidayEditComponent.holidayName_0.error; tmp$_4 = !this$HolidayEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), HolidayEditComponent$render$lambda$lambda$lambda$lambda(this$HolidayEditComponent), void 0, void 0, tmp$_4, tmp$_3, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, HolidayEditComponent$render$lambda$lambda$lambda$lambda_0); return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$HolidayEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$HolidayEditComponent.entity) != null ? (tmp$.holStartTime = Kotlin.Long.fromNumber(closure$it.getTime())) : null; return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$HolidayEditComponent) { return function (it) { setState(this$HolidayEditComponent, HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$HolidayEditComponent)); return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda_1(this$HolidayEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$HolidayEditComponent.holidayStart_0.text); tmp$_0 = this$HolidayEditComponent.holidayStart_0.error; tmp$_1 = this$HolidayEditComponent.holidayStart_0.errorText; tmp$_3 = toDate((tmp$_2 = this$HolidayEditComponent.entity) != null ? tmp$_2.holStartTime : null); tmp$_4 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$HolidayEditComponent), tmp$_3, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_4); return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$HolidayEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$HolidayEditComponent.entity) != null ? (tmp$.holEndTime = Kotlin.Long.fromNumber(closure$it.getTime())) : null; return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$HolidayEditComponent) { return function (it) { setState(this$HolidayEditComponent, HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$HolidayEditComponent)); return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda$lambda_2(this$HolidayEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$HolidayEditComponent.holidayEnd_0.text); tmp$_0 = this$HolidayEditComponent.holidayEnd_0.error; tmp$_1 = this$HolidayEditComponent.holidayEnd_0.errorText; tmp$_3 = toDate((tmp$_2 = this$HolidayEditComponent.entity) != null ? tmp$_2.holEndTime : null); tmp$_4 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, HolidayEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$HolidayEditComponent), tmp$_3, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_4); return Unit; }; } function HolidayEditComponent$render$lambda$lambda$lambda_0(this$HolidayEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, HolidayEditComponent$render$lambda$lambda$lambda$lambda_1(this$HolidayEditComponent)); umItem($receiver, GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, HolidayEditComponent$render$lambda$lambda$lambda$lambda_2(this$HolidayEditComponent)); return Unit; }; } function HolidayEditComponent$render$lambda$lambda(this$HolidayEditComponent) { return function ($receiver) { padding_1($receiver.css, get_spacingUnits(2), get_spacingUnits(2), get_spacingUnits(0)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, HolidayEditComponent$render$lambda$lambda$lambda(this$HolidayEditComponent)); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, HolidayEditComponent$render$lambda$lambda$lambda_0(this$HolidayEditComponent)); return Unit; }; } HolidayEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_24); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, HolidayEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; HolidayEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; HolidayEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'HolidayEditComponent', interfaces: [HolidayEditView, UstadEditComponent] }; function HtmlTextViewComponent(mProps) { UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.title_tv39nr$_0 = null; this.entity_72s5i8$_0 = null; } Object.defineProperty(HtmlTextViewComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); HtmlTextViewComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new HtmlTextViewDetailPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function HtmlTextViewComponent$render$lambda(this$HtmlTextViewComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); umMuiHtmlEditor($receiver, this$HtmlTextViewComponent.entity, true, false); return Unit; }; } HtmlTextViewComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, HtmlTextViewComponent$render$lambda(this)); }; function HtmlTextViewComponent$set_HtmlTextViewComponent$title$lambda(closure$value, this$HtmlTextViewComponent) { return function ($receiver) { this$HtmlTextViewComponent.title_tv39nr$_0 = closure$value; return Unit; }; } function HtmlTextViewComponent$set_HtmlTextViewComponent$title$lambda_0(closure$value, this$HtmlTextViewComponent) { return function () { this$HtmlTextViewComponent.ustadComponentTitle = closure$value; return Unit; }; } Object.defineProperty(HtmlTextViewComponent.prototype, 'title', { configurable: true, get: function () { return this.title_tv39nr$_0; }, set: function (value) { setState(this, HtmlTextViewComponent$set_HtmlTextViewComponent$title$lambda(value, this)); this.updateUiWithStateChangeDelay_n53o35$(void 0, HtmlTextViewComponent$set_HtmlTextViewComponent$title$lambda_0(value, this)); } }); function HtmlTextViewComponent$set_HtmlTextViewComponent$entity$lambda(closure$value, this$HtmlTextViewComponent) { return function ($receiver) { this$HtmlTextViewComponent.entity_72s5i8$_0 = closure$value; return Unit; }; } Object.defineProperty(HtmlTextViewComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_72s5i8$_0; }, set: function (value) { setState(this, HtmlTextViewComponent$set_HtmlTextViewComponent$entity$lambda(value, this)); } }); HtmlTextViewComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; HtmlTextViewComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'HtmlTextViewComponent', interfaces: [HtmlTextViewDetailView, UstadDetailComponent] }; function styledIframe$lambda(closure$sandbox) { return function (it) { return new IFRAME_init(attributesMapOf('sandbox', closure$sandbox != null ? enumEncode(closure$sandbox) : null), it); }; } function styledDiv$lambda_25(it) { return new DIV_init(html.emptyMap, it); } function IframeProps() { } IframeProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'IframeProps', interfaces: [UmProps] }; function IframeComponent(mProps) { RComponent_init(mProps, this); this.sourcesUrlToLoad_0 = emptyList(); this.paginateOnScrollManager_0 = null; } function IframeComponent$render$lambda$lambda$lambda$lambda$lambda(this$IframeComponent, closure$iframeId) { return function (loadEvent) { if (this$IframeComponent.props.contentTypeEpub) { var contentWindow = loadEvent.target.contentWindow; var iframe = document.getElementById(closure$iframeId); var iframeDoc = iframe.contentDocument || iframe.contentWindow.document; var scrollHeight = toInt(iframeDoc.body.scrollHeight.toString()); iframe.style.height = (scrollHeight + scrollHeight * 0.1).toString() + 'px'; }return Unit; }; } IframeComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_25); StyleManager_getInstance().contentContainer($receiver_0.css); var tmp$; tmp$ = this.sourcesUrlToLoad_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var iframeId = randomString(25); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledIframe$lambda(null)); StyleManager_getInstance().iframeComponentResponsiveIframe($receiver_0_0.css); var $receiver_1 = $receiver_0_0.attrs; $receiver_1.src = element + (this.props.contentTypeEpub ? '?contentTypeEpub=' + this.props.contentTypeEpub : ''); set_id($receiver_1, iframeId); set_onLoadFunction($receiver_1, IframeComponent$render$lambda$lambda$lambda$lambda$lambda(this, iframeId)); $receiver_0.child_30b5ua$($receiver_0_0.create()); } $receiver.child_30b5ua$($receiver_0.create()); }; function IframeComponent$componentDidUpdate$lambda(closure$prevProps, this$IframeComponent) { return function (f, f_0, endIndex) { var $receiver = this$IframeComponent; $receiver.sourcesUrlToLoad_0 = slice(closure$prevProps.sources, new IntRange(0, endIndex)); return Unit; }; } IframeComponent.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) { var tmp$; if (!prevProps.sources.isEmpty() && !this.sourcesUrlToLoad_0.containsAll_brywnq$(prevProps.sources)) { this.paginateOnScrollManager_0 = new PaginateOnScrollManager(prevProps.sources.size, prevProps.pageSize); (tmp$ = this.paginateOnScrollManager_0) != null ? (tmp$.onScrollPageChanged = IframeComponent$componentDidUpdate$lambda(prevProps, this)) : null; }}; IframeComponent.prototype.componentWillUnmount = function () { var tmp$; (tmp$ = this.paginateOnScrollManager_0) != null ? (tmp$.onDestroy(), Unit) : null; }; IframeComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'IframeComponent', interfaces: [RComponent] }; function renderIframe$lambda(closure$pageSize, closure$urls, closure$epubType) { return function ($receiver) { $receiver.attrs.pageSize = closure$pageSize; $receiver.attrs.sources = distinct(closure$urls); $receiver.attrs.contentTypeEpub = closure$epubType; return Unit; }; } function renderIframe($receiver, urls, pageSize, epubType) { if (pageSize === void 0) pageSize = 10; if (epubType === void 0) epubType = false; $receiver.child_up9nw1$(getKClass(IframeComponent), renderIframe$lambda(pageSize, urls, epubType)); } function styledDiv$lambda_26(it) { return new DIV_init(html.emptyMap, it); } function InviteViaLinkComponent(mProps) { UstadBaseComponent.call(this, mProps); this.mPresenter_0 = null; this.inviteLink_xwulzk$_0 = null; this.entityName_c6fu3p$_0 = null; this.inviteCode_y1p4yr$_0 = null; } function InviteViaLinkComponent$set_InviteViaLinkComponent$inviteLink$lambda(closure$value, this$InviteViaLinkComponent) { return function ($receiver) { this$InviteViaLinkComponent.inviteLink_xwulzk$_0 = closure$value; return Unit; }; } Object.defineProperty(InviteViaLinkComponent.prototype, 'inviteLink', { configurable: true, get: function () { return this.inviteLink_xwulzk$_0; }, set: function (value) { setState(this, InviteViaLinkComponent$set_InviteViaLinkComponent$inviteLink$lambda(value, this)); } }); function InviteViaLinkComponent$set_InviteViaLinkComponent$entityName$lambda(closure$value, this$InviteViaLinkComponent) { return function ($receiver) { this$InviteViaLinkComponent.entityName_c6fu3p$_0 = closure$value; return Unit; }; } Object.defineProperty(InviteViaLinkComponent.prototype, 'entityName', { configurable: true, get: function () { return this.entityName_c6fu3p$_0; }, set: function (value) { setState(this, InviteViaLinkComponent$set_InviteViaLinkComponent$entityName$lambda(value, this)); } }); function InviteViaLinkComponent$set_InviteViaLinkComponent$inviteCode$lambda(closure$value, this$InviteViaLinkComponent) { return function ($receiver) { this$InviteViaLinkComponent.inviteCode_y1p4yr$_0 = closure$value; return Unit; }; } Object.defineProperty(InviteViaLinkComponent.prototype, 'inviteCode', { configurable: true, get: function () { return this.inviteCode_y1p4yr$_0; }, set: function (value) { setState(this, InviteViaLinkComponent$set_InviteViaLinkComponent$inviteCode$lambda(value, this)); } }); InviteViaLinkComponent.prototype.onCreateView = function () { var tmp$; UstadBaseComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2662); this.mPresenter_0 = new InviteViaLinkPresenter(this, this.arguments, this, this.di); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function InviteViaLinkComponent$render$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTopBottom); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); return Unit; } function InviteViaLinkComponent$render$lambda$lambda$lambda(this$InviteViaLinkComponent) { return function ($receiver) { var tmp$; umTypography($receiver, format(this$InviteViaLinkComponent.getString_za3lpa$(2658), [(tmp$ = this$InviteViaLinkComponent.entityName) != null ? tmp$ : '']), TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda$lambda); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda_0(this$InviteViaLinkComponent) { return function ($receiver) { var tmp$; renderListItemWithIconAndTitle($receiver, 'link', (tmp$ = this$InviteViaLinkComponent.inviteLink) != null ? tmp$ : ''); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$InviteViaLinkComponent) { return function () { this$InviteViaLinkComponent.showSnackBar_9pu0dj$(this$InviteViaLinkComponent.getString_za3lpa$(2657)); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda(this$InviteViaLinkComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1; tmp$_0 = (tmp$ = this$InviteViaLinkComponent.inviteLink) != null ? tmp$ : ''; tmp$_1 = InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$InviteViaLinkComponent); Util_getInstance().copyToClipboard_a4mwiz$(tmp$_0, tmp$_1); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda$lambda_0(this$InviteViaLinkComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; StyleManager_getInstance().alignCenterItems($receiver.css); tmp$ = this$InviteViaLinkComponent.getString_za3lpa$(2659); tmp$_0 = ButtonVariant$contained_getInstance(); tmp$_1 = UMColor$secondary_getInstance(); tmp$_2 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, tmp$_1, tmp$_0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda(this$InviteViaLinkComponent), tmp$_2, 'content_copy'); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$InviteViaLinkComponent) { return function () { this$InviteViaLinkComponent.showSnackBar_9pu0dj$(this$InviteViaLinkComponent.getString_za3lpa$(2657)); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$InviteViaLinkComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1; tmp$_0 = (tmp$ = this$InviteViaLinkComponent.inviteCode) != null ? tmp$ : ''; tmp$_1 = InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$InviteViaLinkComponent); Util_getInstance().copyToClipboard_a4mwiz$(tmp$_0, tmp$_1); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda$lambda_1(this$InviteViaLinkComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; StyleManager_getInstance().alignCenterItems($receiver.css); tmp$ = this$InviteViaLinkComponent.getString_za3lpa$(2660); tmp$_0 = ButtonVariant$contained_getInstance(); tmp$_1 = UMColor$secondary_getInstance(); tmp$_2 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, tmp$_1, tmp$_0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$InviteViaLinkComponent), tmp$_2, 'content_copy'); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda$lambda_1(this$InviteViaLinkComponent) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda$lambda_0(this$InviteViaLinkComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda$lambda_1(this$InviteViaLinkComponent)); return Unit; }; } function InviteViaLinkComponent$render$lambda$lambda(this$InviteViaLinkComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda(this$InviteViaLinkComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda_0(this$InviteViaLinkComponent)); umGridContainer($receiver, GridSpacing$spacing6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, InviteViaLinkComponent$render$lambda$lambda$lambda_1(this$InviteViaLinkComponent)); return Unit; }; } InviteViaLinkComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_26); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); set_marginTop($receiver_1, get_spacingUnits(4)); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, InviteViaLinkComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; InviteViaLinkComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.inviteLink = null; this.inviteCode = null; }; InviteViaLinkComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'InviteViaLinkComponent', interfaces: [InviteViaLinkView, UstadBaseComponent] }; function styledDiv$lambda_27(it) { return new DIV_init(html.emptyMap, it); } function JoinWithCodeComponent(mProps) { UstadBaseComponent.call(this, mProps); this.mPresenter_0 = null; this.buttonEnabled = true; this.entityType = ''; this.codeLabel_0 = new FieldLabel(); this.controlsEnabled_7si1za$_0 = null; this.errorText_x39m04$_0 = null; this.code_4xymoa$_0 = null; this.buttonLabel_hyj1w1$_0 = null; } Object.defineProperty(JoinWithCodeComponent.prototype, 'controlsEnabled', { configurable: true, get: function () { return this.controlsEnabled_7si1za$_0; }, set: function (value) { this.controlsEnabled_7si1za$_0 = value; } }); function JoinWithCodeComponent$set_JoinWithCodeComponent$errorText$lambda(this$JoinWithCodeComponent, closure$value) { return function ($receiver) { this$JoinWithCodeComponent.codeLabel_0 = this$JoinWithCodeComponent.codeLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(JoinWithCodeComponent.prototype, 'errorText', { configurable: true, get: function () { return this.errorText_x39m04$_0; }, set: function (value) { setState(this, JoinWithCodeComponent$set_JoinWithCodeComponent$errorText$lambda(this, value)); } }); function JoinWithCodeComponent$set_JoinWithCodeComponent$code$lambda(closure$value, this$JoinWithCodeComponent) { return function ($receiver) { this$JoinWithCodeComponent.code_4xymoa$_0 = closure$value; return Unit; }; } Object.defineProperty(JoinWithCodeComponent.prototype, 'code', { configurable: true, get: function () { return this.code_4xymoa$_0; }, set: function (value) { setState(this, JoinWithCodeComponent$set_JoinWithCodeComponent$code$lambda(value, this)); } }); JoinWithCodeComponent.prototype.finish = function () { var tmp$; (Kotlin.isType(tmp$ = this.navController, NavControllerJs) ? tmp$ : throwCCE()).navigateUp(); }; function JoinWithCodeComponent$set_JoinWithCodeComponent$buttonLabel$lambda(closure$value, this$JoinWithCodeComponent) { return function ($receiver) { this$JoinWithCodeComponent.buttonLabel_hyj1w1$_0 = closure$value; return Unit; }; } Object.defineProperty(JoinWithCodeComponent.prototype, 'buttonLabel', { configurable: true, get: function () { return this.buttonLabel_hyj1w1$_0; }, set: function (value) { setState(this, JoinWithCodeComponent$set_JoinWithCodeComponent$buttonLabel$lambda(value, this)); } }); function JoinWithCodeComponent$set_JoinWithCodeComponent$loading$lambda(closure$value, this$JoinWithCodeComponent) { return function ($receiver) { Kotlin.callSetter(this$JoinWithCodeComponent, UstadBaseComponent.prototype, 'loading', closure$value); this$JoinWithCodeComponent.buttonEnabled = !closure$value; return Unit; }; } Object.defineProperty(JoinWithCodeComponent.prototype, 'loading', { configurable: true, get: function () { return Kotlin.callGetter(this, UstadBaseComponent.prototype, 'loading'); }, set: function (value) { setState(this, JoinWithCodeComponent$set_JoinWithCodeComponent$loading$lambda(value, this)); } }); function JoinWithCodeComponent$onCreateView$lambda(this$JoinWithCodeComponent) { return function ($receiver) { this$JoinWithCodeComponent.entityType = this$JoinWithCodeComponent.getString_za3lpa$(2915); return Unit; }; } function JoinWithCodeComponent$onCreateView$lambda_0(this$JoinWithCodeComponent) { return function ($receiver) { this$JoinWithCodeComponent.entityType = this$JoinWithCodeComponent.getString_za3lpa$(2525); return Unit; }; } function JoinWithCodeComponent$onCreateView$lambda_1(this$JoinWithCodeComponent) { return function ($receiver) { this$JoinWithCodeComponent.codeLabel_0 = this$JoinWithCodeComponent.codeLabel_0.copy_d8n4vg$(format(this$JoinWithCodeComponent.getString_za3lpa$(2675), [this$JoinWithCodeComponent.entityType])); return Unit; }; } JoinWithCodeComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new JoinWithCodePresenter(this, this.arguments, this, this.di); var tableId = toInt(toString(this.arguments.get_11rb$(UstadView.Companion.ARG_CODE_TABLE))); switch (tableId) { case 6: setState(this, JoinWithCodeComponent$onCreateView$lambda(this)); tmp$ = this.getString_za3lpa$(2929); break; case 164: setState(this, JoinWithCodeComponent$onCreateView$lambda_0(this)); tmp$ = this.getString_za3lpa$(2528); break; default:tmp$ = 'ERR - Unknown entity type'; break; } this.ustadComponentTitle = tmp$; setState(this, JoinWithCodeComponent$onCreateView$lambda_1(this)); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function JoinWithCodeComponent$render$lambda$lambda$lambda(this$JoinWithCodeComponent) { return function ($receiver) { umTypography($receiver, this$JoinWithCodeComponent.getString_za3lpa$(2676), TypographyVariant$body2_getInstance()); return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$JoinWithCodeComponent) { return function ($receiver) { this$JoinWithCodeComponent.code = closure$it; this$JoinWithCodeComponent.errorText = null; return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$JoinWithCodeComponent) { return function (it) { setState(this$JoinWithCodeComponent, JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$JoinWithCodeComponent)); return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda(this$JoinWithCodeComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$JoinWithCodeComponent.codeLabel_0.text); tmp$_0 = this$JoinWithCodeComponent.codeLabel_0.errorText; tmp$_1 = this$JoinWithCodeComponent.code; tmp$_2 = this$JoinWithCodeComponent.codeLabel_0.error; tmp$_3 = !this$JoinWithCodeComponent.buttonEnabled; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$JoinWithCodeComponent), void 0, void 0, tmp$_3, tmp$_2, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$JoinWithCodeComponent) { return function (it) { var tmp$; if ((tmp$ = this$JoinWithCodeComponent.code) != null) { var tmp$_0; (tmp$_0 = this$JoinWithCodeComponent.mPresenter_0) != null ? (tmp$_0.handleClickDone_61zpoe$(tmp$), Unit) : null; }return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2($receiver) { var $receiver_0 = $receiver.css; set_padding($receiver_0, '15px'); set_marginTop($receiver_0, new LinearDimension('13px')); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); return Unit; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$JoinWithCodeComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$_0 = (tmp$ = this$JoinWithCodeComponent.buttonLabel) != null ? tmp$ : ''; var $receiver_0 = this$JoinWithCodeComponent.code; tmp$_1 = $receiver_0 == null || $receiver_0.length === 0; tmp$_2 = ButtonVariant$contained_getInstance(); tmp$_3 = UMColor$secondary_getInstance(); tmp$_4 = ButtonSize$large_getInstance(); umButton($receiver, tmp$_0, tmp$_3, tmp$_2, tmp$_1, JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$JoinWithCodeComponent), tmp$_4, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2); return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda$lambda$lambda(this$JoinWithCodeComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda(this$JoinWithCodeComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$JoinWithCodeComponent)); return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda$lambda_0(this$JoinWithCodeComponent) { return function ($receiver) { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda$lambda$lambda(this$JoinWithCodeComponent)); return Unit; }; } function JoinWithCodeComponent$render$lambda$lambda(this$JoinWithCodeComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda$lambda(this$JoinWithCodeComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda$lambda_0(this$JoinWithCodeComponent)); return Unit; }; } JoinWithCodeComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_27); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, JoinWithCodeComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; JoinWithCodeComponent.prototype.onDestroyView = function () { UstadBaseComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; this.controlsEnabled = null; this.errorText = null; this.code = null; this.buttonLabel = null; }; JoinWithCodeComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'JoinWithCodeComponent', interfaces: [JoinWithCodeView, UstadBaseComponent] }; function styledDiv$lambda_28(it) { return new DIV_init(html.emptyMap, it); } function LanguageEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.nameLabel_0 = new FieldLabel(this.getString_za3lpa$(2046)); this.twoLetterLabel_0 = new FieldLabel(this.getString_za3lpa$(2059)); this.threeLetterLabel_0 = new FieldLabel(this.getString_za3lpa$(2060)); this.langNameError_z6d061$_0 = null; this.fieldsEnabled_x81nwy$_0 = false; this.entity_l32tmt$_0 = null; } Object.defineProperty(LanguageEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function LanguageEditComponent$set_LanguageEditComponent$langNameError$lambda(this$LanguageEditComponent, closure$value) { return function ($receiver) { this$LanguageEditComponent.nameLabel_0 = this$LanguageEditComponent.nameLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(LanguageEditComponent.prototype, 'langNameError', { configurable: true, get: function () { return this.langNameError_z6d061$_0; }, set: function (value) { setState(this, LanguageEditComponent$set_LanguageEditComponent$langNameError$lambda(this, value)); } }); function LanguageEditComponent$set_LanguageEditComponent$fieldsEnabled$lambda(closure$value, this$LanguageEditComponent) { return function ($receiver) { this$LanguageEditComponent.fieldsEnabled_x81nwy$_0 = closure$value; return Unit; }; } Object.defineProperty(LanguageEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_x81nwy$_0; }, set: function (value) { setState(this, LanguageEditComponent$set_LanguageEditComponent$fieldsEnabled$lambda(value, this)); } }); function LanguageEditComponent$set_LanguageEditComponent$entity$lambda(closure$value, this$LanguageEditComponent) { return function ($receiver) { this$LanguageEditComponent.entity_l32tmt$_0 = closure$value; return Unit; }; } Object.defineProperty(LanguageEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_l32tmt$_0; }, set: function (value) { setState(this, LanguageEditComponent$set_LanguageEditComponent$entity$lambda(value, this)); } }); LanguageEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new LanguageEditPresenter(this, this.arguments, this, this, this.di); this.setEditTitle_vux9f0$(2055, 2058); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function LanguageEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$LanguageEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$LanguageEditComponent.entity) != null ? (tmp$.name = closure$it) : null; this$LanguageEditComponent.langNameError = null; return Unit; }; } function LanguageEditComponent$render$lambda$lambda$lambda(this$LanguageEditComponent) { return function (it) { setState(this$LanguageEditComponent, LanguageEditComponent$render$lambda$lambda$lambda$lambda(it, this$LanguageEditComponent)); return Unit; }; } function LanguageEditComponent$render$lambda$lambda(this$LanguageEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$LanguageEditComponent.nameLabel_0.text); tmp$_0 = this$LanguageEditComponent.nameLabel_0.errorText; tmp$_2 = (tmp$_1 = this$LanguageEditComponent.entity) != null ? tmp$_1.name : null; tmp$_3 = this$LanguageEditComponent.nameLabel_0.error; tmp$_4 = !this$LanguageEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), LanguageEditComponent$render$lambda$lambda$lambda(this$LanguageEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function LanguageEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$LanguageEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$LanguageEditComponent.entity) != null ? (tmp$.iso_639_2_standard = closure$it) : null; return Unit; }; } function LanguageEditComponent$render$lambda$lambda$lambda$lambda_0(this$LanguageEditComponent) { return function (it) { setState(this$LanguageEditComponent, LanguageEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$LanguageEditComponent)); return Unit; }; } function LanguageEditComponent$render$lambda$lambda$lambda_0(this$LanguageEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$LanguageEditComponent.twoLetterLabel_0.text); tmp$_0 = this$LanguageEditComponent.twoLetterLabel_0.errorText; tmp$_2 = (tmp$_1 = this$LanguageEditComponent.entity) != null ? tmp$_1.iso_639_2_standard : null; tmp$_3 = this$LanguageEditComponent.twoLetterLabel_0.error; tmp$_4 = !this$LanguageEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), LanguageEditComponent$render$lambda$lambda$lambda$lambda_0(this$LanguageEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function LanguageEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$LanguageEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$LanguageEditComponent.entity) != null ? (tmp$.iso_639_3_standard = closure$it) : null; return Unit; }; } function LanguageEditComponent$render$lambda$lambda$lambda$lambda_1(this$LanguageEditComponent) { return function (it) { setState(this$LanguageEditComponent, LanguageEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(it, this$LanguageEditComponent)); return Unit; }; } function LanguageEditComponent$render$lambda$lambda$lambda_1(this$LanguageEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$LanguageEditComponent.threeLetterLabel_0.text); tmp$_0 = this$LanguageEditComponent.threeLetterLabel_0.errorText; tmp$_2 = (tmp$_1 = this$LanguageEditComponent.entity) != null ? tmp$_1.iso_639_3_standard : null; tmp$_3 = this$LanguageEditComponent.threeLetterLabel_0.error; tmp$_4 = !this$LanguageEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), LanguageEditComponent$render$lambda$lambda$lambda$lambda_1(this$LanguageEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function LanguageEditComponent$render$lambda$lambda_0(this$LanguageEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, LanguageEditComponent$render$lambda$lambda$lambda_0(this$LanguageEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, LanguageEditComponent$render$lambda$lambda$lambda_1(this$LanguageEditComponent)); return Unit; }; } LanguageEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_28); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LanguageEditComponent$render$lambda$lambda(this)); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, LanguageEditComponent$render$lambda$lambda_0(this)); $receiver.child_30b5ua$($receiver_0.create()); }; LanguageEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.langNameError = null; }; LanguageEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'LanguageEditComponent', interfaces: [LanguageEditView, UstadEditComponent] }; function LanguageListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; } Object.defineProperty(LanguageListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.languageDao : null; } }); Object.defineProperty(LanguageListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); LanguageListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2057); this.showCreateNewItem = true; this.addNewEntryText = this.getString_za3lpa$(2054); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2053)) : null; this.mPresenter_0 = new LanguageListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; LanguageListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { renderListItemWithLeftIconTitleAndDescription($receiver, 'language', item.name, toString(item.iso_639_2_standard) + '/' + toString(item.iso_639_3_standard), true); }; LanguageListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; LanguageListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; LanguageListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'LanguageListComponent', interfaces: [LanguageListView, UstadListComponent] }; function LanguageProps() { } LanguageProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'LanguageProps', interfaces: [UmProps] }; function LanguageOptionComponent(mProps) { RComponent_init(mProps, this); this.languageOptions_ocmtbv$_0 = this.languageOptions_ocmtbv$_0; this.selectedLanguage_zdnz9c$_0 = this.selectedLanguage_zdnz9c$_0; } Object.defineProperty(LanguageOptionComponent.prototype, 'languageOptions_0', { configurable: true, get: function () { if (this.languageOptions_ocmtbv$_0 == null) return throwUPAE('languageOptions'); return this.languageOptions_ocmtbv$_0; }, set: function (languageOptions) { this.languageOptions_ocmtbv$_0 = languageOptions; } }); Object.defineProperty(LanguageOptionComponent.prototype, 'selectedLanguage_0', { configurable: true, get: function () { if (this.selectedLanguage_zdnz9c$_0 == null) return throwUPAE('selectedLanguage'); return this.selectedLanguage_zdnz9c$_0; }, set: function (selectedLanguage) { this.selectedLanguage_zdnz9c$_0 = selectedLanguage; } }); LanguageOptionComponent.prototype.init_xibzyo$ = function ($receiver, props) { this.languageOptions_0 = props.systemImpl.getAllUiLanguagesList($receiver); var $receiver_0 = this.languageOptions_0; var indexOfFirst$result; indexOfFirst$break: do { var tmp$; var index = 0; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); if (equals(item.first, props.systemImpl.getDisplayedLocale_za3rmp$($receiver))) { indexOfFirst$result = index; break indexOfFirst$break; }index = index + 1 | 0; } indexOfFirst$result = -1; } while (false); var selectedLocaleIndex = indexOfFirst$result; this.selectedLanguage_0 = this.languageOptions_0.get_za3lpa$(selectedLocaleIndex).first; }; function LanguageOptionComponent$render$lambda$lambda(this$LanguageOptionComponent) { return function (it) { this$LanguageOptionComponent.handleOnLanguageChange_0(it); return Unit; }; } function LanguageOptionComponent$render$lambda(this$LanguageOptionComponent) { return function ($receiver) { var tmp$, tmp$_0; StyleManager_getInstance().languageComponentLanguageSelectorFormControl($receiver.css); var text = (tmp$ = this$LanguageOptionComponent.props.label) != null ? tmp$ : this$LanguageOptionComponent.props.systemImpl.getString(2053, $receiver); umTextFieldSelect($receiver, text, this$LanguageOptionComponent.props.systemImpl.getDisplayedLocale_za3rmp$($receiver), (tmp$_0 = this$LanguageOptionComponent.props.caption) != null ? tmp$_0 : '', void 0, this$LanguageOptionComponent.languageOptions_0, FormControlVariant$outlined_getInstance(), LanguageOptionComponent$render$lambda$lambda(this$LanguageOptionComponent)); return Unit; }; } LanguageOptionComponent.prototype.render_ss14n$ = function ($receiver) { umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, LanguageOptionComponent$render$lambda(this)); }; function LanguageOptionComponent$handleOnLanguageChange$lambda(closure$value, this$LanguageOptionComponent) { return function ($receiver) { this$LanguageOptionComponent.selectedLanguage_0 = closure$value; return Unit; }; } LanguageOptionComponent.prototype.handleOnLanguageChange_0 = function (value) { this.props.systemImpl.setLocale(value, this); setState(this, LanguageOptionComponent$handleOnLanguageChange$lambda(value, this)); window.location.reload(); }; LanguageOptionComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'LanguageOptionComponent', interfaces: [RComponent] }; function renderLanguages$lambda(closure$systemImpl, closure$width, closure$label, closure$caption) { return function ($receiver) { $receiver.attrs.systemImpl = closure$systemImpl; $receiver.attrs.width = closure$width; $receiver.attrs.label = closure$label; $receiver.attrs.caption = closure$caption; return Unit; }; } function renderLanguages($receiver, systemImpl, width, label, caption) { if (width === void 0) width = get_spacingUnits(40); if (label === void 0) label = null; if (caption === void 0) caption = null; $receiver.child_up9nw1$(getKClass(LanguageOptionComponent), renderLanguages$lambda(systemImpl, width, label, caption)); } function LeavingReasonEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.reasonTitle_0 = new FieldLabel(this.getString_za3lpa$(2047)); this.reasonTitleError_6u07ek$_0 = null; this.fieldsEnabled_xf8jo$_0 = false; this.entity_38iuj7$_0 = null; } Object.defineProperty(LeavingReasonEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function LeavingReasonEditComponent$set_LeavingReasonEditComponent$reasonTitleError$lambda(this$LeavingReasonEditComponent, closure$value) { return function ($receiver) { this$LeavingReasonEditComponent.reasonTitle_0 = this$LeavingReasonEditComponent.reasonTitle_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(LeavingReasonEditComponent.prototype, 'reasonTitleError', { configurable: true, get: function () { return this.reasonTitleError_6u07ek$_0; }, set: function (value) { setState(this, LeavingReasonEditComponent$set_LeavingReasonEditComponent$reasonTitleError$lambda(this, value)); } }); function LeavingReasonEditComponent$set_LeavingReasonEditComponent$fieldsEnabled$lambda(closure$value, this$LeavingReasonEditComponent) { return function ($receiver) { this$LeavingReasonEditComponent.fieldsEnabled_xf8jo$_0 = closure$value; return Unit; }; } Object.defineProperty(LeavingReasonEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_xf8jo$_0; }, set: function (value) { setState(this, LeavingReasonEditComponent$set_LeavingReasonEditComponent$fieldsEnabled$lambda(value, this)); } }); function LeavingReasonEditComponent$set_LeavingReasonEditComponent$entity$lambda(closure$value, this$LeavingReasonEditComponent) { return function ($receiver) { this$LeavingReasonEditComponent.entity_38iuj7$_0 = closure$value; return Unit; }; } Object.defineProperty(LeavingReasonEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_38iuj7$_0; }, set: function (value) { setState(this, LeavingReasonEditComponent$set_LeavingReasonEditComponent$entity$lambda(value, this)); } }); LeavingReasonEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new LeavingReasonEditPresenter(this, this.arguments, this, this, this.di); this.setEditTitle_vux9f0$(2376, 2377); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function LeavingReasonEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$LeavingReasonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$LeavingReasonEditComponent.entity) != null ? (tmp$.leavingReasonTitle = closure$it) : null; this$LeavingReasonEditComponent.reasonTitleError = null; return Unit; }; } function LeavingReasonEditComponent$render$lambda$lambda$lambda(this$LeavingReasonEditComponent) { return function (it) { setState(this$LeavingReasonEditComponent, LeavingReasonEditComponent$render$lambda$lambda$lambda$lambda(it, this$LeavingReasonEditComponent)); return Unit; }; } function LeavingReasonEditComponent$render$lambda$lambda(this$LeavingReasonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$LeavingReasonEditComponent.reasonTitle_0.text); tmp$_0 = this$LeavingReasonEditComponent.reasonTitle_0.errorText; tmp$_2 = (tmp$_1 = this$LeavingReasonEditComponent.entity) != null ? tmp$_1.leavingReasonTitle : null; tmp$_3 = this$LeavingReasonEditComponent.reasonTitle_0.error; tmp$_4 = !this$LeavingReasonEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), LeavingReasonEditComponent$render$lambda$lambda$lambda(this$LeavingReasonEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function LeavingReasonEditComponent$render$lambda(this$LeavingReasonEditComponent) { return function ($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LeavingReasonEditComponent$render$lambda$lambda(this$LeavingReasonEditComponent)); return Unit; }; } LeavingReasonEditComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, LeavingReasonEditComponent$render$lambda(this)); }; LeavingReasonEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.reasonTitleError = null; }; LeavingReasonEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'LeavingReasonEditComponent', interfaces: [LeavingReasonEditView, UstadEditComponent] }; function LeavingReasonListComponent(props) { UstadListComponent.call(this, props); this.mPresenter_0 = null; } Object.defineProperty(LeavingReasonListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.leavingReasonDao : null; } }); Object.defineProperty(LeavingReasonListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); LeavingReasonListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.addNewEntryText = this.getString_za3lpa$(2381); this.showCreateNewItem = true; (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2382)) : null; this.ustadComponentTitle = this.getString_za3lpa$(2380); this.mPresenter_0 = new LeavingReasonListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; LeavingReasonListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var tmp$; renderListItemWithIconAndTitle($receiver, 'question_mark', (tmp$ = item.leavingReasonTitle) != null ? tmp$ : ''); }; LeavingReasonListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.onClickLeavingReason_e9c2s2$(entry), Unit) : null; }; LeavingReasonListComponent.prototype.onDestroyView = function () { UstadListComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; this.dbRepo = null; }; LeavingReasonListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'LeavingReasonListComponent', interfaces: [LeavingReasonListView, UstadListComponent] }; var linkifyReactComponent; function LinkifyOptionsAttributes() { this.onClick = null; this.title = null; } LinkifyOptionsAttributes.$metadata$ = { kind: Kind_CLASS, simpleName: 'LinkifyOptionsAttributes', interfaces: [] }; function LinkifyOptions() { this.tagName = 'a'; this.className = null; this.attributes = null; } LinkifyOptions.$metadata$ = { kind: Kind_CLASS, simpleName: 'LinkifyOptions', interfaces: [] }; function linkifyReactMessage$lambda$lambda(closure$systemImpl, closure$accountManager, closure$context) { return function (it) { it.preventDefault(); it.stopPropagation(); closure$systemImpl.handleClickLink_dfpk30$(toString(it.target), closure$accountManager, closure$context); return Unit; }; } function linkifyReactMessage$lambda$lambda_0(closure$left, closure$systemImpl) { return function ($receiver) { var closure$left_0 = closure$left; var closure$systemImpl_0 = closure$systemImpl; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().chatMessageContent); if (closure$left_0) if (closure$systemImpl_0.isRtlActive()) $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().chatRight); else $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().chatLeft); else if (closure$systemImpl_0.isRtlActive()) $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().chatLeft); else $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().chatRight); if (closure$left_0) { set_backgroundColor($receiver_0, new Color(StyleManager_getInstance().theme.palette.action.selected)); } else { set_backgroundColor($receiver_0, new Color(StyleManager_getInstance().theme.palette.primary.dark)); set_color($receiver_0, Color.Companion.white); } return Unit; }; } function linkifyReactMessage$lambda(closure$options, closure$systemImpl, closure$accountManager, closure$context, closure$message, closure$left) { return function ($receiver) { $receiver.attrs.id = 'Linkify'; $receiver.attrs.options = closure$options; var optionsTest = new LinkifyOptions(); var attributes = new LinkifyOptionsAttributes(); attributes.onClick = linkifyReactMessage$lambda$lambda(closure$systemImpl, closure$accountManager, closure$context); optionsTest.attributes = attributes; $receiver.attrs.options = optionsTest; umTypography($receiver, closure$message, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, linkifyReactMessage$lambda$lambda_0(closure$left, closure$systemImpl)); return Unit; }; } function linkifyReactMessage($receiver, message, left, options, systemImpl, accountManager, context) { if (left === void 0) left = true; return createStyledComponent($receiver, linkifyReactComponent, 'Linkify', void 0, linkifyReactMessage$lambda(options, systemImpl, accountManager, context, message, left)); } function linkifyReactTextView$lambda$lambda(closure$systemImpl, closure$accountManager, closure$context) { return function (it) { it.preventDefault(); it.stopPropagation(); closure$systemImpl.handleClickLink_dfpk30$(toString(it.target), closure$accountManager, closure$context); return Unit; }; } function linkifyReactTextView$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_marginTop($receiver_0, get_spacingUnits(1)); return Unit; } function linkifyReactTextView$lambda(closure$systemImpl, closure$accountManager, closure$context, closure$message) { return function ($receiver) { var optionsTest = new LinkifyOptions(); var attributes = new LinkifyOptionsAttributes(); attributes.onClick = linkifyReactTextView$lambda$lambda(closure$systemImpl, closure$accountManager, closure$context); optionsTest.attributes = attributes; $receiver.attrs.options = optionsTest; umTypography($receiver, closure$message, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, linkifyReactTextView$lambda$lambda_0); return Unit; }; } function linkifyReactTextView($receiver, message, systemImpl, accountManager, context) { return createStyledComponent($receiver, linkifyReactComponent, 'Linkify', void 0, linkifyReactTextView$lambda(systemImpl, accountManager, context, message)); } function LoginComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter_0 = null; this.username_0 = ''; this.password_0 = ''; this.showPassword_0 = false; this.passwordLabel_0 = new FieldLabel(this.getString_za3lpa$(2035), void 0, void 0, 'password-input'); this.usernameLabel_0 = new FieldLabel(this.getString_za3lpa$(2034), void 0, void 0, 'username-input'); this.errorText_0 = this.getString_za3lpa$(2127); this.errorMessage_za89ee$_0 = ''; this.versionInfo_baqnnp$_0 = null; this.loginIntentMessage_158yh3$_0 = null; this.isEmptyPassword_hdde37$_0 = false; this.isEmptyUsername_3ta4r6$_0 = false; this.inProgress_h0qh5$_0 = false; this.createAccountVisible_b5yi0$_0 = false; this.connectAsGuestVisible_h6rqnf$_0 = false; } function LoginComponent$set_LoginComponent$errorMessage$lambda(closure$value, this$LoginComponent) { return function ($receiver) { this$LoginComponent.errorMessage_za89ee$_0 = closure$value; return Unit; }; } Object.defineProperty(LoginComponent.prototype, 'errorMessage', { configurable: true, get: function () { return this.errorMessage_za89ee$_0; }, set: function (value) { setState(this, LoginComponent$set_LoginComponent$errorMessage$lambda(value, this)); } }); Object.defineProperty(LoginComponent.prototype, 'versionInfo', { configurable: true, get: function () { return this.versionInfo_baqnnp$_0; }, set: function (value) { this.versionInfo_baqnnp$_0 = value; } }); function LoginComponent$set_LoginComponent$loginIntentMessage$lambda(closure$value, this$LoginComponent) { return function ($receiver) { this$LoginComponent.loginIntentMessage_158yh3$_0 = closure$value; return Unit; }; } Object.defineProperty(LoginComponent.prototype, 'loginIntentMessage', { configurable: true, get: function () { return this.loginIntentMessage_158yh3$_0; }, set: function (value) { setState(this, LoginComponent$set_LoginComponent$loginIntentMessage$lambda(value, this)); } }); function LoginComponent$set_LoginComponent$isEmptyPassword$lambda(this$LoginComponent) { return function ($receiver) { this$LoginComponent.passwordLabel_0 = this$LoginComponent.passwordLabel_0.copy_d8n4vg$(void 0, this$LoginComponent.errorText_0); return Unit; }; } Object.defineProperty(LoginComponent.prototype, 'isEmptyPassword', { configurable: true, get: function () { return this.isEmptyPassword_hdde37$_0; }, set: function (value) { this.isEmptyPassword_hdde37$_0 = value; if (value) { setState(this, LoginComponent$set_LoginComponent$isEmptyPassword$lambda(this)); }} }); function LoginComponent$set_LoginComponent$isEmptyUsername$lambda(this$LoginComponent) { return function ($receiver) { this$LoginComponent.usernameLabel_0 = this$LoginComponent.usernameLabel_0.copy_d8n4vg$(void 0, this$LoginComponent.errorText_0); return Unit; }; } Object.defineProperty(LoginComponent.prototype, 'isEmptyUsername', { configurable: true, get: function () { return this.isEmptyUsername_3ta4r6$_0; }, set: function (value) { this.isEmptyUsername_3ta4r6$_0 = value; if (value) { setState(this, LoginComponent$set_LoginComponent$isEmptyUsername$lambda(this)); }} }); function LoginComponent$set_LoginComponent$inProgress$lambda(closure$value, this$LoginComponent) { return function ($receiver) { this$LoginComponent.loading = closure$value; return Unit; }; } Object.defineProperty(LoginComponent.prototype, 'inProgress', { configurable: true, get: function () { return this.inProgress_h0qh5$_0; }, set: function (value) { this.inProgress_h0qh5$_0 = value; setState(this, LoginComponent$set_LoginComponent$inProgress$lambda(value, this)); } }); function LoginComponent$set_LoginComponent$createAccountVisible$lambda(closure$value, this$LoginComponent) { return function ($receiver) { this$LoginComponent.createAccountVisible_b5yi0$_0 = closure$value; return Unit; }; } Object.defineProperty(LoginComponent.prototype, 'createAccountVisible', { configurable: true, get: function () { return this.createAccountVisible_b5yi0$_0; }, set: function (value) { setState(this, LoginComponent$set_LoginComponent$createAccountVisible$lambda(value, this)); } }); function LoginComponent$set_LoginComponent$connectAsGuestVisible$lambda(closure$value, this$LoginComponent) { return function ($receiver) { this$LoginComponent.connectAsGuestVisible_h6rqnf$_0 = closure$value; return Unit; }; } Object.defineProperty(LoginComponent.prototype, 'connectAsGuestVisible', { configurable: true, get: function () { return this.connectAsGuestVisible_h6rqnf$_0; }, set: function (value) { setState(this, LoginComponent$set_LoginComponent$connectAsGuestVisible$lambda(value, this)); } }); LoginComponent.prototype.onCreateView = function () { var tmp$; UstadBaseComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2001); this.mPresenter_0 = new Login2Presenter(this, this.arguments, this, this.di); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function LoginComponent$render$lambda$lambda$lambda$lambda(this$LoginComponent) { return function ($receiver) { umTypography($receiver, this$LoginComponent.loginIntentMessage, TypographyVariant$body2_getInstance(), TypographyAlign$center_getInstance(), true); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$LoginComponent) { return function ($receiver) { this$LoginComponent.username_0 = closure$it; this$LoginComponent.isEmptyUsername = false; this$LoginComponent.errorMessage = ''; return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda(this$LoginComponent) { return function (it) { setState(this$LoginComponent, LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$LoginComponent)); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; } function LoginComponent$render$lambda$lambda$lambda$lambda_0(this$LoginComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$LoginComponent.usernameLabel_0.text); tmp$_0 = this$LoginComponent.usernameLabel_0.errorText; tmp$_1 = this$LoginComponent.username_0; tmp$_2 = this$LoginComponent.usernameLabel_0.error; tmp$_3 = this$LoginComponent.usernameLabel_0.id; tmp$_4 = this$LoginComponent.inProgress; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), LoginComponent$render$lambda$lambda$lambda$lambda$lambda(this$LoginComponent), void 0, void 0, tmp$_4, tmp$_2, void 0, void 0, void 0, void 0, tmp$_3, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$LoginComponent) { return function ($receiver) { this$LoginComponent.password_0 = closure$it; this$LoginComponent.isEmptyPassword = false; this$LoginComponent.errorMessage = ''; return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$LoginComponent) { return function (it) { setState(this$LoginComponent, LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$LoginComponent)); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$LoginComponent) { return function ($receiver) { this$LoginComponent.showPassword_0 = !this$LoginComponent.showPassword_0; return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$LoginComponent) { return function (it) { setState(this$LoginComponent, LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$LoginComponent)); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$LoginComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = $receiver.attrs; tmp$ = !this$LoginComponent.showPassword_0 ? 'visibility' : 'visibility_off'; tmp$_0 = IconEdge$end_getInstance(); tmp$_1.endAdornment = umIconButton($receiver, tmp$, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$LoginComponent), void 0, void 0, void 0, tmp$_0); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().errorTextClass($receiver.css); return Unit; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$LoginComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); tmp$ = toString(this$LoginComponent.passwordLabel_0.text); tmp$_0 = this$LoginComponent.passwordLabel_0.id; tmp$_1 = this$LoginComponent.passwordLabel_0.error; tmp$_2 = FormControlVariant$outlined_getInstance(); umInputLabel($receiver, tmp$, this$LoginComponent.passwordLabel_0.id, tmp$_0, void 0, void 0, tmp$_1, void 0, tmp$_2); tmp$_3 = this$LoginComponent.passwordLabel_0.id; umOutlinedInput($receiver, this$LoginComponent.password_0, void 0, this$LoginComponent.passwordLabel_0.text, this$LoginComponent.inProgress, void 0, this$LoginComponent.passwordLabel_0.error, void 0, void 0, void 0, void 0, void 0, this$LoginComponent.showPassword_0 ? InputType$text : InputType$password, tmp$_3, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$LoginComponent), void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$LoginComponent)); if ((tmp$_4 = this$LoginComponent.passwordLabel_0.errorText) != null) { umFormHelperText($receiver, tmp$_4, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1); }return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda_1(this$LoginComponent) { return function ($receiver) { umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$LoginComponent)); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda_2(this$LoginComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$ = this$LoginComponent.errorMessage; tmp$_0 = TypographyVariant$subtitle2_getInstance(); tmp$_1 = StyleManager_getInstance().name + '-errorTextClass'; umTypography($receiver, tmp$, tmp$_0, TypographyAlign$center_getInstance(), void 0, void 0, void 0, void 0, tmp$_1); set_marginTop($receiver.css, get_spacingUnits(2)); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$LoginComponent) { return function (it) { var tmp$; (tmp$ = this$LoginComponent.mPresenter_0) != null ? (tmp$.handleLogin_rkkr90$(this$LoginComponent.username_0, this$LoginComponent.password_0), Unit) : null; return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_3($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function LoginComponent$render$lambda$lambda$lambda$lambda_3(this$LoginComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$ = this$LoginComponent.getString_za3lpa$(2001); tmp$_0 = ButtonSize$large_getInstance(); tmp$_1 = this$LoginComponent.inProgress; umButton($receiver, tmp$, UMColor$secondary_getInstance(), ButtonVariant$contained_getInstance(), tmp$_1, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$LoginComponent), tmp$_0, void 0, void 0, 'login-btn', void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_3); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$LoginComponent) { return function (it) { var tmp$; (tmp$ = this$LoginComponent.mPresenter_0) != null ? (tmp$.handleCreateAccount(), Unit) : null; return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_5($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); set_marginTop($receiver_0, get_spacingUnits(2)); set_height($receiver_0, get_px(50)); return Unit; } function LoginComponent$render$lambda$lambda$lambda$lambda_4(this$LoginComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = this$LoginComponent.getString_za3lpa$(2633); tmp$_0 = ButtonVariant$outlined_getInstance(); tmp$_1 = UMColor$primary_getInstance(); tmp$_2 = this$LoginComponent.inProgress; tmp$_3 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, tmp$_1, tmp$_0, tmp$_2, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$LoginComponent), tmp$_3, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_5); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$LoginComponent) { return function (it) { var tmp$; (tmp$ = this$LoginComponent.mPresenter_0) != null ? (tmp$.handleConnectAsGuest(), Unit) : null; return Unit; }; } function LoginComponent$render$lambda$lambda$lambda$lambda$lambda_7($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); set_marginTop($receiver_0, get_spacingUnits(2)); set_height($receiver_0, get_px(50)); return Unit; } function LoginComponent$render$lambda$lambda$lambda$lambda_5(this$LoginComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = this$LoginComponent.getString_za3lpa$(2632); tmp$_0 = ButtonVariant$outlined_getInstance(); tmp$_1 = UMColor$primary_getInstance(); tmp$_2 = this$LoginComponent.inProgress; tmp$_3 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, tmp$_1, tmp$_0, tmp$_2, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_6(this$LoginComponent), tmp$_3, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda$lambda_7); return Unit; }; } function LoginComponent$render$lambda$lambda$lambda(this$LoginComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda(this$LoginComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda_0(this$LoginComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda_1(this$LoginComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda_2(this$LoginComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda_3(this$LoginComponent)); if (this$LoginComponent.createAccountVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda_4(this$LoginComponent)); }if (this$LoginComponent.connectAsGuestVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda$lambda_5(this$LoginComponent)); }return Unit; }; } function LoginComponent$render$lambda$lambda(this$LoginComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda$lambda(this$LoginComponent)); return Unit; }; } function LoginComponent$render$lambda(this$LoginComponent) { return function ($receiver) { var this$LoginComponent_0 = this$LoginComponent; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().centerContainer); set_marginTop($receiver_0, get_spacingUnits(this$LoginComponent_0.createAccountVisible || this$LoginComponent_0.connectAsGuestVisible ? 1 : 3)); umItem($receiver, GridSize$cells10_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda$lambda(this$LoginComponent)); return Unit; }; } LoginComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, LoginComponent$render$lambda(this)); }; function LoginComponent$clearFields$lambda(this$LoginComponent) { return function ($receiver) { this$LoginComponent.username_0 = ''; this$LoginComponent.password_0 = ''; return Unit; }; } LoginComponent.prototype.clearFields = function () { setState(this, LoginComponent$clearFields$lambda(this)); }; LoginComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; LoginComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'LoginComponent', interfaces: [Login2View, UstadBaseComponent] }; function styledDiv$lambda_29(it) { return new DIV_init(html.emptyMap, it); } function styledImg$lambda(closure$alt, closure$src) { return function (it) { return new IMG_init(attributesMapOf_0(['alt', closure$alt, 'src', closure$src]), it); }; } function MainComponent(props) { UstadBaseComponent.call(this, props); this.activeAccount_0 = null; this.appState_0 = new ReduxAppState(); this.currentDestination_joln2m$_0 = this.currentDestination_joln2m$_0; this.appStateChangeListener_0 = MainComponent$appStateChangeListener$lambda(this); } Object.defineProperty(MainComponent.prototype, 'currentDestination_0', { configurable: true, get: function () { if (this.currentDestination_joln2m$_0 == null) return throwUPAE('currentDestination'); return this.currentDestination_joln2m$_0; }, set: function (currentDestination) { this.currentDestination_joln2m$_0 = currentDestination; } }); function MainComponent$componentWillMount$lambda(this$MainComponent) { return function (it) { this$MainComponent.onDestinationChanged_0(); return Unit; }; } MainComponent.prototype.componentWillMount = function () { UstadBaseComponent.prototype.componentWillMount.call(this); ReduxAppStateManager_getInstance().subscribe_w8v70w$(this.appStateChangeListener_0); window.addEventListener('hashchange', MainComponent$componentWillMount$lambda(this)); this.onDestinationChanged_0(); }; function MainComponent$onDestinationChanged$lambda(closure$destination, this$MainComponent) { return function ($receiver) { this$MainComponent.currentDestination_0 = closure$destination; this$MainComponent.activeAccount_0 = this$MainComponent.accountManager.activeAccount; return Unit; }; } function MainComponent$onDestinationChanged$lambda_0(this$MainComponent) { return function () { var tmp$, tmp$_0, tmp$_1; var settings = document.getElementById('home-2052'); (tmp$_1 = (tmp$_0 = settings != null ? settings : null) != null ? tmp$_0.style : null) != null ? (tmp$_1.display = ((tmp$ = this$MainComponent.activeAccount_0) != null ? tmp$.admin : null) === false ? 'none' : 'flex') : null; return Unit; }; } MainComponent.prototype.onDestinationChanged_0 = function () { var tmp$, tmp$_0; var viewName = null; try { viewName = UstadUrlComponents.Companion.parse_puj7f4$(window.location.href).viewName; } catch (e) { if (!Kotlin.isType(e, Exception)) throw e; } var destination = (tmp$ = RouteManager_getInstance().lookupDestinationName_pdl1vj$(viewName)) != null ? tmp$ : RouteManager_getInstance().defaultDestination; if ((tmp$_0 = destination.labelId !== 0 && destination.labelId !== 2543 ? destination : null) != null) { this.ustadComponentTitle = this.getString_za3lpa$(tmp$_0.labelId); }setState(this, MainComponent$onDestinationChanged$lambda(destination, this)); window.setTimeout(MainComponent$onDestinationChanged$lambda_0(this), 500); }; function MainComponent$render$lambda$lambda$lambda($receiver) { StyleManager_getInstance().mainComponentProgressIndicator($receiver.css); $receiver.attrs.id = 'um-progress'; return Unit; } function MainComponent$render$lambda$lambda$lambda$lambda(this$MainComponent, this$) { return function () { this$MainComponent.systemImpl.go_gofqk3$(AccountListView.Companion.VIEW_NAME, emptyMap(), this$); return Unit; }; } function MainComponent$render$lambda$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; set_display($receiver_0, Display.none); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().mainComponentFab); return Unit; } function MainComponent$render$lambda(this$MainComponent) { return function ($receiver, f) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_29); var this$MainComponent_0 = this$MainComponent; StyleManager_getInstance().mainComponentWrapperContainer($receiver_0.css); umLinearProgress($receiver_0, void 0, void 0, void 0, ThemeManager_getInstance().isDarkModeActive() ? UMColor$secondary_getInstance() : UMColor$primary_getInstance(), void 0, MainComponent$render$lambda$lambda$lambda); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_29); var tmp$; StyleManager_getInstance().mainComponentContainer($receiver_0_0.css); umTopBar($receiver_0_0, this$MainComponent_0.appState_0, this$MainComponent_0.currentDestination_0, this$MainComponent_0.systemImpl.isRtlActive() ? '...' : '' + (this$MainComponent_0.getString_za3lpa$(2449) + ' ') + (this$MainComponent_0.systemImpl.isRtlActive() ? '' : '...'), (tmp$ = this$MainComponent_0.activeAccount_0) != null ? tmp$.firstName : null, MainComponent$render$lambda$lambda$lambda$lambda(this$MainComponent_0, $receiver_0_0)); if (this$MainComponent_0.currentDestination_0.showNavigation) { this$MainComponent_0.renderSideNavigation_0($receiver_0_0); }var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_29); StyleManager_getInstance().mainComponentContentContainer($receiver_0_1.css); appBarSpacer($receiver_0_1); var $receiver_0_2 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_29); $receiver_0_2.attrs.id = 'main-content'; renderRoutes($receiver_0_2, this$MainComponent_0.di); $receiver_0_1.child_30b5ua$($receiver_0_2.create()); $receiver_0_0.child_30b5ua$($receiver_0_1.create()); if (this$MainComponent_0.currentDestination_0.showNavigation) { this$MainComponent_0.renderBottomNavigation_0($receiver_0_0); }umFab($receiver_0_0, '', '', UMColor$secondary_getInstance(), void 0, void 0, void 0, void 0, 'um-fab', void 0, MainComponent$render$lambda$lambda$lambda$lambda_0); $receiver_0.child_30b5ua$($receiver_0_0.create()); this$MainComponent_0.renderSnackBar_0($receiver_0); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } MainComponent.prototype.render_ss14n$ = function ($receiver) { $receiver.invoke_c0v1gl$(themeContext.Consumer, MainComponent$render$lambda(this)); }; function MainComponent$renderBottomNavigation$lambda$lambda$lambda(closure$value, this$MainComponent) { return function ($receiver) { var tmp$; var destination = Kotlin.isType(tmp$ = closure$value, UstadDestination) ? tmp$ : throwCCE(); this$MainComponent.systemImpl.go_gofqk3$(destination.view, emptyMap(), $receiver); return Unit; }; } function MainComponent$renderBottomNavigation$lambda$lambda(this$MainComponent) { return function (f, value) { setState(this$MainComponent, MainComponent$renderBottomNavigation$lambda$lambda$lambda(value, this$MainComponent)); return Unit; }; } function MainComponent$renderBottomNavigation$lambda(this$MainComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().mainComponentBottomNav); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().showOnMobile); $receiver.attrs.onChange = MainComponent$renderBottomNavigation$lambda$lambda(this$MainComponent); var extraMenuToShow = mutableListOf([SettingsView.Companion.VIEW_NAME]); if (!this$MainComponent.accountManager.activeAccount.admin) { var element = ReportListView.Companion.VIEW_NAME; extraMenuToShow.add_11rb$(element); }var $receiver_1 = RouteManager_getInstance().destinationList; var destination = ArrayList_init_0(); var tmp$; tmp$ = $receiver_1.iterator(); while (tmp$.hasNext()) { var element_0 = tmp$.next(); if (element_0.icon != null && extraMenuToShow.indexOf_11rb$(element_0.view) === -1) destination.add_11rb$(element_0); } var tmp$_0; tmp$_0 = destination.iterator(); while (tmp$_0.hasNext()) { var element_1 = tmp$_0.next(); var this$MainComponent_0 = this$MainComponent; var tmp$_1; if ((tmp$_1 = element_1.icon) != null) { umBottomNavigationAction($receiver, this$MainComponent_0.getString_za3lpa$(element_1.labelId), tmp$_1, true, element_1); }} return Unit; }; } MainComponent.prototype.renderBottomNavigation_0 = function ($receiver) { umBottomNavigation($receiver, this.currentDestination_0, true, void 0, void 0, MainComponent$renderBottomNavigation$lambda(this)); }; function MainComponent$renderSideNavigation$lambda$lambda($receiver) { StyleManager_getInstance().defaultFullWidth($receiver.css); return Unit; } function MainComponent$renderSideNavigation$lambda$lambda$lambda$lambda$lambda$lambda(this$MainComponent, closure$destination, this$) { return function (it) { this$MainComponent.systemImpl.go_gofqk3$(closure$destination.view, emptyMap(), this$); return Unit; }; } function MainComponent$renderSideNavigation$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$destination) { return function ($receiver) { var closure$destination_0 = closure$destination; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_padding($receiver_0, '8px 16px'); set_display($receiver_0, closure$destination_0.labelId === 2052 ? Display.none : Display.flex); return Unit; }; } function MainComponent$renderSideNavigation$lambda$lambda$lambda(this$MainComponent) { return function ($receiver) { StyleManager_getInstance().mainComponentSideNavMenuList($receiver.css); var $receiver_0 = RouteManager_getInstance().destinationList; var destination = ArrayList_init_0(); var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (element.icon != null) destination.add_11rb$(element); } var tmp$_0; tmp$_0 = destination.iterator(); while (tmp$_0.hasNext()) { var element_0 = tmp$_0.next(); var this$MainComponent_0 = this$MainComponent; var tmp$_1; if ((tmp$_1 = element_0.icon) != null) { var tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$_2 = this$MainComponent_0.getString_za3lpa$(element_0.labelId); tmp$_3 = element_0.divider; tmp$_4 = 'home-' + element_0.labelId; umListItemWithIcon($receiver, tmp$_1, tmp$_2, void 0, (tmp$_5 = this$MainComponent_0.currentDestination_0) != null ? tmp$_5.equals(element_0) : null, void 0, tmp$_4, void 0, tmp$_3, void 0, MainComponent$renderSideNavigation$lambda$lambda$lambda$lambda$lambda$lambda(this$MainComponent_0, element_0, $receiver), void 0, MainComponent$renderSideNavigation$lambda$lambda$lambda$lambda$lambda$lambda_0(element_0)); }} return Unit; }; } function MainComponent$renderSideNavigation$lambda$lambda_0(this$MainComponent) { return function ($receiver, f) { umList($receiver, void 0, void 0, void 0, void 0, void 0, MainComponent$renderSideNavigation$lambda$lambda$lambda(this$MainComponent)); renderLanguages($receiver, this$MainComponent.systemImpl); return Unit; }; } function MainComponent$renderSideNavigation$lambda(this$MainComponent) { return function ($receiver) { StyleManager_getInstance().hideOnMobile($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_29); StyleManager_getInstance().mainComponentBrandIconContainer($receiver_0.css); var src = 'assets/brand-logo.png'; var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledImg$lambda(null, src)); StyleManager_getInstance().mainComponentBrandIcon($receiver_0_0.css); $receiver_0.child_30b5ua$($receiver_0_0.create()); $receiver.child_30b5ua$($receiver_0.create()); umDivider($receiver, void 0, void 0, void 0, void 0, void 0, void 0, MainComponent$renderSideNavigation$lambda$lambda); $receiver.invoke_c0v1gl$(themeContext.Consumer, MainComponent$renderSideNavigation$lambda$lambda_0(this$MainComponent)); return Unit; }; } MainComponent.prototype.renderSideNavigation_0 = function ($receiver) { var $receiver_0 = {}; var p = $receiver_0; var $receiver_1 = {}; $receiver_1.position = 'relative'; $receiver_1.display = 'block'; $receiver_1.height = '100%'; $receiver_1.minHeight = '100vh'; p.style = $receiver_1; umDrawer($receiver, true, DrawerAnchor$left_getInstance(), DrawerVariant$permanent_getInstance(), void 0, void 0, void 0, p, void 0, void 0, void 0, MainComponent$renderSideNavigation$lambda(this)); }; function MainComponent$renderSnackBar$lambda() { ReduxAppStateManager_getInstance().dispatch_quwr82$(new ReduxSnackBarState()); return Unit; } function MainComponent$renderSnackBar$lambda$lambda(this$MainComponent) { return function (it) { this$MainComponent.appState_0.appSnackBar.onClick; ReduxAppStateManager_getInstance().dispatch_quwr82$(new ReduxSnackBarState()); return Unit; }; } function MainComponent$renderSnackBar$lambda_0(this$MainComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; var $receiver_0 = this$MainComponent.appState_0.appSnackBar.actionLabel; if (!($receiver_0 == null || isBlank($receiver_0))) { tmp$_2 = $receiver.attrs; tmp$ = toString(this$MainComponent.appState_0.appSnackBar.actionLabel); tmp$_0 = ButtonVariant$text_getInstance(); tmp$_1 = ButtonSize$medium_getInstance(); tmp$_2.action = umButton($receiver, tmp$, void 0, tmp$_0, void 0, MainComponent$renderSnackBar$lambda$lambda(this$MainComponent), tmp$_1); }return Unit; }; } MainComponent.prototype.renderSnackBar_0 = function ($receiver) { umSnackbar_0($receiver, toString(this.appState_0.appSnackBar.message), this.appState_0.appSnackBar.message != null, MainComponent$renderSnackBar$lambda, void 0, void 0, 3000, void 0, void 0, MainComponent$renderSnackBar$lambda_0(this)); }; function MainComponent$componentWillUnmount$lambda(it) { return Unit; } MainComponent.prototype.componentWillUnmount = function () { this.appStateChangeListener_0 = MainComponent$componentWillUnmount$lambda; }; function MainComponent$appStateChangeListener$lambda$lambda(closure$store, this$MainComponent) { return function ($receiver) { this$MainComponent.appState_0 = closure$store.appState; return Unit; }; } function MainComponent$appStateChangeListener$lambda(this$MainComponent) { return function (store) { setState(this$MainComponent, MainComponent$appStateChangeListener$lambda$lambda(store, this$MainComponent)); return Unit; }; } MainComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'MainComponent', interfaces: [UstadBaseComponent] }; function renderMainComponent$lambda($receiver) { return Unit; } function renderMainComponent($receiver) { $receiver.child_up9nw1$(getKClass(MainComponent), renderMainComponent$lambda); } function styledDiv$lambda_30(it) { return new DIV_init(html.emptyMap, it); } function ModuleCourseBlockEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.descriptionLabel_0 = new FieldLabel(this.getStringWithOptionalLabel_za3lpa$(2047)); this.doNotShowBeforeLabel_0 = new FieldLabel(clean(this.getString_za3lpa$(2845))); this.startTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.blockTitleError_h013ed$_0 = null; this.startDate_c86ula$_0 = L0; this.startTime_bz96e5$_0 = L0; this.timeZone_1azoev$_0 = null; this.fieldsEnabled_8z4txm$_0 = false; this.entity_k1mlsx$_0 = null; } Object.defineProperty(ModuleCourseBlockEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$blockTitleError$lambda(this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.titleLabel_0 = this$ModuleCourseBlockEditComponent.titleLabel_0.copy_d8n4vg$(void 0, this$ModuleCourseBlockEditComponent.blockTitleError_h013ed$_0); return Unit; }; } Object.defineProperty(ModuleCourseBlockEditComponent.prototype, 'blockTitleError', { configurable: true, get: function () { return this.blockTitleError_h013ed$_0; }, set: function (value) { this.blockTitleError_h013ed$_0 = value; setState(this, ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$blockTitleError$lambda(this)); } }); function ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$startDate$lambda(closure$value, this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.startDate_c86ula$_0 = closure$value; return Unit; }; } Object.defineProperty(ModuleCourseBlockEditComponent.prototype, 'startDate', { configurable: true, get: function () { return this.startDate_c86ula$_0; }, set: function (value) { setState(this, ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$startDate$lambda(value, this)); } }); function ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$startTime$lambda(closure$value, this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.startTime_bz96e5$_0 = closure$value; return Unit; }; } Object.defineProperty(ModuleCourseBlockEditComponent.prototype, 'startTime', { configurable: true, get: function () { return this.startTime_bz96e5$_0; }, set: function (value) { setState(this, ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$startTime$lambda(value, this)); } }); function ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$timeZone$lambda(closure$value, this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.timeZone_1azoev$_0 = closure$value; return Unit; }; } Object.defineProperty(ModuleCourseBlockEditComponent.prototype, 'timeZone', { configurable: true, get: function () { return this.timeZone_1azoev$_0; }, set: function (value) { setState(this, ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$timeZone$lambda(value, this)); } }); function ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$fieldsEnabled$lambda(closure$value, this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.fieldsEnabled_8z4txm$_0 = closure$value; return Unit; }; } Object.defineProperty(ModuleCourseBlockEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_8z4txm$_0; }, set: function (value) { setState(this, ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$fieldsEnabled$lambda(value, this)); } }); function ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$entity$lambda(closure$value, this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.entity_k1mlsx$_0 = closure$value; return Unit; }; } Object.defineProperty(ModuleCourseBlockEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_k1mlsx$_0; }, set: function (value) { setState(this, ModuleCourseBlockEditComponent$set_ModuleCourseBlockEditComponent$entity$lambda(value, this)); } }); ModuleCourseBlockEditComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new ModuleCourseBlockEditPresenter(this, this.arguments, this, this.di, this); this.setEditTitle_vux9f0$(2927, 2886); napier_0.Napier.d_82mfvz$('ModuleCourseBlockEditComponent: navController viewName = ' + toString((tmp$ = this.navController.currentBackStackEntry) != null ? tmp$.viewName : null) + ('stateHandle=' + toString((tmp$_2 = Kotlin.isType(tmp$_1 = (tmp$_0 = this.navController.currentBackStackEntry) != null ? tmp$_0.savedStateHandle : null, UstadSavedStateHandleJs) ? tmp$_1 : null) != null ? tmp$_2.dumpToString() : null))); (tmp$_3 = this.mPresenter_0) != null ? (tmp$_3.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$ModuleCourseBlockEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ModuleCourseBlockEditComponent.entity) != null ? (tmp$.cbTitle = closure$it) : null; this$ModuleCourseBlockEditComponent.blockTitleError = null; return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda(this$ModuleCourseBlockEditComponent) { return function (it) { setState(this$ModuleCourseBlockEditComponent, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda(it, this$ModuleCourseBlockEditComponent)); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda(this$ModuleCourseBlockEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ModuleCourseBlockEditComponent.titleLabel_0.text); tmp$_0 = this$ModuleCourseBlockEditComponent.titleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ModuleCourseBlockEditComponent.entity) != null ? tmp$_1.cbTitle : null; tmp$_3 = this$ModuleCourseBlockEditComponent.titleLabel_0.error; tmp$_4 = !this$ModuleCourseBlockEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ModuleCourseBlockEditComponent$render$lambda$lambda$lambda(this$ModuleCourseBlockEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_0(closure$it, this$ModuleCourseBlockEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ModuleCourseBlockEditComponent.entity) != null ? (tmp$.cbDescription = closure$it) : null; this$ModuleCourseBlockEditComponent.blockTitleError = null; return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda_0(this$ModuleCourseBlockEditComponent) { return function (it) { setState(this$ModuleCourseBlockEditComponent, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_0(it, this$ModuleCourseBlockEditComponent)); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda_0(this$ModuleCourseBlockEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ModuleCourseBlockEditComponent.descriptionLabel_0.text); tmp$_0 = this$ModuleCourseBlockEditComponent.descriptionLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ModuleCourseBlockEditComponent.entity) != null ? tmp$_1.cbDescription : null; tmp$_3 = this$ModuleCourseBlockEditComponent.descriptionLabel_0.error; tmp$_4 = !this$ModuleCourseBlockEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ModuleCourseBlockEditComponent$render$lambda$lambda$lambda_0(this$ModuleCourseBlockEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_1(this$ModuleCourseBlockEditComponent) { return function (it) { setState(this$ModuleCourseBlockEditComponent, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$ModuleCourseBlockEditComponent)); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda_1(this$ModuleCourseBlockEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$ModuleCourseBlockEditComponent.doNotShowBeforeLabel_0.text); tmp$_0 = this$ModuleCourseBlockEditComponent.doNotShowBeforeLabel_0.error; tmp$_1 = this$ModuleCourseBlockEditComponent.doNotShowBeforeLabel_0.errorText; tmp$_2 = toDate(this$ModuleCourseBlockEditComponent.startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_1(this$ModuleCourseBlockEditComponent), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ModuleCourseBlockEditComponent) { return function ($receiver) { this$ModuleCourseBlockEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_2(this$ModuleCourseBlockEditComponent) { return function (it) { setState(this$ModuleCourseBlockEditComponent, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(it, this$ModuleCourseBlockEditComponent)); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda$lambda_2(this$ModuleCourseBlockEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$ModuleCourseBlockEditComponent.startTimeLabel_0.text); tmp$_0 = this$ModuleCourseBlockEditComponent.startTimeLabel_0.error; tmp$_1 = this$ModuleCourseBlockEditComponent.startTimeLabel_0.errorText; tmp$_2 = toDate(this$ModuleCourseBlockEditComponent.startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_2(this$ModuleCourseBlockEditComponent), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function ModuleCourseBlockEditComponent$render$lambda$lambda_1(this$ModuleCourseBlockEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda_1(this$ModuleCourseBlockEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ModuleCourseBlockEditComponent$render$lambda$lambda$lambda_2(this$ModuleCourseBlockEditComponent)); return Unit; }; } ModuleCourseBlockEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_30); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ModuleCourseBlockEditComponent$render$lambda$lambda(this)); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ModuleCourseBlockEditComponent$render$lambda$lambda_0(this)); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ModuleCourseBlockEditComponent$render$lambda$lambda_1(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ModuleCourseBlockEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.blockTitleError = null; }; ModuleCourseBlockEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ModuleCourseBlockEditComponent', interfaces: [ModuleCourseBlockEditView, UstadEditComponent] }; var muiHtmlEditorComponent; function umMuiHtmlEditor$lambda$lambda(closure$onChange) { return function (it) { closure$onChange != null ? closure$onChange(DraftJsUtil_getInstance().convertEditorContentToHtml_za3rmp$(it.getCurrentContent())) : null; return Unit; }; } function umMuiHtmlEditor$lambda(closure$value, closure$readOnly, closure$onSave, closure$maxLength, closure$label, closure$toolbar, closure$onChange) { return function ($receiver) { $receiver.attrs.defaultValue = DraftJsUtil_getInstance().convertDataToEditorState_61zpoe$(closure$value != null ? closure$value : ''); $receiver.attrs.toolbarButtonSize = 'medium'; $receiver.attrs.inheritFontSize = true; $receiver.attrs.readOnly = closure$readOnly; $receiver.attrs.id = 'um-html-editor'; if (closure$onSave != null) { var it = closure$onSave; $receiver.attrs.onSave = it; }if (closure$maxLength != null) { var it_0 = closure$maxLength; $receiver.attrs.maxLength = it_0; }if (closure$label != null) { var it_1 = closure$label; $receiver.attrs.label = it_1; }$receiver.attrs.toolbar = closure$toolbar; $receiver.attrs.onChange = umMuiHtmlEditor$lambda$lambda(closure$onChange); return Unit; }; } function umMuiHtmlEditor($receiver, value, readOnly, toolbar, label, onSave, onChange, className, maxLength, handler) { if (readOnly === void 0) readOnly = false; if (toolbar === void 0) toolbar = true; if (label === void 0) label = null; if (onSave === void 0) onSave = null; if (onChange === void 0) onChange = null; if (className === void 0) className = null; if (maxLength === void 0) maxLength = null; if (handler === void 0) handler = null; return createStyledComponent($receiver, muiHtmlEditorComponent, className, handler, umMuiHtmlEditor$lambda(value, readOnly, onSave, maxLength, label, toolbar, onChange)); } function styledSpan$lambda_1(it) { return new SPAN_init(html.emptyMap, it); } function CommentProps() { } CommentProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'CommentProps', interfaces: [UmProps] }; function NewCommentsComponent(mProps) { RComponent_init(mProps, this); this.commentLabel_0 = new FieldLabel(this.props.label); this.commentText_0 = ''; } function NewCommentsComponent$render$lambda$lambda$lambda($receiver) { set_marginTop($receiver.css, new LinearDimension('20px')); return Unit; } function NewCommentsComponent$render$lambda$lambda$lambda$lambda(closure$it, this$NewCommentsComponent) { return function ($receiver) { this$NewCommentsComponent.commentText_0 = closure$it; return Unit; }; } function NewCommentsComponent$render$lambda$lambda$lambda_0(this$NewCommentsComponent) { return function (it) { setState(this$NewCommentsComponent, NewCommentsComponent$render$lambda$lambda$lambda$lambda(it, this$NewCommentsComponent)); return Unit; }; } function NewCommentsComponent$render$lambda$lambda$lambda$lambda_0(this$NewCommentsComponent) { return function (it) { var tmp$ = it.shiftKey; if (tmp$) { tmp$ = equals(it.key.toLowerCase(), 'enter'); }if (tmp$) { it.preventDefault(); it.target.value += '\n'; }var tmp$_0 = !it.shiftKey; if (tmp$_0) { tmp$_0 = equals(it.key.toLowerCase(), 'enter'); }if (tmp$_0) { it.preventDefault(); this$NewCommentsComponent.handleSendComment_0(); }return Unit; }; } function NewCommentsComponent$render$lambda$lambda$lambda_1(this$NewCommentsComponent) { return function ($receiver) { $receiver.attrs.onKeyDown = NewCommentsComponent$render$lambda$lambda$lambda$lambda_0(this$NewCommentsComponent); return Unit; }; } function NewCommentsComponent$render$lambda$lambda(this$NewCommentsComponent) { return function ($receiver) { var tmp$; tmp$ = this$NewCommentsComponent.commentText_0; umTextFieldMultiLine($receiver, toString(this$NewCommentsComponent.commentLabel_0.text), tmp$, void 0, void 0, FormControlVariant$outlined_getInstance(), NewCommentsComponent$render$lambda$lambda$lambda_0(this$NewCommentsComponent), void 0, void 0, void 0, void 0, void 0, void 0, void 0, 3, void 0, void 0, void 0, void 0, void 0, NewCommentsComponent$render$lambda$lambda$lambda_1(this$NewCommentsComponent)); return Unit; }; } function NewCommentsComponent$render$lambda$lambda$lambda_2(this$NewCommentsComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$NewCommentsComponent.handleSendComment_0(); return Unit; }; } function NewCommentsComponent$render$lambda$lambda$lambda_3($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); return Unit; } function NewCommentsComponent$render$lambda$lambda_0(this$NewCommentsComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = FabVariant$round_getInstance(); tmp$_0 = ButtonSize$large_getInstance(); umFab($receiver, 'send', '', UMColor$secondary_getInstance(), void 0, NewCommentsComponent$render$lambda$lambda$lambda_2(this$NewCommentsComponent), tmp$_0, void 0, void 0, tmp$, NewCommentsComponent$render$lambda$lambda$lambda_3); return Unit; }; } function NewCommentsComponent$render$lambda(this$NewCommentsComponent) { return function ($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginBottom); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_1); padding_0($receiver_0.css, void 0, get_spacingUnits(4)); umIcon($receiver_0, 'person', void 0, void 0, void 0, NewCommentsComponent$render$lambda$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); umItem($receiver, this$NewCommentsComponent.commentText_0.length > 0 ? GridSize$cells11_getInstance() : GridSize$cells12_getInstance(), this$NewCommentsComponent.commentText_0.length > 0 ? GridSize$cells10_getInstance() : GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, NewCommentsComponent$render$lambda$lambda(this$NewCommentsComponent)); if (this$NewCommentsComponent.commentText_0.length > 0) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, FlexDirection.rowReverse, NewCommentsComponent$render$lambda$lambda_0(this$NewCommentsComponent)); }return Unit; }; } NewCommentsComponent.prototype.render_ss14n$ = function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, NewCommentsComponent$render$lambda(this)); }; function NewCommentsComponent$handleSendComment$lambda(this$NewCommentsComponent) { return function ($receiver) { this$NewCommentsComponent.commentText_0 = ''; return Unit; }; } function NewCommentsComponent$handleSendComment$lambda_0(this$NewCommentsComponent) { return function ($receiver) { this$NewCommentsComponent.commentLabel_0 = this$NewCommentsComponent.commentLabel_0.copy_d8n4vg$(void 0, ''); return Unit; }; } NewCommentsComponent.prototype.handleSendComment_0 = function () { var tmp$; if (this.commentText_0.length > 0) { (tmp$ = this.props.listener) != null ? (tmp$.addComment_61zpoe$(this.commentText_0), Unit) : null; setState(this, NewCommentsComponent$handleSendComment$lambda(this)); } else { setState(this, NewCommentsComponent$handleSendComment$lambda_0(this)); } }; NewCommentsComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'NewCommentsComponent', interfaces: [RComponent] }; function renderCreateNewComment$lambda(closure$label, closure$listener) { return function ($receiver) { $receiver.attrs.label = closure$label; $receiver.attrs.listener = closure$listener; return Unit; }; } function renderCreateNewComment($receiver, label, listener) { $receiver.child_up9nw1$(getKClass(NewCommentsComponent), renderCreateNewComment$lambda(label, listener)); } function styledDiv$lambda_31(it) { return new DIV_init(html.emptyMap, it); } function ParentalConsentManagementComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.relationshipLabel_0 = new FieldLabel(this.getString_za3lpa$(2721)); this.infoText_hus0xb$_0 = null; this.siteTerms_3swdyi$_0 = null; this.relationshipFieldOptions_vc949e$_0 = null; this.relationshipFieldError_hqcp6s$_0 = null; this.fieldsEnabled_ixqpem$_0 = false; this.entity_y1mfb$_0 = null; } Object.defineProperty(ParentalConsentManagementComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$infoText$lambda(closure$value, this$ParentalConsentManagementComponent) { return function ($receiver) { this$ParentalConsentManagementComponent.infoText_hus0xb$_0 = closure$value; return Unit; }; } Object.defineProperty(ParentalConsentManagementComponent.prototype, 'infoText', { configurable: true, get: function () { return this.infoText_hus0xb$_0; }, set: function (value) { setState(this, ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$infoText$lambda(value, this)); } }); function ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$siteTerms$lambda(closure$value, this$ParentalConsentManagementComponent) { return function ($receiver) { this$ParentalConsentManagementComponent.siteTerms_3swdyi$_0 = closure$value; return Unit; }; } Object.defineProperty(ParentalConsentManagementComponent.prototype, 'siteTerms', { configurable: true, get: function () { return this.siteTerms_3swdyi$_0; }, set: function (value) { setState(this, ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$siteTerms$lambda(value, this)); } }); function ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$relationshipFieldOptions$lambda(closure$value, this$ParentalConsentManagementComponent) { return function ($receiver) { this$ParentalConsentManagementComponent.relationshipFieldOptions_vc949e$_0 = closure$value; return Unit; }; } Object.defineProperty(ParentalConsentManagementComponent.prototype, 'relationshipFieldOptions', { configurable: true, get: function () { return this.relationshipFieldOptions_vc949e$_0; }, set: function (value) { setState(this, ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$relationshipFieldOptions$lambda(value, this)); } }); function ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$relationshipFieldError$lambda(this$ParentalConsentManagementComponent, closure$value) { return function ($receiver) { this$ParentalConsentManagementComponent.relationshipLabel_0 = this$ParentalConsentManagementComponent.relationshipLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ParentalConsentManagementComponent.prototype, 'relationshipFieldError', { configurable: true, get: function () { return this.relationshipFieldError_hqcp6s$_0; }, set: function (value) { this.relationshipFieldError_hqcp6s$_0 = value; setState(this, ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$relationshipFieldError$lambda(this, value)); } }); function ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$fieldsEnabled$lambda(closure$value, this$ParentalConsentManagementComponent) { return function ($receiver) { this$ParentalConsentManagementComponent.fieldsEnabled_ixqpem$_0 = closure$value; return Unit; }; } Object.defineProperty(ParentalConsentManagementComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_ixqpem$_0; }, set: function (value) { setState(this, ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$fieldsEnabled$lambda(value, this)); } }); function ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$entity$lambda(closure$value, this$ParentalConsentManagementComponent) { return function ($receiver) { closure$value != null ? (closure$value.ppjParentPersonUid = L0) : null; this$ParentalConsentManagementComponent.entity_y1mfb$_0 = closure$value; return Unit; }; } Object.defineProperty(ParentalConsentManagementComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_y1mfb$_0; }, set: function (value) { setState(this, ParentalConsentManagementComponent$set_ParentalConsentManagementComponent$entity$lambda(value, this)); } }); function ParentalConsentManagementComponent$onCreateView$lambda(this$ParentalConsentManagementComponent) { return function () { var tmp$; (tmp$ = this$ParentalConsentManagementComponent.fabManager) != null ? (tmp$.visible = false) : null; return Unit; }; } ParentalConsentManagementComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new ParentalConsentManagementPresenter(this, this.arguments, this, this, this.di); this.ustadComponentTitle = this.getString_za3lpa$(2717); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; this.updateUiWithStateChangeDelay_n53o35$(void 0, ParentalConsentManagementComponent$onCreateView$lambda(this)); }; function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { set_fontSize($receiver.css, get_em(1.2)); return Unit; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda(this$ParentalConsentManagementComponent) { return function ($receiver) { umTypography($receiver, this$ParentalConsentManagementComponent.infoText, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().defaultMarginTop($receiver.css); renderRawHtmlOnIframe($receiver, (tmp$ = this$ParentalConsentManagementComponent.siteTerms) != null ? tmp$.termsHtml : null); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda(this$ParentalConsentManagementComponent) { return function ($receiver) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda(this$ParentalConsentManagementComponent)); renderListSectionTitle($receiver, this$ParentalConsentManagementComponent.getString_za3lpa$(2683), void 0, 4); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent)); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda(this$ParentalConsentManagementComponent) { return function ($receiver) { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda(this$ParentalConsentManagementComponent)); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ParentalConsentManagementComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ParentalConsentManagementComponent.entity) != null ? (tmp$.ppjRelationship = toInt(closure$it)) : null; this$ParentalConsentManagementComponent.relationshipFieldError = null; return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent) { return function (it) { setState(this$ParentalConsentManagementComponent, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ParentalConsentManagementComponent)); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ParentalConsentManagementComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ParentalConsentManagementComponent.relationshipLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ParentalConsentManagementComponent.entity) != null ? tmp$_0.ppjRelationship : null); tmp$_3 = (tmp$_2 = this$ParentalConsentManagementComponent.relationshipLabel_0.errorText) != null ? tmp$_2 : ''; tmp$_4 = this$ParentalConsentManagementComponent.relationshipLabel_0.error; var tmp$_7; if ((tmp$_5 = this$ParentalConsentManagementComponent.relationshipFieldOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.optionId.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent), void 0, void 0, tmp$_4); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ParentalConsentManagementComponent) { return function (it) { var tmp$; if ((tmp$ = this$ParentalConsentManagementComponent.entity) != null) { var this$ParentalConsentManagementComponent_0 = this$ParentalConsentManagementComponent; var tmp$_0; tmp$.ppjStatus = 1; (tmp$_0 = this$ParentalConsentManagementComponent_0.mPresenter_0) != null ? (tmp$_0.handleClickSave_nqi3in$(tmp$), Unit) : null; }return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ParentalConsentManagementComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = this$ParentalConsentManagementComponent.getString_za3lpa$(2722); tmp$_0 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, UMColor$secondary_getInstance(), ButtonVariant$contained_getInstance(), void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ParentalConsentManagementComponent), tmp$_0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ParentalConsentManagementComponent) { return function (it) { var tmp$; if ((tmp$ = this$ParentalConsentManagementComponent.entity) != null) { var this$ParentalConsentManagementComponent_0 = this$ParentalConsentManagementComponent; var tmp$_0; tmp$.ppjStatus = 2; (tmp$_0 = this$ParentalConsentManagementComponent_0.mPresenter_0) != null ? (tmp$_0.handleClickSave_nqi3in$(tmp$), Unit) : null; }return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ParentalConsentManagementComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = this$ParentalConsentManagementComponent.getString_za3lpa$(2723); tmp$_0 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, UMColor$secondary_getInstance(), ButtonVariant$outlined_getInstance(), void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ParentalConsentManagementComponent), tmp$_0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$ParentalConsentManagementComponent) { return function (it) { var tmp$; if ((tmp$ = this$ParentalConsentManagementComponent.entity) != null) { var this$ParentalConsentManagementComponent_0 = this$ParentalConsentManagementComponent; var tmp$_0, tmp$_1; if (tmp$.ppjStatus === 1) { tmp$_0 = 2; } else { tmp$_0 = 1; } tmp$.ppjStatus = tmp$_0; (tmp$_1 = this$ParentalConsentManagementComponent_0.mPresenter_0) != null ? (tmp$_1.handleClickSave_nqi3in$(tmp$), Unit) : null; }return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, get_px(50)); return Unit; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ParentalConsentManagementComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = this$ParentalConsentManagementComponent.getString_za3lpa$(2724); tmp$_0 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, UMColor$secondary_getInstance(), ButtonVariant$contained_getInstance(), void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$ParentalConsentManagementComponent), tmp$_0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; if (equals((tmp$ = this$ParentalConsentManagementComponent.entity) != null ? tmp$.ppjParentPersonUid : null, L0)) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ParentalConsentManagementComponent)); }if (equals((tmp$_0 = this$ParentalConsentManagementComponent.entity) != null ? tmp$_0.ppjParentPersonUid : null, L0)) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ParentalConsentManagementComponent)); }if (equals((tmp$_1 = this$ParentalConsentManagementComponent.entity) != null ? tmp$_1.ppjParentPersonUid : null, L0)) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ParentalConsentManagementComponent)); }if (!equals((tmp$_2 = this$ParentalConsentManagementComponent.entity) != null ? tmp$_2.ppjParentPersonUid : null, L0)) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ParentalConsentManagementComponent)); }return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent) { return function ($receiver) { umGridContainer($receiver, GridSpacing$spacing2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent)); return Unit; }; } function ParentalConsentManagementComponent$render$lambda$lambda(this$ParentalConsentManagementComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda(this$ParentalConsentManagementComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda$lambda_0(this$ParentalConsentManagementComponent)); return Unit; }; } ParentalConsentManagementComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_31); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ParentalConsentManagementComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ParentalConsentManagementComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.relationshipFieldError = null; }; ParentalConsentManagementComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ParentalConsentManagementComponent', interfaces: [ParentalConsentManagementView, UstadEditComponent] }; function styledDiv$lambda_32(it) { return new DIV_init(html.emptyMap, it); } function PersonAccountEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.showCurrentPassword_0 = false; this.showNewPassword_0 = false; this.showConfirmPassword_0 = false; this.confirmPasswordLabel_0 = new FieldLabel(this.getString_za3lpa$(2036), void 0, void 0, 'confirm-password'); this.newPasswordLabel_0 = new FieldLabel(this.getString_za3lpa$(2040), void 0, void 0, 'new-password'); this.currentPasswordLabel_0 = new FieldLabel(this.getString_za3lpa$(2519), void 0, void 0, 'current-password'); this.usernameLabel_0 = new FieldLabel(this.getString_za3lpa$(2034)); this.fieldsEnabled_gy85x8$_0 = false; this.currentPasswordError_y463es$_0 = null; this.newPasswordError_dh9h5v$_0 = null; this.confirmedPasswordError_q90xy6$_0 = null; this.noPasswordMatchError_tda581$_0 = null; this.usernameError_tgkb4e$_0 = null; this.errorMessage_u6qr5$_0 = null; this.currentPasswordVisible_y3b9ua$_0 = false; this.usernameVisible_x9ryq0$_0 = false; this.entity_c1gaoj$_0 = null; } function PersonAccountEditComponent$set_PersonAccountEditComponent$fieldsEnabled$lambda(closure$value, this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.fieldsEnabled_gy85x8$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_gy85x8$_0; }, set: function (value) { setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$fieldsEnabled$lambda(value, this)); } }); Object.defineProperty(PersonAccountEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$currentPasswordError$lambda(this$PersonAccountEditComponent, closure$value) { return function ($receiver) { this$PersonAccountEditComponent.currentPasswordLabel_0 = this$PersonAccountEditComponent.currentPasswordLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'currentPasswordError', { configurable: true, get: function () { return this.currentPasswordError_y463es$_0; }, set: function (value) { this.currentPasswordError_y463es$_0 = value; setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$currentPasswordError$lambda(this, value)); } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$newPasswordError$lambda(this$PersonAccountEditComponent, closure$value) { return function ($receiver) { this$PersonAccountEditComponent.newPasswordLabel_0 = this$PersonAccountEditComponent.newPasswordLabel_0.copy_d8n4vg$(void 0, closure$value != null ? clean(closure$value) : null); return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'newPasswordError', { configurable: true, get: function () { return this.newPasswordError_dh9h5v$_0; }, set: function (value) { this.newPasswordError_dh9h5v$_0 = value; setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$newPasswordError$lambda(this, value)); } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$confirmedPasswordError$lambda(this$PersonAccountEditComponent, closure$value) { return function ($receiver) { this$PersonAccountEditComponent.confirmPasswordLabel_0 = this$PersonAccountEditComponent.confirmPasswordLabel_0.copy_d8n4vg$(void 0, closure$value != null ? clean(closure$value) : null); return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'confirmedPasswordError', { configurable: true, get: function () { return this.confirmedPasswordError_q90xy6$_0; }, set: function (value) { this.confirmedPasswordError_q90xy6$_0 = value; if (this.noPasswordMatchError == null) { setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$confirmedPasswordError$lambda(this, value)); }} }); function PersonAccountEditComponent$set_PersonAccountEditComponent$noPasswordMatchError$lambda(this$PersonAccountEditComponent, closure$value) { return function ($receiver) { this$PersonAccountEditComponent.confirmPasswordLabel_0 = this$PersonAccountEditComponent.confirmPasswordLabel_0.copy_d8n4vg$(void 0, closure$value != null ? clean(closure$value) : null); return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'noPasswordMatchError', { configurable: true, get: function () { return this.noPasswordMatchError_tda581$_0; }, set: function (value) { setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$noPasswordMatchError$lambda(this, value)); this.noPasswordMatchError_tda581$_0 = value; } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$usernameError$lambda(this$PersonAccountEditComponent, closure$value) { return function ($receiver) { this$PersonAccountEditComponent.usernameLabel_0 = this$PersonAccountEditComponent.usernameLabel_0.copy_d8n4vg$(void 0, closure$value != null ? clean(closure$value) : null); return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'usernameError', { configurable: true, get: function () { return this.usernameError_tgkb4e$_0; }, set: function (value) { this.usernameError_tgkb4e$_0 = value; setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$usernameError$lambda(this, value)); } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$errorMessage$lambda(closure$value, this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.errorMessage_u6qr5$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'errorMessage', { configurable: true, get: function () { return this.errorMessage_u6qr5$_0; }, set: function (value) { setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$errorMessage$lambda(value, this)); } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$currentPasswordVisible$lambda(closure$value, this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.currentPasswordVisible_y3b9ua$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'currentPasswordVisible', { configurable: true, get: function () { return this.currentPasswordVisible_y3b9ua$_0; }, set: function (value) { setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$currentPasswordVisible$lambda(value, this)); } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$usernameVisible$lambda(closure$value, this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.usernameVisible_x9ryq0$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'usernameVisible', { configurable: true, get: function () { return this.usernameVisible_x9ryq0$_0; }, set: function (value) { setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$usernameVisible$lambda(value, this)); } }); function PersonAccountEditComponent$set_PersonAccountEditComponent$entity$lambda(closure$value, this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.entity_c1gaoj$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonAccountEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_c1gaoj$_0; }, set: function (value) { this.ustadComponentTitle = value != null ? value.fullName() : null; setState(this, PersonAccountEditComponent$set_PersonAccountEditComponent$entity$lambda(value, this)); } }); PersonAccountEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new PersonAccountEditPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function PersonAccountEditComponent$render$lambda$lambda$lambda($receiver) { StyleManager_getInstance().hideOnMobile($receiver.css); return Unit; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$PersonAccountEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonAccountEditComponent.entity) != null ? (tmp$.username = closure$it) : null; this$PersonAccountEditComponent.usernameError = null; this$PersonAccountEditComponent.errorMessage = ''; return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent) { return function (it) { setState(this$PersonAccountEditComponent, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$PersonAccountEditComponent.usernameLabel_0.text); tmp$_1 = (tmp$_0 = this$PersonAccountEditComponent.entity) != null ? tmp$_0.username : null; tmp$_2 = this$PersonAccountEditComponent.usernameLabel_0.error; tmp$_3 = !this$PersonAccountEditComponent.fieldsEnabled; tmp$_4 = this$PersonAccountEditComponent.usernameLabel_0.errorText; tmp$_5 = FormControlVariant$outlined_getInstance(); tmp$_6 = PersonAccountEditView.Companion.BLOCK_CHARACTER_SET; umTextField($receiver, tmp$, tmp$_1, tmp$_4, void 0, tmp$_5, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent), void 0, void 0, tmp$_3, tmp$_2, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_6, false); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$PersonAccountEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonAccountEditComponent.entity) != null ? (tmp$.currentPassword = closure$it) : null; this$PersonAccountEditComponent.currentPasswordError = null; return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent) { return function (it) { setState(this$PersonAccountEditComponent, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.showCurrentPassword_0 = !this$PersonAccountEditComponent.showCurrentPassword_0; return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent) { return function (it) { setState(this$PersonAccountEditComponent, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = $receiver.attrs; tmp$ = this$PersonAccountEditComponent.showCurrentPassword_0 ? 'visibility' : 'visibility_off'; tmp$_0 = IconEdge$end_getInstance(); tmp$_1.endAdornment = umIconButton($receiver, tmp$, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent), void 0, void 0, void 0, tmp$_0); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().errorTextClass($receiver.css); return Unit; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$PersonAccountEditComponent.currentPasswordLabel_0.text); tmp$_0 = this$PersonAccountEditComponent.currentPasswordLabel_0.id; tmp$_1 = this$PersonAccountEditComponent.currentPasswordLabel_0.error; tmp$_2 = FormControlVariant$outlined_getInstance(); umInputLabel($receiver, tmp$, this$PersonAccountEditComponent.currentPasswordLabel_0.id, tmp$_0, void 0, void 0, tmp$_1, void 0, tmp$_2); tmp$_3 = this$PersonAccountEditComponent.currentPasswordLabel_0.id; tmp$_4 = toString(this$PersonAccountEditComponent.currentPasswordLabel_0.text); umOutlinedInput($receiver, (tmp$_5 = this$PersonAccountEditComponent.entity) != null ? tmp$_5.currentPassword : null, void 0, tmp$_4, !this$PersonAccountEditComponent.fieldsEnabled, void 0, this$PersonAccountEditComponent.currentPasswordLabel_0.error, void 0, void 0, void 0, void 0, void 0, this$PersonAccountEditComponent.showCurrentPassword_0 ? InputType$text : InputType$password, tmp$_3, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent), void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent)); if ((tmp$_6 = this$PersonAccountEditComponent.currentPasswordLabel_0.errorText) != null) { umFormHelperText($receiver, tmp$_6, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1); }return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent) { return function ($receiver) { umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$PersonAccountEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonAccountEditComponent.entity) != null ? (tmp$.newPassword = closure$it) : null; this$PersonAccountEditComponent.newPasswordError = null; return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonAccountEditComponent) { return function (it) { setState(this$PersonAccountEditComponent, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(it, this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.showNewPassword_0 = !this$PersonAccountEditComponent.showNewPassword_0; return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonAccountEditComponent) { return function (it) { setState(this$PersonAccountEditComponent, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = $receiver.attrs; tmp$ = this$PersonAccountEditComponent.showNewPassword_0 ? 'visibility' : 'visibility_off'; tmp$_0 = IconEdge$end_getInstance(); tmp$_1.endAdornment = umIconButton($receiver, tmp$, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonAccountEditComponent), void 0, void 0, void 0, tmp$_0); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4($receiver) { StyleManager_getInstance().errorTextClass($receiver.css); return Unit; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; StyleManager_getInstance().defaultFullWidth($receiver.css); tmp$ = toString(this$PersonAccountEditComponent.newPasswordLabel_0.text); tmp$_0 = this$PersonAccountEditComponent.newPasswordLabel_0.id; tmp$_1 = this$PersonAccountEditComponent.newPasswordLabel_0.error; tmp$_2 = FormControlVariant$outlined_getInstance(); umInputLabel($receiver, tmp$, this$PersonAccountEditComponent.newPasswordLabel_0.id, tmp$_0, void 0, void 0, tmp$_1, void 0, tmp$_2); tmp$_3 = this$PersonAccountEditComponent.newPasswordLabel_0.id; umOutlinedInput($receiver, (tmp$_4 = this$PersonAccountEditComponent.entity) != null ? tmp$_4.newPassword : null, void 0, toString(this$PersonAccountEditComponent.newPasswordLabel_0.text), !this$PersonAccountEditComponent.fieldsEnabled, void 0, this$PersonAccountEditComponent.newPasswordLabel_0.error, void 0, void 0, void 0, void 0, void 0, this$PersonAccountEditComponent.showNewPassword_0 ? InputType$text : InputType$password, tmp$_3, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonAccountEditComponent), void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonAccountEditComponent)); if ((tmp$_5 = this$PersonAccountEditComponent.newPasswordLabel_0.errorText) != null) { umFormHelperText($receiver, tmp$_5, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4); }return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent) { return function ($receiver) { umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(closure$it, this$PersonAccountEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonAccountEditComponent.entity) != null ? (tmp$.confirmedPassword = closure$it) : null; this$PersonAccountEditComponent.confirmedPasswordError = null; this$PersonAccountEditComponent.noPasswordMatchError = null; return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonAccountEditComponent) { return function (it) { setState(this$PersonAccountEditComponent, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(it, this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent) { return function ($receiver) { this$PersonAccountEditComponent.showConfirmPassword_0 = !this$PersonAccountEditComponent.showConfirmPassword_0; return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_6(this$PersonAccountEditComponent) { return function (it) { setState(this$PersonAccountEditComponent, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = $receiver.attrs; tmp$ = this$PersonAccountEditComponent.showConfirmPassword_0 ? 'visibility' : 'visibility_off'; tmp$_0 = IconEdge$end_getInstance(); tmp$_1.endAdornment = umIconButton($receiver, tmp$, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_6(this$PersonAccountEditComponent), void 0, void 0, void 0, tmp$_0); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_7($receiver) { StyleManager_getInstance().errorTextClass($receiver.css); return Unit; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$PersonAccountEditComponent.confirmPasswordLabel_0.text); tmp$_0 = this$PersonAccountEditComponent.confirmPasswordLabel_0.error; tmp$_1 = this$PersonAccountEditComponent.confirmPasswordLabel_0.id; tmp$_2 = FormControlVariant$outlined_getInstance(); umInputLabel($receiver, tmp$, this$PersonAccountEditComponent.confirmPasswordLabel_0.id, tmp$_1, void 0, void 0, tmp$_0, void 0, tmp$_2); tmp$_3 = this$PersonAccountEditComponent.confirmPasswordLabel_0.id; tmp$_5 = (tmp$_4 = this$PersonAccountEditComponent.entity) != null ? tmp$_4.confirmedPassword : null; tmp$_6 = !this$PersonAccountEditComponent.fieldsEnabled; umOutlinedInput($receiver, tmp$_5, void 0, toString(this$PersonAccountEditComponent.confirmPasswordLabel_0.text), tmp$_6, void 0, this$PersonAccountEditComponent.confirmPasswordLabel_0.error, void 0, void 0, void 0, void 0, void 0, this$PersonAccountEditComponent.showConfirmPassword_0 ? InputType$text : InputType$password, tmp$_3, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonAccountEditComponent), void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(this$PersonAccountEditComponent)); if ((tmp$_7 = this$PersonAccountEditComponent.confirmPasswordLabel_0.errorText) != null) { umFormHelperText($receiver, tmp$_7, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_7); }return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$PersonAccountEditComponent) { return function ($receiver) { umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$PersonAccountEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$ = this$PersonAccountEditComponent.errorMessage; tmp$_0 = TypographyVariant$subtitle2_getInstance(); tmp$_1 = StyleManager_getInstance().name + '-errorTextClass'; umTypography($receiver, tmp$, tmp$_0, TypographyAlign$center_getInstance(), void 0, void 0, void 0, void 0, tmp$_1); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent) { return function ($receiver) { if (this$PersonAccountEditComponent.usernameVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent)); }if (this$PersonAccountEditComponent.currentPasswordVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$PersonAccountEditComponent)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$PersonAccountEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$PersonAccountEditComponent)); if (this$PersonAccountEditComponent.errorMessage != null) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$PersonAccountEditComponent)); }return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda_0(this$PersonAccountEditComponent) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing2_getInstance(), void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda$lambda(this$PersonAccountEditComponent)); return Unit; }; } function PersonAccountEditComponent$render$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().hideOnMobile($receiver.css); return Unit; } function PersonAccountEditComponent$render$lambda$lambda(this$PersonAccountEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda_0(this$PersonAccountEditComponent)); umItem($receiver, GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda$lambda_1); return Unit; }; } PersonAccountEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_32); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonAccountEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; PersonAccountEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; PersonAccountEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'PersonAccountEditComponent', interfaces: [PersonAccountEditView, UstadEditComponent] }; function styledDiv$lambda_33(it) { return new DIV_init(html.emptyMap, it); } function PersonDetailComponent(mProps) { PersonDetailComponent$Companion_getInstance(); UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.classList_0 = null; this.observer_0 = new ObserverFnWrapper(PersonDetailComponent$observer$lambda(this)); this.clazzes_7k3u8c$_0 = null; this.changePasswordVisible_yawzir$_0 = false; this.chatVisibility_nl411s$_0 = false; this.showCreateAccountVisible_3godxg$_0 = false; this.entity_7fdfuf$_0 = null; } Object.defineProperty(PersonDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(PersonDetailComponent.prototype, 'clazzes', { configurable: true, get: function () { return this.clazzes_7k3u8c$_0; }, set: function (value) { this.clazzes_7k3u8c$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.observer_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.observer_0), Unit) : null; } }); function PersonDetailComponent$set_PersonDetailComponent$changePasswordVisible$lambda(closure$value, this$PersonDetailComponent) { return function ($receiver) { this$PersonDetailComponent.changePasswordVisible_yawzir$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonDetailComponent.prototype, 'changePasswordVisible', { configurable: true, get: function () { return this.changePasswordVisible_yawzir$_0; }, set: function (value) { setState(this, PersonDetailComponent$set_PersonDetailComponent$changePasswordVisible$lambda(value, this)); } }); function PersonDetailComponent$set_PersonDetailComponent$chatVisibility$lambda(closure$value, this$PersonDetailComponent) { return function ($receiver) { this$PersonDetailComponent.chatVisibility_nl411s$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonDetailComponent.prototype, 'chatVisibility', { configurable: true, get: function () { return this.chatVisibility_nl411s$_0; }, set: function (value) { setState(this, PersonDetailComponent$set_PersonDetailComponent$chatVisibility$lambda(value, this)); } }); function PersonDetailComponent$set_PersonDetailComponent$showCreateAccountVisible$lambda(closure$value, this$PersonDetailComponent) { return function ($receiver) { this$PersonDetailComponent.showCreateAccountVisible_3godxg$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonDetailComponent.prototype, 'showCreateAccountVisible', { configurable: true, get: function () { return this.showCreateAccountVisible_3godxg$_0; }, set: function (value) { setState(this, PersonDetailComponent$set_PersonDetailComponent$showCreateAccountVisible$lambda(value, this)); } }); function PersonDetailComponent$set_PersonDetailComponent$entity$lambda(closure$value, this$PersonDetailComponent) { return function ($receiver) { this$PersonDetailComponent.entity_7fdfuf$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_7fdfuf$_0; }, set: function (value) { this.ustadComponentTitle = (value != null ? value.firstNames : null) + ' ' + (value != null ? value.lastName : null); setState(this, PersonDetailComponent$set_PersonDetailComponent$entity$lambda(value, this)); } }); PersonDetailComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new PersonDetailPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda() { return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$PersonDetailComponent) { return function () { var tmp$; (tmp$ = this$PersonDetailComponent.mPresenter_0) != null ? (tmp$.handleClickChat(), Unit) : null; return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_1() { return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$PersonDetailComponent) { return function () { var tmp$; (tmp$ = this$PersonDetailComponent.mPresenter_0) != null ? (tmp$.handleChangePassword(), Unit) : null; return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$PersonDetailComponent) { return function () { var tmp$; (tmp$ = this$PersonDetailComponent.mPresenter_0) != null ? (tmp$.handleCreateAccount(), Unit) : null; return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda(this$PersonDetailComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; renderTopMainAction($receiver, 'call', this$PersonDetailComponent.getString_za3lpa$(2566), GridSize$cells4_getInstance(), GridSize$cells2_getInstance(), ((tmp$ = this$PersonDetailComponent.entity) != null ? tmp$.phoneNum : null) != null, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda); renderTopMainAction($receiver, 'message', this$PersonDetailComponent.getString_za3lpa$(2936), GridSize$cells4_getInstance(), GridSize$cells2_getInstance(), ((tmp$_0 = this$PersonDetailComponent.entity) != null ? tmp$_0.phoneNum : null) != null, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$PersonDetailComponent)); renderTopMainAction($receiver, 'email', this$PersonDetailComponent.getString_za3lpa$(2064), GridSize$cells4_getInstance(), GridSize$cells2_getInstance(), ((tmp$_1 = this$PersonDetailComponent.entity) != null ? tmp$_1.emailAddr : null) != null, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_1); renderTopMainAction($receiver, 'vpn_key', this$PersonDetailComponent.getString_za3lpa$(2518), GridSize$cells6_getInstance(), GridSize$cells3_getInstance(), this$PersonDetailComponent.changePasswordVisible, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$PersonDetailComponent)); renderTopMainAction($receiver, 'person_add', this$PersonDetailComponent.getString_za3lpa$(2633), GridSize$cells6_getInstance(), GridSize$cells3_getInstance(), this$PersonDetailComponent.showCreateAccountVisible, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$PersonDetailComponent)); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda(this$PersonDetailComponent) { return function ($receiver) { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda(this$PersonDetailComponent)); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda_0($receiver) { umDivider($receiver, void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda_0); return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it) { return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver, pictureLocalUrl) { umEntityAvatar($receiver, pictureLocalUrl, void 0, void 0, void 0, void 0, false, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$PersonDetailComponent) { return function ($receiver) { var tmp$, tmp$_0; set_marginTop($receiver.css, new LinearDimension('12px')); withAttachmentLocalUrlLookup($receiver, (tmp$_0 = (tmp$ = this$PersonDetailComponent.entity) != null ? tmp$.personUid : null) != null ? tmp$_0 : L0, PersonDetailComponent$Companion_getInstance().PERSON_PICTURE_LOOKUP_ADAPTER, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonDetailComponent) { return function ($receiver) { umTypography($receiver, this$PersonDetailComponent.getString_za3lpa$(2318), TypographyVariant$caption_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonDetailComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; renderInformationOnDetailScreen($receiver, 'event', (tmp$_0 = toDate((tmp$ = this$PersonDetailComponent.entity) != null ? tmp$.dateOfBirth : null)) != null ? standardFormat(tmp$_0) : null, this$PersonDetailComponent.getString_za3lpa$(2316)); var genderMessageId = controller.PersonConstants.GENDER_MESSAGE_ID_MAP.get_11rb$((tmp$_2 = (tmp$_1 = this$PersonDetailComponent.entity) != null ? tmp$_1.gender : null) != null ? tmp$_2 : 0); renderInformationOnDetailScreen($receiver, 'person', genderMessageId == null ? '' : this$PersonDetailComponent.getString_za3lpa$(genderMessageId), this$PersonDetailComponent.getString_za3lpa$(2248)); renderInformationOnDetailScreen($receiver, 'badge', (tmp$_3 = this$PersonDetailComponent.entity) != null ? tmp$_3.personOrgId : null, this$PersonDetailComponent.getString_za3lpa$(2567)); renderInformationOnDetailScreen($receiver, 'account_circle', (tmp$_4 = this$PersonDetailComponent.entity) != null ? tmp$_4.username : null, this$PersonDetailComponent.getString_za3lpa$(2034)); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonDetailComponent) { return function ($receiver) { umTypography($receiver, this$PersonDetailComponent.getString_za3lpa$(2569), TypographyVariant$caption_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonDetailComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; renderInformationOnDetailScreen($receiver, 'call', (tmp$ = this$PersonDetailComponent.entity) != null ? tmp$.phoneNum : null, this$PersonDetailComponent.getString_za3lpa$(2045)); renderInformationOnDetailScreen($receiver, 'email', (tmp$_0 = this$PersonDetailComponent.entity) != null ? tmp$_0.emailAddr : null, this$PersonDetailComponent.getString_za3lpa$(2064)); renderInformationOnDetailScreen($receiver, 'place', (tmp$_1 = this$PersonDetailComponent.entity) != null ? tmp$_1.personAddress : null, this$PersonDetailComponent.getString_za3lpa$(2319)); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonDetailComponent) { return function (clazz) { var tmp$; (tmp$ = this$PersonDetailComponent.mPresenter_0) != null ? (tmp$.handleClickClazz_yflbhc$(clazz), Unit) : null; return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$clazzes, this$PersonDetailComponent) { return function ($receiver) { $receiver.attrs.entries = closure$clazzes; $receiver.attrs.onEntryClicked = PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonDetailComponent); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonDetailComponent) { return function ($receiver) { var tmp$; renderListSectionTitle($receiver, this$PersonDetailComponent.getString_za3lpa$(2069)); if ((tmp$ = this$PersonDetailComponent.classList_0) != null) { var this$PersonDetailComponent_0 = this$PersonDetailComponent; $receiver.child_up9nw1$(getKClass(PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent), PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(tmp$, this$PersonDetailComponent_0)); }return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonDetailComponent) { return function ($receiver) { var tmp$; umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonDetailComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonDetailComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonDetailComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonDetailComponent)); var tmp$_0 = this$PersonDetailComponent.classList_0 != null; if (tmp$_0) { tmp$_0 = ((tmp$ = this$PersonDetailComponent.classList_0) != null ? !tmp$.isEmpty() : null) === true; }if (tmp$_0) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonDetailComponent)); }return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$PersonDetailComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); set_padding($receiver_0, '16px'); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonDetailComponent)); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda$lambda_1(this$PersonDetailComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$PersonDetailComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$PersonDetailComponent)); return Unit; }; } function PersonDetailComponent$render$lambda$lambda$lambda_1(this$PersonDetailComponent) { return function ($receiver) { umGridContainer($receiver, GridSpacing$spacing6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda$lambda_1(this$PersonDetailComponent)); return Unit; }; } function PersonDetailComponent$render$lambda$lambda(this$PersonDetailComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda(this$PersonDetailComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda_0); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda$lambda_1(this$PersonDetailComponent)); return Unit; }; } PersonDetailComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_33); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; PersonDetailComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent(mProps) { UstadSimpleList.call(this, mProps); } function PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { closure$onClick(it.nativeEvent); return Unit; }; } function PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent$renderListItem$lambda(closure$onClick, closure$item, this$ClazzEnrolmentWithClazzSimpleListComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; $receiver.attrs.onClick = PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent$renderListItem$lambda$lambda(closure$onClick); var title = toString((tmp$ = closure$item.clazz) != null ? tmp$.clazzName : null) + ' (' + roleToString(closure$item, $receiver, this$ClazzEnrolmentWithClazzSimpleListComponent.systemImpl) + ') ' + ('- ' + outcomeToString(closure$item, $receiver, this$ClazzEnrolmentWithClazzSimpleListComponent.systemImpl)); var enrollmentPeriod = toString((tmp$_0 = toDate(closure$item.clazzEnrolmentDateJoined)) != null ? standardFormat(tmp$_0) : null) + ' ' + ('- ' + ((tmp$_2 = (tmp$_1 = toDate(closure$item.clazzEnrolmentDateLeft, true)) != null ? standardFormat(tmp$_1) : null) != null ? tmp$_2 : this$ClazzEnrolmentWithClazzSimpleListComponent.getString_za3lpa$(2311))); renderListItemWithAttendance($receiver, 'people', title, enrollmentPeriod, closure$item.attendance, this$ClazzEnrolmentWithClazzSimpleListComponent.getString_za3lpa$(2576)); return Unit; }; } PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent$renderListItem$lambda(onClick, item, this)); }; PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ClazzEnrolmentWithClazzSimpleListComponent', interfaces: [UstadSimpleList] }; function PersonDetailComponent$Companion() { PersonDetailComponent$Companion_instance = this; this.PERSON_PICTURE_LOOKUP_ADAPTER = new AttachmentImageLookupAdapter(PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda); } function PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral(closure$db, closure$entityUid) { DoorMediatorLiveData.call(this); this.addSource_hfkt56$(closure$db.personPictureDao.findByPersonUidLive_s8cxhz$(closure$entityUid), this); } PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.prototype.onChanged_11rb$ = function (t) { this.postValue_11rb$(t != null ? t.personPictureUri : null); }; PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [DoorObserver, DoorMediatorLiveData] }; function PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda(db, entityUid) { return new PersonDetailComponent$Companion$PERSON_PICTURE_LOOKUP_ADAPTER$lambda$ObjectLiteral(db, entityUid); } PersonDetailComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var PersonDetailComponent$Companion_instance = null; function PersonDetailComponent$Companion_getInstance() { if (PersonDetailComponent$Companion_instance === null) { new PersonDetailComponent$Companion(); }return PersonDetailComponent$Companion_instance; } function PersonDetailComponent$observer$lambda$lambda(closure$it, this$PersonDetailComponent) { return function ($receiver) { this$PersonDetailComponent.classList_0 = closure$it; return Unit; }; } function PersonDetailComponent$observer$lambda(this$PersonDetailComponent) { return function (it) { setState(this$PersonDetailComponent, PersonDetailComponent$observer$lambda$lambda(it, this$PersonDetailComponent)); return Unit; }; } PersonDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'PersonDetailComponent', interfaces: [PersonDetailView, UstadDetailComponent] }; function styledDiv$lambda_34(it) { return new DIV_init(html.emptyMap, it); } function PersonEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.showPassword_0 = false; this.showConfirmPassword_0 = false; this.registrationEnabled_0 = false; this.minorRegistrationModeEnabled_0 = false; this.genderOptions_pi0zhy$_0 = null; this.personPicture_fi2nze$_0 = null; this.approvalPersonParentJoin_ud0iy3$_0 = null; this.registrationMode_doslej$_0 = 0; this.usernameLabel_0 = new FieldLabel(this.getString_za3lpa$(2034)); this.usernameError_2yxzvj$_0 = null; this.noMatchPasswordError_sf10ag$_0 = null; this.passwordLabel_0 = new FieldLabel(this.getString_za3lpa$(2035), void 0, void 0, 'password-field'); this.passwordError_l4xzxi$_0 = null; this.emailLabel_0 = new FieldLabel(this.getString_za3lpa$(2064)); this.parentEmailLabel_0 = new FieldLabel(clean(this.getString_za3lpa$(2714))); this.emailError_j8ysq3$_0 = null; this.confirmPasswordLabel_0 = new FieldLabel(this.getString_za3lpa$(2036), void 0, void 0, 'confirm-password-field'); this.confirmError_oa2vt3$_0 = null; this.dobLabel_0 = new FieldLabel(this.getString_za3lpa$(2316)); this.dateOfBirthError_i0z7f7$_0 = null; this.parentContactError_b743yn$_0 = null; this.firstNameLabel_0 = new FieldLabel(this.getString_za3lpa$(2038)); this.firstNamesFieldError_k1ioh1$_0 = null; this.lastNameFieldError_f2727m$_0 = null; this.genderLabel_0 = new FieldLabel(this.getString_za3lpa$(2248)); this.genderFieldError_mjwzea$_0 = null; this.firstNameError_jim8ks$_0 = null; this.lastNameLabel_0 = new FieldLabel(this.getString_za3lpa$(2037)); this.lastNameError_kz7424$_0 = null; this.fieldsEnabled_rl9kt1$_0 = true; this.entity_9r5kte$_0 = null; } Object.defineProperty(PersonEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function PersonEditComponent$set_PersonEditComponent$genderOptions$lambda(closure$value, this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.genderOptions_pi0zhy$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'genderOptions', { configurable: true, get: function () { return this.genderOptions_pi0zhy$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$genderOptions$lambda(value, this)); } }); function PersonEditComponent$set_PersonEditComponent$personPicture$lambda(closure$value, this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.personPicture_fi2nze$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'personPicture', { configurable: true, get: function () { return this.personPicture_fi2nze$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$personPicture$lambda(value, this)); } }); function PersonEditComponent$set_PersonEditComponent$approvalPersonParentJoin$lambda(closure$value, this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.approvalPersonParentJoin_ud0iy3$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'approvalPersonParentJoin', { configurable: true, get: function () { return this.approvalPersonParentJoin_ud0iy3$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$approvalPersonParentJoin$lambda(value, this)); } }); function PersonEditComponent$set_PersonEditComponent$registrationMode$lambda(closure$value, this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.registrationMode_doslej$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'registrationMode', { configurable: true, get: function () { return this.registrationMode_doslej$_0; }, set: function (value) { this.registrationEnabled_0 = hasFlag(value, 1); this.minorRegistrationModeEnabled_0 = hasFlag(value, 2); if (this.registrationEnabled_0) { this.ustadComponentTitle = this.getString_za3lpa$(2044); } else { this.setEditTitle_vux9f0$(2477, 2478); } setState(this, PersonEditComponent$set_PersonEditComponent$registrationMode$lambda(value, this)); } }); function PersonEditComponent$set_PersonEditComponent$usernameError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.usernameLabel_0 = this$PersonEditComponent.usernameLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'usernameError', { configurable: true, get: function () { return this.usernameError_2yxzvj$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$usernameError$lambda(this, value)); this.usernameError_2yxzvj$_0 = value; } }); function PersonEditComponent$set_PersonEditComponent$noMatchPasswordError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.confirmPasswordLabel_0 = this$PersonEditComponent.confirmPasswordLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'noMatchPasswordError', { configurable: true, get: function () { return this.noMatchPasswordError_sf10ag$_0; }, set: function (value) { this.noMatchPasswordError_sf10ag$_0 = value; setState(this, PersonEditComponent$set_PersonEditComponent$noMatchPasswordError$lambda(this, value)); } }); function PersonEditComponent$set_PersonEditComponent$passwordError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.passwordLabel_0 = this$PersonEditComponent.passwordLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'passwordError', { configurable: true, get: function () { return this.passwordError_l4xzxi$_0; }, set: function (value) { this.passwordError_l4xzxi$_0 = value; setState(this, PersonEditComponent$set_PersonEditComponent$passwordError$lambda(this, value)); } }); function PersonEditComponent$set_PersonEditComponent$emailError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.emailLabel_0 = this$PersonEditComponent.emailLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'emailError', { configurable: true, get: function () { return this.emailError_j8ysq3$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$emailError$lambda(this, value)); this.emailError_j8ysq3$_0 = value; } }); function PersonEditComponent$set_PersonEditComponent$confirmError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.confirmPasswordLabel_0 = this$PersonEditComponent.confirmPasswordLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'confirmError', { configurable: true, get: function () { return this.confirmError_oa2vt3$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$confirmError$lambda(this, value)); this.confirmError_oa2vt3$_0 = value; } }); function PersonEditComponent$set_PersonEditComponent$dateOfBirthError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.dobLabel_0 = this$PersonEditComponent.dobLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'dateOfBirthError', { configurable: true, get: function () { return this.dateOfBirthError_i0z7f7$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$dateOfBirthError$lambda(this, value)); this.dateOfBirthError_i0z7f7$_0 = value; } }); function PersonEditComponent$set_PersonEditComponent$parentContactError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.parentEmailLabel_0 = this$PersonEditComponent.parentEmailLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'parentContactError', { configurable: true, get: function () { return this.parentContactError_b743yn$_0; }, set: function (value) { this.parentContactError_b743yn$_0 = value; setState(this, PersonEditComponent$set_PersonEditComponent$parentContactError$lambda(this, value)); } }); function PersonEditComponent$set_PersonEditComponent$firstNamesFieldError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.firstNameLabel_0 = this$PersonEditComponent.firstNameLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'firstNamesFieldError', { configurable: true, get: function () { return this.firstNamesFieldError_k1ioh1$_0; }, set: function (value) { this.firstNamesFieldError_k1ioh1$_0 = value; setState(this, PersonEditComponent$set_PersonEditComponent$firstNamesFieldError$lambda(this, value)); } }); Object.defineProperty(PersonEditComponent.prototype, 'lastNameFieldError', { configurable: true, get: function () { return this.lastNameFieldError_f2727m$_0; }, set: function (value) { this.lastNameFieldError_f2727m$_0 = value; } }); function PersonEditComponent$set_PersonEditComponent$genderFieldError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.genderLabel_0 = this$PersonEditComponent.genderLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'genderFieldError', { configurable: true, get: function () { return this.genderFieldError_mjwzea$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$genderFieldError$lambda(this, value)); this.genderFieldError_mjwzea$_0 = value; } }); function PersonEditComponent$set_PersonEditComponent$firstNameError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.firstNameLabel_0 = this$PersonEditComponent.firstNameLabel_0.copy_d8n4vg$(void 0, closure$value); this$PersonEditComponent.firstNameError_jim8ks$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'firstNameError', { configurable: true, get: function () { return this.firstNameError_jim8ks$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$firstNameError$lambda(this, value)); } }); function PersonEditComponent$set_PersonEditComponent$lastNameError$lambda(this$PersonEditComponent, closure$value) { return function ($receiver) { this$PersonEditComponent.lastNameLabel_0 = this$PersonEditComponent.lastNameLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'lastNameError', { configurable: true, get: function () { return this.lastNameError_kz7424$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$lastNameError$lambda(this, value)); this.lastNameError_kz7424$_0 = value; } }); PersonEditComponent.prototype.navigateToNextDestination_m117we$ = function (account, nextDestination) { this.systemImpl.go_gofqk3$(nextDestination, emptyMap(), this); }; function PersonEditComponent$set_PersonEditComponent$fieldsEnabled$lambda(closure$value, this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.fieldsEnabled_rl9kt1$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_rl9kt1$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$fieldsEnabled$lambda(value, this)); } }); function PersonEditComponent$set_PersonEditComponent$entity$lambda(closure$value, this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.entity_9r5kte$_0 = closure$value; return Unit; }; } Object.defineProperty(PersonEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_9r5kte$_0; }, set: function (value) { setState(this, PersonEditComponent$set_PersonEditComponent$entity$lambda(value, this)); } }); PersonEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.loading = false; this.mPresenter_0 = new PersonEditPresenter(this, this.arguments, this, this.di, this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; console.log('ClazzEditComponent: setting course picture uri = ' + toString(closure$it)); (tmp$ = this$PersonEditComponent.personPicture) != null ? (tmp$.personPictureUri = closure$it) : null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(it) { return Unit; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_0($receiver, attachmentImgSrc) { umEntityAvatar($receiver, attachmentImgSrc, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; } function PersonEditComponent$render$lambda$lambda$lambda$lambda(this$PersonEditComponent) { return function ($receiver) { var tmp$; $receiver.attrs.attachmentUri = (tmp$ = this$PersonEditComponent.personPicture) != null ? tmp$.personPictureUri : null; $receiver.attrs.onNewImageSelected = PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$PersonEditComponent); $receiver.attrs.contentBlock = PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_0; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda(this$PersonEditComponent) { return function ($receiver) { set_marginTop($receiver.css, new LinearDimension('12px')); $receiver.child_up9nw1$(getKClass(AttachmentImageComponent), PersonEditComponent$render$lambda$lambda$lambda$lambda(this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.firstNames = closure$it) : null; this$PersonEditComponent.firstNameError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda_0(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.lastName = closure$it) : null; this$PersonEditComponent.lastNameError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda_1(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.approvalPersonParentJoin) != null ? (tmp$.ppjEmail = closure$it) : null; this$PersonEditComponent.parentContactError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$PersonEditComponent.parentEmailLabel_0.text); tmp$_1 = (tmp$_0 = this$PersonEditComponent.approvalPersonParentJoin) != null ? tmp$_0.ppjEmail : null; tmp$_2 = this$PersonEditComponent.parentEmailLabel_0.error; tmp$_3 = !this$PersonEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_1, void 0, void 0, FormControlVariant$outlined_getInstance(), PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$PersonEditComponent), void 0, void 0, tmp$_3, tmp$_2); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.dateOfBirth = Kotlin.Long.fromNumber(closure$it.getTime())) : null; this$PersonEditComponent.dateOfBirthError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$PersonEditComponent.dobLabel_0.text); tmp$_0 = this$PersonEditComponent.dobLabel_0.error; tmp$_1 = this$PersonEditComponent.dobLabel_0.errorText; tmp$_3 = toDate((tmp$_2 = this$PersonEditComponent.entity) != null ? tmp$_2.dateOfBirth : null); tmp$_4 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$PersonEditComponent), tmp$_3, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_4); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.gender = toInt(closure$it)) : null; this$PersonEditComponent.genderFieldError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$PersonEditComponent.genderLabel_0.text); tmp$_1 = toString((tmp$_0 = this$PersonEditComponent.entity) != null ? tmp$_0.gender : null); tmp$_3 = (tmp$_2 = this$PersonEditComponent.genderLabel_0.errorText) != null ? tmp$_2 : ''; tmp$_4 = this$PersonEditComponent.genderLabel_0.error; var tmp$_7; if ((tmp$_5 = this$PersonEditComponent.genderOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonEditComponent), void 0, void 0, tmp$_4); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda_2(this$PersonEditComponent) { return function ($receiver) { if (this$PersonEditComponent.minorRegistrationModeEnabled_0) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$PersonEditComponent)); }if (!this$PersonEditComponent.registrationEnabled_0) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$PersonEditComponent)); }umItem($receiver, GridSize$cells12_getInstance(), this$PersonEditComponent.registrationEnabled_0 && !this$PersonEditComponent.minorRegistrationModeEnabled_0 ? GridSize$cells12_getInstance() : GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.personAddress = closure$it) : null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda_3(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_6(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.phoneNum = closure$it) : null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; tmp$ = this$PersonEditComponent.getString_za3lpa$(2045); tmp$_1 = (tmp$_0 = this$PersonEditComponent.entity) != null ? tmp$_0.phoneNum : null; tmp$_2 = !this$PersonEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_1, void 0, void 0, FormControlVariant$outlined_getInstance(), PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonEditComponent), void 0, void 0, tmp$_2); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.emailAddr = closure$it) : null; this$PersonEditComponent.emailError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$PersonEditComponent.emailLabel_0.text); tmp$_1 = (tmp$_0 = this$PersonEditComponent.entity) != null ? tmp$_0.emailAddr : null; tmp$_2 = this$PersonEditComponent.emailLabel_0.error; tmp$_3 = !this$PersonEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_1, void 0, void 0, FormControlVariant$outlined_getInstance(), PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$PersonEditComponent), void 0, void 0, tmp$_3, tmp$_2); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda_4(this$PersonEditComponent) { return function ($receiver) { var this$PersonEditComponent_0 = this$PersonEditComponent; margin($receiver.css, void 0, void 0, get_spacingUnits(this$PersonEditComponent_0.registrationEnabled_0 && !this$PersonEditComponent_0.minorRegistrationModeEnabled_0 ? 0 : 4)); if (!this$PersonEditComponent.minorRegistrationModeEnabled_0) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_7(this$PersonEditComponent)); }if (!this$PersonEditComponent.minorRegistrationModeEnabled_0) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_8(this$PersonEditComponent)); }return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.username = closure$it) : null; this$PersonEditComponent.usernameError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda_5(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_9(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.newPassword = closure$it) : null; this$PersonEditComponent.passwordError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.showPassword_0 = !this$PersonEditComponent.showPassword_0; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = $receiver.attrs; tmp$ = !this$PersonEditComponent.showPassword_0 ? 'visibility' : 'visibility_off'; tmp$_0 = IconEdge$end_getInstance(); tmp$_1.endAdornment = umIconButton($receiver, tmp$, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonEditComponent), void 0, void 0, void 0, tmp$_0); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().errorTextClass($receiver.css); return Unit; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; tmp$ = toString(this$PersonEditComponent.passwordLabel_0.text); tmp$_0 = this$PersonEditComponent.passwordLabel_0.id; tmp$_1 = this$PersonEditComponent.passwordLabel_0.error; tmp$_2 = FormControlVariant$outlined_getInstance(); umInputLabel($receiver, tmp$, this$PersonEditComponent.passwordLabel_0.id, tmp$_0, void 0, void 0, tmp$_1, void 0, tmp$_2); tmp$_3 = this$PersonEditComponent.passwordLabel_0.id; tmp$_5 = (tmp$_4 = this$PersonEditComponent.entity) != null ? tmp$_4.newPassword : null; tmp$_6 = !this$PersonEditComponent.fieldsEnabled; umOutlinedInput($receiver, tmp$_5, void 0, this$PersonEditComponent.passwordLabel_0.text, tmp$_6, void 0, this$PersonEditComponent.passwordLabel_0.error, void 0, void 0, void 0, void 0, void 0, this$PersonEditComponent.showPassword_0 ? InputType$text : InputType$password, tmp$_3, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4(this$PersonEditComponent), void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_5(this$PersonEditComponent)); if ((tmp$_7 = this$PersonEditComponent.passwordLabel_0.errorText) != null) { umFormHelperText($receiver, tmp$_7, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1); }return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(this$PersonEditComponent) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_6(this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$PersonEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$PersonEditComponent.entity) != null ? (tmp$.confirmedPassword = closure$it) : null; this$PersonEditComponent.confirmError = null; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_6(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(it, this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonEditComponent) { return function ($receiver) { this$PersonEditComponent.showConfirmPassword_0 = !this$PersonEditComponent.showConfirmPassword_0; return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonEditComponent) { return function (it) { setState(this$PersonEditComponent, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_7(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = $receiver.attrs; tmp$ = !this$PersonEditComponent.showConfirmPassword_0 ? 'visibility' : 'visibility_off'; tmp$_0 = IconEdge$end_getInstance(); tmp$_1.endAdornment = umIconButton($receiver, tmp$, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$PersonEditComponent), void 0, void 0, void 0, tmp$_0); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4($receiver) { StyleManager_getInstance().errorTextClass($receiver.css); return Unit; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_7(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8; tmp$ = toString(this$PersonEditComponent.confirmPasswordLabel_0.text); tmp$_0 = this$PersonEditComponent.confirmPasswordLabel_0.id; tmp$_1 = this$PersonEditComponent.confirmPasswordLabel_0.error; tmp$_2 = FormControlVariant$outlined_getInstance(); umInputLabel($receiver, tmp$, this$PersonEditComponent.confirmPasswordLabel_0.id, tmp$_0, void 0, void 0, tmp$_1, void 0, tmp$_2); tmp$_3 = this$PersonEditComponent.confirmPasswordLabel_0.id; tmp$_5 = (tmp$_4 = this$PersonEditComponent.entity) != null ? tmp$_4.confirmedPassword : null; tmp$_6 = !this$PersonEditComponent.fieldsEnabled; tmp$_7 = this$PersonEditComponent.confirmPasswordLabel_0.error; umOutlinedInput($receiver, tmp$_5, void 0, this$PersonEditComponent.confirmPasswordLabel_0.text, tmp$_6, void 0, tmp$_7, void 0, void 0, void 0, void 0, void 0, this$PersonEditComponent.showConfirmPassword_0 ? InputType$text : InputType$password, tmp$_3, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_6(this$PersonEditComponent), void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_7(this$PersonEditComponent)); if ((tmp$_8 = this$PersonEditComponent.confirmPasswordLabel_0.errorText) != null) { umFormHelperText($receiver, tmp$_8, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_4); }return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(this$PersonEditComponent) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); umFormControl($receiver, void 0, void 0, void 0, void 0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_7(this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda$lambda_6(this$PersonEditComponent) { return function ($receiver) { if (this$PersonEditComponent.registrationEnabled_0) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_10(this$PersonEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda$lambda_11(this$PersonEditComponent)); }return Unit; }; } function PersonEditComponent$render$lambda$lambda$lambda_0(this$PersonEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17, tmp$_18; tmp$ = toString(this$PersonEditComponent.firstNameLabel_0.text); tmp$_0 = this$PersonEditComponent.firstNameLabel_0.errorText; tmp$_2 = (tmp$_1 = this$PersonEditComponent.entity) != null ? tmp$_1.firstNames : null; tmp$_3 = this$PersonEditComponent.firstNameLabel_0.error; tmp$_4 = !this$PersonEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), PersonEditComponent$render$lambda$lambda$lambda$lambda_0(this$PersonEditComponent), void 0, void 0, tmp$_4, tmp$_3); tmp$_5 = toString(this$PersonEditComponent.lastNameLabel_0.text); tmp$_7 = (tmp$_6 = this$PersonEditComponent.entity) != null ? tmp$_6.lastName : null; tmp$_8 = this$PersonEditComponent.lastNameLabel_0.error; tmp$_9 = !this$PersonEditComponent.fieldsEnabled; umTextField($receiver, tmp$_5, tmp$_7, this$PersonEditComponent.lastNameLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), PersonEditComponent$render$lambda$lambda$lambda$lambda_1(this$PersonEditComponent), void 0, void 0, tmp$_9, tmp$_8); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda_2(this$PersonEditComponent)); if (!this$PersonEditComponent.minorRegistrationModeEnabled_0) { tmp$_10 = this$PersonEditComponent.getString_za3lpa$(2319); tmp$_12 = (tmp$_11 = this$PersonEditComponent.entity) != null ? tmp$_11.personAddress : null; tmp$_13 = !this$PersonEditComponent.fieldsEnabled; umTextField($receiver, tmp$_10, tmp$_12, void 0, void 0, FormControlVariant$outlined_getInstance(), PersonEditComponent$render$lambda$lambda$lambda$lambda_3(this$PersonEditComponent), void 0, void 0, tmp$_13); }umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda_4(this$PersonEditComponent)); if (this$PersonEditComponent.registrationEnabled_0) { tmp$_14 = toString(this$PersonEditComponent.usernameLabel_0.text); tmp$_16 = (tmp$_15 = this$PersonEditComponent.entity) != null ? tmp$_15.username : null; tmp$_17 = this$PersonEditComponent.usernameLabel_0.error; tmp$_18 = !this$PersonEditComponent.fieldsEnabled; umTextField($receiver, tmp$_14, tmp$_16, void 0, void 0, FormControlVariant$outlined_getInstance(), PersonEditComponent$render$lambda$lambda$lambda$lambda_5(this$PersonEditComponent), void 0, void 0, tmp$_18, tmp$_17, false); }umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda$lambda_6(this$PersonEditComponent)); return Unit; }; } function PersonEditComponent$render$lambda$lambda(this$PersonEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda(this$PersonEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda$lambda_0(this$PersonEditComponent)); return Unit; }; } PersonEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_34); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, PersonEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; PersonEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; PersonEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'PersonEditComponent', interfaces: [PersonEditView, UstadEditComponent] }; function PersonListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; } Object.defineProperty(PersonListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.personDao : null; } }); Object.defineProperty(PersonListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); PersonListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2476)) : null; if (this.arguments.containsKey_11rb$(UstadView.Companion.ARG_CODE_TABLE)) { this.inviteNewText = this.getString_za3lpa$(2662); }this.addNewEntryText = this.getString_za3lpa$(2477); this.ustadComponentTitle = this.getString_za3lpa$(2297); this.mPresenter_0 = new PersonListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; PersonListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { renderPersonListItemWithNameAndUserName($receiver, item); }; PersonListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; PersonListComponent.prototype.handleInviteClicked = function () { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickInviteWithLink(), Unit) : null; }; PersonListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; PersonListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'PersonListComponent', interfaces: [PersonListView, UstadListComponent] }; function RedirectComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter_0 = null; } RedirectComponent.prototype.onCreateView = function () { var tmp$; UstadBaseComponent.prototype.onCreateView.call(this); var args = toMutableMap(this.arguments); this.mPresenter_0 = new RedirectPresenter(this, args, this, this.di); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; RedirectComponent.prototype.render_ss14n$ = function ($receiver) { }; RedirectComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; RedirectComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'RedirectComponent', interfaces: [RedirectView, UstadBaseComponent] }; function RegisterAgeRedirectComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter_0 = null; this.dateLabel_0 = new FieldLabel(this.getString_za3lpa$(2713)); this.dateOfBirth_nb00qo$_0 = Kotlin.Long.fromNumber((new Date()).getTime()); } function RegisterAgeRedirectComponent$set_RegisterAgeRedirectComponent$dateOfBirth$lambda(closure$value, this$RegisterAgeRedirectComponent) { return function ($receiver) { this$RegisterAgeRedirectComponent.dateOfBirth_nb00qo$_0 = closure$value; return Unit; }; } Object.defineProperty(RegisterAgeRedirectComponent.prototype, 'dateOfBirth', { configurable: true, get: function () { return this.dateOfBirth_nb00qo$_0; }, set: function (value) { setState(this, RegisterAgeRedirectComponent$set_RegisterAgeRedirectComponent$dateOfBirth$lambda(value, this)); } }); RegisterAgeRedirectComponent.prototype.onCreateView = function () { var tmp$; UstadBaseComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2044); this.mPresenter_0 = new RegisterAgeRedirectPresenter(this, this.arguments, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$RegisterAgeRedirectComponent) { return function ($receiver) { this$RegisterAgeRedirectComponent.dateOfBirth = Kotlin.Long.fromNumber(closure$it.getTime()); return Unit; }; } function RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda(this$RegisterAgeRedirectComponent) { return function (it) { setState(this$RegisterAgeRedirectComponent, RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$RegisterAgeRedirectComponent)); return Unit; }; } function RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda(this$RegisterAgeRedirectComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); tmp$ = toString(this$RegisterAgeRedirectComponent.dateLabel_0.text); tmp$_0 = this$RegisterAgeRedirectComponent.dateLabel_0.error; tmp$_1 = this$RegisterAgeRedirectComponent.dateLabel_0.errorText; tmp$_2 = toDate(this$RegisterAgeRedirectComponent.dateOfBirth); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda(this$RegisterAgeRedirectComponent), tmp$_2, DATE_FORMAT_DD_MMM_YYYY, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$RegisterAgeRedirectComponent) { return function (it) { var tmp$; (tmp$ = this$RegisterAgeRedirectComponent.mPresenter_0) != null ? (tmp$.handleClickNext(), Unit) : null; return Unit; }; } function RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda_1($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultFullWidth); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); set_height($receiver_0, new LinearDimension('50px')); return Unit; } function RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda_0(this$RegisterAgeRedirectComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$ = this$RegisterAgeRedirectComponent.getString_za3lpa$(2031); tmp$_0 = ButtonSize$large_getInstance(); umButton($receiver, tmp$, UMColor$secondary_getInstance(), ButtonVariant$contained_getInstance(), void 0, RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$RegisterAgeRedirectComponent), tmp$_0, void 0, void 0, void 0, void 0, RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda$lambda_1); return Unit; }; } function RegisterAgeRedirectComponent$render$lambda$lambda$lambda(this$RegisterAgeRedirectComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda(this$RegisterAgeRedirectComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, RegisterAgeRedirectComponent$render$lambda$lambda$lambda$lambda_0(this$RegisterAgeRedirectComponent)); return Unit; }; } function RegisterAgeRedirectComponent$render$lambda$lambda(this$RegisterAgeRedirectComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, RegisterAgeRedirectComponent$render$lambda$lambda$lambda(this$RegisterAgeRedirectComponent)); return Unit; }; } function RegisterAgeRedirectComponent$render$lambda(this$RegisterAgeRedirectComponent) { return function ($receiver) { StyleManager_getInstance().centerContainer($receiver.css); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, RegisterAgeRedirectComponent$render$lambda$lambda(this$RegisterAgeRedirectComponent)); return Unit; }; } RegisterAgeRedirectComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, RegisterAgeRedirectComponent$render$lambda(this)); }; RegisterAgeRedirectComponent.prototype.onDestroyView = function () { UstadBaseComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; RegisterAgeRedirectComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'RegisterAgeRedirectComponent', interfaces: [RegisterAgeRedirectView, UstadBaseComponent] }; function styledDiv$lambda_35(it) { return new DIV_init(html.emptyMap, it); } function ReportDetailComponent(mProps) { UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.showChart = true; this.saveAsTemplateVisible_so4njk$_0 = false; this.seriesTitle_0 = ArrayList_init_0(); this.statementSeriesList_0 = ArrayList_init_0(); this.statementListDetails_jnqn5m$_0 = null; this.chartData_lb6ktt$_0 = null; this.entity_suh9dk$_0 = null; } Object.defineProperty(ReportDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ReportDetailComponent$set_ReportDetailComponent$saveAsTemplateVisible$lambda(closure$value, this$ReportDetailComponent) { return function ($receiver) { this$ReportDetailComponent.saveAsTemplateVisible_so4njk$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportDetailComponent.prototype, 'saveAsTemplateVisible', { configurable: true, get: function () { return this.saveAsTemplateVisible_so4njk$_0; }, set: function (value) { setState(this, ReportDetailComponent$set_ReportDetailComponent$saveAsTemplateVisible$lambda(value, this)); } }); function ReportDetailComponent$set_ReportDetailComponent$statementListDetails$lambda$lambda$lambda($receiver) { return Unit; } function ReportDetailComponent$set_ReportDetailComponent$statementListDetails$lambda$lambda(this$ReportDetailComponent) { return function (it) { this$ReportDetailComponent.statementSeriesList_0.add_11rb$(it); setState(this$ReportDetailComponent, ReportDetailComponent$set_ReportDetailComponent$statementListDetails$lambda$lambda$lambda); return Unit; }; } Object.defineProperty(ReportDetailComponent.prototype, 'statementListDetails', { configurable: true, get: function () { return this.statementListDetails_jnqn5m$_0; }, set: function (value) { this.statementListDetails_jnqn5m$_0 = value; if ((value != null ? !value.isEmpty() : null) === true) { var times = value.size; for (var index = 0; index < times; index++) { var tmp$, tmp$_0, tmp$_1, tmp$_2; this.seriesTitle_0.add_11rb$((tmp$_2 = (tmp$_1 = (tmp$_0 = (tmp$ = this.chartData) != null ? tmp$.seriesData : null) != null ? tmp$_0.get_za3lpa$(index) : null) != null ? tmp$_1.series : null) != null ? tmp$_2.reportSeriesName : null); var liveData = value.get_za3lpa$(index).getData_vux9f0$(0, 2147483647); var observerFnWrapper = new ObserverFnWrapper(ReportDetailComponent$set_ReportDetailComponent$statementListDetails$lambda$lambda(this)); liveData.removeObserver_jsfaok$(observerFnWrapper); liveData.observe_igxi3b$(this, observerFnWrapper); } }} }); function ReportDetailComponent$set_ReportDetailComponent$chartData$lambda(closure$value, this$ReportDetailComponent) { return function ($receiver) { this$ReportDetailComponent.chartData_lb6ktt$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportDetailComponent.prototype, 'chartData', { configurable: true, get: function () { return this.chartData_lb6ktt$_0; }, set: function (value) { setState(this, ReportDetailComponent$set_ReportDetailComponent$chartData$lambda(value, this)); } }); function ReportDetailComponent$set_ReportDetailComponent$entity$lambda(closure$value, this$ReportDetailComponent) { return function ($receiver) { this$ReportDetailComponent.entity_suh9dk$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_suh9dk$_0; }, set: function (value) { setState(this, ReportDetailComponent$set_ReportDetailComponent$entity$lambda(value, this)); this.ustadComponentTitle = value != null ? value.reportTitle : null; } }); ReportDetailComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.editButtonMode = EditButtonMode.FAB; this.mPresenter_0 = new ReportDetailPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent) { return function () { var tmp$; exportToPng('chat-area', (tmp$ = this$ReportDetailComponent.entity) != null ? tmp$.reportTitle : null); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent) { return function () { var tmp$, tmp$_0; if ((tmp$_0 = (tmp$ = this$ReportDetailComponent.chartData) != null ? tmp$.reportWithFilters : null) != null) { var this$ReportDetailComponent_0 = this$ReportDetailComponent; var tmp$_1; (tmp$_1 = this$ReportDetailComponent_0.mPresenter_0) != null ? (tmp$_1.handleOnClickAddFromDashboard_281ov6$(tmp$_0), Unit) : null; if (equals(tmp$_0.reportUid, L0)) { this$ReportDetailComponent_0.navController.popBackStack_ivxn3r$(ReportEditView.Companion.VIEW_NAME, true); this$ReportDetailComponent_0.navController.popBackStack_ivxn3r$(ReportTemplateListView.Companion.VIEW_NAME, true); }}return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ReportDetailComponent) { return function () { var tmp$, tmp$_0; if ((tmp$_0 = (tmp$ = this$ReportDetailComponent.chartData) != null ? tmp$.reportWithFilters : null) != null) { var this$ReportDetailComponent_0 = this$ReportDetailComponent; var tmp$_1; (tmp$_1 = this$ReportDetailComponent_0.mPresenter_0) != null ? (tmp$_1.handleOnClickAddAsTemplate_281ov6$(tmp$_0), Unit) : null; this$ReportDetailComponent_0.showSnackBar_9pu0dj$(this$ReportDetailComponent_0.getString_za3lpa$(2115)); }return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; if (this$ReportDetailComponent.showChart) { renderTopMainAction($receiver, 'exit_to_app', this$ReportDetailComponent.getString_za3lpa$(2424) + ' ' + this$ReportDetailComponent.getString_za3lpa$(2241), GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), true, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent)); }renderTopMainAction($receiver, 'addchart', format(this$ReportDetailComponent.getString_za3lpa$(2553), [this$ReportDetailComponent.getString_za3lpa$(2264)]), GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), equals((tmp$_1 = (tmp$_0 = (tmp$ = this$ReportDetailComponent.chartData) != null ? tmp$.reportWithFilters : null) != null ? tmp$_0.reportUid : null) != null ? tmp$_1 : L0, L0), void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent)); renderTopMainAction($receiver, 'post_add', this$ReportDetailComponent.getString_za3lpa$(2073), GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), this$ReportDetailComponent.saveAsTemplateVisible, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ReportDetailComponent) { return function (it) { this$ReportDetailComponent.showChart = it; return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultDoubleMarginTop); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); $receiver.attrs.id = 'chat-area'; renderChart($receiver, this$ReportDetailComponent.chartData, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda(this$ReportDetailComponent) { return function ($receiver) { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent)); if (this$ReportDetailComponent.showChart) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent)); }return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda(this$ReportDetailComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent) { return function ($receiver) { umTypography($receiver, this$ReportDetailComponent.getString_za3lpa$(2476)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent) { return function ($receiver) { umTypography($receiver, this$ReportDetailComponent.getString_za3lpa$(2269)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ReportDetailComponent) { return function ($receiver) { umTypography($receiver, this$ReportDetailComponent.getString_za3lpa$(2270)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ReportDetailComponent) { return function ($receiver) { umTypography($receiver, this$ReportDetailComponent.getString_za3lpa$(2235)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent) { return function ($receiver) { umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent)); umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent)); umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$ReportDetailComponent)); umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent) { return function ($receiver) { umTableRow($receiver, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent, closure$index) { return function ($receiver) { umTypography($receiver, this$ReportDetailComponent.seriesTitle_0.get_za3lpa$(closure$index), TypographyVariant$h6_getInstance()); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ReportDetailComponent, closure$index) { return function ($receiver) { var $receiver_0 = $receiver.css; set_borderBottom($receiver_0, '0px solid transparent'); set_borderTop($receiver_0, '0px solid transparent'); umTableCell($receiver, void 0, void 0, void 0, 4, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent, closure$index)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$statement) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = closure$statement.person) != null ? tmp$.fullName() : null, TypographyVariant$body1_getInstance()); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$statement) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = closure$statement.xlangMapEntry) != null ? tmp$.valueLangMap : null, TypographyVariant$body1_getInstance()); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$statement, this$ReportDetailComponent) { return function ($receiver) { var tmp$, tmp$_0; tmp$_0 = (tmp$ = controller.StatementConstants.STATEMENT_RESULT_OPTIONS.get_11rb$(closure$statement.resultSuccess)) != null ? tmp$ : 0; umTypography($receiver, this$ReportDetailComponent.getString_za3lpa$(tmp$_0), TypographyVariant$body1_getInstance()); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$statement) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = toDate(closure$statement.timestamp)) != null ? standardFormat(tmp$) : null, TypographyVariant$body1_getInstance()); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$statement, this$ReportDetailComponent) { return function ($receiver) { umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$statement)); umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$statement)); umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$statement, this$ReportDetailComponent)); umTableCell($receiver, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$statement)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent, closure$index, closure$statements) { return function ($receiver) { umTableRow($receiver, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ReportDetailComponent, closure$index)); var $receiver_0 = closure$statements; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); umTableRow($receiver, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(element, this$ReportDetailComponent)); } return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ReportDetailComponent) { return function ($receiver) { umTableHead($receiver, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$ReportDetailComponent)); var $receiver_0 = this$ReportDetailComponent.statementSeriesList_0; var tmp$, tmp$_0; var index = 0; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); umTableBody($receiver, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent, checkIndexOverflow((tmp$_0 = index, index = tmp$_0 + 1 | 0, tmp$_0)), item)); } return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ReportDetailComponent) { return function ($receiver) { $receiver.attrs.sx = json([new Pair('maxHeight', '500px')]); umTable($receiver, true, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent) { return function ($receiver) { umTableContainer($receiver, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda$lambda_0(this$ReportDetailComponent) { return function ($receiver) { set_overflow($receiver.css, Overflow.scroll); umPaper($receiver, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda$lambda_0(this$ReportDetailComponent)); return Unit; }; } function ReportDetailComponent$render$lambda$lambda(this$ReportDetailComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda(this$ReportDetailComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda$lambda_0(this$ReportDetailComponent)); return Unit; }; } ReportDetailComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_35); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().scrollOnMobile); umGridContainer($receiver_0, GridSpacing$spacing2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportDetailComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ReportDetailComponent.prototype.onFabClicked = function () { var tmp$, tmp$_0; var report = this.entity; if (report == null || equals(report.reportUid, L0)) { if ((tmp$ = getViewNameFromUrl()) != null) { this.navController.popBackStack_ivxn3r$(tmp$, true); }} else (tmp$_0 = this.mPresenter_0) != null ? (tmp$_0.handleClickEdit(), Unit) : null; }; ReportDetailComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; ReportDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReportDetailComponent', interfaces: [ReportDetailView, UstadDetailComponent] }; function styledSpan$lambda_2(it) { return new SPAN_init(html.emptyMap, it); } function ReportEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.showSeriesDeleteButton_0 = false; this.reportTitleLabel_0 = new FieldLabel(this.getString_za3lpa$(2223)); this.reportDescLabel_0 = new FieldLabel(this.getString_za3lpa$(2047)); this.seriesYAxisLabel_0 = new FieldLabel(this.getString_za3lpa$(2228)); this.seriesTitleLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.seriesVisualLabel_0 = new FieldLabel(this.getString_za3lpa$(2224)); this.seriesSubGroupLabel_0 = new FieldLabel(this.getString_za3lpa$(2230)); this.xAxisLabel_0 = new FieldLabel(this.getString_za3lpa$(2229)); this.timeRangeLabel_0 = new FieldLabel(this.getString_za3lpa$(2218)); this.seriesList_0 = emptyList(); this.visualTypeOptions_nfrffy$_0 = null; this.xAxisOptions_1jvk0z$_0 = null; this.subGroupOptions_yjkfpp$_0 = null; this.yAxisOptions_6ek78i$_0 = null; this.dateRangeOptions_4k34k3$_0 = null; this.selectedDateRangeMoment_7tt8ym$_0 = null; this.titleErrorText_bwqjvp$_0 = null; this.fieldsEnabled_n45c8m$_0 = false; this.entity_pqvftr$_0 = null; } Object.defineProperty(ReportEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ReportEditComponent$set_ReportEditComponent$visualTypeOptions$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { this$ReportEditComponent.visualTypeOptions_nfrffy$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'visualTypeOptions', { configurable: true, get: function () { return this.visualTypeOptions_nfrffy$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$visualTypeOptions$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$xAxisOptions$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { this$ReportEditComponent.xAxisOptions_1jvk0z$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'xAxisOptions', { configurable: true, get: function () { return this.xAxisOptions_1jvk0z$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$xAxisOptions$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$subGroupOptions$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { this$ReportEditComponent.subGroupOptions_yjkfpp$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'subGroupOptions', { configurable: true, get: function () { return this.subGroupOptions_yjkfpp$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$subGroupOptions$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$yAxisOptions$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { this$ReportEditComponent.yAxisOptions_6ek78i$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'yAxisOptions', { configurable: true, get: function () { return this.yAxisOptions_6ek78i$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$yAxisOptions$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$dateRangeOptions$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { this$ReportEditComponent.dateRangeOptions_4k34k3$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'dateRangeOptions', { configurable: true, get: function () { return this.dateRangeOptions_4k34k3$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$dateRangeOptions$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$selectedDateRangeMoment$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; this$ReportEditComponent.selectedDateRangeMoment_7tt8ym$_0 = closure$value; if (closure$value == null) return; (tmp$ = this$ReportEditComponent.entity) != null ? (tmp$.fromDate = closure$value.fromMoment.fixedTime) : null; (tmp$_0 = this$ReportEditComponent.entity) != null ? (tmp$_0.fromRelTo = closure$value.fromMoment.relTo) : null; (tmp$_1 = this$ReportEditComponent.entity) != null ? (tmp$_1.fromRelOffSet = closure$value.fromMoment.relOffSet) : null; (tmp$_2 = this$ReportEditComponent.entity) != null ? (tmp$_2.fromRelUnit = closure$value.fromMoment.relUnit) : null; (tmp$_3 = this$ReportEditComponent.entity) != null ? (tmp$_3.toDate = closure$value.toMoment.fixedTime) : null; (tmp$_4 = this$ReportEditComponent.entity) != null ? (tmp$_4.toRelTo = closure$value.toMoment.relTo) : null; (tmp$_5 = this$ReportEditComponent.entity) != null ? (tmp$_5.toRelOffSet = closure$value.toMoment.relOffSet) : null; (tmp$_6 = this$ReportEditComponent.entity) != null ? (tmp$_6.toRelUnit = closure$value.toMoment.relUnit) : null; return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'selectedDateRangeMoment', { configurable: true, get: function () { return this.selectedDateRangeMoment_7tt8ym$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$selectedDateRangeMoment$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$titleErrorText$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { this$ReportEditComponent.titleErrorText_bwqjvp$_0 = closure$value; this$ReportEditComponent.reportTitleLabel_0 = this$ReportEditComponent.reportTitleLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'titleErrorText', { configurable: true, get: function () { return this.titleErrorText_bwqjvp$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$titleErrorText$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$fieldsEnabled$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { this$ReportEditComponent.fieldsEnabled_n45c8m$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_n45c8m$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$fieldsEnabled$lambda(value, this)); } }); function ReportEditComponent$set_ReportEditComponent$entity$lambda(closure$value, this$ReportEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; this$ReportEditComponent.entity_pqvftr$_0 = closure$value; this$ReportEditComponent.showSeriesDeleteButton_0 = ((tmp$_0 = (tmp$ = closure$value != null ? closure$value.reportSeriesWithFiltersList : null) != null ? tmp$.size : null) != null ? tmp$_0 : 0) > 1; this$ReportEditComponent.seriesList_0 = (tmp$_1 = closure$value != null ? closure$value.reportSeriesWithFiltersList : null) != null ? tmp$_1 : emptyList(); return Unit; }; } Object.defineProperty(ReportEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_pqvftr$_0; }, set: function (value) { setState(this, ReportEditComponent$set_ReportEditComponent$entity$lambda(value, this)); } }); ReportEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.setEditTitle_vux9f0$(2242, 2243); this.mPresenter_0 = new ReportEditPresenter(this, this.arguments, this, this.di, this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ReportEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$ReportEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportEditComponent.entity) != null ? (tmp$.reportTitle = closure$it) : null; this$ReportEditComponent.titleErrorText = null; return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda(this$ReportEditComponent) { return function (it) { setState(this$ReportEditComponent, ReportEditComponent$render$lambda$lambda$lambda$lambda(it, this$ReportEditComponent)); return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda_0(closure$it, this$ReportEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportEditComponent.entity) != null ? (tmp$.reportDescription = closure$it) : null; return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda_0(this$ReportEditComponent) { return function (it) { setState(this$ReportEditComponent, ReportEditComponent$render$lambda$lambda$lambda$lambda_0(it, this$ReportEditComponent)); return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ReportEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportEditComponent.entity) != null ? (tmp$.xAxis = toInt(closure$it)) : null; return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ReportEditComponent) { return function (it) { setState(this$ReportEditComponent, ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ReportEditComponent)); return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda_1(this$ReportEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ReportEditComponent.xAxisLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ReportEditComponent.entity) != null ? tmp$_0.xAxis : null); tmp$_3 = (tmp$_2 = this$ReportEditComponent.xAxisLabel_0.errorText) != null ? tmp$_2 : ''; tmp$_4 = this$ReportEditComponent.xAxisLabel_0.error; var tmp$_7; if ((tmp$_5 = this$ReportEditComponent.xAxisOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, void 0, ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ReportEditComponent), void 0, void 0, tmp$_4); return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ReportEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportEditComponent.entity) != null ? (tmp$.reportDateRangeSelection = toInt(closure$it)) : null; return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ReportEditComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1; setState(this$ReportEditComponent, ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$ReportEditComponent)); if (toInt(it) === ReportEditPresenter$DateRangeOptions.NEW_CUSTOM_RANGE.code) { (tmp$ = this$ReportEditComponent.mPresenter_0) != null ? (tmp$.handleDateRangeChange(), Unit) : null; }var option = new IdOption('', toInt(it)); (tmp$_0 = this$ReportEditComponent.mPresenter_0) != null ? (tmp$_0.handleDateRangeSelected_iowaj7$(option), Unit) : null; (tmp$_1 = this$ReportEditComponent.mPresenter_0) != null ? (tmp$_1.handleXAxisSelected_iowaj7$(option), Unit) : null; return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda_2(this$ReportEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ReportEditComponent.timeRangeLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ReportEditComponent.entity) != null ? tmp$_0.reportDateRangeSelection : null); tmp$_3 = (tmp$_2 = this$ReportEditComponent.timeRangeLabel_0.errorText) != null ? tmp$_2 : ''; tmp$_4 = this$ReportEditComponent.timeRangeLabel_0.error; var tmp$_7; if ((tmp$_5 = this$ReportEditComponent.dateRangeOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, void 0, ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ReportEditComponent), void 0, void 0, tmp$_4); return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda_1(this$ReportEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportEditComponent$render$lambda$lambda$lambda$lambda_1(this$ReportEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportEditComponent$render$lambda$lambda$lambda$lambda_2(this$ReportEditComponent)); return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda_2(this$ReportEditComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().horizontalList($receiver.css); tmp$ = this$ReportEditComponent.seriesList_0.iterator(); while (tmp$.hasNext()) { var series = tmp$.next(); this$ReportEditComponent.renderSeriesItem_0($receiver, series, this$ReportEditComponent.seriesList_0.size > 1 && this$ReportEditComponent.showSeriesDeleteButton_0); } return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ReportEditComponent) { return function (it) { var tmp$; (tmp$ = this$ReportEditComponent.mPresenter_0) != null ? (tmp$.handleClickAddSeries(), Unit) : null; return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda$lambda_3(this$ReportEditComponent) { return function ($receiver) { $receiver.attrs.onClick = ReportEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ReportEditComponent); renderCreateNewItemOnList($receiver, this$ReportEditComponent.getString_za3lpa$(2226)); return Unit; }; } function ReportEditComponent$render$lambda$lambda$lambda_3(this$ReportEditComponent) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$render$lambda$lambda$lambda$lambda_3(this$ReportEditComponent)); return Unit; }; } function ReportEditComponent$render$lambda$lambda(this$ReportEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9; tmp$ = toString(this$ReportEditComponent.reportTitleLabel_0.text); tmp$_0 = this$ReportEditComponent.reportTitleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ReportEditComponent.entity) != null ? tmp$_1.reportTitle : null; tmp$_3 = this$ReportEditComponent.reportTitleLabel_0.error; tmp$_4 = !this$ReportEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ReportEditComponent$render$lambda$lambda$lambda(this$ReportEditComponent), void 0, void 0, tmp$_4, tmp$_3, void 0, true); tmp$_5 = toString(this$ReportEditComponent.reportDescLabel_0.text); tmp$_7 = (tmp$_6 = this$ReportEditComponent.entity) != null ? tmp$_6.reportDescription : null; tmp$_8 = this$ReportEditComponent.reportDescLabel_0.error; tmp$_9 = !this$ReportEditComponent.fieldsEnabled; umTextField($receiver, tmp$_5, tmp$_7, this$ReportEditComponent.reportDescLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), ReportEditComponent$render$lambda$lambda$lambda_0(this$ReportEditComponent), void 0, void 0, tmp$_9, tmp$_8); umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ReportEditComponent$render$lambda$lambda$lambda_1(this$ReportEditComponent)); if (!this$ReportEditComponent.seriesList_0.isEmpty()) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$render$lambda$lambda$lambda_2(this$ReportEditComponent)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$render$lambda$lambda$lambda_3(this$ReportEditComponent)); return Unit; }; } function ReportEditComponent$render$lambda(this$ReportEditComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$render$lambda$lambda(this$ReportEditComponent)); return Unit; }; } ReportEditComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$render$lambda(this)); }; ReportEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, closure$series) { return function ($receiver) { closure$series.reportSeriesName = closure$it; return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda(closure$series, this$ReportEditComponent) { return function (it) { setState(this$ReportEditComponent, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda(it, closure$series)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_0(closure$showDelete) { return function ($receiver) { var closure$showDelete_0 = closure$showDelete; set_width($receiver.css, new LinearDimension(!closure$showDelete_0 ? '100%' : '95%')); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportEditComponent, closure$series) { return function (it) { var tmp$; (tmp$ = this$ReportEditComponent.mPresenter_0) != null ? (tmp$.handleRemoveSeries_13jbm9$(closure$series), Unit) : null; return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda(this$ReportEditComponent, closure$series, closure$showDelete) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$ReportEditComponent.seriesTitleLabel_0.text); tmp$_0 = this$ReportEditComponent.seriesTitleLabel_0.errorText; tmp$_1 = closure$series.reportSeriesName; tmp$_2 = this$ReportEditComponent.seriesTitleLabel_0.error; tmp$_3 = !this$ReportEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda(closure$series, this$ReportEditComponent), void 0, void 0, tmp$_3, tmp$_2, void 0, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_0(closure$showDelete)); if (closure$showDelete) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_2); var this$ReportEditComponent_0 = this$ReportEditComponent; var closure$series_0 = closure$series; var $receiver_1 = $receiver_0.css; var tmp$_4; tmp$_4 = get_spacingUnits(3); margin($receiver_1, get_spacingUnits(2), void 0, void 0, tmp$_4); set_width($receiver_1, get_px(40)); umIconButton($receiver_0, 'close', void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ReportEditComponent_0, closure$series_0)); $receiver.child_30b5ua$($receiver_0.create()); }return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda(this$ReportEditComponent, closure$series, closure$showDelete) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda(this$ReportEditComponent, closure$series, closure$showDelete)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$it, closure$series) { return function ($receiver) { closure$series.reportSeriesYAxis = toInt(closure$it); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_1(closure$series, this$ReportEditComponent) { return function (it) { setState(this$ReportEditComponent, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_1(it, closure$series)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_0(this$ReportEditComponent, closure$series) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$ReportEditComponent.seriesYAxisLabel_0.text); tmp$_0 = closure$series.reportSeriesYAxis.toString(); tmp$_2 = (tmp$_1 = this$ReportEditComponent.seriesYAxisLabel_0.errorText) != null ? tmp$_1 : ''; tmp$_3 = this$ReportEditComponent.seriesYAxisLabel_0.error; var tmp$_6; if ((tmp$_4 = this$ReportEditComponent.yAxisOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_4, 10)); var tmp$_7; tmp$_7 = tmp$_4.iterator(); while (tmp$_7.hasNext()) { var item = tmp$_7.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_6 = destination; } else tmp$_6 = null; umTextFieldSelect($receiver, tmp$, tmp$_0, tmp$_2, void 0, (tmp$_5 = tmp$_6) != null ? toList(tmp$_5) : null, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_1(closure$series, this$ReportEditComponent), void 0, void 0, tmp$_3); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, closure$series) { return function ($receiver) { closure$series.reportSeriesVisualType = toInt(closure$it); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_2(closure$series, this$ReportEditComponent) { return function (it) { setState(this$ReportEditComponent, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_2(it, closure$series)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_1(this$ReportEditComponent, closure$series) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$ReportEditComponent.seriesVisualLabel_0.text); tmp$_0 = closure$series.reportSeriesVisualType.toString(); tmp$_2 = (tmp$_1 = this$ReportEditComponent.seriesVisualLabel_0.errorText) != null ? tmp$_1 : ''; tmp$_3 = this$ReportEditComponent.seriesVisualLabel_0.error; var tmp$_6; if ((tmp$_4 = this$ReportEditComponent.visualTypeOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_4, 10)); var tmp$_7; tmp$_7 = tmp$_4.iterator(); while (tmp$_7.hasNext()) { var item = tmp$_7.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_6 = destination; } else tmp$_6 = null; umTextFieldSelect($receiver, tmp$, tmp$_0, tmp$_2, void 0, (tmp$_5 = tmp$_6) != null ? toList(tmp$_5) : null, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_2(closure$series, this$ReportEditComponent), void 0, void 0, tmp$_3); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_3(closure$it, closure$series) { return function ($receiver) { closure$series.reportSeriesSubGroup = toInt(closure$it); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_3(closure$series, this$ReportEditComponent) { return function (it) { setState(this$ReportEditComponent, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda$lambda_3(it, closure$series)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_2(this$ReportEditComponent, closure$series) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$ReportEditComponent.seriesSubGroupLabel_0.text); tmp$_0 = closure$series.reportSeriesSubGroup.toString(); tmp$_2 = (tmp$_1 = this$ReportEditComponent.seriesSubGroupLabel_0.errorText) != null ? tmp$_1 : ''; tmp$_3 = this$ReportEditComponent.seriesSubGroupLabel_0.error; var tmp$_6; if ((tmp$_4 = this$ReportEditComponent.subGroupOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_4, 10)); var tmp$_7; tmp$_7 = tmp$_4.iterator(); while (tmp$_7.hasNext()) { var item = tmp$_7.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_6 = destination; } else tmp$_6 = null; umTextFieldSelect($receiver, tmp$, tmp$_0, tmp$_2, void 0, (tmp$_5 = tmp$_6) != null ? toList(tmp$_5) : null, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda$lambda_3(closure$series, this$ReportEditComponent), void 0, void 0, tmp$_3); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda_0(this$ReportEditComponent, closure$series) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_0(this$ReportEditComponent, closure$series)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_1(this$ReportEditComponent, closure$series)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_2(this$ReportEditComponent, closure$series)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda(this$ReportEditComponent, closure$series, closure$showDelete) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda(this$ReportEditComponent, closure$series, closure$showDelete)); umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda_0(this$ReportEditComponent, closure$series)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda_0(this$ReportEditComponent) { return function ($receiver) { renderListSectionTitle($receiver, this$ReportEditComponent.getString_za3lpa$(2451)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_3(this$ReportEditComponent, closure$filter) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$ReportEditComponent.mPresenter_0) != null ? (tmp$.handleOnFilterClicked_4zy6we$(closure$filter), Unit) : null; return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_4(this$ReportEditComponent, closure$filter) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$ReportEditComponent.mPresenter_0) != null ? (tmp$.handleRemoveFilter_4zy6we$(closure$filter), Unit) : null; return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda_1(this$ReportEditComponent, closure$filter) { return function ($receiver) { $receiver.attrs.onClick = ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_3(this$ReportEditComponent, closure$filter); renderListItemWithTitleDescriptionAndRightAction($receiver, toDisplayString(closure$filter, this$ReportEditComponent.systemImpl, new Any()), 'delete', true, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_4(this$ReportEditComponent, closure$filter)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda_1(closure$filters, this$ReportEditComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().horizontalList($receiver.css); tmp$ = closure$filters.iterator(); while (tmp$.hasNext()) { var filter = tmp$.next(); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda_1(this$ReportEditComponent, filter)); } return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_5(this$ReportEditComponent, closure$series) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); if ((tmp$ = this$ReportEditComponent.mPresenter_0) != null) { var $receiver = new ReportFilter(); $receiver.reportFilterSeriesUid = closure$series.reportSeriesUid; tmp$.handleOnFilterClicked_4zy6we$($receiver); }return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda$lambda_2(this$ReportEditComponent, closure$series) { return function ($receiver) { $receiver.attrs.onClick = ReportEditComponent$renderSeriesItem$lambda$lambda$lambda$lambda_5(this$ReportEditComponent, closure$series); renderCreateNewItemOnList($receiver, this$ReportEditComponent.getString_za3lpa$(2451)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda$lambda_2(this$ReportEditComponent, closure$series) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda$lambda_2(this$ReportEditComponent, closure$series)); return Unit; }; } function ReportEditComponent$renderSeriesItem$lambda(this$ReportEditComponent, closure$series, closure$showDelete) { return function ($receiver) { var tmp$; umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda(this$ReportEditComponent, closure$series, closure$showDelete)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda_0(this$ReportEditComponent)); var filters = (tmp$ = closure$series.reportSeriesFilters) != null ? tmp$ : emptyList(); if (!filters.isEmpty()) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda_1(filters, this$ReportEditComponent)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda$lambda_2(this$ReportEditComponent, closure$series)); return Unit; }; } ReportEditComponent.prototype.renderSeriesItem_0 = function ($receiver, series, showDelete) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportEditComponent$renderSeriesItem$lambda(this, series, showDelete)); }; ReportEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReportEditComponent', interfaces: [ReportEditView, UstadEditComponent] }; function ReportFilterEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.fieldLabel_0 = new FieldLabel(this.getString_za3lpa$(2238)); this.conditionLabel_0 = new FieldLabel(this.getString_za3lpa$(2239)); this.valueLabel_0 = new FieldLabel(this.getString_za3lpa$(2240)); this.fromLabel_0 = new FieldLabel(this.getString_za3lpa$(2220)); this.toLabel_0 = new FieldLabel(this.getString_za3lpa$(2336)); this.fieldOptions_4glnp6$_0 = null; this.conditionsOptions_hehs0s$_0 = null; this.dropDownValueOptions_mifxpw$_0 = null; this.valueType_6hhvy9$_0 = null; this.fieldErrorText_l5vc0h$_0 = null; this.conditionsErrorText_rhl4ab$_0 = null; this.valuesErrorText_hwcy5z$_0 = null; this.uidAndLabels_0 = emptyList(); this.uidAndLabelFilterItemObserver_0 = new ObserverFnWrapper(ReportFilterEditComponent$uidAndLabelFilterItemObserver$lambda(this)); this.uidAndLabelList_w4w7cv$_0 = null; this.createNewFilter_wvwx0y$_0 = null; this.fieldsEnabled_b9luw2$_0 = false; this.entity_mb2cjd$_0 = null; } Object.defineProperty(ReportFilterEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$fieldOptions$lambda(closure$value, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.fieldOptions_4glnp6$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'fieldOptions', { configurable: true, get: function () { return this.fieldOptions_4glnp6$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$fieldOptions$lambda(value, this)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$conditionsOptions$lambda(closure$value, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.conditionsOptions_hehs0s$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'conditionsOptions', { configurable: true, get: function () { return this.conditionsOptions_hehs0s$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$conditionsOptions$lambda(value, this)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$dropDownValueOptions$lambda(closure$value, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.dropDownValueOptions_mifxpw$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'dropDownValueOptions', { configurable: true, get: function () { return this.dropDownValueOptions_mifxpw$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$dropDownValueOptions$lambda(value, this)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$valueType$lambda(closure$value, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.valueType_6hhvy9$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'valueType', { configurable: true, get: function () { return this.valueType_6hhvy9$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$valueType$lambda(value, this)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$fieldErrorText$lambda(this$ReportFilterEditComponent, closure$value) { return function ($receiver) { this$ReportFilterEditComponent.fieldLabel_0 = this$ReportFilterEditComponent.fieldLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'fieldErrorText', { configurable: true, get: function () { return this.fieldErrorText_l5vc0h$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$fieldErrorText$lambda(this, value)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$conditionsErrorText$lambda(this$ReportFilterEditComponent, closure$value) { return function ($receiver) { this$ReportFilterEditComponent.conditionLabel_0 = this$ReportFilterEditComponent.conditionLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'conditionsErrorText', { configurable: true, get: function () { return this.conditionsErrorText_rhl4ab$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$conditionsErrorText$lambda(this, value)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$valuesErrorText$lambda(this$ReportFilterEditComponent, closure$value) { return function ($receiver) { this$ReportFilterEditComponent.valueLabel_0 = this$ReportFilterEditComponent.valueLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'valuesErrorText', { configurable: true, get: function () { return this.valuesErrorText_hwcy5z$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$valuesErrorText$lambda(this, value)); } }); Object.defineProperty(ReportFilterEditComponent.prototype, 'uidAndLabelList', { configurable: true, get: function () { return this.uidAndLabelList_w4w7cv$_0; }, set: function (value) { var tmp$, tmp$_0; (tmp$ = this.uidAndLabelList_w4w7cv$_0) != null ? (tmp$.removeObserver_jsfaok$(this.uidAndLabelFilterItemObserver_0), Unit) : null; this.uidAndLabelList_w4w7cv$_0 = value; (tmp$_0 = this.uidAndLabelList_w4w7cv$_0) != null ? (tmp$_0.observe_igxi3b$(this, this.uidAndLabelFilterItemObserver_0), Unit) : null; } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$createNewFilter$lambda(closure$value, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.createNewFilter_wvwx0y$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'createNewFilter', { configurable: true, get: function () { return this.createNewFilter_wvwx0y$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$createNewFilter$lambda(value, this)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$fieldsEnabled$lambda(closure$value, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.fieldsEnabled_b9luw2$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_b9luw2$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$fieldsEnabled$lambda(value, this)); } }); function ReportFilterEditComponent$set_ReportFilterEditComponent$entity$lambda(closure$value, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.entity_mb2cjd$_0 = closure$value; return Unit; }; } Object.defineProperty(ReportFilterEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_mb2cjd$_0; }, set: function (value) { setState(this, ReportFilterEditComponent$set_ReportFilterEditComponent$entity$lambda(value, this)); } }); ReportFilterEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.setEditTitle_vux9f0$(2247, 2247); this.mPresenter_0 = new ReportFilterEditPresenter(this, this.arguments, this, this.di, this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportFilterEditComponent.entity) != null ? (tmp$.reportFilterField = toInt(closure$it)) : null; this$ReportFilterEditComponent.fieldErrorText = null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda(this$ReportFilterEditComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1, tmp$_2; if (((tmp$ = this$ReportFilterEditComponent.entity) != null ? tmp$.reportFilterField : null) !== toInt(it)) { (tmp$_0 = this$ReportFilterEditComponent.mPresenter_0) != null ? (tmp$_0.clearUidAndLabelList(), Unit) : null; }setState(this$ReportFilterEditComponent, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda(it, this$ReportFilterEditComponent)); var option = new IdOption('', toInt(it)); (tmp$_1 = this$ReportFilterEditComponent.mPresenter_0) != null ? (tmp$_1.handleFieldOptionSelected_iowaj7$(option), Unit) : null; (tmp$_2 = this$ReportFilterEditComponent.mPresenter_0) != null ? (tmp$_2.handleConditionOptionSelected_iowaj7$(option), Unit) : null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportFilterEditComponent.entity) != null ? (tmp$.reportFilterCondition = toInt(closure$it)) : null; this$ReportFilterEditComponent.conditionsErrorText = null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ReportFilterEditComponent) { return function (it) { setState(this$ReportFilterEditComponent, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_0(this$ReportFilterEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ReportFilterEditComponent.conditionLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ReportFilterEditComponent.entity) != null ? tmp$_0.reportFilterCondition : null); tmp$_3 = (tmp$_2 = this$ReportFilterEditComponent.conditionLabel_0.errorText) != null ? tmp$_2 : ''; tmp$_4 = this$ReportFilterEditComponent.conditionLabel_0.error; var tmp$_7; if ((tmp$_5 = this$ReportFilterEditComponent.conditionsOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ReportFilterEditComponent), void 0, void 0, tmp$_4); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportFilterEditComponent.entity) != null ? (tmp$.reportFilterValue = closure$it) : null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ReportFilterEditComponent) { return function (it) { setState(this$ReportFilterEditComponent, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$it, this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportFilterEditComponent.entity) != null ? (tmp$.reportFilterDropDownValue = toInt(closure$it)) : null; this$ReportFilterEditComponent.valuesErrorText = null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ReportFilterEditComponent) { return function (it) { setState(this$ReportFilterEditComponent, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(it, this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_1(this$ReportFilterEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12; if (equals(this$ReportFilterEditComponent.valueType, ReportFilterEditPresenter$FilterValueType.INTEGER)) { tmp$ = toString(this$ReportFilterEditComponent.valueLabel_0.text); tmp$_0 = this$ReportFilterEditComponent.valueLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ReportFilterEditComponent.entity) != null ? tmp$_1.reportFilterValue : null; tmp$_3 = this$ReportFilterEditComponent.valueLabel_0.error; tmp$_4 = !this$ReportFilterEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ReportFilterEditComponent), InputType$number, void 0, tmp$_4, tmp$_3, void 0, true); }if (equals(this$ReportFilterEditComponent.valueType, ReportFilterEditPresenter$FilterValueType.DROPDOWN)) { tmp$_5 = toString(this$ReportFilterEditComponent.valueLabel_0.text); tmp$_7 = toString((tmp$_6 = this$ReportFilterEditComponent.entity) != null ? tmp$_6.reportFilterDropDownValue : null); tmp$_9 = (tmp$_8 = this$ReportFilterEditComponent.valueLabel_0.errorText) != null ? tmp$_8 : ''; tmp$_10 = this$ReportFilterEditComponent.valueLabel_0.error; var tmp$_13; if ((tmp$_11 = this$ReportFilterEditComponent.dropDownValueOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_11, 10)); var tmp$_14; tmp$_14 = tmp$_11.iterator(); while (tmp$_14.hasNext()) { var item = tmp$_14.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_13 = destination; } else tmp$_13 = null; umTextFieldSelect($receiver, tmp$_5, tmp$_7, tmp$_9, void 0, (tmp$_12 = tmp$_13) != null ? toList(tmp$_12) : null, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ReportFilterEditComponent), void 0, void 0, tmp$_10); }return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda_0(this$ReportFilterEditComponent) { return function ($receiver) { var fullWidth = !equals(this$ReportFilterEditComponent.valueType, ReportFilterEditPresenter$FilterValueType.INTEGER) && !equals(this$ReportFilterEditComponent.valueType, ReportFilterEditPresenter$FilterValueType.DROPDOWN); umItem($receiver, GridSize$cells12_getInstance(), fullWidth ? GridSize$cells12_getInstance() : GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_0(this$ReportFilterEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_1(this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportFilterEditComponent.entity) != null ? (tmp$.reportFilterValueBetweenX = closure$it) : null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ReportFilterEditComponent) { return function (it) { setState(this$ReportFilterEditComponent, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(it, this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_2(this$ReportFilterEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ReportFilterEditComponent.fromLabel_0.text); tmp$_0 = this$ReportFilterEditComponent.fromLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ReportFilterEditComponent.entity) != null ? tmp$_1.reportFilterValueBetweenX : null; tmp$_3 = this$ReportFilterEditComponent.fromLabel_0.error; tmp$_4 = !this$ReportFilterEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$ReportFilterEditComponent), InputType$number, void 0, tmp$_4, tmp$_3, void 0, true); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ReportFilterEditComponent.entity) != null ? (tmp$.reportFilterValueBetweenY = closure$it) : null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ReportFilterEditComponent) { return function (it) { setState(this$ReportFilterEditComponent, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(it, this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_3(this$ReportFilterEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$ReportFilterEditComponent.toLabel_0.text); tmp$_0 = this$ReportFilterEditComponent.toLabel_0.errorText; tmp$_2 = (tmp$_1 = this$ReportFilterEditComponent.entity) != null ? tmp$_1.reportFilterValueBetweenY : null; tmp$_3 = this$ReportFilterEditComponent.toLabel_0.error; tmp$_4 = !this$ReportFilterEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(this$ReportFilterEditComponent), InputType$number, void 0, tmp$_4, tmp$_3, void 0, true); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda_1(this$ReportFilterEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_2(this$ReportFilterEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_3(this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ReportFilterEditComponent, closure$uidLabel) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$ReportFilterEditComponent.mPresenter_0) != null ? (tmp$.handleRemoveUidAndLabel_f7ipix$(closure$uidLabel), Unit) : null; return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_4(closure$uidLabel, this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; renderListItemWithTitleDescriptionAndRightAction($receiver, (tmp$ = closure$uidLabel.labelName) != null ? tmp$ : '', 'delete', true, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$ReportFilterEditComponent, closure$uidLabel)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda_2(this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().horizontalList); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); tmp$ = this$ReportFilterEditComponent.uidAndLabels_0.iterator(); while (tmp$.hasNext()) { var uidLabel = tmp$.next(); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_4(uidLabel, this$ReportFilterEditComponent)); } return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ReportFilterEditComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1, tmp$_2; Util_getInstance().stopEventPropagation_za3rmp$(it); if (((tmp$ = this$ReportFilterEditComponent.entity) != null ? tmp$.reportFilterField : null) === 103) { (tmp$_0 = this$ReportFilterEditComponent.mPresenter_0) != null ? (tmp$_0.handleAddContentClicked(), Unit) : null; } else if (((tmp$_1 = this$ReportFilterEditComponent.entity) != null ? tmp$_1.reportFilterField : null) === 107) { (tmp$_2 = this$ReportFilterEditComponent.mPresenter_0) != null ? (tmp$_2.handleAddLeavingReasonClicked(), Unit) : null; }return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_5(this$ReportFilterEditComponent) { return function ($receiver) { var tmp$; $receiver.attrs.onClick = ReportFilterEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$ReportFilterEditComponent); renderCreateNewItemOnList($receiver, (tmp$ = this$ReportFilterEditComponent.createNewFilter) != null ? tmp$ : ''); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda$lambda_3(this$ReportFilterEditComponent) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda$lambda_5(this$ReportFilterEditComponent)); return Unit; }; } function ReportFilterEditComponent$render$lambda$lambda(this$ReportFilterEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ReportFilterEditComponent.fieldLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ReportFilterEditComponent.entity) != null ? tmp$_0.reportFilterField : null); tmp$_3 = (tmp$_2 = this$ReportFilterEditComponent.fieldLabel_0.errorText) != null ? tmp$_2 : ''; tmp$_4 = this$ReportFilterEditComponent.fieldLabel_0.error; var tmp$_7; if ((tmp$_5 = this$ReportFilterEditComponent.fieldOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda(this$ReportFilterEditComponent), void 0, void 0, tmp$_4); umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda_0(this$ReportFilterEditComponent)); if (equals(this$ReportFilterEditComponent.valueType, ReportFilterEditPresenter$FilterValueType.BETWEEN)) { umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda_1(this$ReportFilterEditComponent)); }if (equals(this$ReportFilterEditComponent.valueType, ReportFilterEditPresenter$FilterValueType.LIST)) { if (!this$ReportFilterEditComponent.uidAndLabels_0.isEmpty()) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda_2(this$ReportFilterEditComponent)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda$lambda_3(this$ReportFilterEditComponent)); }return Unit; }; } function ReportFilterEditComponent$render$lambda(this$ReportFilterEditComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda$lambda(this$ReportFilterEditComponent)); return Unit; }; } ReportFilterEditComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ReportFilterEditComponent$render$lambda(this)); }; ReportFilterEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ReportFilterEditComponent$uidAndLabelFilterItemObserver$lambda$lambda(closure$it, this$ReportFilterEditComponent) { return function ($receiver) { this$ReportFilterEditComponent.uidAndLabels_0 = closure$it; return Unit; }; } function ReportFilterEditComponent$uidAndLabelFilterItemObserver$lambda(this$ReportFilterEditComponent) { return function (it) { if (it == null) return; setState(this$ReportFilterEditComponent, ReportFilterEditComponent$uidAndLabelFilterItemObserver$lambda$lambda(it, this$ReportFilterEditComponent)); return Unit; }; } ReportFilterEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReportFilterEditComponent', interfaces: [ReportFilterEditView, UstadEditComponent] }; function styledDiv$lambda_36(it) { return new DIV_init(html.emptyMap, it); } function ReportListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; this.chartDataMap_0 = LinkedHashMap_init(); } Object.defineProperty(ReportListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.reportDao : null; } }); Object.defineProperty(ReportListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); ReportListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.linearLayout = false; this.addNewEntryText = this.getString_za3lpa$(2242); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2241)) : null; this.mPresenter_0 = new ReportListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function ReportListComponent$onDataListLoaded$lambda$lambda$lambda($receiver) { return Unit; } function Coroutine$ReportListComponent$onDataListLoaded$lambda(this$ReportListComponent_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$this$ReportListComponent = this$ReportListComponent_0; this.local$tmp$ = void 0; this.local$element = void 0; this.local$this$ReportListComponent_0 = void 0; this.local$$receiver = $receiver_0; } Coroutine$ReportListComponent$onDataListLoaded$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$ReportListComponent$onDataListLoaded$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$ReportListComponent$onDataListLoaded$lambda.prototype.constructor = Coroutine$ReportListComponent$onDataListLoaded$lambda; Coroutine$ReportListComponent$onDataListLoaded$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: this.local$tmp$ = this.local$this$ReportListComponent.dataListItems.iterator(); this.state_0 = 2; continue; case 1: throw this.exception_0; case 2: if (!this.local$tmp$.hasNext()) { this.state_0 = 5; continue; } this.local$element = this.local$tmp$.next(); this.local$this$ReportListComponent_0 = this.local$this$ReportListComponent; var tmp$, tmp$_0, tmp$_1; var $receiver = this.local$element.reportSeries; if (!($receiver == null || $receiver.length === 0)) { tmp$_0 = safeParseList(this.local$this$ReportListComponent_0.di, ListSerializer(ReportSeries.Companion.serializer()), getKClass(ReportSeries), (tmp$ = this.local$element.reportSeries) != null ? tmp$ : ''); } else { tmp$_0 = emptyList(); } var series = tmp$_0; var tmp$_2; var accountManager = get_direct(this.local$this$ReportListComponent_0.di).directDI.Instance_ohrpre$(Kotlin.isType(tmp$_2 = typeToken(createKType(getKClass(UstadAccountManager), [], false)), TypeToken) ? tmp$_2 : throwCCE(), null); var reportWithSeriesWithFilters = ReportWithSeriesWithFilters_init(this.local$element, series); if ((tmp$_1 = this.local$this$ReportListComponent_0.dbRepo) != null) { var tmp$_3; this.state_0 = 3; this.result_0 = generateChartData(tmp$_1, reportWithSeriesWithFilters, this.local$$receiver, get_direct(this.local$this$ReportListComponent_0.di).directDI.Instance_ohrpre$(Kotlin.isType(tmp$_3 = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$_3 : throwCCE(), null), accountManager.activeAccount.personUid, this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; } else { this.result_0 = null; this.state_0 = 4; continue; } case 3: this.state_0 = 4; continue; case 4: var chartData = this.result_0; var $receiver_0 = this.local$this$ReportListComponent_0.chartDataMap_0; var key = this.local$element.reportUid; $receiver_0.put_xwzc9p$(key, chartData); setState(this.local$this$ReportListComponent_0, ReportListComponent$onDataListLoaded$lambda$lambda$lambda); this.state_0 = 2; continue; case 5: return Unit; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function ReportListComponent$onDataListLoaded$lambda(this$ReportListComponent_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$ReportListComponent$onDataListLoaded$lambda(this$ReportListComponent_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } ReportListComponent.prototype.onDataListLoaded = function () { UstadListComponent.prototype.onDataListLoaded.call(this); launch(coroutines.GlobalScope, coroutines.Dispatchers.Main, void 0, ReportListComponent$onDataListLoaded$lambda(this)); }; function ReportListComponent$renderListItem$lambda$lambda($receiver) { return Unit; } function ReportListComponent$renderListItem$lambda$lambda_0(this$ReportListComponent, closure$item) { return function (it) { if (!it) { this$ReportListComponent.chartDataMap_0.remove_11rb$(closure$item.reportUid); }return Unit; }; } function ReportListComponent$renderListItem$lambda$lambda_1($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); StyleManager_getInstance().maxLines_th7wno$($receiver_0, 2); return Unit; } ReportListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var chartData = this.chartDataMap_0.get_11rb$(item.reportUid); if (chartData == null) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_36); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); set_width($receiver_1, new LinearDimension('100%')); set_height($receiver_1, get_px(300)); padding_0($receiver_1, new LinearDimension('30%')); umCircularProgress($receiver_0, void 0, void 0, ThemeManager_getInstance().isDarkModeActive() ? UMColor$secondary_getInstance() : UMColor$primary_getInstance(), 80, 5.0, void 0, ReportListComponent$renderListItem$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); } else { var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_36); set_position($receiver_0_0.css, Position.relative); renderChart($receiver_0_0, chartData, 200, void 0, ReportListComponent$renderListItem$lambda$lambda_0(this, item)); $receiver.child_30b5ua$($receiver_0_0.create()); var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_36); padding($receiver_0_1.css, get_spacingUnits(2)); umTypography($receiver_0_1, item.reportTitle, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ReportListComponent$renderListItem$lambda$lambda_1); $receiver.child_30b5ua$($receiver_0_1.create()); } }; ReportListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; ReportListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; ReportListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReportListComponent', interfaces: [ReportListView, UstadListComponent] }; function ReportTemplateListComponent(props) { ReportTemplateListComponent$Companion_getInstance(); UstadListComponent.call(this, props); this.mPresenter_0 = null; } Object.defineProperty(ReportTemplateListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ReportTemplateListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.reportDao : null; } }); ReportTemplateListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2072); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2543)) : null; this.mPresenter_0 = new ReportTemplateListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; ReportTemplateListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var tmp$, tmp$_0, tmp$_1, tmp$_2; var reportTitle = (tmp$_0 = (tmp$ = ReportTemplateListComponent$Companion_getInstance().REPORT_TITLE_TO_ID.get_11rb$(item.reportTitleId)) != null ? this.getString_za3lpa$(tmp$) : null) != null ? tmp$_0 : item.reportTitle; var reportDesc = (tmp$_2 = (tmp$_1 = ReportTemplateListComponent$Companion_getInstance().REPORT_TITLE_TO_ID.get_11rb$(item.reportDescId)) != null ? this.getString_za3lpa$(tmp$_1) : null) != null ? tmp$_2 : item.reportDescription; renderListItemWithLeftIconTitleAndDescription($receiver, 'pie_chart', reportTitle != null ? reportTitle : '', reportDesc, true); }; ReportTemplateListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; function ReportTemplateListComponent$onFabClicked$lambda(this$ReportTemplateListComponent) { return function ($receiver) { this$ReportTemplateListComponent.showAddEntryOptions = true; return Unit; }; } ReportTemplateListComponent.prototype.onFabClicked = function () { setState(this, ReportTemplateListComponent$onFabClicked$lambda(this)); }; ReportTemplateListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function ReportTemplateListComponent$Companion() { ReportTemplateListComponent$Companion_instance = this; this.REPORT_TITLE_TO_ID = hashMapOf([to(1, 2826), to(2, 2742), to(3, 2833), to(4, 2832), to(5, 2835), to(6, 2836), to(7, 2827), to(8, 2828), to(9, 2831), to(10, 2832), to(11, 2829), to(12, 2830)]); } ReportTemplateListComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ReportTemplateListComponent$Companion_instance = null; function ReportTemplateListComponent$Companion_getInstance() { if (ReportTemplateListComponent$Companion_instance === null) { new ReportTemplateListComponent$Companion(); }return ReportTemplateListComponent$Companion_instance; } ReportTemplateListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ReportTemplateListComponent', interfaces: [ReportTemplateListView, UstadListComponent] }; function styledDiv$lambda_37(it) { return new DIV_init(html.emptyMap, it); } function ScheduleEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.okText_0 = this.getString_za3lpa$(2016); this.cancelText_0 = this.getString_za3lpa$(2018); this.fromTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2220)); this.toTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2336)); this.daysOptionLabel_0 = new FieldLabel(this.getString_za3lpa$(2357)); this.dayOptions_nk1chv$_0 = null; this.fromTimeError_6xk55w$_0 = null; this.toTimeError_wtxrpn$_0 = null; this.fieldsEnabled_l72hlf$_0 = false; this.entity_k833ac$_0 = null; } Object.defineProperty(ScheduleEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ScheduleEditComponent.prototype, 'dayOptions', { configurable: true, get: function () { return this.dayOptions_nk1chv$_0; }, set: function (value) { this.dayOptions_nk1chv$_0 = value; } }); function ScheduleEditComponent$set_ScheduleEditComponent$fromTimeError$lambda(this$ScheduleEditComponent, closure$value) { return function ($receiver) { this$ScheduleEditComponent.fromTimeLabel_0 = this$ScheduleEditComponent.fromTimeLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ScheduleEditComponent.prototype, 'fromTimeError', { configurable: true, get: function () { return this.fromTimeError_6xk55w$_0; }, set: function (value) { setState(this, ScheduleEditComponent$set_ScheduleEditComponent$fromTimeError$lambda(this, value)); } }); function ScheduleEditComponent$set_ScheduleEditComponent$toTimeError$lambda(this$ScheduleEditComponent, closure$value) { return function ($receiver) { this$ScheduleEditComponent.toTimeLabel_0 = this$ScheduleEditComponent.toTimeLabel_0.copy_d8n4vg$(void 0, closure$value); return Unit; }; } Object.defineProperty(ScheduleEditComponent.prototype, 'toTimeError', { configurable: true, get: function () { return this.toTimeError_wtxrpn$_0; }, set: function (value) { setState(this, ScheduleEditComponent$set_ScheduleEditComponent$toTimeError$lambda(this, value)); } }); function ScheduleEditComponent$set_ScheduleEditComponent$fieldsEnabled$lambda(closure$value, this$ScheduleEditComponent) { return function ($receiver) { this$ScheduleEditComponent.fieldsEnabled_l72hlf$_0 = closure$value; return Unit; }; } Object.defineProperty(ScheduleEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_l72hlf$_0; }, set: function (value) { setState(this, ScheduleEditComponent$set_ScheduleEditComponent$fieldsEnabled$lambda(value, this)); } }); function ScheduleEditComponent$set_ScheduleEditComponent$entity$lambda(closure$value, this$ScheduleEditComponent) { return function ($receiver) { this$ScheduleEditComponent.entity_k833ac$_0 = closure$value; return Unit; }; } Object.defineProperty(ScheduleEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_k833ac$_0; }, set: function (value) { setState(this, ScheduleEditComponent$set_ScheduleEditComponent$entity$lambda(value, this)); } }); ScheduleEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new ScheduleEditPresenter(this, this.arguments, this, this.di, this); this.setEditTitle_vux9f0$(2303, 2304); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$ScheduleEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ScheduleEditComponent.entity) != null ? (tmp$.scheduleDay = toInt(closure$it)) : null; return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda(this$ScheduleEditComponent) { return function (it) { setState(this$ScheduleEditComponent, ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$ScheduleEditComponent)); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda(this$ScheduleEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ScheduleEditComponent.daysOptionLabel_0.text); tmp$_1 = toString((tmp$_0 = this$ScheduleEditComponent.entity) != null ? tmp$_0.scheduleDay : null); tmp$_3 = (tmp$_2 = this$ScheduleEditComponent.daysOptionLabel_0.errorText) != null ? tmp$_2 : ''; tmp$_4 = this$ScheduleEditComponent.daysOptionLabel_0.error; var tmp$_7; if ((tmp$_5 = this$ScheduleEditComponent.dayOptions) != null) { var destination = ArrayList_init(collectionSizeOrDefault(tmp$_5, 10)); var tmp$_8; tmp$_8 = tmp$_5.iterator(); while (tmp$_8.hasNext()) { var item = tmp$_8.next(); destination.add_11rb$(new Pair(item.code.toString(), item.toString())); } tmp$_7 = destination; } else tmp$_7 = null; umTextFieldSelect($receiver, tmp$, tmp$_1, tmp$_3, void 0, (tmp$_6 = tmp$_7) != null ? toList(tmp$_6) : null, void 0, ScheduleEditComponent$render$lambda$lambda$lambda$lambda(this$ScheduleEditComponent), void 0, void 0, tmp$_4); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$ScheduleEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ScheduleEditComponent.entity) != null ? (tmp$.sceduleStartTime = Kotlin.Long.fromNumber(closure$it.getTime())) : null; this$ScheduleEditComponent.fromTimeError = null; return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ScheduleEditComponent) { return function (it) { setState(this$ScheduleEditComponent, ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$ScheduleEditComponent)); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ScheduleEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ScheduleEditComponent.fromTimeLabel_0.text); tmp$_0 = this$ScheduleEditComponent.fromTimeLabel_0.error; tmp$_1 = this$ScheduleEditComponent.okText_0; tmp$_2 = this$ScheduleEditComponent.cancelText_0; tmp$_3 = this$ScheduleEditComponent.fromTimeLabel_0.errorText; tmp$_5 = toDate((tmp$_4 = this$ScheduleEditComponent.entity) != null ? tmp$_4.sceduleStartTime : null); tmp$_6 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$ScheduleEditComponent), tmp$_5, void 0, tmp$_3, tmp$_0, void 0, void 0, void 0, void 0, void 0, tmp$_1, tmp$_2, tmp$_6); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$ScheduleEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$ScheduleEditComponent.entity) != null ? (tmp$.scheduleEndTime = Kotlin.Long.fromNumber(closure$it.getTime())) : null; this$ScheduleEditComponent.toTimeError = null; return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ScheduleEditComponent) { return function (it) { setState(this$ScheduleEditComponent, ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(it, this$ScheduleEditComponent)); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ScheduleEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6; tmp$ = toString(this$ScheduleEditComponent.toTimeLabel_0.text); tmp$_0 = this$ScheduleEditComponent.toTimeLabel_0.error; tmp$_1 = this$ScheduleEditComponent.okText_0; tmp$_2 = this$ScheduleEditComponent.cancelText_0; tmp$_3 = this$ScheduleEditComponent.toTimeLabel_0.errorText; tmp$_5 = toDate((tmp$_4 = this$ScheduleEditComponent.entity) != null ? tmp$_4.scheduleEndTime : null); tmp$_6 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$ScheduleEditComponent), tmp$_5, void 0, tmp$_3, tmp$_0, void 0, void 0, void 0, void 0, void 0, tmp$_1, tmp$_2, tmp$_6); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda$lambda_0(this$ScheduleEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$ScheduleEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, ScheduleEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$ScheduleEditComponent)); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda$lambda_0(this$ScheduleEditComponent) { return function ($receiver) { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ScheduleEditComponent$render$lambda$lambda$lambda$lambda_0(this$ScheduleEditComponent)); return Unit; }; } function ScheduleEditComponent$render$lambda$lambda(this$ScheduleEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ScheduleEditComponent$render$lambda$lambda$lambda(this$ScheduleEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, ScheduleEditComponent$render$lambda$lambda$lambda_0(this$ScheduleEditComponent)); return Unit; }; } ScheduleEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_37); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ScheduleEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ScheduleEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.toTimeError = null; this.fromTimeError = null; }; ScheduleEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ScheduleEditComponent', interfaces: [ScheduleEditView, UstadEditComponent] }; function ScheduleListProps() { } ScheduleListProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'ScheduleListProps', interfaces: [SimpleListProps] }; function ScheduleListComponent(mProps) { UstadSimpleList.call(this, mProps); } function ScheduleListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function ScheduleListComponent$renderListItem$lambda$lambda_0(this$ScheduleListComponent, closure$item) { return function (it) { var tmp$; (tmp$ = this$ScheduleListComponent.props.listener) != null ? (tmp$.onClickDelete_11rb$(closure$item), Unit) : null; return Unit; }; } function ScheduleListComponent$renderListItem$lambda(closure$onClick, closure$item, this$ScheduleListComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; $receiver.attrs.onClick = ScheduleListComponent$renderListItem$lambda$lambda(closure$onClick); var $receiver_0 = ScheduleEditPresenter$FrequencyOption$values(); var firstOrNull$result; firstOrNull$break: do { var tmp$_3; for (tmp$_3 = 0; tmp$_3 !== $receiver_0.length; ++tmp$_3) { var element = $receiver_0[tmp$_3]; if (element.optionVal === closure$item.scheduleFrequency) { firstOrNull$result = element; break firstOrNull$break; }} firstOrNull$result = null; } while (false); var frequencyMessageId = (tmp$_0 = (tmp$ = firstOrNull$result) != null ? tmp$.messageId : null) != null ? tmp$_0 : 2531; var $receiver_1 = ScheduleEditPresenter$DayOptions$values(); var firstOrNull$result_0; firstOrNull$break: do { var tmp$_4; for (tmp$_4 = 0; tmp$_4 !== $receiver_1.length; ++tmp$_4) { var element_0 = $receiver_1[tmp$_4]; if (element_0.optionVal === closure$item.scheduleDay) { firstOrNull$result_0 = element_0; break firstOrNull$break; }} firstOrNull$result_0 = null; } while (false); var dayMessageId = (tmp$_2 = (tmp$_1 = firstOrNull$result_0) != null ? tmp$_1.messageId : null) != null ? tmp$_2 : 2531; var scheduleDays = this$ScheduleListComponent.systemImpl.getString(frequencyMessageId, $receiver) + ' - ' + this$ScheduleListComponent.systemImpl.getString(dayMessageId, $receiver); var startEndTime = formattedInHoursAndMinutes(new Date(closure$item.sceduleStartTime)) + ' ' + ('- ' + formattedInHoursAndMinutes(new Date(closure$item.scheduleEndTime))); renderListItemWithTitleDescriptionAndRightAction($receiver, scheduleDays + ' ' + startEndTime, 'delete', this$ScheduleListComponent.props.withDelete, void 0, ScheduleListComponent$renderListItem$lambda$lambda_0(this$ScheduleListComponent, closure$item)); return Unit; }; } ScheduleListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ScheduleListComponent$renderListItem$lambda(onClick, item, this)); }; ScheduleListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ScheduleListComponent', interfaces: [UstadSimpleList] }; function renderSchedules$lambda(closure$schedules, closure$onEntryClicked, closure$createNewItem, closure$listener, closure$withDelete) { return function ($receiver) { $receiver.attrs.entries = closure$schedules; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.listener = closure$listener; $receiver.attrs.withDelete = closure$withDelete; return Unit; }; } function renderSchedules($receiver, listener, schedules, withDelete, createNewItem, onEntryClicked) { if (listener === void 0) listener = null; if (withDelete === void 0) withDelete = true; if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(ScheduleListComponent), renderSchedules$lambda(schedules, onEntryClicked, createNewItem, listener, withDelete)); } function SchoolDetailComponent(mProps) { UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.entity_xflpx4$_0 = null; this.title_zfib5r$_0 = null; this.tabsToRender_0 = null; } Object.defineProperty(SchoolDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(SchoolDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_xflpx4$_0; }, set: function (value) { this.entity_xflpx4$_0 = value; this.ustadComponentTitle = value != null ? value.schoolName : null; } }); Object.defineProperty(SchoolDetailComponent.prototype, 'title', { configurable: true, get: function () { return this.title_zfib5r$_0; }, set: function (value) { this.ustadComponentTitle = value; this.title_zfib5r$_0 = value; } }); function SchoolDetailComponent$onCreateView$lambda(closure$tabs, this$SchoolDetailComponent) { return function ($receiver) { var tmp$ = this$SchoolDetailComponent; var $receiver_0 = closure$tabs; var destination = ArrayList_init(collectionSizeOrDefault($receiver_0, 10)); var tmp$_0, tmp$_0_0; var index = 0; tmp$_0 = $receiver_0.iterator(); while (tmp$_0.hasNext()) { var item = tmp$_0.next(); var tmp$_1 = destination.add_11rb$; var closure$tabs_0 = closure$tabs; var this$SchoolDetailComponent_0 = this$SchoolDetailComponent; var index_0 = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); var titles = listOf([2562, 2564, 2075]); var tmp$_2 = substringBefore(item, '?'); var startIndex = lastIndexOf(item, '?'); tmp$_1.call(destination, new UmTab(index_0, tmp$_2, urlSearchParamsToMap(item.substring(startIndex)), this$SchoolDetailComponent_0.getString_za3lpa$(titles.get_za3lpa$(closure$tabs_0.indexOf_11rb$(item))))); } tmp$.tabsToRender_0 = destination; return Unit; }; } SchoolDetailComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1; UstadDetailComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new SchoolDetailPresenter(this, this.arguments, this, this.di, this); (tmp$_0 = this.mPresenter_0) != null ? (tmp$_0.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; var entityUidValue = (tmp$_1 = this.arguments.get_11rb$(UstadView.Companion.ARG_ENTITY_UID)) != null ? tmp$_1 : '0'; var commonArgs = mapOf(to(UstadView.Companion.ARG_NAV_CHILD, true.toString())); var tabs = listOf([appendQueryArgs(SchoolDetailOverviewView.Companion.VIEW_NAME, plus_0(commonArgs, mapOf(to(UstadView.Companion.ARG_ENTITY_UID, entityUidValue)))), appendQueryArgs(SchoolMemberListView.Companion.VIEW_NAME, plus_0(commonArgs, mapOf_0([to(UstadView.Companion.ARG_FILTER_BY_ROLE, (1004).toString()), to(UstadView.Companion.ARG_FILTER_BY_SCHOOLUID, entityUidValue)]))), appendQueryArgs(SchoolMemberListView.Companion.VIEW_NAME, plus_0(commonArgs, mapOf_0([to(UstadView.Companion.ARG_FILTER_BY_ROLE, (1003).toString()), to(UstadView.Companion.ARG_FILTER_BY_SCHOOLUID, entityUidValue)])))]); setState(this, SchoolDetailComponent$onCreateView$lambda(tabs, this)); }; SchoolDetailComponent.prototype.render_ss14n$ = function ($receiver) { var tmp$; if ((tmp$ = this.tabsToRender_0) != null) { var tmp$_0, tmp$_1; renderTabs($receiver, tmp$, void 0, (tmp$_1 = (tmp$_0 = this.arguments.get_11rb$(UstadView.Companion.ARG_ACTIVE_TAB_INDEX)) != null ? toInt(tmp$_0) : null) != null ? tmp$_1 : 0); }}; SchoolDetailComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.tabsToRender_0 = null; }; SchoolDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SchoolDetailComponent', interfaces: [SchoolDetailView, UstadDetailComponent] }; function styledDiv$lambda_38(it) { return new DIV_init(html.emptyMap, it); } function SchoolDetailOverviewComponent(mProps) { UstadDetailComponent.call(this, mProps); this.mPresenter_0 = null; this.schoolClazzList_0 = null; this.observer_0 = new ObserverFnWrapper(SchoolDetailOverviewComponent$observer$lambda(this)); this.schoolClazzes_x2fglc$_0 = null; this.schoolCodeVisible_9gd127$_0 = false; this.entity_vcx2wx$_0 = null; } Object.defineProperty(SchoolDetailOverviewComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(SchoolDetailOverviewComponent.prototype, 'schoolClazzes', { configurable: true, get: function () { return this.schoolClazzes_x2fglc$_0; }, set: function (value) { this.schoolClazzes_x2fglc$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.observer_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.observer_0), Unit) : null; } }); function SchoolDetailOverviewComponent$set_SchoolDetailOverviewComponent$schoolCodeVisible$lambda(closure$value, this$SchoolDetailOverviewComponent) { return function ($receiver) { this$SchoolDetailOverviewComponent.schoolCodeVisible_9gd127$_0 = closure$value; return Unit; }; } Object.defineProperty(SchoolDetailOverviewComponent.prototype, 'schoolCodeVisible', { configurable: true, get: function () { return this.schoolCodeVisible_9gd127$_0; }, set: function (value) { setState(this, SchoolDetailOverviewComponent$set_SchoolDetailOverviewComponent$schoolCodeVisible$lambda(value, this)); } }); function SchoolDetailOverviewComponent$set_SchoolDetailOverviewComponent$entity$lambda(closure$value, this$SchoolDetailOverviewComponent) { return function ($receiver) { this$SchoolDetailOverviewComponent.entity_vcx2wx$_0 = closure$value; return Unit; }; } Object.defineProperty(SchoolDetailOverviewComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_vcx2wx$_0; }, set: function (value) { setState(this, SchoolDetailOverviewComponent$set_SchoolDetailOverviewComponent$entity$lambda(value, this)); } }); SchoolDetailOverviewComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new SchoolDetailOverviewPresenter(this, this.arguments, this, this.di, this); if ((tmp$ = this.mPresenter_0) != null) { tmp$.onCreate(emptyMap()); }}; function SchoolDetailOverviewComponent$render$lambda$lambda$lambda($receiver) { umEntityAvatar($receiver, void 0, Util_getInstance().ASSET_ENTRY, 'school', void 0, void 0, true, true); return Unit; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$SchoolDetailOverviewComponent) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = this$SchoolDetailOverviewComponent.entity) != null ? tmp$.schoolDesc : null, TypographyVariant$body1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$SchoolDetailOverviewComponent) { return function () { this$SchoolDetailOverviewComponent.showSnackBar_9pu0dj$(this$SchoolDetailOverviewComponent.getString_za3lpa$(2657)); return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$SchoolDetailOverviewComponent) { return function () { var tmp$, tmp$_0; Util_getInstance().copyToClipboard_a4mwiz$((tmp$_0 = (tmp$ = this$SchoolDetailOverviewComponent.entity) != null ? tmp$.schoolCode : null) != null ? tmp$_0 : '', SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$SchoolDetailOverviewComponent)); return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1() { return Unit; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$SchoolDetailOverviewComponent) { return function ($receiver) { renderListSectionTitle($receiver, this$SchoolDetailOverviewComponent.getString_za3lpa$(2069)); return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$SchoolDetailOverviewComponent) { return function (clazz) { var tmp$; (tmp$ = this$SchoolDetailOverviewComponent.mPresenter_0) != null ? (tmp$.handleClickClazz_yczdf2$(clazz), Unit) : null; return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$classes, this$SchoolDetailOverviewComponent) { return function ($receiver) { $receiver.attrs.entries = closure$classes; $receiver.attrs.onEntryClicked = SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$SchoolDetailOverviewComponent); return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda(this$SchoolDetailOverviewComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7; umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda(this$SchoolDetailOverviewComponent)); renderInformationOnDetailScreen($receiver, 'login', (tmp$_0 = (tmp$ = this$SchoolDetailOverviewComponent.entity) != null ? tmp$.schoolCode : null) != null ? tmp$_0 : '', this$SchoolDetailOverviewComponent.getString_za3lpa$(2674), void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$SchoolDetailOverviewComponent)); renderInformationOnDetailScreen($receiver, 'place', (tmp$_1 = this$SchoolDetailOverviewComponent.entity) != null ? tmp$_1.schoolAddress : null, this$SchoolDetailOverviewComponent.getString_za3lpa$(2319)); renderInformationOnDetailScreen($receiver, 'call', (tmp$_2 = this$SchoolDetailOverviewComponent.entity) != null ? tmp$_2.schoolPhoneNumber : null, this$SchoolDetailOverviewComponent.getString_za3lpa$(2045)); renderInformationOnDetailScreen($receiver, 'perm_contact_calendar', (tmp$_4 = (tmp$_3 = this$SchoolDetailOverviewComponent.entity) != null ? tmp$_3.holidayCalendar : null) != null ? tmp$_4.umCalendarName : null, this$SchoolDetailOverviewComponent.getString_za3lpa$(2341)); renderInformationOnDetailScreen($receiver, 'email', (tmp$_5 = this$SchoolDetailOverviewComponent.entity) != null ? tmp$_5.schoolEmailAddress : null, this$SchoolDetailOverviewComponent.getString_za3lpa$(2064), void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_1); renderInformationOnDetailScreen($receiver, 'language', (tmp$_6 = this$SchoolDetailOverviewComponent.entity) != null ? tmp$_6.schoolTimeZone : null, this$SchoolDetailOverviewComponent.getString_za3lpa$(2521)); var $receiver_0 = this$SchoolDetailOverviewComponent.schoolClazzList_0; if (!($receiver_0 == null || $receiver_0.isEmpty())) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$SchoolDetailOverviewComponent)); if ((tmp$_7 = this$SchoolDetailOverviewComponent.schoolClazzList_0) != null) { var this$SchoolDetailOverviewComponent_0 = this$SchoolDetailOverviewComponent; $receiver.child_up9nw1$(getKClass(SchoolDetailOverviewComponent$SchoolClazzesComponent), SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(tmp$_7, this$SchoolDetailOverviewComponent_0)); }}return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda$lambda_0(this$SchoolDetailOverviewComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda$lambda(this$SchoolDetailOverviewComponent)); return Unit; }; } function SchoolDetailOverviewComponent$render$lambda$lambda(this$SchoolDetailOverviewComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$render$lambda$lambda$lambda_0(this$SchoolDetailOverviewComponent)); return Unit; }; } SchoolDetailOverviewComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_38); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, GridSpacing$spacing6_getInstance(), void 0, void 0, void 0, SchoolDetailOverviewComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; SchoolDetailOverviewComponent.prototype.onDestroyView = function () { var tmp$; UstadDetailComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.schoolClazzList_0 = null; this.entity = null; }; function SchoolDetailOverviewComponent$SchoolClazzesComponent(mProps) { UstadSimpleList.call(this, mProps); } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { closure$onClick(it.nativeEvent); return Unit; }; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda_0(closure$item) { return function ($receiver) { umProfileAvatar($receiver, closure$item.clazzUid, 'group'); return Unit; }; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.clazzName, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda$lambda); return Unit; }; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().contentAfterIconMarginLeft); return Unit; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda$lambda_0(this$SchoolClazzesComponent, closure$item) { return function ($receiver) { StyleManager_getInstance().umItemWithIconAndText($receiver.css); umIcon($receiver, 'people', void 0, IconFontSize$small_getInstance()); var numOfStudentTeachers = format(this$SchoolClazzesComponent.getString_za3lpa$(2565), [closure$item.numTeachers, closure$item.numStudents]); umTypography($receiver, numOfStudentTeachers, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda_0(this$SchoolClazzesComponent, closure$item) { return function ($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda$lambda_0(this$SchoolClazzesComponent, closure$item)); return Unit; }; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda_1(closure$item, this$SchoolClazzesComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda(closure$item)); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda$lambda_0(this$SchoolClazzesComponent, closure$item)); return Unit; }; } function SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda(closure$onClick, closure$item, this$SchoolClazzesComponent) { return function ($receiver) { $receiver.attrs.onClick = SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda(closure$onClick); var $receiver_0 = $receiver.css; set_paddingTop($receiver_0, get_px(4)); set_paddingBottom($receiver_0, get_px(4)); umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda_0(closure$item)); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells10_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda$lambda_1(closure$item, this$SchoolClazzesComponent)); return Unit; }; } SchoolDetailOverviewComponent$SchoolClazzesComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, GridSpacing$spacing5_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolDetailOverviewComponent$SchoolClazzesComponent$renderListItem$lambda(onClick, item, this)); }; SchoolDetailOverviewComponent$SchoolClazzesComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SchoolClazzesComponent', interfaces: [UstadSimpleList] }; function SchoolDetailOverviewComponent$observer$lambda$lambda(closure$it, this$SchoolDetailOverviewComponent) { return function ($receiver) { this$SchoolDetailOverviewComponent.schoolClazzList_0 = closure$it; return Unit; }; } function SchoolDetailOverviewComponent$observer$lambda(this$SchoolDetailOverviewComponent) { return function (it) { setState(this$SchoolDetailOverviewComponent, SchoolDetailOverviewComponent$observer$lambda$lambda(it, this$SchoolDetailOverviewComponent)); return Unit; }; } SchoolDetailOverviewComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SchoolDetailOverviewComponent', interfaces: [SchoolDetailOverviewView, UstadDetailComponent] }; function styledDiv$lambda_39(it) { return new DIV_init(html.emptyMap, it); } function SchoolEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.nameLabel_0 = new FieldLabel(this.getString_za3lpa$(2046)); this.descLabel_0 = new FieldLabel(this.getString_za3lpa$(2047)); this.timeZoneLabel_0 = new FieldLabel(this.getString_za3lpa$(2521)); this.holidayCalenderLabel_0 = new FieldLabel(this.getString_za3lpa$(2341)); this.phoneLabel_0 = new FieldLabel(this.getString_za3lpa$(2067)); this.addressLabel_0 = new FieldLabel(this.getString_za3lpa$(2319)); this.emailLabel_0 = new FieldLabel(this.getString_za3lpa$(2064)); this.scopeList_0 = null; this.scopedGrantListObserver_0 = new ObserverFnWrapper(SchoolEditComponent$scopedGrantListObserver$lambda(this)); this.scopedGrants_xvy7az$_0 = null; this.fieldsEnabled_qnxoga$_0 = false; this.entity_q4cl27$_0 = null; } Object.defineProperty(SchoolEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(SchoolEditComponent.prototype, 'scopedGrants', { configurable: true, get: function () { return this.scopedGrants_xvy7az$_0; }, set: function (value) { var tmp$, tmp$_0; this.scopedGrants_xvy7az$_0 = value; (tmp$ = this.scopedGrants_xvy7az$_0) != null ? (tmp$.removeObserver_jsfaok$(this.scopedGrantListObserver_0), Unit) : null; (tmp$_0 = this.scopedGrants_xvy7az$_0) != null ? (tmp$_0.observe_igxi3b$(this, this.scopedGrantListObserver_0), Unit) : null; } }); function SchoolEditComponent$set_SchoolEditComponent$fieldsEnabled$lambda(closure$value, this$SchoolEditComponent) { return function ($receiver) { this$SchoolEditComponent.fieldsEnabled_qnxoga$_0 = closure$value; return Unit; }; } Object.defineProperty(SchoolEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_qnxoga$_0; }, set: function (value) { setState(this, SchoolEditComponent$set_SchoolEditComponent$fieldsEnabled$lambda(value, this)); } }); function SchoolEditComponent$set_SchoolEditComponent$entity$lambda(closure$value, this$SchoolEditComponent) { return function ($receiver) { this$SchoolEditComponent.entity_q4cl27$_0 = closure$value; return Unit; }; } Object.defineProperty(SchoolEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_q4cl27$_0; }, set: function (value) { if ((value != null ? value.schoolName : null) != null) { this.ustadComponentTitle = value.schoolName; }setState(this, SchoolEditComponent$set_SchoolEditComponent$entity$lambda(value, this)); } }); SchoolEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.setEditTitle_vux9f0$(2526, 2527); this.mPresenter_0 = new SchoolEditPresenter(this, this.arguments, this, this.di, this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function SchoolEditComponent$render$lambda$lambda$lambda($receiver) { umEntityAvatar($receiver, void 0, Util_getInstance().ASSET_ENTRY, void 0, void 0, void 0, void 0, true); return Unit; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$SchoolEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$SchoolEditComponent.entity) != null ? (tmp$.schoolName = closure$it) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda(this$SchoolEditComponent) { return function (it) { setState(this$SchoolEditComponent, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$SchoolEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$SchoolEditComponent.entity) != null ? (tmp$.schoolDesc = closure$it) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda_0(this$SchoolEditComponent) { return function (it) { setState(this$SchoolEditComponent, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(it, this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$it, this$SchoolEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$SchoolEditComponent.entity) != null ? (tmp$.schoolTimeZone = closure$it) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$SchoolEditComponent) { return function (it) { setState(this$SchoolEditComponent, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it, this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$SchoolEditComponent) { return function () { var tmp$; return (tmp$ = this$SchoolEditComponent.mPresenter_0) != null ? (tmp$.handleTimeZoneClicked(), Unit) : null; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$SchoolEditComponent) { return function ($receiver) { $receiver.attrs.onClick = SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(this$SchoolEditComponent); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$SchoolEditComponent.timeZoneLabel_0.text); tmp$_1 = (tmp$_0 = this$SchoolEditComponent.entity) != null ? tmp$_0.schoolTimeZone : null; tmp$_2 = this$SchoolEditComponent.timeZoneLabel_0.error; tmp$_3 = !this$SchoolEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_1, this$SchoolEditComponent.timeZoneLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(this$SchoolEditComponent), void 0, void 0, tmp$_3, tmp$_2, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent) { return function () { var tmp$; return (tmp$ = this$SchoolEditComponent.mPresenter_0) != null ? (tmp$.handleHolidayCalendarClicked(), Unit) : null; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent) { return function ($receiver) { $receiver.attrs.onClick = SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$SchoolEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$SchoolEditComponent.holidayCalenderLabel_0.text); tmp$_2 = (tmp$_1 = (tmp$_0 = this$SchoolEditComponent.entity) != null ? tmp$_0.holidayCalendar : null) != null ? tmp$_1.umCalendarName : null; tmp$_3 = this$SchoolEditComponent.holidayCalenderLabel_0.error; tmp$_4 = !this$SchoolEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, this$SchoolEditComponent.holidayCalenderLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, void 0, tmp$_4, tmp$_3, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$SchoolEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$SchoolEditComponent.entity) != null ? (tmp$.schoolAddress = closure$it) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda_2(this$SchoolEditComponent) { return function (it) { setState(this$SchoolEditComponent, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_3(it, this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(closure$it, this$SchoolEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$SchoolEditComponent.entity) != null ? (tmp$.schoolEmailAddress = closure$it) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$SchoolEditComponent) { return function (it) { setState(this$SchoolEditComponent, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_2(it, this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$SchoolEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$SchoolEditComponent.emailLabel_0.text); tmp$_0 = this$SchoolEditComponent.emailLabel_0.errorText; tmp$_2 = (tmp$_1 = this$SchoolEditComponent.entity) != null ? tmp$_1.schoolEmailAddress : null; tmp$_3 = this$SchoolEditComponent.emailLabel_0.error; tmp$_4 = !this$SchoolEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_2(this$SchoolEditComponent), InputType$email, void 0, tmp$_4, tmp$_3); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(closure$it, this$SchoolEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$SchoolEditComponent.entity) != null ? (tmp$.schoolPhoneNumber = closure$it) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$SchoolEditComponent) { return function (it) { setState(this$SchoolEditComponent, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda_3(it, this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$SchoolEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$SchoolEditComponent.phoneLabel_0.text); tmp$_0 = this$SchoolEditComponent.phoneLabel_0.errorText; tmp$_2 = (tmp$_1 = this$SchoolEditComponent.entity) != null ? tmp$_1.schoolPhoneNumber : null; tmp$_3 = this$SchoolEditComponent.phoneLabel_0.error; tmp$_4 = !this$SchoolEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_3(this$SchoolEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda_3(this$SchoolEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_4(this$SchoolEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda_5(this$SchoolEditComponent)); return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$SchoolEditComponent) { return function () { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$SchoolEditComponent.mPresenter_0) != null ? tmp$.scopedGrantOneToManyHelper : null) != null ? (tmp$_0.onClickNew(), Unit) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$SchoolEditComponent) { return function (scope) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$SchoolEditComponent.mPresenter_0) != null ? tmp$.scopedGrantOneToManyHelper : null) != null ? (tmp$_0.onClickEdit_11rb$(scope), Unit) : null; return Unit; }; } function SchoolEditComponent$render$lambda$lambda$lambda_0(this$SchoolEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16; renderListSectionTitle($receiver, this$SchoolEditComponent.getString_za3lpa$(2318)); tmp$ = toString(this$SchoolEditComponent.nameLabel_0.text); tmp$_0 = this$SchoolEditComponent.nameLabel_0.errorText; tmp$_2 = (tmp$_1 = this$SchoolEditComponent.entity) != null ? tmp$_1.schoolName : null; tmp$_3 = this$SchoolEditComponent.nameLabel_0.error; tmp$_4 = !this$SchoolEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), SchoolEditComponent$render$lambda$lambda$lambda$lambda(this$SchoolEditComponent), void 0, void 0, tmp$_4, tmp$_3); tmp$_5 = toString(this$SchoolEditComponent.descLabel_0.text); tmp$_7 = (tmp$_6 = this$SchoolEditComponent.entity) != null ? tmp$_6.schoolDesc : null; tmp$_8 = this$SchoolEditComponent.descLabel_0.error; tmp$_9 = !this$SchoolEditComponent.fieldsEnabled; umTextField($receiver, tmp$_5, tmp$_7, this$SchoolEditComponent.descLabel_0.errorText, void 0, FormControlVariant$outlined_getInstance(), SchoolEditComponent$render$lambda$lambda$lambda$lambda_0(this$SchoolEditComponent), void 0, void 0, tmp$_9, tmp$_8); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda_1(this$SchoolEditComponent)); tmp$_10 = toString(this$SchoolEditComponent.addressLabel_0.text); tmp$_11 = this$SchoolEditComponent.addressLabel_0.errorText; tmp$_13 = (tmp$_12 = this$SchoolEditComponent.entity) != null ? tmp$_12.schoolAddress : null; tmp$_14 = this$SchoolEditComponent.nameLabel_0.error; tmp$_15 = !this$SchoolEditComponent.fieldsEnabled; umTextField($receiver, tmp$_10, tmp$_13, tmp$_11, void 0, FormControlVariant$outlined_getInstance(), SchoolEditComponent$render$lambda$lambda$lambda$lambda_2(this$SchoolEditComponent), void 0, void 0, tmp$_15, tmp$_14); umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda$lambda_3(this$SchoolEditComponent)); umSpacer($receiver); renderListSectionTitle($receiver, this$SchoolEditComponent.getString_za3lpa$(2469)); if ((tmp$_16 = this$SchoolEditComponent.mPresenter_0) != null) { var this$SchoolEditComponent_0 = this$SchoolEditComponent; var tmp$_17; if ((tmp$_17 = this$SchoolEditComponent_0.scopeList_0) != null) { var newItem = new CreateNewItem(true, this$SchoolEditComponent_0.getString_za3lpa$(2737), SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_4(this$SchoolEditComponent_0)); var tmp$_18 = tmp$_16.scopedGrantOneToManyHelper; var tmp$_19; var set = HashSet_init(); var list = ArrayList_init_0(); tmp$_19 = tmp$_17.iterator(); while (tmp$_19.hasNext()) { var e = tmp$_19.next(); var key = e.name; if (set.add_11rb$(key)) list.add_11rb$(e); } renderScopedGrants($receiver, tmp$_18, list, newItem, SchoolEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_5(this$SchoolEditComponent_0)); }}return Unit; }; } function SchoolEditComponent$render$lambda$lambda(this$SchoolEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda$lambda_0(this$SchoolEditComponent)); return Unit; }; } SchoolEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_39); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; SchoolEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function SchoolEditComponent$scopedGrantListObserver$lambda$lambda(closure$it, this$SchoolEditComponent) { return function ($receiver) { this$SchoolEditComponent.scopeList_0 = closure$it; return Unit; }; } function SchoolEditComponent$scopedGrantListObserver$lambda(this$SchoolEditComponent) { return function (it) { setState(this$SchoolEditComponent, SchoolEditComponent$scopedGrantListObserver$lambda$lambda(it, this$SchoolEditComponent)); return Unit; }; } SchoolEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SchoolEditComponent', interfaces: [SchoolEditView, UstadEditComponent] }; function styledDiv$lambda_40(it) { return new DIV_init(html.emptyMap, it); } function SchoolListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; this.newSchoolListOptionVisible_ja98u5$_0 = false; } Object.defineProperty(SchoolListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.schoolDao : null; } }); Object.defineProperty(SchoolListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function SchoolListComponent$set_SchoolListComponent$newSchoolListOptionVisible$lambda(closure$value, this$SchoolListComponent) { return function ($receiver) { this$SchoolListComponent.newSchoolListOptionVisible_ja98u5$_0 = closure$value; return Unit; }; } Object.defineProperty(SchoolListComponent.prototype, 'newSchoolListOptionVisible', { configurable: true, get: function () { return this.newSchoolListOptionVisible_ja98u5$_0; }, set: function (value) { setState(this, SchoolListComponent$set_SchoolListComponent$newSchoolListOptionVisible$lambda(value, this)); } }); SchoolListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); this.linearLayout = false; this.ustadComponentTitle = this.getString_za3lpa$(2889); (tmp$ = this.fabManager) != null ? (tmp$.text = this.getString_za3lpa$(2525)) : null; this.mPresenter_0 = new SchoolListPresenter(this, this.arguments, this, this.di, this); this.addNewEntryText = this.getString_za3lpa$(2526); this.showCreateNewItem = true; if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function SchoolListComponent$renderListItem$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); StyleManager_getInstance().maxLines_th7wno$($receiver_0, 1); return Unit; } function SchoolListComponent$renderListItem$lambda$lambda_0(closure$item) { return function ($receiver) { var closure$item_0 = closure$item; var $receiver_0 = $receiver.css; var tmp$; set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(closure$item_0.schoolDesc != null, true)); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); if (((tmp$ = closure$item_0.schoolDesc) != null ? tmp$.length > 0 : null) === true) { StyleManager_getInstance().maxLines_th7wno$($receiver_0, 1); }return Unit; }; } function SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().gridListSecondaryItemIcons($receiver.css); return Unit; } function SchoolListComponent$renderListItem$lambda$lambda$lambda($receiver) { umIcon($receiver, 'place', IconColor$inherit_getInstance(), void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda); return Unit; } function SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().gridListSecondaryItemDesc); return Unit; } function SchoolListComponent$renderListItem$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.schoolAddress, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda_0); return Unit; }; } function SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().gridListSecondaryItemIcons($receiver.css); return Unit; } function SchoolListComponent$renderListItem$lambda$lambda$lambda_1($receiver) { umIcon($receiver, 'people', IconColor$inherit_getInstance(), void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda_1); return Unit; } function SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda_2($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().gridListSecondaryItemDesc); return Unit; } function SchoolListComponent$renderListItem$lambda$lambda$lambda_2(this$SchoolListComponent, closure$item) { return function ($receiver) { var numOfStudentTeachers = format(this$SchoolListComponent.getString_za3lpa$(2565), [closure$item.numTeachers, closure$item.numStudents]); umTypography($receiver, numOfStudentTeachers, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda$lambda_2); return Unit; }; } function SchoolListComponent$renderListItem$lambda$lambda_1(closure$item, this$SchoolListComponent) { return function ($receiver) { var tmp$; if (((tmp$ = closure$item.schoolAddress) != null ? tmp$.length > 0 : null) === true) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda); umItem($receiver, GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda_0(closure$item)); }umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda_1); umItem($receiver, GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda$lambda_2(this$SchoolListComponent, closure$item)); return Unit; }; } SchoolListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_40); set_position($receiver_0.css, Position.relative); umEntityAvatar($receiver_0, void 0, 'assets/entry_placeholder.jpeg', void 0, void 0, void 0, void 0, true, StyleManager_getInstance().name + '-clazzItemClass'); $receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_40); var tmp$; padding($receiver_0_0.css, get_spacingUnits(2)); umTypography($receiver_0_0, item.schoolName, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda); umTypography($receiver_0_0, (tmp$ = item.schoolDesc) != null ? wordBreakLimit(tmp$) : null, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda_0(item)); umGridContainer($receiver_0_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SchoolListComponent$renderListItem$lambda$lambda_1(item, this)); $receiver.child_30b5ua$($receiver_0_0.create()); }; function SchoolListComponent$onFabClicked$lambda(this$SchoolListComponent) { return function ($receiver) { this$SchoolListComponent.showAddEntryOptions = true; return Unit; }; } SchoolListComponent.prototype.onFabClicked = function () { setState(this, SchoolListComponent$onFabClicked$lambda(this)); }; function SchoolListComponent$renderAddContentOptionsDialog$lambda(this$SchoolListComponent) { return function () { var tmp$; (tmp$ = this$SchoolListComponent.mPresenter_0) != null ? (tmp$.handleClickCreateNewFab(), Unit) : null; return Unit; }; } function SchoolListComponent$renderAddContentOptionsDialog$lambda_0(this$SchoolListComponent) { return function () { var tmp$; (tmp$ = this$SchoolListComponent.mPresenter_0) != null ? (tmp$.handleClickJoinSchool(), Unit) : null; return Unit; }; } function SchoolListComponent$renderAddContentOptionsDialog$lambda$lambda(this$SchoolListComponent) { return function ($receiver) { this$SchoolListComponent.showAddEntryOptions = false; return Unit; }; } function SchoolListComponent$renderAddContentOptionsDialog$lambda_1(this$SchoolListComponent) { return function () { setState(this$SchoolListComponent, SchoolListComponent$renderAddContentOptionsDialog$lambda$lambda(this$SchoolListComponent)); return Unit; }; } SchoolListComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { var tmp$; if (this.showAddEntryOptions) { if (this.newSchoolListOptionVisible) { tmp$ = listOf_0(new UmDialogOptionItem('add', 2526, void 0, SchoolListComponent$renderAddContentOptionsDialog$lambda(this))); } else { tmp$ = emptyList(); } var optionList = plus(tmp$, listOf_0(new UmDialogOptionItem('login', 2528, void 0, SchoolListComponent$renderAddContentOptionsDialog$lambda_0(this)))); renderDialogOptions($receiver, this.systemImpl, optionList, Kotlin.Long.fromNumber((new Date()).getTime()), void 0, SchoolListComponent$renderAddContentOptionsDialog$lambda_1(this)); }}; SchoolListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; SchoolListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; SchoolListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SchoolListComponent', interfaces: [SchoolListView, UstadListComponent] }; function SchoolMemberListComponent(mProps) { UstadListComponent.call(this, mProps); this.mPresenter_0 = null; this.addPersonKeyName_3qoa2o$_0 = this.addPersonKeyName_3qoa2o$_0; this.roleStudent = false; this.addNewStringId_0 = 0; this.filterBySchoolUid_0 = L0; this.pendingStudents_0 = emptyList(); this.observer_0 = new ObserverFnWrapper(SchoolMemberListComponent$observer$lambda(this)); this.pendingStudentList_v3o3ea$_0 = null; } Object.defineProperty(SchoolMemberListComponent.prototype, 'addPersonKeyName_0', { configurable: true, get: function () { if (this.addPersonKeyName_3qoa2o$_0 == null) return throwUPAE('addPersonKeyName'); return this.addPersonKeyName_3qoa2o$_0; }, set: function (addPersonKeyName) { this.addPersonKeyName_3qoa2o$_0 = addPersonKeyName; } }); Object.defineProperty(SchoolMemberListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.schoolMemberDao : null; } }); Object.defineProperty(SchoolMemberListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); SchoolMemberListComponent.prototype.addMember = function () { var tmp$, tmp$_0; if (equals(this.addPersonKeyName_0, 'Person_' + (1004).toString())) { tmp$ = mapOf(to(PersonListView.Companion.ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL, this.filterBySchoolUid_0.toString())); } else { tmp$ = mapOf_0([to(PersonListView.Companion.ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL, this.filterBySchoolUid_0.toString()), to(UstadView.Companion.ARG_CODE_TABLE, (164).toString())]); } var args = tmp$; (tmp$_0 = this.mPresenter_0) != null ? (tmp$_0.handleClickAddNewItem_a4m1mt$(args, this.addPersonKeyName_0), Unit) : null; }; Object.defineProperty(SchoolMemberListComponent.prototype, 'pendingStudentList', { configurable: true, get: function () { return this.pendingStudentList_v3o3ea$_0; }, set: function (value) { this.pendingStudentList_v3o3ea$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.observer_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.observer_0), Unit) : null; } }); function SchoolMemberListComponent$onCreateView$lambda(this$SchoolMemberListComponent, closure$filterByRole) { return function (it) { var tmp$, tmp$_0; tmp$ = firstOrNull(it); if (tmp$ == null) { return; }var memberAdded = tmp$; (tmp$_0 = this$SchoolMemberListComponent.mPresenter_0) != null ? (tmp$_0.handleEnrolMember_foc3l4$(this$SchoolMemberListComponent.filterBySchoolUid_0, memberAdded.personUid, closure$filterByRole), Unit) : null; return Unit; }; } SchoolMemberListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8; UstadListComponent.prototype.onCreateView.call(this); var filterByRole = (tmp$_0 = (tmp$ = this.arguments.get_11rb$(UstadView.Companion.ARG_FILTER_BY_ROLE)) != null ? toInt(tmp$) : null) != null ? tmp$_0 : 0; this.addPersonKeyName_0 = 'Person_' + filterByRole; this.filterBySchoolUid_0 = (tmp$_2 = (tmp$_1 = this.arguments.get_11rb$(UstadView.Companion.ARG_FILTER_BY_SCHOOLUID)) != null ? toLong(tmp$_1) : null) != null ? tmp$_2 : L0; this.roleStudent = filterByRole !== 1004; this.showEmptyState = true; if (filterByRole === 1004) { tmp$_3 = 2400; } else { tmp$_3 = 2568; } this.addNewStringId_0 = tmp$_3; this.addNewEntryText = this.getString_za3lpa$(2563) + ' ' + this.addNewStringId_0; (tmp$_4 = this.fabManager) != null ? (tmp$_4.visible = true) : null; (tmp$_5 = this.fabManager) != null ? (tmp$_5.icon = 'add') : null; (tmp$_6 = this.fabManager) != null ? (tmp$_6.text = this.getString_za3lpa$(this.addNewStringId_0)) : null; (tmp$_7 = this.savedStateHandle) != null ? (observeResult(tmp$_7, this, Person.Companion.serializer(), this.addPersonKeyName_0, SchoolMemberListComponent$onCreateView$lambda(this, filterByRole)), Unit) : null; this.mPresenter_0 = new SchoolMemberListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_8 = this.mPresenter_0) != null) { tmp$_8.onCreate(emptyMap()); }}; SchoolMemberListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { var tmp$, tmp$_0, tmp$_1, tmp$_2; renderListItemWithPersonAttendanceAndPendingRequests($receiver, (tmp$_0 = (tmp$ = item.person) != null ? tmp$.personUid : null) != null ? tmp$_0 : L0, (tmp$_2 = (tmp$_1 = item.person) != null ? tmp$_1.fullName() : null) != null ? tmp$_2 : '', void 0, void 0, void 0, this.roleStudent); }; SchoolMemberListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(entry), Unit) : null; }; SchoolMemberListComponent.prototype.handleClickCreateNewEntry = function () { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.handleClickAddNewItem_a4m1mt$(this.arguments, this.addPersonKeyName_0), Unit) : null; }; function SchoolMemberListComponent$renderListFooterView$lambda$lambda(this$SchoolMemberListComponent) { return function (student) { var tmp$; (tmp$ = this$SchoolMemberListComponent.mPresenter_0) != null ? (tmp$.handleClickEntry_11rc$(student), Unit) : null; return Unit; }; } function SchoolMemberListComponent$renderListFooterView$lambda(this$SchoolMemberListComponent) { return function ($receiver) { var tmp$; $receiver.attrs.entries = this$SchoolMemberListComponent.pendingStudents_0; $receiver.attrs.onEntryClicked = SchoolMemberListComponent$renderListFooterView$lambda$lambda(this$SchoolMemberListComponent); if ((tmp$ = this$SchoolMemberListComponent.mPresenter_0) != null) { $receiver.attrs.presenter = tmp$; }$receiver.attrs.createNewItem = new CreateNewItem(); return Unit; }; } SchoolMemberListComponent.prototype.renderListFooterView_ss14n$ = function ($receiver) { if (this.roleStudent) { if (!this.pendingStudents_0.isEmpty()) { renderListSectionTitle($receiver, this.getString_za3lpa$(2652)); }$receiver.child_up9nw1$(getKClass(SchoolMemberListComponent$MembersListComponent), SchoolMemberListComponent$renderListFooterView$lambda(this)); }}; SchoolMemberListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function SchoolMemberListComponent$MembersListComponent(mProps) { UstadSimpleList.call(this, mProps); } function SchoolMemberListComponent$MembersListComponent$renderListItem$lambda(closure$presenter, closure$item) { return function () { closure$presenter.handleClickPendingRequest_k3brcd$(closure$item, true); return Unit; }; } function SchoolMemberListComponent$MembersListComponent$renderListItem$lambda_0(closure$presenter, closure$item) { return function () { closure$presenter.handleClickPendingRequest_k3brcd$(closure$item, false); return Unit; }; } SchoolMemberListComponent$MembersListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; var presenter = Kotlin.isType(tmp$ = this.props.presenter, SchoolMemberListPresenter) ? tmp$ : throwCCE(); renderListItemWithPersonAttendanceAndPendingRequests($receiver, (tmp$_1 = (tmp$_0 = item.person) != null ? tmp$_0.personUid : null) != null ? tmp$_1 : L0, (tmp$_3 = (tmp$_2 = item.person) != null ? tmp$_2.fullName() : null) != null ? tmp$_3 : '', true, void 0, void 0, void 0, SchoolMemberListComponent$MembersListComponent$renderListItem$lambda_0(presenter, item), SchoolMemberListComponent$MembersListComponent$renderListItem$lambda(presenter, item)); }; SchoolMemberListComponent$MembersListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'MembersListComponent', interfaces: [UstadSimpleList] }; function SchoolMemberListComponent$observer$lambda$lambda(closure$it, this$SchoolMemberListComponent) { return function ($receiver) { this$SchoolMemberListComponent.pendingStudents_0 = closure$it; return Unit; }; } function SchoolMemberListComponent$observer$lambda(this$SchoolMemberListComponent) { return function (it) { if (it == null || it.isEmpty()) return; setState(this$SchoolMemberListComponent, SchoolMemberListComponent$observer$lambda$lambda(it, this$SchoolMemberListComponent)); return Unit; }; } SchoolMemberListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SchoolMemberListComponent', interfaces: [SchoolMemberListView, UstadListComponent] }; function ScopeGrantListComponent(mProps) { UstadSimpleList.call(this, mProps); } function ScopeGrantListComponent$renderListItem$lambda(this$ScopeGrantListComponent, closure$item, closure$onClick) { return function (delete_0, event) { var tmp$; if (delete_0) { (tmp$ = this$ScopeGrantListComponent.props.listener) != null ? (tmp$.onClickDelete_11rb$(closure$item), Unit) : null; } else { closure$onClick(event); } return Unit; }; } function ScopeGrantListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { closure$onClick(it.nativeEvent); return Unit; }; } function ScopeGrantListComponent$renderListItem$lambda_0(closure$onClick, closure$item, closure$permissionList) { return function ($receiver) { $receiver.attrs.onClick = ScopeGrantListComponent$renderListItem$lambda$lambda(closure$onClick); renderListItemWithLeftIconTitleAndDescription($receiver, 'admin_panel_settings', closure$item.name, closure$permissionList); return Unit; }; } ScopeGrantListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { var tmp$, tmp$_0, tmp$_1, tmp$_2; var showDelete = ((tmp$_0 = (tmp$ = item.scopedGrant) != null ? tmp$.sgFlags : null) != null ? hasFlag(tmp$_0, 1) : null) === false; var permissionList = permissionListText($receiver, this.systemImpl, 6, (tmp$_2 = (tmp$_1 = item.scopedGrant) != null ? tmp$_1.sgPermissions : null) != null ? tmp$_2 : L0); if (showDelete) { renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight($receiver, 'admin_panel_settings', 'delete', item.name, permissionList, void 0, ScopeGrantListComponent$renderListItem$lambda(this, item, onClick)); } else { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ScopeGrantListComponent$renderListItem$lambda_0(onClick, item, permissionList)); } }; ScopeGrantListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ScopeGrantListComponent', interfaces: [UstadSimpleList] }; function permissionListText$lambda(closure$systemImpl, this$permissionListText) { return function (it) { return closure$systemImpl.getString(it.messageId, this$permissionListText); }; } function permissionListText($receiver, systemImpl, tableId, bitmaskValue) { var tmp$, tmp$_0; var flagMessageIds = ScopedGrantEditPresenter.Companion.PERMISSION_LIST_MAP.get_11rb$(tableId); var tmp$_1; if (flagMessageIds != null) { var destination = ArrayList_init(collectionSizeOrDefault(flagMessageIds, 10)); var tmp$_2; tmp$_2 = flagMessageIds.iterator(); while (tmp$_2.hasNext()) { var item = tmp$_2.next(); destination.add_11rb$(item.toBitmaskFlag_s8cxhz$(bitmaskValue)); } tmp$_1 = destination; } else tmp$_1 = null; var tmp$_3; if ((tmp$ = tmp$_1) != null) { var destination_0 = ArrayList_init_0(); var tmp$_4; tmp$_4 = tmp$.iterator(); while (tmp$_4.hasNext()) { var element = tmp$_4.next(); if (element.enabled) destination_0.add_11rb$(element); } tmp$_3 = destination_0; } else tmp$_3 = null; return (tmp$_0 = tmp$_3) != null ? joinToString_0(tmp$_0, void 0, void 0, void 0, void 0, void 0, permissionListText$lambda(systemImpl, $receiver)) : null; } function renderScopedGrants$lambda(closure$scopes, closure$onEntryClicked, closure$createNewItem, closure$listener) { return function ($receiver) { $receiver.attrs.entries = closure$scopes; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.listener = closure$listener; return Unit; }; } function renderScopedGrants($receiver, listener, scopes, createNewItem, onEntryClicked) { if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(ScopeGrantListComponent), renderScopedGrants$lambda(scopes, onEntryClicked, createNewItem, listener)); } function styledDiv$lambda_41(it) { return new DIV_init(html.emptyMap, it); } function ScopedGrantEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.scopeList_0 = null; this.scopedGrantListObserver_0 = new ObserverFnWrapper(ScopedGrantEditComponent$scopedGrantListObserver$lambda(this)); this.bitmaskList_1ctben$_0 = null; this.fieldsEnabled_v0iuwg$_0 = false; this.entity_2vi1cp$_0 = null; } Object.defineProperty(ScopedGrantEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(ScopedGrantEditComponent.prototype, 'bitmaskList', { configurable: true, get: function () { return this.bitmaskList_1ctben$_0; }, set: function (value) { var tmp$, tmp$_0; (tmp$ = this.bitmaskList_1ctben$_0) != null ? (tmp$.removeObserver_jsfaok$(this.scopedGrantListObserver_0), Unit) : null; this.bitmaskList_1ctben$_0 = value; (tmp$_0 = this.bitmaskList_1ctben$_0) != null ? (tmp$_0.observe_igxi3b$(this, this.scopedGrantListObserver_0), Unit) : null; } }); function ScopedGrantEditComponent$set_ScopedGrantEditComponent$fieldsEnabled$lambda(closure$value, this$ScopedGrantEditComponent) { return function ($receiver) { this$ScopedGrantEditComponent.fieldsEnabled_v0iuwg$_0 = closure$value; return Unit; }; } Object.defineProperty(ScopedGrantEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_v0iuwg$_0; }, set: function (value) { setState(this, ScopedGrantEditComponent$set_ScopedGrantEditComponent$fieldsEnabled$lambda(value, this)); } }); function ScopedGrantEditComponent$set_ScopedGrantEditComponent$entity$lambda(closure$value, this$ScopedGrantEditComponent) { return function ($receiver) { this$ScopedGrantEditComponent.entity_2vi1cp$_0 = closure$value; return Unit; }; } Object.defineProperty(ScopedGrantEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_2vi1cp$_0; }, set: function (value) { setState(this, ScopedGrantEditComponent$set_ScopedGrantEditComponent$entity$lambda(value, this)); } }); ScopedGrantEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2297); this.mPresenter_0 = new ScopedGrantEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function ScopedGrantEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { return Unit; } function ScopedGrantEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ScopedGrantEditComponent) { return function (it) { var tmp$, tmp$_0, tmp$_1; Kotlin.isType(tmp$ = it, BitmaskFlag) ? tmp$ : throwCCE(); var tmp$_2; if ((tmp$_0 = this$ScopedGrantEditComponent.scopeList_0) != null) { var first$result; first$break: do { var tmp$_3; tmp$_3 = tmp$_0.iterator(); while (tmp$_3.hasNext()) { var element = tmp$_3.next(); if (element.messageId === it.messageId) { first$result = element; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); tmp$_2 = first$result; } else tmp$_2 = null; var scope = tmp$_2; scope != null ? (scope.enabled = !((tmp$_1 = scope != null ? scope.enabled : null) != null ? tmp$_1 : false)) : null; setState(this$ScopedGrantEditComponent, ScopedGrantEditComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function ScopedGrantEditComponent$render$lambda$lambda$lambda$lambda(closure$scopes, this$ScopedGrantEditComponent) { return function ($receiver) { $receiver.attrs.entries = closure$scopes; $receiver.attrs.mainList = true; $receiver.attrs.onEntryClicked = ScopedGrantEditComponent$render$lambda$lambda$lambda$lambda$lambda(this$ScopedGrantEditComponent); return Unit; }; } function ScopedGrantEditComponent$render$lambda$lambda(this$ScopedGrantEditComponent) { return function ($receiver) { var tmp$; if ((tmp$ = this$ScopedGrantEditComponent.scopeList_0) != null) { var this$ScopedGrantEditComponent_0 = this$ScopedGrantEditComponent; $receiver.child_up9nw1$(getKClass(ScopedGrantEditComponent$ScopedGrantComponent), ScopedGrantEditComponent$render$lambda$lambda$lambda$lambda(tmp$, this$ScopedGrantEditComponent_0)); }return Unit; }; } ScopedGrantEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_41); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, ScopedGrantEditComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; ScopedGrantEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; function ScopedGrantEditComponent$ScopedGrantComponent(mProps) { UstadSimpleList.call(this, mProps); } ScopedGrantEditComponent$ScopedGrantComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { var tmp$, tmp$_0; renderListItemWithTitleAndSwitch($receiver, this.getString_za3lpa$(typeof (tmp$ = item.messageId) === 'number' ? tmp$ : throwCCE()), typeof (tmp$_0 = item.enabled) === 'boolean' ? tmp$_0 : throwCCE(), onClick); }; ScopedGrantEditComponent$ScopedGrantComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ScopedGrantComponent', interfaces: [UstadSimpleList] }; function ScopedGrantEditComponent$scopedGrantListObserver$lambda$lambda(closure$it, this$ScopedGrantEditComponent) { return function ($receiver) { this$ScopedGrantEditComponent.scopeList_0 = closure$it; return Unit; }; } function ScopedGrantEditComponent$scopedGrantListObserver$lambda(this$ScopedGrantEditComponent) { return function (it) { setState(this$ScopedGrantEditComponent, ScopedGrantEditComponent$scopedGrantListObserver$lambda$lambda(it, this$ScopedGrantEditComponent)); return Unit; }; } ScopedGrantEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ScopedGrantEditComponent', interfaces: [ScopedGrantEditView, UstadEditComponent] }; function styledHeader$lambda(it) { return new HEADER_init(html.emptyMap, it); } function styledInput$lambda(closure$type, closure$formEncType, closure$formMethod, closure$name) { return function (it) { return new INPUT_init(attributesMapOf_0(['type', closure$type != null ? enumEncode(closure$type) : null, 'formenctype', closure$formEncType != null ? enumEncode(closure$formEncType) : null, 'formmethod', closure$formMethod != null ? enumEncode(closure$formMethod) : null, 'name', closure$name]), it); }; } function styledDiv$lambda_42(it) { return new DIV_init(html.emptyMap, it); } function SelectExtractFileComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter_0 = null; this.fileDropZoneManager_0 = null; this.dropZoneText_0 = this.getString_za3lpa$(2840); this.acceptedMimeTypes_iu6tfp$_0 = listOf_0('*/'); this.noFileSelectedError_vksglp$_0 = null; this.unSupportedFileError_tnxn3a$_0 = null; this.fieldsEnabled_6tcdad$_0 = true; this.entity_8y025u$_0 = null; this.selectedFiles_aqldd3$_0 = emptyList(); } function SelectExtractFileComponent$set_SelectExtractFileComponent$acceptedMimeTypes$lambda(closure$value, this$SelectExtractFileComponent) { return function ($receiver) { this$SelectExtractFileComponent.acceptedMimeTypes_iu6tfp$_0 = closure$value; return Unit; }; } Object.defineProperty(SelectExtractFileComponent.prototype, 'acceptedMimeTypes', { configurable: true, get: function () { return this.acceptedMimeTypes_iu6tfp$_0; }, set: function (value) { setState(this, SelectExtractFileComponent$set_SelectExtractFileComponent$acceptedMimeTypes$lambda(value, this)); } }); Object.defineProperty(SelectExtractFileComponent.prototype, 'noFileSelectedError', { configurable: true, get: function () { return this.noFileSelectedError_vksglp$_0; }, set: function (value) { } }); Object.defineProperty(SelectExtractFileComponent.prototype, 'unSupportedFileError', { configurable: true, get: function () { return this.unSupportedFileError_tnxn3a$_0; }, set: function (value) { } }); Object.defineProperty(SelectExtractFileComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_6tcdad$_0; }, set: function (value) { } }); Object.defineProperty(SelectExtractFileComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_8y025u$_0; }, set: function (value) { } }); Object.defineProperty(SelectExtractFileComponent.prototype, 'selectedFiles_0', { configurable: true, get: function () { return this.selectedFiles_aqldd3$_0; }, set: function (value) { this.selectedFiles_aqldd3$_0 = value; this.noFileSelectedError = null; } }); function SelectExtractFileComponent$onCreateView$lambda$lambda(closure$fileObjectUrl) { return function () { return 'SelectExtractFileComponent: objectUrl = ' + toString(closure$fileObjectUrl); }; } function SelectExtractFileComponent$onCreateView$lambda(this$SelectExtractFileComponent) { return function () { var tmp$, tmp$_0, tmp$_1, tmp$_2; var fileObjectUrl = (tmp$ = firstOrNull(this$SelectExtractFileComponent.selectedFiles_0)) != null ? URL.createObjectURL(tmp$) : null; napier_0.Napier.d_9h2hdn$(void 0, void 0, SelectExtractFileComponent$onCreateView$lambda$lambda(fileObjectUrl)); tmp$_2 = this$SelectExtractFileComponent.mPresenter_0; tmp$_1 = (tmp$_0 = firstOrNull(this$SelectExtractFileComponent.selectedFiles_0)) != null ? tmp$_0.name : null; tmp$_2 != null ? (tmp$_2.handleUriSelected_rkkr90$(fileObjectUrl, tmp$_1), Unit) : null; return Unit; }; } function SelectExtractFileComponent$onCreateView$ObjectLiteral(this$SelectExtractFileComponent) { this.this$SelectExtractFileComponent = this$SelectExtractFileComponent; } function SelectExtractFileComponent$onCreateView$ObjectLiteral$onValidFileAttached$lambda(closure$file, this$SelectExtractFileComponent) { return function ($receiver) { this$SelectExtractFileComponent.selectedFiles_0 = listOf_0(closure$file); this$SelectExtractFileComponent.dropZoneText_0 = format(this$SelectExtractFileComponent.getString_za3lpa$(2839), [closure$file.name, util.UMFileUtil.formatFileSize_s8cxhz$(toLong(closure$file.size.toString()))]); return Unit; }; } SelectExtractFileComponent$onCreateView$ObjectLiteral.prototype.onValidFileAttached_6d2hh8$ = function (file) { setState(this.this$SelectExtractFileComponent, SelectExtractFileComponent$onCreateView$ObjectLiteral$onValidFileAttached$lambda(file, this.this$SelectExtractFileComponent)); }; function SelectExtractFileComponent$onCreateView$ObjectLiteral$onInvalidFileAttached$lambda(this$SelectExtractFileComponent) { return function ($receiver) { this$SelectExtractFileComponent.dropZoneText_0 = this$SelectExtractFileComponent.getString_za3lpa$(2840); this$SelectExtractFileComponent.unSupportedFileError = this$SelectExtractFileComponent.getString_za3lpa$(2276); return Unit; }; } SelectExtractFileComponent$onCreateView$ObjectLiteral.prototype.onInvalidFileAttached = function () { setState(this.this$SelectExtractFileComponent, SelectExtractFileComponent$onCreateView$ObjectLiteral$onInvalidFileAttached$lambda(this.this$SelectExtractFileComponent)); }; SelectExtractFileComponent$onCreateView$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [OnFileAttached] }; SelectExtractFileComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; UstadBaseComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new SelectExtractFilePresenter(this, this.arguments, this, this.di); (tmp$ = this.fabManager) != null ? (tmp$.icon = 'upload') : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.text = this.getString_za3lpa$(2838)) : null; (tmp$_1 = this.fabManager) != null ? (tmp$_1.visible = true) : null; (tmp$_2 = this.fabManager) != null ? (tmp$_2.onClickListener = SelectExtractFileComponent$onCreateView$lambda(this)) : null; if ((tmp$_3 = this.mPresenter_0) != null) { tmp$_3.onCreate(emptyMap()); }this.fileDropZoneManager_0 = new FileDropZoneManager(void 0, listOf_0('*/*')); (tmp$_4 = this.fileDropZoneManager_0) != null ? (tmp$_4.onFileAttached = new SelectExtractFileComponent$onCreateView$ObjectLiteral(this)) : null; }; function SelectExtractFileComponent$render$lambda$lambda$lambda(this$SelectExtractFileComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().centerContainer); set_minHeight($receiver_0, get_vh(92)); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_42); var this$SelectExtractFileComponent_0 = this$SelectExtractFileComponent; StyleManager_getInstance().dropZoneArea($receiver_0_0.css); set_id($receiver_0_0.attrs, 'um-dropzone'); umIcon($receiver_0_0, 'cloud_upload', void 0, void 0, StyleManager_getInstance().name + '-dropZoneIcon'); var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledHeader$lambda); StyleManager_getInstance().dropZoneTxt($receiver_0_1.css); $receiver_0_1.unaryPlus_pdl1vz$(this$SelectExtractFileComponent_0.dropZoneText_0); $receiver_0_0.child_30b5ua$($receiver_0_1.create()); var $receiver_0_2 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledInput$lambda(null, null, null, null)); set_visibility($receiver_0_2.css, Visibility.hidden); $receiver_0_2.attrs.type = InputType.file; $receiver_0_2.attrs.accept = joinToString_0(this$SelectExtractFileComponent_0.acceptedMimeTypes, ','); $receiver_0_0.child_30b5ua$($receiver_0_2.create()); $receiver.child_30b5ua$($receiver_0_0.create()); return Unit; }; } function SelectExtractFileComponent$render$lambda$lambda(this$SelectExtractFileComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SelectExtractFileComponent$render$lambda$lambda$lambda(this$SelectExtractFileComponent)); return Unit; }; } function SelectExtractFileComponent$render$lambda(this$SelectExtractFileComponent) { return function ($receiver, f) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SelectExtractFileComponent$render$lambda$lambda(this$SelectExtractFileComponent)); return Unit; }; } SelectExtractFileComponent.prototype.render_ss14n$ = function ($receiver) { $receiver.invoke_c0v1gl$(themeContext.Consumer, SelectExtractFileComponent$render$lambda(this)); }; SelectExtractFileComponent.prototype.onDestroyView = function () { UstadBaseComponent.prototype.onDestroyView.call(this); this.entity = null; }; SelectExtractFileComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SelectExtractFileComponent', interfaces: [SelectExtractFileView, UstadBaseComponent] }; function styledHeader$lambda_0(it) { return new HEADER_init(html.emptyMap, it); } function styledInput$lambda_0(closure$type, closure$formEncType, closure$formMethod, closure$name) { return function (it) { return new INPUT_init(attributesMapOf_0(['type', closure$type != null ? enumEncode(closure$type) : null, 'formenctype', closure$formEncType != null ? enumEncode(closure$formEncType) : null, 'formmethod', closure$formMethod != null ? enumEncode(closure$formMethod) : null, 'name', closure$name]), it); }; } function styledDiv$lambda_43(it) { return new DIV_init(html.emptyMap, it); } function SelectFileComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter_y328lp$_0 = this.mPresenter_y328lp$_0; this.dropZoneText_0 = this.getString_za3lpa$(2840); this.fileDropZoneManager_0 = null; this.selectedFiles_ym9n80$_0 = emptyList(); this.acceptedMimeTypes_ma29wy$_0 = emptyList(); this.noFileSelectedError_i47n98$_0 = null; this.unSupportedFileError_j7sj1t$_0 = null; this.fieldsEnabled_iuwo3o$_0 = false; this.entity_ejgu8r$_0 = null; } Object.defineProperty(SelectFileComponent.prototype, 'mPresenter_0', { configurable: true, get: function () { if (this.mPresenter_y328lp$_0 == null) return throwUPAE('mPresenter'); return this.mPresenter_y328lp$_0; }, set: function (mPresenter) { this.mPresenter_y328lp$_0 = mPresenter; } }); Object.defineProperty(SelectFileComponent.prototype, 'selectedFiles_0', { configurable: true, get: function () { return this.selectedFiles_ym9n80$_0; }, set: function (value) { this.selectedFiles_ym9n80$_0 = value; this.noFileSelectedError = null; } }); function SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda(closure$value, this$SelectFileComponent) { return function ($receiver) { this$SelectFileComponent.acceptedMimeTypes_ma29wy$_0 = closure$value; return Unit; }; } function SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral(this$SelectFileComponent) { this.this$SelectFileComponent = this$SelectFileComponent; } function SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral$onValidFileAttached$lambda(closure$file, this$SelectFileComponent) { return function ($receiver) { this$SelectFileComponent.selectedFiles_0 = listOf_0(closure$file); this$SelectFileComponent.dropZoneText_0 = format(this$SelectFileComponent.getString_za3lpa$(2839), [closure$file.name, util.UMFileUtil.formatFileSize_s8cxhz$(toLong(closure$file.size.toString()))]); return Unit; }; } SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral.prototype.onValidFileAttached_6d2hh8$ = function (file) { setState(this.this$SelectFileComponent, SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral$onValidFileAttached$lambda(file, this.this$SelectFileComponent)); }; function SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral$onInvalidFileAttached$lambda(this$SelectFileComponent) { return function ($receiver) { this$SelectFileComponent.dropZoneText_0 = this$SelectFileComponent.getString_za3lpa$(2840); this$SelectFileComponent.unSupportedFileError = this$SelectFileComponent.getString_za3lpa$(2276); return Unit; }; } SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral.prototype.onInvalidFileAttached = function () { setState(this.this$SelectFileComponent, SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral$onInvalidFileAttached$lambda(this.this$SelectFileComponent)); }; SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [OnFileAttached] }; function SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda_0(closure$value, this$SelectFileComponent) { return function () { var tmp$; this$SelectFileComponent.fileDropZoneManager_0 = new FileDropZoneManager(void 0, closure$value); (tmp$ = this$SelectFileComponent.fileDropZoneManager_0) != null ? (tmp$.onFileAttached = new SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda$ObjectLiteral(this$SelectFileComponent)) : null; return Unit; }; } Object.defineProperty(SelectFileComponent.prototype, 'acceptedMimeTypes', { configurable: true, get: function () { return this.acceptedMimeTypes_ma29wy$_0; }, set: function (value) { setState(this, SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda(value, this)); window.setTimeout(SelectFileComponent$set_SelectFileComponent$acceptedMimeTypes$lambda_0(value, this), 200); } }); Object.defineProperty(SelectFileComponent.prototype, 'noFileSelectedError', { configurable: true, get: function () { return this.noFileSelectedError_i47n98$_0; }, set: function (value) { this.noFileSelectedError_i47n98$_0 = value; if (value != null) { this.showSnackBar_9pu0dj$(value); }} }); Object.defineProperty(SelectFileComponent.prototype, 'unSupportedFileError', { configurable: true, get: function () { return this.unSupportedFileError_j7sj1t$_0; }, set: function (value) { this.unSupportedFileError_j7sj1t$_0 = value; if (value != null) { this.showSnackBar_9pu0dj$(value); }} }); Object.defineProperty(SelectFileComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_iuwo3o$_0; }, set: function (value) { this.fieldsEnabled_iuwo3o$_0 = value; } }); function SelectFileComponent$set_SelectFileComponent$entity$lambda(closure$value, this$SelectFileComponent) { return function ($receiver) { this$SelectFileComponent.entity_ejgu8r$_0 = closure$value; return Unit; }; } Object.defineProperty(SelectFileComponent.prototype, 'entity', { configurable: true, get: function () { return this.selectedFiles_0; }, set: function (value) { setState(this, SelectFileComponent$set_SelectFileComponent$entity$lambda(value, this)); } }); function SelectFileComponent$onCreateView$lambda(this$SelectFileComponent) { return function () { var tmp$, tmp$_0; this$SelectFileComponent.mPresenter_0.handleUriSelected_pdl1vj$((tmp$_0 = (tmp$ = firstOrNull(this$SelectFileComponent.selectedFiles_0)) != null ? toDoorUri(tmp$) : null) != null ? tmp$_0.toString() : null); return Unit; }; } SelectFileComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2; UstadBaseComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new SelectFilePresenterCommon(this, this.arguments, this, this.di); (tmp$ = this.fabManager) != null ? (tmp$.icon = 'upload') : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.text = this.getString_za3lpa$(2838)) : null; (tmp$_1 = this.fabManager) != null ? (tmp$_1.visible = true) : null; (tmp$_2 = this.fabManager) != null ? (tmp$_2.onClickListener = SelectFileComponent$onCreateView$lambda(this)) : null; this.mPresenter_0.onCreate(emptyMap()); }; function SelectFileComponent$render$lambda$lambda$lambda(this$SelectFileComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().centerContainer); set_minHeight($receiver_0, get_vh(92)); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_43); var this$SelectFileComponent_0 = this$SelectFileComponent; StyleManager_getInstance().dropZoneArea($receiver_0_0.css); set_id($receiver_0_0.attrs, 'um-dropzone'); umIcon($receiver_0_0, 'cloud_upload', void 0, void 0, StyleManager_getInstance().name + '-dropZoneIcon'); var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledHeader$lambda_0); StyleManager_getInstance().dropZoneTxt($receiver_0_1.css); $receiver_0_1.unaryPlus_pdl1vz$(this$SelectFileComponent_0.dropZoneText_0); $receiver_0_0.child_30b5ua$($receiver_0_1.create()); var $receiver_0_2 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledInput$lambda_0(null, null, null, null)); set_visibility($receiver_0_2.css, Visibility.hidden); $receiver_0_2.attrs.type = InputType.file; $receiver_0_2.attrs.accept = joinToString_0(this$SelectFileComponent_0.acceptedMimeTypes, ','); $receiver_0_0.child_30b5ua$($receiver_0_2.create()); $receiver.child_30b5ua$($receiver_0_0.create()); return Unit; }; } function SelectFileComponent$render$lambda$lambda(this$SelectFileComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SelectFileComponent$render$lambda$lambda$lambda(this$SelectFileComponent)); return Unit; }; } function SelectFileComponent$render$lambda(this$SelectFileComponent) { return function ($receiver, f) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SelectFileComponent$render$lambda$lambda(this$SelectFileComponent)); return Unit; }; } SelectFileComponent.prototype.render_ss14n$ = function ($receiver) { if (!this.acceptedMimeTypes.isEmpty()) { $receiver.invoke_c0v1gl$(themeContext.Consumer, SelectFileComponent$render$lambda(this)); }}; SelectFileComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); this.noFileSelectedError = null; this.unSupportedFileError = null; (tmp$ = this.fileDropZoneManager_0) != null ? (tmp$.onDestroy(), Unit) : null; this.fileDropZoneManager_0 = null; this.entity = null; }; SelectFileComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SelectFileComponent', interfaces: [SelectFileView, UstadBaseComponent] }; function styledSpan$lambda_3(it) { return new SPAN_init(html.emptyMap, it); } function SessionListComponent(props) { UstadListComponent.call(this, props); this.mPresenter_0 = null; this.personWithContentTitle_atdeqs$_0 = null; } Object.defineProperty(SessionListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(SessionListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.userSessionDao : null; } }); function SessionListComponent$renderListItem$lambda$lambda(closure$item) { return function ($receiver) { umItemThumbnail($receiver, isContentCompleteImage(closure$item), void 0, void 0, void 0, 50, void 0, AvatarVariant$circle_getInstance()); return Unit; }; } function SessionListComponent$renderListItem$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function SessionListComponent$renderListItem$lambda$lambda$lambda(this$SessionListComponent, closure$item) { return function ($receiver) { umTypography($receiver, setContentComplete(this$SessionListComponent.systemImpl, closure$item) + (' ' + formatToStringHoursMinutesSeconds(closure$item.duration, this$SessionListComponent.systemImpl)), TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SessionListComponent$renderListItem$lambda$lambda$lambda$lambda); return Unit; }; } function SessionListComponent$renderListItem$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function SessionListComponent$renderListItem$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { var tmp$, tmp$_0; umTypography($receiver, toString((tmp$ = toDate(closure$item.startDate)) != null ? standardFormat(tmp$) : null) + ' ' + ('- ' + toString((tmp$_0 = toDate(closure$item.startDate)) != null ? formattedInHoursAndMinutes(tmp$_0) : null)), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, SessionListComponent$renderListItem$lambda$lambda$lambda$lambda_0); return Unit; }; } function SessionListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function SessionListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function SessionListComponent$renderListItem$lambda$lambda$lambda_1(this$SessionListComponent, closure$item) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_3); var this$SessionListComponent_0 = this$SessionListComponent; var closure$item_0 = closure$item; padding_0($receiver_0.css, void 0, get_spacingUnits(4)); umTypography($receiver_0, format(this$SessionListComponent_0.getString_za3lpa$(2535), [(closure$item_0.resultScoreScaled * 100).toString()]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, SessionListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_3); var closure$item_1 = closure$item; padding_0($receiver_0_0.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_0, '(' + closure$item_1.resultScore + ' / ' + closure$item_1.resultMax + ')', TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, SessionListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0); $receiver.child_30b5ua$($receiver_0_0.create()); return Unit; }; } function SessionListComponent$renderListItem$lambda$lambda_0(this$SessionListComponent, closure$item) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SessionListComponent$renderListItem$lambda$lambda$lambda(this$SessionListComponent, closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SessionListComponent$renderListItem$lambda$lambda$lambda_0(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, SessionListComponent$renderListItem$lambda$lambda$lambda_1(this$SessionListComponent, closure$item)); return Unit; }; } function SessionListComponent$renderListItem$lambda(closure$item, this$SessionListComponent) { return function ($receiver) { var padding = new LinearDimension('4px'); padding_0($receiver.css, padding, void 0, padding); umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, SessionListComponent$renderListItem$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, SessionListComponent$renderListItem$lambda$lambda_0(this$SessionListComponent, closure$item)); return Unit; }; } SessionListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SessionListComponent$renderListItem$lambda(item, this)); }; SessionListComponent.prototype.handleClickEntry_11rc$ = function (entry) { var tmp$; (tmp$ = this.mPresenter_0) != null ? (tmp$.onClickPersonWithSessionDisplay_lvxw6c$(entry), Unit) : null; }; Object.defineProperty(SessionListComponent.prototype, 'personWithContentTitle', { configurable: true, get: function () { return this.personWithContentTitle_atdeqs$_0; }, set: function (value) { this.personWithContentTitle_atdeqs$_0 = value; this.ustadComponentTitle = value; } }); SessionListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new SessionListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; SessionListComponent.prototype.onFabClicked = function () { }; SessionListComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { }; SessionListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; SessionListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SessionListComponent', interfaces: [SessionListView, UstadListComponent] }; function styledDiv$lambda_44(it) { return new DIV_init(html.emptyMap, it); } function SettingsComponent(props) { UstadBaseComponent.call(this, props); this.mPresenter = null; this.workspaceSettingsVisible_r584xv$_0 = false; this.holidayCalendarVisible_p5x93z$_0 = true; this.reasonLeavingVisible_9o6m3$_0 = true; this.langListVisible_is2f01$_0 = true; } Object.defineProperty(SettingsComponent.prototype, 'workspaceSettingsVisible', { configurable: true, get: function () { return this.workspaceSettingsVisible_r584xv$_0; }, set: function (value) { this.workspaceSettingsVisible_r584xv$_0 = value; } }); function SettingsComponent$set_SettingsComponent$holidayCalendarVisible$lambda(closure$value, this$SettingsComponent) { return function ($receiver) { this$SettingsComponent.holidayCalendarVisible_p5x93z$_0 = closure$value; return Unit; }; } Object.defineProperty(SettingsComponent.prototype, 'holidayCalendarVisible', { configurable: true, get: function () { return this.holidayCalendarVisible_p5x93z$_0; }, set: function (value) { setState(this, SettingsComponent$set_SettingsComponent$holidayCalendarVisible$lambda(value, this)); } }); function SettingsComponent$set_SettingsComponent$reasonLeavingVisible$lambda(closure$value, this$SettingsComponent) { return function ($receiver) { this$SettingsComponent.reasonLeavingVisible_9o6m3$_0 = closure$value; return Unit; }; } Object.defineProperty(SettingsComponent.prototype, 'reasonLeavingVisible', { configurable: true, get: function () { return this.reasonLeavingVisible_9o6m3$_0; }, set: function (value) { setState(this, SettingsComponent$set_SettingsComponent$reasonLeavingVisible$lambda(value, this)); } }); function SettingsComponent$set_SettingsComponent$langListVisible$lambda(closure$value, this$SettingsComponent) { return function ($receiver) { this$SettingsComponent.langListVisible_is2f01$_0 = closure$value; return Unit; }; } Object.defineProperty(SettingsComponent.prototype, 'langListVisible', { configurable: true, get: function () { return this.langListVisible_is2f01$_0; }, set: function (value) { setState(this, SettingsComponent$set_SettingsComponent$langListVisible$lambda(value, this)); } }); SettingsComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.ustadComponentTitle = this.getString_za3lpa$(2052); this.mPresenter = new SettingsPresenter(this, this.arguments, this, this.di); if ((tmp$_0 = this.mPresenter) != null) { tmp$_0.onCreate(emptyMap()); }}; function SettingsComponent$render$lambda$lambda$lambda$lambda$lambda(this$SettingsComponent) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$SettingsComponent.mPresenter) != null ? (tmp$.goToHolidayCalendarList(), Unit) : null; return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda$lambda(this$SettingsComponent) { return function ($receiver) { $receiver.attrs.onClick = SettingsComponent$render$lambda$lambda$lambda$lambda$lambda(this$SettingsComponent); renderListItemWithLeftIconTitleAndDescription($receiver, 'date_range', this$SettingsComponent.getString_za3lpa$(2432), this$SettingsComponent.getString_za3lpa$(2433), true); return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda(this$SettingsComponent) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda$lambda(this$SettingsComponent)); return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$SettingsComponent) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$SettingsComponent.mPresenter) != null ? (tmp$.handleClickWorkspace(), Unit) : null; return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda$lambda_0(this$SettingsComponent) { return function ($receiver) { $receiver.attrs.onClick = SettingsComponent$render$lambda$lambda$lambda$lambda$lambda_0(this$SettingsComponent); renderListItemWithLeftIconTitleAndDescription($receiver, 'account_balance', this$SettingsComponent.getString_za3lpa$(2690), this$SettingsComponent.getString_za3lpa$(2684), true); return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda_0(this$SettingsComponent) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda$lambda_0(this$SettingsComponent)); return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$SettingsComponent) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$SettingsComponent.mPresenter) != null ? (tmp$.handleClickLeavingReason(), Unit) : null; return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda$lambda_1(this$SettingsComponent) { return function ($receiver) { $receiver.attrs.onClick = SettingsComponent$render$lambda$lambda$lambda$lambda$lambda_1(this$SettingsComponent); renderListItemWithLeftIconTitleAndDescription($receiver, 'logout', this$SettingsComponent.getString_za3lpa$(2382), this$SettingsComponent.getString_za3lpa$(2384), true); return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda_1(this$SettingsComponent) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda$lambda_1(this$SettingsComponent)); return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$SettingsComponent) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$ = this$SettingsComponent.mPresenter) != null ? (tmp$.handleClickLangList(), Unit) : null; return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda$lambda_2(this$SettingsComponent) { return function ($receiver) { $receiver.attrs.onClick = SettingsComponent$render$lambda$lambda$lambda$lambda$lambda_2(this$SettingsComponent); renderListItemWithLeftIconTitleAndDescription($receiver, 'language', this$SettingsComponent.getString_za3lpa$(2057), this$SettingsComponent.getString_za3lpa$(2061), true); return Unit; }; } function SettingsComponent$render$lambda$lambda$lambda_2(this$SettingsComponent) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda$lambda_2(this$SettingsComponent)); return Unit; }; } function SettingsComponent$render$lambda$lambda(this$SettingsComponent) { return function ($receiver) { if (this$SettingsComponent.holidayCalendarVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda(this$SettingsComponent)); }if (this$SettingsComponent.workspaceSettingsVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda_0(this$SettingsComponent)); }if (this$SettingsComponent.reasonLeavingVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda_1(this$SettingsComponent)); }if (this$SettingsComponent.langListVisible) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SettingsComponent$render$lambda$lambda$lambda_2(this$SettingsComponent)); }return Unit; }; } SettingsComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_44); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umGridContainer($receiver_0, void 0, void 0, void 0, void 0, void 0, GridSpacing$spacing1_getInstance(), void 0, void 0, SettingsComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; SettingsComponent.prototype.onDestroyView = function () { UstadBaseComponent.prototype.onDestroyView.call(this); this.mPresenter = null; }; SettingsComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SettingsComponent', interfaces: [SettingsView, UstadBaseComponent] }; function styledDiv$lambda_45(it) { return new DIV_init(html.emptyMap, it); } function SiteDetailComponent(props) { UstadDetailComponent.call(this, props); this.mPresenter_0 = null; this.siteTermsWithLanguageList_0 = emptyList(); this.currentSiteList_0 = ArrayList_init_0(); this.observer_0 = new ObserverFnWrapper(SiteDetailComponent$observer$lambda(this)); this.siteTermsList_l9w6z6$_0 = null; this.entity_5kjmrp$_0 = null; } Object.defineProperty(SiteDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(SiteDetailComponent.prototype, 'siteTermsList', { configurable: true, get: function () { return this.siteTermsList_l9w6z6$_0; }, set: function (value) { this.siteTermsList_l9w6z6$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.observer_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.observer_0), Unit) : null; } }); function SiteDetailComponent$set_SiteDetailComponent$entity$lambda($receiver) { return Unit; } Object.defineProperty(SiteDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_5kjmrp$_0; }, set: function (value) { this.entity_5kjmrp$_0 = value; var tmp$ = value != null; if (tmp$) { var $receiver = this.currentSiteList_0; var firstOrNull$result; firstOrNull$break: do { var tmp$_0; tmp$_0 = $receiver.iterator(); while (tmp$_0.hasNext()) { var element = tmp$_0.next(); if (equals(element.siteUid, value.siteUid)) { firstOrNull$result = element; break firstOrNull$break; }} firstOrNull$result = null; } while (false); tmp$ = firstOrNull$result == null; }if (tmp$) { this.currentSiteList_0.add_11rb$(value); }setState(this, SiteDetailComponent$set_SiteDetailComponent$entity$lambda); } }); SiteDetailComponent.prototype.onCreateView = function () { var tmp$; UstadDetailComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2690); this.mPresenter_0 = new SiteDetailPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function SiteDetailComponent$render$lambda$lambda$lambda(closure$site, this$SiteDetailComponent) { return function ($receiver) { renderInformationOnDetailScreen($receiver, 'account_balance', closure$site.siteName, this$SiteDetailComponent.getString_za3lpa$(2046), true); renderInformationOnDetailScreen($receiver, 'meeting_room', this$SiteDetailComponent.getString_za3lpa$(closure$site.guestLogin ? 2687 : 2688), this$SiteDetailComponent.getString_za3lpa$(2685), true); renderInformationOnDetailScreen($receiver, 'person_add_alt_1', this$SiteDetailComponent.getString_za3lpa$(closure$site.registrationAllowed ? 2687 : 2688), this$SiteDetailComponent.getString_za3lpa$(2686), true); return Unit; }; } function SiteDetailComponent$render$lambda$lambda(this$SiteDetailComponent) { return function ($receiver) { StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); renderListSectionTitle($receiver, this$SiteDetailComponent.getString_za3lpa$(2683)); renderSiteTerms($receiver, void 0, this$SiteDetailComponent.siteTermsWithLanguageList_0, false); return Unit; }; } SiteDetailComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_45); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); var tmp$; tmp$ = this.currentSiteList_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); umItem($receiver_0, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, SiteDetailComponent$render$lambda$lambda$lambda(element, this)); } umItem($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SiteDetailComponent$render$lambda$lambda(this)); $receiver.child_30b5ua$($receiver_0.create()); }; SiteDetailComponent.prototype.onDestroyView = function () { UstadDetailComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; function SiteDetailComponent$observer$lambda$lambda(closure$it, this$SiteDetailComponent) { return function ($receiver) { this$SiteDetailComponent.siteTermsWithLanguageList_0 = closure$it; return Unit; }; } function SiteDetailComponent$observer$lambda(this$SiteDetailComponent) { return function (it) { if (it.isEmpty()) return; setState(this$SiteDetailComponent, SiteDetailComponent$observer$lambda$lambda(it, this$SiteDetailComponent)); return Unit; }; } SiteDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SiteDetailComponent', interfaces: [SiteDetailView, UstadDetailComponent] }; function styledDiv$lambda_46(it) { return new DIV_init(html.emptyMap, it); } function SiteEditComponent(props) { UstadEditComponent.call(this, props); this.mPresenter_0 = null; this.siteTermsWithLanguageList_0 = emptyList(); this.siteTermsObserver_0 = new ObserverFnWrapper(SiteEditComponent$siteTermsObserver$lambda(this)); this.siteTermsList_vio21z$_0 = null; this.fieldsEnabled_e25qhv$_0 = false; this.entity_me9euk$_0 = null; this.nameLabel_0 = new FieldLabel(this.getString_za3lpa$(2046)); } Object.defineProperty(SiteEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(SiteEditComponent.prototype, 'siteTermsList', { configurable: true, get: function () { return this.siteTermsList_vio21z$_0; }, set: function (value) { value != null ? (value.removeObserver_jsfaok$(this.siteTermsObserver_0), Unit) : null; value != null ? (value.observe_igxi3b$(this, this.siteTermsObserver_0), Unit) : null; this.siteTermsList_vio21z$_0 = value; } }); function SiteEditComponent$set_SiteEditComponent$fieldsEnabled$lambda(closure$value, this$SiteEditComponent) { return function ($receiver) { this$SiteEditComponent.fieldsEnabled_e25qhv$_0 = closure$value; return Unit; }; } Object.defineProperty(SiteEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_e25qhv$_0; }, set: function (value) { setState(this, SiteEditComponent$set_SiteEditComponent$fieldsEnabled$lambda(value, this)); } }); function SiteEditComponent$set_SiteEditComponent$entity$lambda(closure$value, this$SiteEditComponent) { return function ($receiver) { this$SiteEditComponent.entity_me9euk$_0 = closure$value; this$SiteEditComponent.ustadComponentTitle = closure$value != null ? closure$value.siteName : null; return Unit; }; } Object.defineProperty(SiteEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_me9euk$_0; }, set: function (value) { setState(this, SiteEditComponent$set_SiteEditComponent$entity$lambda(value, this)); } }); SiteEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new SiteEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function SiteEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$SiteEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$SiteEditComponent.entity) != null ? (tmp$.siteName = closure$it) : null; return Unit; }; } function SiteEditComponent$render$lambda$lambda$lambda(this$SiteEditComponent) { return function (it) { setState(this$SiteEditComponent, SiteEditComponent$render$lambda$lambda$lambda$lambda(it, this$SiteEditComponent)); return Unit; }; } function SiteEditComponent$render$lambda$lambda(this$SiteEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$SiteEditComponent.nameLabel_0.text); tmp$_0 = this$SiteEditComponent.nameLabel_0.errorText; tmp$_2 = (tmp$_1 = this$SiteEditComponent.entity) != null ? tmp$_1.siteName : null; tmp$_3 = this$SiteEditComponent.nameLabel_0.error; tmp$_4 = !this$SiteEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), SiteEditComponent$render$lambda$lambda$lambda(this$SiteEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function SiteEditComponent$render$lambda$lambda$lambda_0(this$SiteEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; (tmp$_1 = this$SiteEditComponent.entity) != null ? (tmp$_1.guestLogin = !((tmp$_0 = (tmp$ = this$SiteEditComponent.entity) != null ? tmp$.guestLogin : null) != null ? tmp$_0 : false)) : null; return Unit; }; } function SiteEditComponent$render$lambda$lambda_0(this$SiteEditComponent) { return function (it) { setState(this$SiteEditComponent, SiteEditComponent$render$lambda$lambda$lambda_0(this$SiteEditComponent)); return Unit; }; } function SiteEditComponent$render$lambda$lambda$lambda_1(this$SiteEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; (tmp$_1 = this$SiteEditComponent.entity) != null ? (tmp$_1.registrationAllowed = !((tmp$_0 = (tmp$ = this$SiteEditComponent.entity) != null ? tmp$.registrationAllowed : null) != null ? tmp$_0 : false)) : null; return Unit; }; } function SiteEditComponent$render$lambda$lambda_1(this$SiteEditComponent) { return function (it) { setState(this$SiteEditComponent, SiteEditComponent$render$lambda$lambda$lambda_1(this$SiteEditComponent)); return Unit; }; } function SiteEditComponent$render$lambda$lambda$lambda_2(this$SiteEditComponent) { return function () { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$SiteEditComponent.mPresenter_0) != null ? tmp$.siteTermsOneToManyJoinListener : null) != null ? (tmp$_0.onClickNew(), Unit) : null; return Unit; }; } function SiteEditComponent$render$lambda$lambda$lambda_3(this$SiteEditComponent) { return function (it) { var tmp$, tmp$_0; (tmp$_0 = (tmp$ = this$SiteEditComponent.mPresenter_0) != null ? tmp$.siteTermsOneToManyJoinListener : null) != null ? (tmp$_0.onClickEdit_11rb$(it), Unit) : null; return Unit; }; } function SiteEditComponent$render$lambda$lambda_2(this$SiteEditComponent) { return function ($receiver) { var tmp$; renderListSectionTitle($receiver, this$SiteEditComponent.getString_za3lpa$(2683)); var newItem = new CreateNewItem(true, this$SiteEditComponent.getString_za3lpa$(2683), SiteEditComponent$render$lambda$lambda$lambda_2(this$SiteEditComponent)); renderSiteTerms($receiver, (tmp$ = this$SiteEditComponent.mPresenter_0) != null ? tmp$.siteTermsOneToManyJoinListener : null, this$SiteEditComponent.siteTermsWithLanguageList_0, true, newItem, SiteEditComponent$render$lambda$lambda$lambda_3(this$SiteEditComponent)); return Unit; }; } SiteEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_46); var tmp$, tmp$_0; var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SiteEditComponent$render$lambda$lambda(this)); createSwitchItem($receiver_0, this.getString_za3lpa$(2685), ((tmp$ = this.entity) != null ? tmp$.guestLogin : null) === true, SiteEditComponent$render$lambda$lambda_0(this)); createSwitchItem($receiver_0, this.getString_za3lpa$(2686), ((tmp$_0 = this.entity) != null ? tmp$_0.registrationAllowed : null) === true, SiteEditComponent$render$lambda$lambda_1(this)); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SiteEditComponent$render$lambda$lambda_2(this)); $receiver.child_30b5ua$($receiver_0.create()); }; SiteEditComponent.prototype.onDestroyView = function () { UstadEditComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; function SiteEditComponent$siteTermsObserver$lambda$lambda(closure$it, this$SiteEditComponent) { return function ($receiver) { this$SiteEditComponent.siteTermsWithLanguageList_0 = closure$it; return Unit; }; } function SiteEditComponent$siteTermsObserver$lambda(this$SiteEditComponent) { return function (it) { if (it.isEmpty()) return; setState(this$SiteEditComponent, SiteEditComponent$siteTermsObserver$lambda$lambda(it, this$SiteEditComponent)); return Unit; }; } SiteEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SiteEditComponent', interfaces: [SiteEditView, UstadEditComponent] }; function SiteTermsDetailComponent(props) { UstadDetailComponent.call(this, props); this.mPresenter_0 = null; this.acceptButtonVisible_24e9ff$_0 = false; this.entity_aoe9pe$_0 = null; } Object.defineProperty(SiteTermsDetailComponent.prototype, 'detailPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function SiteTermsDetailComponent$set_SiteTermsDetailComponent$acceptButtonVisible$lambda(closure$value, this$SiteTermsDetailComponent) { return function () { var tmp$; (tmp$ = this$SiteTermsDetailComponent.fabManager) != null ? (tmp$.visible = closure$value) : null; return Unit; }; } Object.defineProperty(SiteTermsDetailComponent.prototype, 'acceptButtonVisible', { configurable: true, get: function () { return this.acceptButtonVisible_24e9ff$_0; }, set: function (value) { this.acceptButtonVisible_24e9ff$_0 = value; this.updateUiWithStateChangeDelay_n53o35$(1000, SiteTermsDetailComponent$set_SiteTermsDetailComponent$acceptButtonVisible$lambda(value, this)); } }); function SiteTermsDetailComponent$set_SiteTermsDetailComponent$entity$lambda(closure$value, this$SiteTermsDetailComponent) { return function ($receiver) { this$SiteTermsDetailComponent.entity_aoe9pe$_0 = closure$value; return Unit; }; } Object.defineProperty(SiteTermsDetailComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_aoe9pe$_0; }, set: function (value) { setState(this, SiteTermsDetailComponent$set_SiteTermsDetailComponent$entity$lambda(value, this)); } }); function SiteTermsDetailComponent$onCreateView$lambda(this$SiteTermsDetailComponent) { return function () { var tmp$; (tmp$ = this$SiteTermsDetailComponent.mPresenter_0) != null ? (tmp$.handleClickAccept(), Unit) : null; return Unit; }; } SiteTermsDetailComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2; UstadDetailComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2683); this.mPresenter_0 = new SiteTermsDetailPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.onClickListener = SiteTermsDetailComponent$onCreateView$lambda(this)) : null; (tmp$_1 = this.fabManager) != null ? (tmp$_1.text = this.getString_za3lpa$(2135)) : null; (tmp$_2 = this.fabManager) != null ? (tmp$_2.icon = 'done') : null; }; function SiteTermsDetailComponent$render$lambda$lambda(this$SiteTermsDetailComponent) { return function ($receiver) { var tmp$; renderRawHtmlOnIframe($receiver, (tmp$ = this$SiteTermsDetailComponent.entity) != null ? tmp$.termsHtml : null); return Unit; }; } function SiteTermsDetailComponent$render$lambda(this$SiteTermsDetailComponent) { return function ($receiver) { StyleManager_getInstance().centerContainer($receiver.css); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells7_getInstance(), void 0, void 0, void 0, void 0, void 0, SiteTermsDetailComponent$render$lambda$lambda(this$SiteTermsDetailComponent)); return Unit; }; } SiteTermsDetailComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SiteTermsDetailComponent$render$lambda(this)); }; SiteTermsDetailComponent.prototype.onDestroyView = function () { UstadDetailComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; SiteTermsDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SiteTermsDetailComponent', interfaces: [SiteTermsDetailView, UstadDetailComponent] }; function styledDiv$lambda_47(it) { return new DIV_init(html.emptyMap, it); } function SiteTermsEditComponent(props) { UstadEditComponent.call(this, props); this.mPresenter_0 = null; this.languageError_x3iquc$_0 = null; this.fieldsEnabled_fky3a4$_0 = false; this.entity_ycpslh$_0 = null; this.languageLabel_0 = new FieldLabel(this.getString_za3lpa$(2053)); } Object.defineProperty(SiteTermsEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function SiteTermsEditComponent$set_SiteTermsEditComponent$languageError$lambda(closure$value, this$SiteTermsEditComponent) { return function ($receiver) { this$SiteTermsEditComponent.languageError_x3iquc$_0 = closure$value; return Unit; }; } Object.defineProperty(SiteTermsEditComponent.prototype, 'languageError', { configurable: true, get: function () { return this.languageError_x3iquc$_0; }, set: function (value) { setState(this, SiteTermsEditComponent$set_SiteTermsEditComponent$languageError$lambda(value, this)); } }); function SiteTermsEditComponent$set_SiteTermsEditComponent$fieldsEnabled$lambda(closure$value, this$SiteTermsEditComponent) { return function ($receiver) { this$SiteTermsEditComponent.fieldsEnabled_fky3a4$_0 = closure$value; return Unit; }; } Object.defineProperty(SiteTermsEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_fky3a4$_0; }, set: function (value) { setState(this, SiteTermsEditComponent$set_SiteTermsEditComponent$fieldsEnabled$lambda(value, this)); } }); function SiteTermsEditComponent$set_SiteTermsEditComponent$entity$lambda(closure$value, this$SiteTermsEditComponent) { return function ($receiver) { this$SiteTermsEditComponent.entity_ycpslh$_0 = closure$value; return Unit; }; } Object.defineProperty(SiteTermsEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_ycpslh$_0; }, set: function (value) { setState(this, SiteTermsEditComponent$set_SiteTermsEditComponent$entity$lambda(value, this)); } }); SiteTermsEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2696); this.mPresenter_0 = new SiteTermsEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function SiteTermsEditComponent$render$lambda$lambda$lambda$lambda(this$SiteTermsEditComponent) { return function () { var tmp$; return (tmp$ = this$SiteTermsEditComponent.mPresenter_0) != null ? (tmp$.handleClickLanguage(), Unit) : null; }; } function SiteTermsEditComponent$render$lambda$lambda$lambda(this$SiteTermsEditComponent) { return function ($receiver) { $receiver.attrs.onClick = SiteTermsEditComponent$render$lambda$lambda$lambda$lambda(this$SiteTermsEditComponent); return Unit; }; } function SiteTermsEditComponent$render$lambda$lambda(this$SiteTermsEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(this$SiteTermsEditComponent.languageLabel_0.text); tmp$_0 = this$SiteTermsEditComponent.languageLabel_0.errorText; tmp$_3 = (tmp$_2 = (tmp$_1 = this$SiteTermsEditComponent.entity) != null ? tmp$_1.stLanguage : null) != null ? tmp$_2.name : null; tmp$_4 = this$SiteTermsEditComponent.languageLabel_0.error; tmp$_5 = !this$SiteTermsEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_3, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), void 0, void 0, void 0, tmp$_5, tmp$_4, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SiteTermsEditComponent$render$lambda$lambda$lambda(this$SiteTermsEditComponent)); return Unit; }; } function SiteTermsEditComponent$render$lambda$lambda$lambda_0(this$SiteTermsEditComponent) { return function (it) { var tmp$; (tmp$ = this$SiteTermsEditComponent.entity) != null ? (tmp$.termsHtml = it) : null; return Unit; }; } function SiteTermsEditComponent$render$lambda$lambda_0(this$SiteTermsEditComponent) { return function ($receiver) { var tmp$; StyleManager_getInstance().defaultDoubleMarginTop($receiver.css); umMuiHtmlEditor($receiver, (tmp$ = this$SiteTermsEditComponent.entity) != null ? tmp$.termsHtml : null, void 0, void 0, this$SiteTermsEditComponent.getString_za3lpa$(2956), void 0, SiteTermsEditComponent$render$lambda$lambda$lambda_0(this$SiteTermsEditComponent)); return Unit; }; } SiteTermsEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_47); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultPaddingTop); umItem($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SiteTermsEditComponent$render$lambda$lambda(this)); umSpacer($receiver_0); umSpacer($receiver_0); umItem($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SiteTermsEditComponent$render$lambda$lambda_0(this)); $receiver.child_30b5ua$($receiver_0.create()); }; SiteTermsEditComponent.prototype.onDestroyView = function () { UstadEditComponent.prototype.onDestroyView.call(this); this.mPresenter_0 = null; }; SiteTermsEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SiteTermsEditComponent', interfaces: [SiteTermsEditView, UstadEditComponent] }; function SiteTermsListPropsProps() { } SiteTermsListPropsProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'SiteTermsListPropsProps', interfaces: [SimpleListProps] }; function SiteTermsListComponent(mProps) { UstadSimpleList.call(this, mProps); } function SiteTermsListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(it.nativeEvent); return Unit; }; } function SiteTermsListComponent$renderListItem$lambda$lambda_0(this$SiteTermsListComponent, closure$item) { return function (it) { var tmp$; (tmp$ = this$SiteTermsListComponent.props.listener) != null ? (tmp$.onClickDelete_11rb$(closure$item), Unit) : null; return Unit; }; } function SiteTermsListComponent$renderListItem$lambda(closure$onClick, closure$item, this$SiteTermsListComponent) { return function ($receiver) { var tmp$, tmp$_0; $receiver.attrs.onClick = SiteTermsListComponent$renderListItem$lambda$lambda(closure$onClick); renderListItemWithTitleDescriptionAndRightAction($receiver, (tmp$_0 = (tmp$ = closure$item.stLanguage) != null ? tmp$.name : null) != null ? tmp$_0 : '', 'delete', this$SiteTermsListComponent.props.withDelete, void 0, SiteTermsListComponent$renderListItem$lambda$lambda_0(this$SiteTermsListComponent, closure$item)); return Unit; }; } SiteTermsListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SiteTermsListComponent$renderListItem$lambda(onClick, item, this)); }; SiteTermsListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SiteTermsListComponent', interfaces: [UstadSimpleList] }; function renderSiteTerms$lambda(closure$terms, closure$onEntryClicked, closure$createNewItem, closure$listener, closure$withDelete) { return function ($receiver) { $receiver.attrs.entries = closure$terms; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.createNewItem = closure$createNewItem; $receiver.attrs.listener = closure$listener; $receiver.attrs.withDelete = closure$withDelete; return Unit; }; } function renderSiteTerms($receiver, listener, terms, withDelete, createNewItem, onEntryClicked) { if (listener === void 0) listener = null; if (withDelete === void 0) withDelete = true; if (createNewItem === void 0) createNewItem = new CreateNewItem(); if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(SiteTermsListComponent), renderSiteTerms$lambda(terms, onEntryClicked, createNewItem, listener, withDelete)); } function styledImg$lambda_0(closure$alt, closure$src) { return function (it) { return new IMG_init(attributesMapOf_0(['alt', closure$alt, 'src', closure$src]), it); }; } function styledDiv$lambda_48(it) { return new DIV_init(html.emptyMap, it); } function SplashComponent(props) { RComponent_init(props, this); } function SplashComponent$render$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignCenterItems($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledImg$lambda_0(null, null)); set_width($receiver_0.css, new LinearDimension('90%')); $receiver_0.attrs.src = 'assets/logo.png'; $receiver.child_30b5ua$($receiver_0.create()); return Unit; } function SplashComponent$render$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { set_width($receiver.css, new LinearDimension('100%')); return Unit; } function SplashComponent$render$lambda$lambda$lambda$lambda$lambda_0($receiver) { var tmp$; StyleManager_getInstance().alignCenterItems($receiver.css); if (ThemeManager_getInstance().isDarkModeActive()) tmp$ = UMColor$secondary_getInstance(); else tmp$ = UMColor$primary_getInstance(); var color = tmp$; umLinearProgress($receiver, void 0, void 0, void 0, color, void 0, SplashComponent$render$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; } function SplashComponent$render$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignCenterItems($receiver.css); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SplashComponent$render$lambda$lambda$lambda$lambda$lambda); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, SplashComponent$render$lambda$lambda$lambda$lambda$lambda_0); return Unit; } function SplashComponent$render$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().partnersList); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignEndItems); umPartner($receiver, 'irc.png'); umPartner($receiver, 'expo.png'); return Unit; } function SplashComponent$render$lambda($receiver, f) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_48); StyleManager_getInstance().splashComponentContainer($receiver_0.css); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_48); StyleManager_getInstance().splashComponentPreloadContainer($receiver_0_0.css); umGridContainer($receiver_0_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, SplashComponent$render$lambda$lambda$lambda$lambda); $receiver_0.child_30b5ua$($receiver_0_0.create()); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.rowReverse, SplashComponent$render$lambda$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); return Unit; } SplashComponent.prototype.render_ss14n$ = function ($receiver) { $receiver.invoke_c0v1gl$(themeContext.Consumer, SplashComponent$render$lambda); }; SplashComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'SplashComponent', interfaces: [RComponent] }; function renderSplashComponent$lambda($receiver) { return Unit; } function renderSplashComponent($receiver) { $receiver.child_up9nw1$(getKClass(SplashComponent), renderSplashComponent$lambda); } function SplashView() { SplashView$Companion_getInstance(); } function SplashView$Companion() { SplashView$Companion_instance = this; this.VIEW_NAME = 'SplashView'; this.TAG_LOADED = 'app.loaded'; } SplashView$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var SplashView$Companion_instance = null; function SplashView$Companion_getInstance() { if (SplashView$Companion_instance === null) { new SplashView$Companion(); }return SplashView$Companion_instance; } SplashView.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'SplashView', interfaces: [SplashScreenView] }; function styledSpan$lambda_4(it) { return new SPAN_init(html.emptyMap, it); } function StatementListComponent(props) { StatementListComponent$Companion_getInstance(); UstadListComponent.call(this, props); this.mPresenter_0 = null; this.personWithContentTitle_izx7jf$_0 = null; } Object.defineProperty(StatementListComponent.prototype, 'listPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(StatementListComponent.prototype, 'displayTypeRepo', { configurable: true, get: function () { var tmp$; return (tmp$ = this.dbRepo) != null ? tmp$.statementDao : null; } }); function StatementListComponent$renderListItem$lambda$lambda(closure$item) { return function ($receiver) { var tmp$; umItemThumbnail($receiver, (tmp$ = StatementListComponent$Companion_getInstance().VERB_ICON_MAP.get_11rb$(closure$item.statementVerbUid.toInt())) != null ? tmp$ : '', void 0, void 0, void 0, 50, void 0, AvatarVariant$circle_getInstance()); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.verbDisplay, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.objectDisplay, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_1(closure$item) { return function ($receiver) { umTypography($receiver, setStatementQuestionAnswer(closure$item), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_1); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda(closure$item) { return function ($receiver) { var tmp$, tmp$_0; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_4); padding_0($receiver_0.css, void 0, get_spacingUnits(1)); umIcon($receiver_0, 'calendar_today', void 0, IconFontSize$small_getInstance()); $receiver.child_30b5ua$($receiver_0.create()); umTypography($receiver, toString((tmp$ = toDate(closure$item.timestamp)) != null ? standardFormat(tmp$) : null) + ' ' + ('- ' + toString((tmp$_0 = toDate(closure$item.timestamp)) != null ? formattedInHoursAndMinutes(tmp$_0) : null)), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$item, this$StatementListComponent) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_4); padding_0($receiver_0.css, void 0, get_spacingUnits(1)); umIcon($receiver_0, 'timer', void 0, IconFontSize$small_getInstance()); $receiver.child_30b5ua$($receiver_0.create()); umTypography($receiver, formatToStringHoursMinutesSeconds(closure$item.resultDuration, this$StatementListComponent.systemImpl), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_2(closure$item, this$StatementListComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, FlexDirection.row, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda(closure$item)); if (closure$item.resultDuration.toNumber() > 1000) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, FlexDirection.row, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$item, this$StatementListComponent)); }return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_2(closure$item, this$StatementListComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda_2(closure$item, this$StatementListComponent)); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_3(this$StatementListComponent, closure$item) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_4); padding_0($receiver_0.css, void 0, get_spacingUnits(1)); umIcon($receiver_0, 'check', void 0, IconFontSize$small_getInstance()); $receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_4); var this$StatementListComponent_0 = this$StatementListComponent; var closure$item_0 = closure$item; padding_0($receiver_0_0.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_0, format(this$StatementListComponent_0.getString_za3lpa$(2535), [(closure$item_0.resultScoreScaled * 100).toString()]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_1); $receiver.child_30b5ua$($receiver_0_0.create()); if (closure$item.resultScoreMax.toNumber() > 0) { var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_4); var closure$item_1 = closure$item; padding_0($receiver_0_1.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_1, '(' + closure$item_1.resultScoreRaw.toString() + ' / ' + closure$item_1.resultScoreMax.toString() + ')', TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda$lambda$lambda_2); $receiver.child_30b5ua$($receiver_0_1.create()); }return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda$lambda(closure$item, this$StatementListComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_0(closure$item)); if (!equals(closure$item.statementVerbUid, VerbEntity$Companion$VERB_ANSWERED_UID)) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_1(closure$item)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_2(closure$item, this$StatementListComponent)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, StatementListComponent$renderListItem$lambda$lambda$lambda$lambda_3(this$StatementListComponent, closure$item)); return Unit; }; } function StatementListComponent$renderListItem$lambda$lambda_0(closure$item, this$StatementListComponent) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda$lambda(closure$item, this$StatementListComponent)); return Unit; }; } function StatementListComponent$renderListItem$lambda(closure$item, this$StatementListComponent) { return function ($receiver) { var padding = new LinearDimension('4px'); padding_0($receiver.css, padding, void 0, padding); umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda$lambda_0(closure$item, this$StatementListComponent)); return Unit; }; } StatementListComponent.prototype.renderListItem_js0tu9$ = function ($receiver, item) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, StatementListComponent$renderListItem$lambda(item, this)); }; StatementListComponent.prototype.handleClickEntry_11rc$ = function (entry) { }; Object.defineProperty(StatementListComponent.prototype, 'personWithContentTitle', { configurable: true, get: function () { return this.personWithContentTitle_izx7jf$_0; }, set: function (value) { this.personWithContentTitle_izx7jf$_0 = value; this.ustadComponentTitle = value; } }); StatementListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadListComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new StatementListPresenter(this, this.arguments, this, this.di, this); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; StatementListComponent.prototype.onFabClicked = function () { }; StatementListComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { }; StatementListComponent.prototype.onDestroyView = function () { var tmp$; UstadListComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; function StatementListComponent$Companion() { StatementListComponent$Companion_instance = this; this.VERB_ICON_MAP = mapOf_0([to(10001, 'fact_check'), to(10000, 'show_chart'), to(10005, 'ballot'), to(10006, 'touch_app'), to(10007, 'contact_support'), to(10004, 'checklist'), to(10002, 'checklist'), to(10003, 'close')]); } StatementListComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var StatementListComponent$Companion_instance = null; function StatementListComponent$Companion_getInstance() { if (StatementListComponent$Companion_instance === null) { new StatementListComponent$Companion(); }return StatementListComponent$Companion_instance; } StatementListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'StatementListComponent', interfaces: [StatementListView, UstadListComponent] }; function styledDiv$lambda_49(it) { return new DIV_init(html.emptyMap, it); } function TabsProps() { } TabsProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'TabsProps', interfaces: [UmProps] }; function UmTab(index, viewName, args, title) { this.index = index; this.viewName = viewName; this.args = args; this.title = title; } UmTab.$metadata$ = { kind: Kind_CLASS, simpleName: 'UmTab', interfaces: [] }; UmTab.prototype.component1 = function () { return this.index; }; UmTab.prototype.component2 = function () { return this.viewName; }; UmTab.prototype.component3 = function () { return this.args; }; UmTab.prototype.component4 = function () { return this.title; }; UmTab.prototype.copy_wlk0lb$ = function (index, viewName, args, title) { return new UmTab(index === void 0 ? this.index : index, viewName === void 0 ? this.viewName : viewName, args === void 0 ? this.args : args, title === void 0 ? this.title : title); }; UmTab.prototype.toString = function () { return 'UmTab(index=' + Kotlin.toString(this.index) + (', viewName=' + Kotlin.toString(this.viewName)) + (', args=' + Kotlin.toString(this.args)) + (', title=' + Kotlin.toString(this.title)) + ')'; }; UmTab.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.index) | 0; result = result * 31 + Kotlin.hashCode(this.viewName) | 0; result = result * 31 + Kotlin.hashCode(this.args) | 0; result = result * 31 + Kotlin.hashCode(this.title) | 0; return result; }; UmTab.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.index, other.index) && Kotlin.equals(this.viewName, other.viewName) && Kotlin.equals(this.args, other.args) && Kotlin.equals(this.title, other.title))))); }; function TabsComponent(mProps) { UstadBaseComponent.call(this, mProps); this.selectedTabTitle_bsdoec$_0 = this.selectedTabTitle_bsdoec$_0; this.tabChangeListener_0 = TabsComponent$tabChangeListener$lambda(this); } Object.defineProperty(TabsComponent.prototype, 'selectedTabTitle_0', { configurable: true, get: function () { if (this.selectedTabTitle_bsdoec$_0 == null) return throwUPAE('selectedTabTitle'); return this.selectedTabTitle_bsdoec$_0; }, set: function (selectedTabTitle) { this.selectedTabTitle_bsdoec$_0 = selectedTabTitle; } }); TabsComponent.prototype.updateTabIndexState_0 = function (selected) { var tmp$; var $receiver = this.props.tabs; var indexOfFirst$result; indexOfFirst$break: do { var tmp$_0; var index = 0; tmp$_0 = $receiver.iterator(); while (tmp$_0.hasNext()) { var item = tmp$_0.next(); if (equals(item.title, selected)) { indexOfFirst$result = index; break indexOfFirst$break; }index = index + 1 | 0; } indexOfFirst$result = -1; } while (false); var index_0 = indexOfFirst$result; var state = (tmp$ = window.history.state) != null ? tmp$ : {}; state.tabIndex = index_0; window.history.replaceState(state, ''); }; TabsComponent.prototype.init_xibzyo$ = function ($receiver, props) { this.selectedTabTitle_0 = props.tabs.get_za3lpa$(props.activeTabIndex).title; }; function TabsComponent$onCreateView$lambda(closure$tabIndex, this$TabsComponent) { return function ($receiver) { var tabIndexInt = closure$tabIndex; this$TabsComponent.selectedTabTitle_0 = this$TabsComponent.props.tabs.get_za3lpa$(tabIndexInt).title; return Unit; }; } TabsComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); var tabIndex = (tmp$_0 = (tmp$ = window.history.state) != null ? tmp$ : null) != null ? tmp$_0.tabIndex : null; if (tabIndex != undefined && tabIndex != 0) { setState(this, TabsComponent$onCreateView$lambda(tabIndex, this)); }}; function TabsComponent$render$lambda$lambda(this$TabsComponent) { return function (f, value) { this$TabsComponent.tabChangeListener_0(value); return Unit; }; } function TabsComponent$render$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; set_display($receiver_0, Display.block); set_width($receiver_0, new LinearDimension('100%')); return Unit; } function TabsComponent$render$lambda$lambda_0(this$TabsComponent) { return function ($receiver) { set_padding($receiver.css, '0 20px 0 20px'); $receiver.attrs.id = 'um-tabs'; var tmp$, tmp$_0; var index = 0; tmp$ = this$TabsComponent.props.tabs.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); checkIndexOverflow((tmp$_0 = index, index = tmp$_0 + 1 | 0, tmp$_0)); umTab($receiver, item.title, item.title, void 0, void 0, void 0, TabsComponent$render$lambda$lambda$lambda$lambda); } return Unit; }; } function TabsComponent$render$lambda(this$TabsComponent) { return function ($receiver) { var tmp$, tmp$_0; var this$TabsComponent_0 = this$TabsComponent; set_display($receiver.css, StyleManager_getInstance().displayProperty_dqye30$(this$TabsComponent_0.props.showTabs)); tmp$ = this$TabsComponent.selectedTabTitle_0; tmp$_0 = TabScrollButtons$auto_getInstance(); umTabs($receiver, tmp$, void 0, TabVariant$scrollable_getInstance(), void 0, void 0, void 0, void 0, tmp$_0, void 0, TabsComponent$render$lambda$lambda(this$TabsComponent), void 0, void 0, TabsComponent$render$lambda$lambda_0(this$TabsComponent)); return Unit; }; } function TabsComponent$render$lambda$lambda_1(closure$selectedTab) { return function ($receiver) { $receiver.attrs.arguments = closure$selectedTab.args; return Unit; }; } TabsComponent.prototype.render_ss14n$ = function ($receiver) { var tmp$; umAppBar($receiver, void 0, AppBarPosition$static_getInstance(), void 0, void 0, TabsComponent$render$lambda(this)); var $receiver_0 = this.props.tabs; var first$result; first$break: do { var tmp$_0; tmp$_0 = $receiver_0.iterator(); while (tmp$_0.hasNext()) { var element = tmp$_0.next(); if (equals(element.title, this.selectedTabTitle_0)) { first$result = element; break first$break; }} throw new NoSuchElementException_init('Collection contains no element matching the predicate.'); } while (false); var selectedTab = first$result; var component = (tmp$ = RouteManager_getInstance().lookupDestinationName_pdl1vj$(selectedTab.viewName)) != null ? tmp$.component : null; var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_49); StyleManager_getInstance().tabsContainer($receiver_0_0.css); if (component != null) { $receiver_0_0.child_up9nw1$(component, TabsComponent$render$lambda$lambda_1(selectedTab)); }$receiver.child_30b5ua$($receiver_0_0.create()); }; function TabsComponent$tabChangeListener$lambda$lambda(closure$it, this$TabsComponent) { return function ($receiver) { this$TabsComponent.updateTabIndexState_0(closure$it.toString()); this$TabsComponent.selectedTabTitle_0 = closure$it.toString(); return Unit; }; } function TabsComponent$tabChangeListener$lambda(this$TabsComponent) { return function (it) { setState(this$TabsComponent, TabsComponent$tabChangeListener$lambda$lambda(it, this$TabsComponent)); return Unit; }; } TabsComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'TabsComponent', interfaces: [UstadBaseComponent] }; function renderTabs$lambda(closure$tabs, closure$showTabs, closure$activeTabIndex) { return function ($receiver) { $receiver.attrs.tabs = closure$tabs; $receiver.attrs.showTabs = closure$showTabs; $receiver.attrs.activeTabIndex = closure$activeTabIndex; return Unit; }; } function renderTabs($receiver, tabs, showTabs, activeTabIndex) { if (showTabs === void 0) showTabs = true; $receiver.child_up9nw1$(getKClass(TabsComponent), renderTabs$lambda(tabs, showTabs, activeTabIndex)); } function styledDiv$lambda_50(it) { return new DIV_init(html.emptyMap, it); } function TextAssignmentEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.limitType = 2; this.limitTypeText_0 = ''; this.limitTextLabel = ''; this.editEnabled = true; this.charWordLimit = 0; this.maxCharOnEditor = null; this.editorContent = ''; this.editorContentChangedTo_cj6xdz$_0 = null; this.clazzAssignment_o0q8pf$_0 = null; this.fieldsEnabled_mtjkhc$_0 = false; this.entity_lsoutj$_0 = null; } Object.defineProperty(TextAssignmentEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); Object.defineProperty(TextAssignmentEditComponent.prototype, 'editorContentChangedTo', { configurable: true, get: function () { return this.editorContentChangedTo_cj6xdz$_0; }, set: function (value) { this.editorContentChangedTo_cj6xdz$_0 = value; this.updateWordsFilter_0(); } }); function TextAssignmentEditComponent$set_TextAssignmentEditComponent$clazzAssignment$lambda(closure$value, this$TextAssignmentEditComponent) { return function ($receiver) { this$TextAssignmentEditComponent.clazzAssignment_o0q8pf$_0 = closure$value; return Unit; }; } Object.defineProperty(TextAssignmentEditComponent.prototype, 'clazzAssignment', { configurable: true, get: function () { return this.clazzAssignment_o0q8pf$_0; }, set: function (value) { var tmp$, tmp$_0; setState(this, TextAssignmentEditComponent$set_TextAssignmentEditComponent$clazzAssignment$lambda(value, this)); this.charWordLimit = (tmp$ = value != null ? value.caTextLimit : null) != null ? tmp$ : 0; this.limitType = (tmp$_0 = value != null ? value.caTextLimitType : null) != null ? tmp$_0 : 2; this.limitTypeText_0 = this.limitType === 2 ? this.getString_za3lpa$(2869) : this.getString_za3lpa$(2868); this.updateWordsFilter_0(); } }); function TextAssignmentEditComponent$set_TextAssignmentEditComponent$fieldsEnabled$lambda(closure$value, this$TextAssignmentEditComponent) { return function ($receiver) { this$TextAssignmentEditComponent.fieldsEnabled_mtjkhc$_0 = closure$value; return Unit; }; } Object.defineProperty(TextAssignmentEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_mtjkhc$_0; }, set: function (value) { setState(this, TextAssignmentEditComponent$set_TextAssignmentEditComponent$fieldsEnabled$lambda(value, this)); } }); Object.defineProperty(TextAssignmentEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_lsoutj$_0; }, set: function (value) { var tmp$; this.editorContentChangedTo = value != null ? value.casText : null; this.editorContent = (tmp$ = this.editorContentChangedTo) != null ? tmp$ : ''; this.entity_lsoutj$_0 = value; } }); function TextAssignmentEditComponent$updateWordsFilter$lambda(this$TextAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0; this$TextAssignmentEditComponent.editEnabled = toBoolean(toString(this$TextAssignmentEditComponent.arguments.get_11rb$(TextAssignmentEditView.Companion.EDIT_ENABLED))); var text = (tmp$ = this$TextAssignmentEditComponent.editorContentChangedTo) != null ? tmp$ : ''; this$TextAssignmentEditComponent.ustadComponentTitle = (tmp$_0 = this$TextAssignmentEditComponent.clazzAssignment) != null ? tmp$_0.caTitle : null; var wordsLength = this$TextAssignmentEditComponent.limitType === 1 ? countWords(text) : text.length; var maxReached = (wordsLength / this$TextAssignmentEditComponent.charWordLimit | 0) === 1; if (maxReached) { this$TextAssignmentEditComponent.maxCharOnEditor = text.length; }this$TextAssignmentEditComponent.limitTextLabel = wordsLength.toString() + '/' + this$TextAssignmentEditComponent.charWordLimit + ' ' + this$TextAssignmentEditComponent.limitTypeText_0; return Unit; }; } TextAssignmentEditComponent.prototype.updateWordsFilter_0 = function () { setState(this, TextAssignmentEditComponent$updateWordsFilter$lambda(this)); }; function TextAssignmentEditComponent$onCreateView$lambda(this$TextAssignmentEditComponent) { return function () { var tmp$; (tmp$ = this$TextAssignmentEditComponent.fabManager) != null ? (tmp$.visible = toBoolean(toString(this$TextAssignmentEditComponent.arguments.get_11rb$(TextAssignmentEditView.Companion.EDIT_ENABLED)))) : null; return Unit; }; } TextAssignmentEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new TextAssignmentEditPresenter(this, this.arguments, this, this, this.di); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; this.updateUiWithStateChangeDelay_n53o35$(void 0, TextAssignmentEditComponent$onCreateView$lambda(this)); }; function TextAssignmentEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$TextAssignmentEditComponent) { return function ($receiver) { this$TextAssignmentEditComponent.editorContentChangedTo = closure$it; return Unit; }; } function TextAssignmentEditComponent$render$lambda$lambda$lambda(this$TextAssignmentEditComponent) { return function (it) { var tmp$; (tmp$ = this$TextAssignmentEditComponent.entity) != null ? (tmp$.casText = it) : null; setState(this$TextAssignmentEditComponent, TextAssignmentEditComponent$render$lambda$lambda$lambda$lambda(it, this$TextAssignmentEditComponent)); return Unit; }; } function TextAssignmentEditComponent$render$lambda$lambda(this$TextAssignmentEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; tmp$ = this$TextAssignmentEditComponent.editorContent; tmp$_0 = !this$TextAssignmentEditComponent.editEnabled; tmp$_1 = this$TextAssignmentEditComponent.getString_za3lpa$(2956); tmp$_2 = this$TextAssignmentEditComponent.maxCharOnEditor; umMuiHtmlEditor($receiver, tmp$, tmp$_0, void 0, tmp$_1, void 0, TextAssignmentEditComponent$render$lambda$lambda$lambda(this$TextAssignmentEditComponent), void 0, tmp$_2); return Unit; }; } function TextAssignmentEditComponent$render$lambda$lambda_0(this$TextAssignmentEditComponent) { return function ($receiver) { umTypography($receiver, this$TextAssignmentEditComponent.limitTextLabel, TypographyVariant$body1_getInstance()); return Unit; }; } TextAssignmentEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_50); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, TextAssignmentEditComponent$render$lambda$lambda(this)); umSpacer($receiver_0, void 0, void 0, get_spacingUnits(6)); umItem($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, TextAssignmentEditComponent$render$lambda$lambda_0(this)); $receiver.child_30b5ua$($receiver_0.create()); }; TextAssignmentEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; }; TextAssignmentEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'TextAssignmentEditComponent', interfaces: [TextAssignmentEditView, UstadEditComponent] }; function styledDiv$lambda_51(it) { return new DIV_init(html.emptyMap, it); } function TextCourseBlockEditComponent(mProps) { UstadEditComponent.call(this, mProps); this.mPresenter_0 = null; this.titleLabel_0 = new FieldLabel(this.getString_za3lpa$(2102)); this.doNotShowBeforeLabel_0 = new FieldLabel(clean(this.getString_za3lpa$(2845))); this.startTimeLabel_0 = new FieldLabel(this.getString_za3lpa$(2615)); this.blockTitleError_k34yuk$_0 = null; this.startDate_72uxhd$_0 = L0; this.startTime_7bsloi$_0 = L0; this.timeZone_efhtp2$_0 = null; this.fieldsEnabled_s0p5lj$_0 = false; this.entity_mnvfog$_0 = null; } Object.defineProperty(TextCourseBlockEditComponent.prototype, 'mEditPresenter', { configurable: true, get: function () { return this.mPresenter_0; } }); function TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$blockTitleError$lambda(this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.titleLabel_0 = this$TextCourseBlockEditComponent.titleLabel_0.copy_d8n4vg$(void 0, this$TextCourseBlockEditComponent.blockTitleError_k34yuk$_0); return Unit; }; } Object.defineProperty(TextCourseBlockEditComponent.prototype, 'blockTitleError', { configurable: true, get: function () { return this.blockTitleError_k34yuk$_0; }, set: function (value) { this.blockTitleError_k34yuk$_0 = value; setState(this, TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$blockTitleError$lambda(this)); } }); function TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$startDate$lambda(closure$value, this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.startDate_72uxhd$_0 = closure$value; return Unit; }; } Object.defineProperty(TextCourseBlockEditComponent.prototype, 'startDate', { configurable: true, get: function () { return this.startDate_72uxhd$_0; }, set: function (value) { setState(this, TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$startDate$lambda(value, this)); } }); function TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$startTime$lambda(closure$value, this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.startTime_7bsloi$_0 = closure$value; return Unit; }; } Object.defineProperty(TextCourseBlockEditComponent.prototype, 'startTime', { configurable: true, get: function () { return this.startTime_7bsloi$_0; }, set: function (value) { setState(this, TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$startTime$lambda(value, this)); } }); function TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$timeZone$lambda(closure$value, this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.timeZone_efhtp2$_0 = closure$value; return Unit; }; } Object.defineProperty(TextCourseBlockEditComponent.prototype, 'timeZone', { configurable: true, get: function () { return this.timeZone_efhtp2$_0; }, set: function (value) { setState(this, TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$timeZone$lambda(value, this)); } }); function TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$fieldsEnabled$lambda(closure$value, this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.fieldsEnabled_s0p5lj$_0 = closure$value; return Unit; }; } Object.defineProperty(TextCourseBlockEditComponent.prototype, 'fieldsEnabled', { configurable: true, get: function () { return this.fieldsEnabled_s0p5lj$_0; }, set: function (value) { setState(this, TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$fieldsEnabled$lambda(value, this)); } }); function TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$entity$lambda(closure$value, this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.entity_mnvfog$_0 = closure$value; return Unit; }; } Object.defineProperty(TextCourseBlockEditComponent.prototype, 'entity', { configurable: true, get: function () { return this.entity_mnvfog$_0; }, set: function (value) { setState(this, TextCourseBlockEditComponent$set_TextCourseBlockEditComponent$entity$lambda(value, this)); } }); TextCourseBlockEditComponent.prototype.onCreateView = function () { var tmp$; UstadEditComponent.prototype.onCreateView.call(this); this.mPresenter_0 = new TextCourseBlockEditPresenter(this, this.arguments, this, this.di, this); this.setEditTitle_vux9f0$(2874, 2926); (tmp$ = this.mPresenter_0) != null ? (tmp$.onCreate(currentBackStackEntrySavedStateMap(this.navController)), Unit) : null; }; function TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda(closure$it, this$TextCourseBlockEditComponent) { return function ($receiver) { var tmp$; (tmp$ = this$TextCourseBlockEditComponent.entity) != null ? (tmp$.cbTitle = closure$it) : null; this$TextCourseBlockEditComponent.blockTitleError = null; return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda(this$TextCourseBlockEditComponent) { return function (it) { setState(this$TextCourseBlockEditComponent, TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda(it, this$TextCourseBlockEditComponent)); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda(this$TextCourseBlockEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(this$TextCourseBlockEditComponent.titleLabel_0.text); tmp$_0 = this$TextCourseBlockEditComponent.titleLabel_0.errorText; tmp$_2 = (tmp$_1 = this$TextCourseBlockEditComponent.entity) != null ? tmp$_1.cbTitle : null; tmp$_3 = this$TextCourseBlockEditComponent.titleLabel_0.error; tmp$_4 = !this$TextCourseBlockEditComponent.fieldsEnabled; umTextField($receiver, tmp$, tmp$_2, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), TextCourseBlockEditComponent$render$lambda$lambda$lambda(this$TextCourseBlockEditComponent), void 0, void 0, tmp$_4, tmp$_3); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda(closure$it, this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_0(this$TextCourseBlockEditComponent) { return function (it) { setState(this$TextCourseBlockEditComponent, TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda(it, this$TextCourseBlockEditComponent)); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda_0(this$TextCourseBlockEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$TextCourseBlockEditComponent.doNotShowBeforeLabel_0.text); tmp$_0 = this$TextCourseBlockEditComponent.doNotShowBeforeLabel_0.error; tmp$_1 = this$TextCourseBlockEditComponent.doNotShowBeforeLabel_0.errorText; tmp$_2 = toDate(this$TextCourseBlockEditComponent.startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_0(this$TextCourseBlockEditComponent), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(closure$it, this$TextCourseBlockEditComponent) { return function ($receiver) { this$TextCourseBlockEditComponent.startDate = Kotlin.Long.fromNumber(closure$it.getTime()); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_1(this$TextCourseBlockEditComponent) { return function (it) { setState(this$TextCourseBlockEditComponent, TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda$lambda_0(it, this$TextCourseBlockEditComponent)); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda_1(this$TextCourseBlockEditComponent) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(this$TextCourseBlockEditComponent.startTimeLabel_0.text); tmp$_0 = this$TextCourseBlockEditComponent.startTimeLabel_0.error; tmp$_1 = this$TextCourseBlockEditComponent.startTimeLabel_0.errorText; tmp$_2 = toDate(this$TextCourseBlockEditComponent.startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, TextCourseBlockEditComponent$render$lambda$lambda$lambda$lambda_1(this$TextCourseBlockEditComponent), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda_0(this$TextCourseBlockEditComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, TextCourseBlockEditComponent$render$lambda$lambda$lambda_0(this$TextCourseBlockEditComponent)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, TextCourseBlockEditComponent$render$lambda$lambda$lambda_1(this$TextCourseBlockEditComponent)); return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda$lambda_2(this$TextCourseBlockEditComponent) { return function (it) { var tmp$; (tmp$ = this$TextCourseBlockEditComponent.entity) != null ? (tmp$.cbDescription = it) : null; return Unit; }; } function TextCourseBlockEditComponent$render$lambda$lambda_1(this$TextCourseBlockEditComponent) { return function ($receiver) { var tmp$; umSpacer($receiver); umMuiHtmlEditor($receiver, (tmp$ = this$TextCourseBlockEditComponent.entity) != null ? tmp$.cbDescription : null, void 0, void 0, this$TextCourseBlockEditComponent.getString_za3lpa$(2956), void 0, TextCourseBlockEditComponent$render$lambda$lambda$lambda_2(this$TextCourseBlockEditComponent)); return Unit; }; } TextCourseBlockEditComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_51); $receiver_0.css.unaryPlus_uoyjcc$(StyleManager_getInstance().fieldsOnlyFormScreen); umItem($receiver_0, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, TextCourseBlockEditComponent$render$lambda$lambda(this)); umGridContainer($receiver_0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, TextCourseBlockEditComponent$render$lambda$lambda_0(this)); umItem($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, TextCourseBlockEditComponent$render$lambda$lambda_1(this)); $receiver.child_30b5ua$($receiver_0.create()); }; TextCourseBlockEditComponent.prototype.onDestroyView = function () { var tmp$; UstadEditComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entity = null; this.blockTitleError = null; }; TextCourseBlockEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'TextCourseBlockEditComponent', interfaces: [TextCourseBlockEditView, UstadEditComponent] }; function TimeZoneListComponent(mProps) { UstadBaseComponent.call(this, mProps); this.mPresenter_0 = null; this.timeZoneList_0 = TimeZonesUtil_getInstance().getTimeZones(); } TimeZoneListComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); this.ustadComponentTitle = this.getString_za3lpa$(2521); this.mPresenter_0 = new TimeZoneListPresenter(this, this.arguments, this, this.di); (tmp$ = this.searchManager) != null ? (tmp$.searchListener = this) : null; if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; function TimeZoneListComponent$render$lambda(this$TimeZoneListComponent) { return function (timezone) { var tmp$; (tmp$ = this$TimeZoneListComponent.mPresenter_0) != null ? (tmp$.handleClickTimeZone_61zpoe$(timezone.id), Unit) : null; return Unit; }; } TimeZoneListComponent.prototype.render_ss14n$ = function ($receiver) { renderZoneList($receiver, this.timeZoneList_0, TimeZoneListComponent$render$lambda(this)); }; function TimeZoneListComponent$onSearchSubmitted$lambda$lambda$lambda(closure$filteredItems, this$TimeZoneListComponent) { return function ($receiver) { this$TimeZoneListComponent.timeZoneList_0 = closure$filteredItems; return Unit; }; } function Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda$lambda(closure$filteredItems_0, this$TimeZoneListComponent_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$closure$filteredItems = closure$filteredItems_0; this.local$this$TimeZoneListComponent = this$TimeZoneListComponent_0; } Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda$lambda.prototype.constructor = Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda$lambda; Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: return setState(this.local$this$TimeZoneListComponent, TimeZoneListComponent$onSearchSubmitted$lambda$lambda$lambda(this.local$closure$filteredItems, this.local$this$TimeZoneListComponent)), Unit; case 1: throw this.exception_0; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function TimeZoneListComponent$onSearchSubmitted$lambda$lambda(closure$filteredItems_0, this$TimeZoneListComponent_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda$lambda(closure$filteredItems_0, this$TimeZoneListComponent_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } function Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda(closure$text_0, this$TimeZoneListComponent_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$closure$text = closure$text_0; this.local$this$TimeZoneListComponent = this$TimeZoneListComponent_0; } Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda.prototype.constructor = Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda; Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: var $receiver = this.local$closure$text; var searchWords = Regex_init('\\s+').split_905azu$($receiver, 0); var $receiver_0 = TimeZonesUtil_getInstance().getTimeZones(); var destination = ArrayList_init_0(); var tmp$; tmp$ = $receiver_0.iterator(); loop_label: while (tmp$.hasNext()) { var element = tmp$.next(); var any$result; any$break: do { var tmp$_0; if (Kotlin.isType(searchWords, Collection) && searchWords.isEmpty()) { any$result = false; break any$break; }tmp$_0 = searchWords.iterator(); while (tmp$_0.hasNext()) { var element_0 = tmp$_0.next(); if (contains(element.id, element_0, true)) { any$result = true; break any$break; }} any$result = false; } while (false); var tmp$_1 = any$result; if (!tmp$_1) { var any$result_0; any$break: do { var tmp$_2; if (Kotlin.isType(searchWords, Collection) && searchWords.isEmpty()) { any$result_0 = false; break any$break; }tmp$_2 = searchWords.iterator(); while (tmp$_2.hasNext()) { var element_1 = tmp$_2.next(); if (contains(element.timeName, element_1, true)) { any$result_0 = true; break any$break; }} any$result_0 = false; } while (false); tmp$_1 = any$result_0; }if (tmp$_1) destination.add_11rb$(element); } var filteredItems = destination; this.state_0 = 2; this.result_0 = withContext(coroutines.Dispatchers.Main, TimeZoneListComponent$onSearchSubmitted$lambda$lambda(filteredItems, this.local$this$TimeZoneListComponent), this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 1: throw this.exception_0; case 2: return this.result_0; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function TimeZoneListComponent$onSearchSubmitted$lambda(closure$text_0, this$TimeZoneListComponent_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$TimeZoneListComponent$onSearchSubmitted$lambda(closure$text_0, this$TimeZoneListComponent_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } TimeZoneListComponent.prototype.onSearchSubmitted_pdl1vj$ = function (text) { if (text == null) { return; }launch(coroutines.GlobalScope, void 0, void 0, TimeZoneListComponent$onSearchSubmitted$lambda(text, this)); }; TimeZoneListComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; TimeZoneListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'TimeZoneListComponent', interfaces: [OnSearchSubmitted, TimeZoneListView, UstadBaseComponent] }; function ZonesListComponent(mProps) { UstadSimpleList.call(this, mProps); } function ZonesListComponent$renderListItem$lambda$lambda(closure$onClick) { return function (it) { closure$onClick(it.nativeEvent); return Unit; }; } function ZonesListComponent$renderListItem$lambda(closure$onClick, closure$item) { return function ($receiver) { $receiver.attrs.onClick = ZonesListComponent$renderListItem$lambda$lambda(closure$onClick); renderListItemWithLeftIconTitleAndDescription($receiver, 'query_builder', closure$item.name, closure$item.timeName, true); return Unit; }; } ZonesListComponent.prototype.renderListItem_f4dmsf$ = function ($receiver, item, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ZonesListComponent$renderListItem$lambda(onClick, item)); }; ZonesListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'ZonesListComponent', interfaces: [UstadSimpleList] }; function renderZoneList$lambda(closure$zones, closure$onEntryClicked) { return function ($receiver) { $receiver.attrs.entries = closure$zones; $receiver.attrs.onEntryClicked = closure$onEntryClicked; $receiver.attrs.mainList = true; return Unit; }; } function renderZoneList($receiver, zones, onEntryClicked) { if (onEntryClicked === void 0) onEntryClicked = null; $receiver.child_up9nw1$(getKClass(ZonesListComponent), renderZoneList$lambda(zones, onEntryClicked)); } function styledDiv$lambda_52(it) { return new DIV_init(html.emptyMap, it); } function UmDialogOptionItem(icon, primaryText, secondaryText, onOptionItemClicked) { if (secondaryText === void 0) secondaryText = 0; if (onOptionItemClicked === void 0) onOptionItemClicked = null; this.icon = icon; this.primaryText = primaryText; this.secondaryText = secondaryText; this.onOptionItemClicked = onOptionItemClicked; } UmDialogOptionItem.$metadata$ = { kind: Kind_CLASS, simpleName: 'UmDialogOptionItem', interfaces: [] }; UmDialogOptionItem.prototype.component1 = function () { return this.icon; }; UmDialogOptionItem.prototype.component2 = function () { return this.primaryText; }; UmDialogOptionItem.prototype.component3 = function () { return this.secondaryText; }; UmDialogOptionItem.prototype.component4 = function () { return this.onOptionItemClicked; }; UmDialogOptionItem.prototype.copy_eb06wj$ = function (icon, primaryText, secondaryText, onOptionItemClicked) { return new UmDialogOptionItem(icon === void 0 ? this.icon : icon, primaryText === void 0 ? this.primaryText : primaryText, secondaryText === void 0 ? this.secondaryText : secondaryText, onOptionItemClicked === void 0 ? this.onOptionItemClicked : onOptionItemClicked); }; UmDialogOptionItem.prototype.toString = function () { return 'UmDialogOptionItem(icon=' + Kotlin.toString(this.icon) + (', primaryText=' + Kotlin.toString(this.primaryText)) + (', secondaryText=' + Kotlin.toString(this.secondaryText)) + (', onOptionItemClicked=' + Kotlin.toString(this.onOptionItemClicked)) + ')'; }; UmDialogOptionItem.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.icon) | 0; result = result * 31 + Kotlin.hashCode(this.primaryText) | 0; result = result * 31 + Kotlin.hashCode(this.secondaryText) | 0; result = result * 31 + Kotlin.hashCode(this.onOptionItemClicked) | 0; return result; }; UmDialogOptionItem.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.icon, other.icon) && Kotlin.equals(this.primaryText, other.primaryText) && Kotlin.equals(this.secondaryText, other.secondaryText) && Kotlin.equals(this.onOptionItemClicked, other.onOptionItemClicked))))); }; function UmBottomSheetProps() { } UmBottomSheetProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'UmBottomSheetProps', interfaces: [UmProps] }; function UmBottomSheetOptionsComponent(mProps) { RComponent_init(mProps, this); this.showDialog_0 = true; this.lastShownAt_0 = L0; } function UmBottomSheetOptionsComponent$render$lambda(this$UmBottomSheetOptionsComponent) { return function () { this$UmBottomSheetOptionsComponent.handleDialogClosed_0(); return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(closure$option) { return function (it) { var tmp$; (tmp$ = closure$option.onOptionItemClicked) != null ? tmp$() : null; return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$option) { return function ($receiver) { umIcon($receiver, toString(closure$option.icon)); return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$option) { return function ($receiver) { umAvatar($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$option)); return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$option, this$UmBottomSheetOptionsComponent) { return function ($receiver) { if (closure$option.icon != null) { umListItemAvatar($receiver, void 0, UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$option)); }umListItemText($receiver, this$UmBottomSheetOptionsComponent.props.systemImpl.getString(closure$option.primaryText, $receiver), closure$option.secondaryText !== 0 ? this$UmBottomSheetOptionsComponent.props.systemImpl.getString(closure$option.secondaryText, $receiver) : ''); return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda(this$UmBottomSheetOptionsComponent) { return function ($receiver) { var $receiver_0 = this$UmBottomSheetOptionsComponent.props.optionItems; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda(element), void 0, UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda$lambda$lambda_0(element, this$UmBottomSheetOptionsComponent)); } return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda(this$UmBottomSheetOptionsComponent) { return function ($receiver) { set_width($receiver.css, new LinearDimension('100%')); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_52); var this$UmBottomSheetOptionsComponent_0 = this$UmBottomSheetOptionsComponent; set_width($receiver_0.css, new LinearDimension('100%')); umList($receiver_0, void 0, void 0, void 0, void 0, void 0, UmBottomSheetOptionsComponent$render$lambda$lambda$lambda$lambda(this$UmBottomSheetOptionsComponent_0)); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda$lambda(this$UmBottomSheetOptionsComponent) { return function (it) { this$UmBottomSheetOptionsComponent.handleDialogClosed_0(); return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda$lambda_0(this$UmBottomSheetOptionsComponent) { return function ($receiver) { umButton($receiver, this$UmBottomSheetOptionsComponent.props.systemImpl.getString(2018, $receiver), UMColor$secondary_getInstance(), void 0, void 0, UmBottomSheetOptionsComponent$render$lambda$lambda$lambda(this$UmBottomSheetOptionsComponent)); return Unit; }; } function UmBottomSheetOptionsComponent$render$lambda_0(this$UmBottomSheetOptionsComponent) { return function ($receiver) { if (this$UmBottomSheetOptionsComponent.props.title != null) { umDialogTitle($receiver, toString(this$UmBottomSheetOptionsComponent.props.title)); }umDialogContent($receiver, void 0, UmBottomSheetOptionsComponent$render$lambda$lambda(this$UmBottomSheetOptionsComponent)); umDialogActions($receiver, void 0, UmBottomSheetOptionsComponent$render$lambda$lambda_0(this$UmBottomSheetOptionsComponent)); return Unit; }; } UmBottomSheetOptionsComponent.prototype.render_ss14n$ = function ($receiver) { umDialog($receiver, this.showDialog_0, UmBottomSheetOptionsComponent$render$lambda(this), true, Breakpoint$sm_getInstance(), void 0, UmBottomSheetOptionsComponent$render$lambda_0(this)); }; function UmBottomSheetOptionsComponent$handleDialogClosed$lambda(this$UmBottomSheetOptionsComponent) { return function ($receiver) { this$UmBottomSheetOptionsComponent.showDialog_0 = false; this$UmBottomSheetOptionsComponent.lastShownAt_0 = this$UmBottomSheetOptionsComponent.props.shownAt; return Unit; }; } UmBottomSheetOptionsComponent.prototype.handleDialogClosed_0 = function () { this.props.onDialogClosed(); setState(this, UmBottomSheetOptionsComponent$handleDialogClosed$lambda(this)); }; UmBottomSheetOptionsComponent.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) { }; UmBottomSheetOptionsComponent.prototype.componentWillUpdate = function (nextProps, nextState) { this.showDialog_0 = !equals(nextProps.shownAt, this.props.shownAt); }; UmBottomSheetOptionsComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'UmBottomSheetOptionsComponent', interfaces: [RComponent] }; function renderDialogOptions$lambda(closure$optionItems, closure$systemImpl, closure$shownAt, closure$onDialogClosed, closure$title) { return function ($receiver) { $receiver.attrs.optionItems = closure$optionItems; $receiver.attrs.systemImpl = closure$systemImpl; $receiver.attrs.shownAt = closure$shownAt; $receiver.attrs.onDialogClosed = closure$onDialogClosed; $receiver.attrs.title = closure$title; return Unit; }; } function renderDialogOptions($receiver, systemImpl, optionItems, shownAt, title, onDialogClosed) { if (shownAt === void 0) shownAt = Kotlin.Long.fromNumber((new Date()).getTime()); if (title === void 0) title = null; $receiver.child_up9nw1$(getKClass(UmBottomSheetOptionsComponent), renderDialogOptions$lambda(optionItems, systemImpl, shownAt, onDialogClosed, title)); } function UstadBaseComponent(props) { UstadBaseComponent$Companion_getInstance(); RComponent_init(props, this); this.lifecycleObservers_gnoa0b$_0 = concurrentSafeListOf([]); var tmp$; this.systemImpl_yo8ttl$_0 = Instance(this, Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$ : throwCCE(), null).provideDelegate_tpuvb9$(this, UstadBaseComponent$systemImpl_metadata); var tmp$_0; this.accountManager_iwdz94$_0 = Instance(this, Kotlin.isType(tmp$_0 = typeToken(createKType(getKClass(UstadAccountManager), [], false)), TypeToken) ? tmp$_0 : throwCCE(), null).provideDelegate_tpuvb9$(this, UstadBaseComponent$accountManager_metadata); this.database = null; var tmp$_1; this.navController_fb61eb$_0 = Instance(this, Kotlin.isType(tmp$_1 = typeToken(createKType(getKClass(UstadNavController), [], false)), TypeToken) ? tmp$_1 : throwCCE(), null).provideDelegate_tpuvb9$(this, UstadBaseComponent$navController_metadata); this.showAddEntryOptions = false; this.progressBarManager_2e294x$_97sjba$_0 = this.progressBarManager_2e294x$_97sjba$_0; this.searchManager = null; this.fabManager = null; this.arguments_ctovsa$_0 = this.arguments_ctovsa$_0; this.lifecycleStatus_povz2o$_0 = atomic(0); this.hashChangeListener_qkui3a$_0 = UstadBaseComponent$hashChangeListener$lambda(this); this.ustadComponentTitle_2brako$_0 = null; this.loading_clec9c$_0 = false; this.di_rly6g3$_0 = DI.Companion.lazy_ys71a$(void 0, UstadBaseComponent$di$lambda); } var UstadBaseComponent$systemImpl_metadata = new PropertyMetadata('systemImpl'); Object.defineProperty(UstadBaseComponent.prototype, 'systemImpl', { configurable: true, get: function () { return this.systemImpl_yo8ttl$_0.value; } }); var UstadBaseComponent$accountManager_metadata = new PropertyMetadata('accountManager'); Object.defineProperty(UstadBaseComponent.prototype, 'accountManager', { configurable: true, get: function () { return this.accountManager_iwdz94$_0.value; } }); var UstadBaseComponent$navController_metadata = new PropertyMetadata('navController'); Object.defineProperty(UstadBaseComponent.prototype, 'navController', { configurable: true, get: function () { return this.navController_fb61eb$_0.value; } }); Object.defineProperty(UstadBaseComponent.prototype, 'progressBarManager_2e294x$_0', { configurable: true, get: function () { if (this.progressBarManager_2e294x$_97sjba$_0 == null) return throwUPAE('progressBarManager'); return this.progressBarManager_2e294x$_97sjba$_0; }, set: function (progressBarManager) { this.progressBarManager_2e294x$_97sjba$_0 = progressBarManager; } }); Object.defineProperty(UstadBaseComponent.prototype, 'arguments', { configurable: true, get: function () { if (this.arguments_ctovsa$_0 == null) return throwUPAE('arguments'); return this.arguments_ctovsa$_0; }, set: function (arguments_0) { this.arguments_ctovsa$_0 = arguments_0; } }); Object.defineProperty(UstadBaseComponent.prototype, 'savedStateHandle', { configurable: true, get: function () { var tmp$; return (tmp$ = this.navController.currentBackStackEntry) != null ? tmp$.savedStateHandle : null; } }); function UstadBaseComponent$set_UstadBaseComponent$ustadComponentTitle$lambda(this$UstadBaseComponent) { return function () { ReduxAppStateManager_getInstance().dispatch_quwr82$(new ReduxToolbarState(this$UstadBaseComponent.ustadComponentTitle)); return Unit; }; } Object.defineProperty(UstadBaseComponent.prototype, 'ustadComponentTitle', { configurable: true, get: function () { return this.ustadComponentTitle_2brako$_0; }, set: function (value) { this.ustadComponentTitle_2brako$_0 = value; window.setTimeout(UstadBaseComponent$set_UstadBaseComponent$ustadComponentTitle$lambda(this), 200); } }); Object.defineProperty(UstadBaseComponent.prototype, 'loading', { configurable: true, get: function () { return this.loading_clec9c$_0; }, set: function (value) { this.loading_clec9c$_0 = value; this.progressBarManager_2e294x$_0.progressBarVisibility = value; } }); Object.defineProperty(UstadBaseComponent.prototype, 'currentState', { configurable: true, get: function () { return this.lifecycleStatus_povz2o$_0.kotlinx$atomicfu$value; } }); function UstadBaseComponent$onCreateView$lambda(this$UstadBaseComponent) { return function () { this$UstadBaseComponent.onFabClicked(); return Unit; }; } UstadBaseComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; tmp$ = this.lifecycleObservers_gnoa0b$_0.iterator(); while (tmp$.hasNext()) { var observer = tmp$.next(); observer.onStart_a04wix$(this); } (tmp$_0 = this.fabManager) != null ? (tmp$_0.onClickListener = UstadBaseComponent$onCreateView$lambda(this)) : null; this.lifecycleStatus_povz2o$_0.kotlinx$atomicfu$value = 2; var $receiver = this.di; var context = this.accountManager.activeAccount; var trigger; trigger = $receiver.diTrigger; var tmp$_1; var tmp$_2; this.database = get_direct(On($receiver, DIContext.Companion.invoke_np530x$(Kotlin.isType(tmp$_1 = typeToken(createKType(getKClass(UmAccount), [], false)), TypeToken) ? tmp$_1 : throwCCE(), context), trigger)).directDI.Instance_ohrpre$(Kotlin.isType(tmp$_2 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_2 : throwCCE(), 1); }; UstadBaseComponent.prototype.onDestroyView = function () { }; UstadBaseComponent.prototype.componentWillMount = function () { window.addEventListener('hashchange', this.hashChangeListener_qkui3a$_0); }; UstadBaseComponent.prototype.componentDidMount = function () { var tmp$, tmp$_0, tmp$_1; napier_0.Napier.d_82mfvz$('UstadBaseComponent: componentDidMount: ' + toString(Kotlin.getKClassFromExpression(this).simpleName)); tmp$ = this.lifecycleObservers_gnoa0b$_0.iterator(); while (tmp$.hasNext()) { var observer = tmp$.next(); observer.onStart_a04wix$(this); } this.progressBarManager_2e294x$_0 = new ProgressBarManager(); this.searchManager = new SearchManager(); this.fabManager = new FabManager(); if (this.props.arguments != undefined) tmp$_1 = Kotlin.isType(tmp$_0 = this.props.arguments, Map) ? tmp$_0 : throwCCE(); else tmp$_1 = urlSearchParamsToMap(); this.arguments = tmp$_1; this.onCreateView(); }; UstadBaseComponent.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) { var tmp$; var propsDidChange = this.props.arguments != undefined && !equals(this.props.arguments.values, prevProps.arguments.values); var activeSession = this.systemImpl.getAppPref(UstadAccountManager.Companion.ACCOUNTS_ACTIVE_SESSION_PREFKEY, this); var redirected = toBoolean(this.systemImpl.getAppPref_rjah4r$(RedirectView.Companion.TAG_REDIRECTED, 'false', this)); var refreshPage = activeSession != null && redirected; if (propsDidChange) { napier_0.Napier.d_82mfvz$('UstadBaseComponent: componentDidUpdate: CHANGED: ' + toString(Kotlin.getKClassFromExpression(this).simpleName)); if (propsDidChange) { this.arguments = Kotlin.isType(tmp$ = this.props.arguments, Map) ? tmp$ : throwCCE(); }if (refreshPage) { this.systemImpl.setAppPref_5pkmrg$(RedirectView.Companion.TAG_REDIRECTED, 'false', this); }this.onCreateView(); }}; UstadBaseComponent.prototype.render_ss14n$ = function ($receiver) { }; UstadBaseComponent.prototype.onFabClicked = function () { }; UstadBaseComponent.prototype.showSnackBar_9pu0dj$$default = function (message, action, actionMessageId) { ReduxAppStateManager_getInstance().dispatch_quwr82$(new ReduxSnackBarState(message, this.getString_za3lpa$(actionMessageId), action)); }; UstadBaseComponent.prototype.runOnUiThread_9ywmpy$ = function (r) { r != null ? (r.run(), Unit) : null; }; var UstadBaseComponent$di_metadata = new PropertyMetadata('di'); Object.defineProperty(UstadBaseComponent.prototype, 'di', { configurable: true, get: function () { return this.di_rly6g3$_0.getValue_n5byny$(this, UstadBaseComponent$di_metadata); } }); UstadBaseComponent.prototype.addObserver_189diq$ = function (observer) { this.lifecycleObservers_gnoa0b$_0.add_11rb$(observer); }; UstadBaseComponent.prototype.removeObserver_189diq$ = function (observer) { this.lifecycleObservers_gnoa0b$_0.remove_11rb$(observer); }; UstadBaseComponent.prototype.getString_za3lpa$ = function (messageId) { return messageId === 0 ? '' : this.systemImpl.getString(messageId, this); }; UstadBaseComponent.prototype.getStringWithOptionalLabel_za3lpa$ = function (messageId) { return this.getString_za3lpa$(messageId) + (' (' + this.getString_za3lpa$(2063) + ')'); }; UstadBaseComponent.prototype.updateUiWithStateChangeDelay_n53o35$ = function (timeOutInMills, block) { if (timeOutInMills === void 0) timeOutInMills = 200; window.setTimeout(block, timeOutInMills); }; UstadBaseComponent.prototype.componentWillUnmount = function () { var tmp$, tmp$_0, tmp$_1; tmp$ = this.lifecycleObservers_gnoa0b$_0.iterator(); while (tmp$.hasNext()) { var observer = tmp$.next(); observer.onStop_a04wix$(this); } this.lifecycleStatus_povz2o$_0.kotlinx$atomicfu$value = 5; window.removeEventListener('hashchange', this.hashChangeListener_qkui3a$_0); this.progressBarManager_2e294x$_0.onDestroy(); (tmp$_0 = this.searchManager) != null ? (tmp$_0.onDestroy(), Unit) : null; this.searchManager = null; (tmp$_1 = this.fabManager) != null ? (tmp$_1.onDestroy(), Unit) : null; this.fabManager = null; this.database = null; this.onDestroyView(); }; function UstadBaseComponent$Companion() { UstadBaseComponent$Companion_instance = this; this.MIN_STATE_CHANGE_DELAY_TIME = 200; this.MAX_STATE_CHANGE_DELAY_TIME = 500; } UstadBaseComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var UstadBaseComponent$Companion_instance = null; function UstadBaseComponent$Companion_getInstance() { if (UstadBaseComponent$Companion_instance === null) { new UstadBaseComponent$Companion(); }return UstadBaseComponent$Companion_instance; } function UstadBaseComponent$hashChangeListener$lambda(this$UstadBaseComponent) { return function (it) { var tmp$; Kotlin.isType(tmp$ = it, HashChangeEvent) ? tmp$ : throwCCE(); var viewNamesVal = RouteManager_getInstance().lookupViewNamesByComponent_xo1ogr$(Kotlin.getKClassFromExpression(this$UstadBaseComponent)); if (viewNamesVal != null) { try { var newUstadUrl = UstadUrlComponents.Companion.parse_puj7f4$(it.newURL); if (viewNamesVal.indexOf_11rb$(newUstadUrl.viewName) !== -1 && viewNamesVal.indexOf_11rb$(UstadUrlComponents.Companion.parse_puj7f4$(it.oldURL).viewName) !== -1) { napier_0.Napier.d_82mfvz$('UstadBaseComponent: hashChange: trigger onCreateView ' + ('(oldUrl=' + it.oldURL + ' newUrl=' + it.newURL + ')')); this$UstadBaseComponent.arguments = newUstadUrl.arguments; this$UstadBaseComponent.onCreateView(); }} catch (e) { if (Kotlin.isType(e, IllegalArgumentException)) { napier_0.Napier.d_82mfvz$('old or new url on hash change was not an ustad url:', e); } else throw e; } }return Unit; }; } function UstadBaseComponent$di$lambda($receiver) { $receiver.extend_nltjgj$(ReduxAppStateManager_getInstance().getCurrentState().di.instance); return Unit; } UstadBaseComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'UstadBaseComponent', interfaces: [DoorLifecycleOwner, DIAware, UstadView, RComponent] }; function UstadDetailComponent(mProps) { UstadBaseComponent.call(this, mProps); this.editButtonMode_ypesp5$_0 = EditButtonMode.GONE; } function UstadDetailComponent$set_UstadDetailComponent$editButtonMode$lambda(closure$value, this$UstadDetailComponent) { return function () { var tmp$; this$UstadDetailComponent.editButtonMode_ypesp5$_0 = closure$value; (tmp$ = this$UstadDetailComponent.fabManager) != null ? (tmp$.visible = closure$value === EditButtonMode.FAB) : null; return Unit; }; } Object.defineProperty(UstadDetailComponent.prototype, 'editButtonMode', { configurable: true, get: function () { return this.editButtonMode_ypesp5$_0; }, set: function (value) { window.setTimeout(UstadDetailComponent$set_UstadDetailComponent$editButtonMode$lambda(value, this), 200); } }); UstadDetailComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.icon = 'edit') : null; (tmp$_0 = this.fabManager) != null ? (tmp$_0.text = this.getString_za3lpa$(2321)) : null; }; UstadDetailComponent.prototype.onFabClicked = function () { var tmp$; (tmp$ = this.detailPresenter) != null ? (tmp$.handleClickEdit(), Unit) : null; }; UstadDetailComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'UstadDetailComponent', interfaces: [UstadDetailView, UstadBaseComponent] }; function UstadEditComponent(mProps) { UstadEditComponent$Companion_getInstance(); UstadBaseComponent.call(this, mProps); } function UstadEditComponent$onCreateView$lambda(this$UstadEditComponent) { return function () { var tmp$; (tmp$ = this$UstadEditComponent.fabManager) != null ? (tmp$.visible = true) : null; return Unit; }; } UstadEditComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; napier_0.Napier.d_82mfvz$('UstadEditComponent: navController viewName = ' + toString((tmp$ = this.navController.currentBackStackEntry) != null ? tmp$.viewName : null) + ' '); UstadBaseComponent.prototype.onCreateView.call(this); if (equals((tmp$_0 = this.mEditPresenter) != null ? tmp$_0.persistenceMode : null, UstadSingleEntityPresenter$PersistenceMode.DB)) { tmp$_1 = this.getString_za3lpa$(2517); } else { tmp$_1 = this.getString_za3lpa$(2221); } var fabLabelText = tmp$_1; (tmp$_2 = this.fabManager) != null ? (tmp$_2.icon = 'check') : null; (tmp$_3 = this.fabManager) != null ? (tmp$_3.text = fabLabelText) : null; this.updateUiWithStateChangeDelay_n53o35$(void 0, UstadEditComponent$onCreateView$lambda(this)); }; UstadEditComponent.prototype.onFabClicked = function () { var tmp$, tmp$_0; tmp$ = this.entity; if (tmp$ == null) { return; }var entityVal = tmp$; (tmp$_0 = this.mEditPresenter) != null ? (tmp$_0.handleClickSave_nqi3in$(entityVal), Unit) : null; }; function UstadEditComponent$setEditTitle$lambda(this$UstadEditComponent, closure$editStringId, closure$newTitleId) { return function () { var tmp$, tmp$_0, tmp$_1; var entityUid = (tmp$_0 = (tmp$ = this$UstadEditComponent.arguments.get_11rb$(UstadView.Companion.ARG_ENTITY_UID)) != null ? toLong(tmp$) : null) != null ? tmp$_0 : L0; var entityJsonStr = this$UstadEditComponent.arguments.get_11rb$(UstadEditView.Companion.ARG_ENTITY_JSON); if (!equals(entityUid, L0) || entityJsonStr != null) { tmp$_1 = this$UstadEditComponent.getString_za3lpa$(closure$editStringId); } else { tmp$_1 = this$UstadEditComponent.getString_za3lpa$(closure$newTitleId); } this$UstadEditComponent.ustadComponentTitle = tmp$_1; return Unit; }; } UstadEditComponent.prototype.setEditTitle_vux9f0$ = function (newTitleId, editStringId) { window.setTimeout(UstadEditComponent$setEditTitle$lambda(this, editStringId, newTitleId), 500); }; UstadEditComponent.prototype.onDestroyView = function () { var presenterVal = this.mEditPresenter; if (presenterVal != null && presenterVal.persistenceMode === UstadSingleEntityPresenter$PersistenceMode.DB && systemTimeInMillis().subtract(presenterVal.lastStateSaveTime).toNumber() > 100) { presenterVal.saveStateToNavController(); }UstadBaseComponent.prototype.onDestroyView.call(this); }; function UstadEditComponent$Companion() { UstadEditComponent$Companion_instance = this; this.LAST_SAVE_CHECK_WINDOW = 100; } UstadEditComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var UstadEditComponent$Companion_instance = null; function UstadEditComponent$Companion_getInstance() { if (UstadEditComponent$Companion_instance === null) { new UstadEditComponent$Companion(); }return UstadEditComponent$Companion_instance; } UstadEditComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'UstadEditComponent', interfaces: [UstadEditView, UstadBaseComponent] }; function styledDiv$lambda_53(it) { return new DIV_init(html.emptyMap, it); } function styledSpan$lambda_5(it) { return new SPAN_init(html.emptyMap, it); } function UstadListComponent(props) { UstadListComponent$Companion_getInstance(); UstadBaseComponent.call(this, props); this.isPressEventHandled_gwjzb2$_0 = false; this.selectedListItems_5g120i$_0 = concurrentSafeListOf([]); this.dataListItems = concurrentSafeListOf([]); this.showEditOptionsMenu = false; this.listItemPressTimer_iby9u0$_0 = -1; this.dbRepo = null; this.showEmptyState_vtbyue$_0 = true; this.showCreateNewItem_cpzy0v$_0 = false; this.addNewEntryText_qpkvif$_0 = this.getString_za3lpa$(2544); this.inviteNewText_26ezit$_0 = ''; this.columnSize_u8htto$_0 = GridSize$cells4_getInstance(); this.useCardsOnGridLayout_vb6qz4$_0 = true; this.linearLayout_ea1vf0$_0 = true; this.itemPressEventHandler_sk9sm1$_0 = UstadListComponent$itemPressEventHandler$lambda(this); this.dataObserver_olpim3$_0 = new ObserverFnWrapper(UstadListComponent$dataObserver$lambda(this)); this.list_4jtoeb$_0 = null; this.selectionOptions_rjv82f$_0 = null; this.sortOptions_7qj0fb$_0 = null; this.addMode_e6igff$_0 = ListViewAddMode.NONE; this.listFilterOptionChips_80ps2l$_0 = null; this.checkedFilterOptionChip_igjv2f$_0 = null; this.emptyList_bg95u6$_0 = new EmptyList(); } function UstadListComponent$set_UstadListComponent$showEmptyState$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.showEmptyState_vtbyue$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'showEmptyState', { configurable: true, get: function () { return this.showEmptyState_vtbyue$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$showEmptyState$lambda(value, this)); } }); function UstadListComponent$set_UstadListComponent$showCreateNewItem$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.showCreateNewItem_cpzy0v$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'showCreateNewItem', { configurable: true, get: function () { return this.showCreateNewItem_cpzy0v$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$showCreateNewItem$lambda(value, this)); } }); Object.defineProperty(UstadListComponent.prototype, 'addNewEntryText', { configurable: true, get: function () { return this.addNewEntryText_qpkvif$_0; }, set: function (value) { this.addNewEntryText_qpkvif$_0 = value; } }); Object.defineProperty(UstadListComponent.prototype, 'inviteNewText', { configurable: true, get: function () { return this.inviteNewText_26ezit$_0; }, set: function (value) { this.inviteNewText_26ezit$_0 = value; } }); function UstadListComponent$set_UstadListComponent$columnSize$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.columnSize_u8htto$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'columnSize', { configurable: true, get: function () { return this.columnSize_u8htto$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$columnSize$lambda(value, this)); } }); function UstadListComponent$set_UstadListComponent$useCardsOnGridLayout$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.useCardsOnGridLayout_vb6qz4$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'useCardsOnGridLayout', { configurable: true, get: function () { return this.useCardsOnGridLayout_vb6qz4$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$useCardsOnGridLayout$lambda(value, this)); } }); function UstadListComponent$set_UstadListComponent$linearLayout$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.linearLayout_ea1vf0$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'linearLayout', { configurable: true, get: function () { return this.linearLayout_ea1vf0$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$linearLayout$lambda(value, this)); } }); Object.defineProperty(UstadListComponent.prototype, 'list', { configurable: true, get: function () { return this.list_4jtoeb$_0; }, set: function (value) { this.list_4jtoeb$_0 = value; var liveData = value != null ? value.getData_vux9f0$(0, 2147483647) : null; liveData != null ? (liveData.removeObserver_jsfaok$(this.dataObserver_olpim3$_0), Unit) : null; liveData != null ? (liveData.observe_igxi3b$(this, this.dataObserver_olpim3$_0), Unit) : null; } }); function UstadListComponent$set_UstadListComponent$selectionOptions$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.selectionOptions_rjv82f$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'selectionOptions', { configurable: true, get: function () { return this.selectionOptions_rjv82f$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$selectionOptions$lambda(value, this)); } }); function UstadListComponent$set_UstadListComponent$sortOptions$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.sortOptions_7qj0fb$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'sortOptions', { configurable: true, get: function () { return this.sortOptions_7qj0fb$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$sortOptions$lambda(value, this)); } }); function UstadListComponent$set_UstadListComponent$addMode$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.addMode_e6igff$_0 = closure$value; this$UstadListComponent.showCreateNewItem = closure$value === ListViewAddMode.FIRST_ITEM; return Unit; }; } function UstadListComponent$set_UstadListComponent$addMode$lambda_0(closure$value, this$UstadListComponent) { return function () { var tmp$; (tmp$ = this$UstadListComponent.fabManager) != null ? (tmp$.visible = closure$value === ListViewAddMode.FAB) : null; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'addMode', { configurable: true, get: function () { return this.addMode_e6igff$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$addMode$lambda(value, this)); this.updateUiWithStateChangeDelay_n53o35$(void 0, UstadListComponent$set_UstadListComponent$addMode$lambda_0(value, this)); } }); function UstadListComponent$set_UstadListComponent$listFilterOptionChips$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.listFilterOptionChips_80ps2l$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'listFilterOptionChips', { configurable: true, get: function () { return this.listFilterOptionChips_80ps2l$_0; }, set: function (value) { var tmp$; if (this.checkedFilterOptionChip == null) this.checkedFilterOptionChip = (tmp$ = this.listFilterOptionChips) != null ? firstOrNull(tmp$) : null; setState(this, UstadListComponent$set_UstadListComponent$listFilterOptionChips$lambda(value, this)); } }); function UstadListComponent$set_UstadListComponent$checkedFilterOptionChip$lambda(closure$value, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.checkedFilterOptionChip_igjv2f$_0 = closure$value; return Unit; }; } Object.defineProperty(UstadListComponent.prototype, 'checkedFilterOptionChip', { configurable: true, get: function () { return this.checkedFilterOptionChip_igjv2f$_0; }, set: function (value) { setState(this, UstadListComponent$set_UstadListComponent$checkedFilterOptionChip$lambda(value, this)); } }); function UstadListComponent$onCreateView$lambda(this$UstadListComponent) { return function () { var tmp$; (tmp$ = this$UstadListComponent.searchManager) != null ? (tmp$.searchListener = this$UstadListComponent.listPresenter) : null; return Unit; }; } UstadListComponent.prototype.onCreateView = function () { var tmp$; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.icon = 'add') : null; var context = this.accountManager.activeAccount; var trigger; trigger = this.diTrigger; var tmp$_0; var tmp$_1; this.dbRepo = get_direct(On(this, DIContext.Companion.invoke_np530x$(Kotlin.isType(tmp$_0 = typeToken(createKType(getKClass(UmAccount), [], false)), TypeToken) ? tmp$_0 : throwCCE(), context), trigger)).directDI.Instance_ohrpre$(Kotlin.isType(tmp$_1 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_1 : throwCCE(), 2); window.setTimeout(UstadListComponent$onCreateView$lambda(this), 100); }; UstadListComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_53); var $receiver_1 = $receiver_0.css; if (this.linearLayout) { $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().listComponentContainer); }$receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().contentContainer); this.renderEntrySelectionMenuOptions_5gsf3n$_0($receiver_0); this.renderEntriesFilterOptions_n0rhfs$_0($receiver_0); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_53); set_paddingBottom($receiver_0_0.css, get_spacingUnits(2)); this.renderListHeaderView_ss14n$($receiver_0_0); $receiver_0.child_30b5ua$($receiver_0_0.create()); if (this.linearLayout) this.renderSingleColumnList_qg23e6$_0($receiver_0); else this.renderMultiColumnList_97phrf$_0($receiver_0); this.renderListFooterView_ss14n$($receiver_0); $receiver.child_30b5ua$($receiver_0.create()); this.renderAddContentOptionsDialog_ss14n$($receiver); }; UstadListComponent.prototype.onDataListLoaded = function () { }; function UstadListComponent$renderEmptyList$lambda$lambda$lambda($receiver) { set_marginTop($receiver.css, get_px(20)); return Unit; } function UstadListComponent$renderEmptyList$lambda(this$UstadListComponent) { return function ($receiver) { StyleManager_getInstance().centerContainer($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_53); var this$UstadListComponent_0 = this$UstadListComponent; var tmp$, tmp$_0; var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); set_width($receiver_1, get_px(200)); umIcon($receiver_0, (tmp$ = this$UstadListComponent_0.emptyList.icon) != null ? tmp$ : 'crop_free', void 0, void 0, StyleManager_getInstance().name + '-emptyListIcon'); umTypography($receiver_0, (tmp$_0 = this$UstadListComponent_0.emptyList.text) != null ? tmp$_0 : this$UstadListComponent_0.getString_za3lpa$(2579), TypographyVariant$h6_getInstance(), TypographyAlign$center_getInstance(), void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderEmptyList$lambda$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function UstadListComponent$renderEmptyList$lambda_0(this$UstadListComponent) { return function () { this$UstadListComponent.loading = false; return Unit; }; } UstadListComponent.prototype.renderEmptyList_vv6veb$_0 = function ($receiver) { if (this.showEmptyState) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderEmptyList$lambda(this)); window.setTimeout(UstadListComponent$renderEmptyList$lambda_0(this), 100); }}; function UstadListComponent$renderNewItem$lambda$lambda$lambda(this$UstadListComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$UstadListComponent.handleClickAddNewEntry(); return Unit; }; } function UstadListComponent$renderNewItem$lambda$lambda(this$UstadListComponent) { return function ($receiver) { $receiver.attrs.onClick = UstadListComponent$renderNewItem$lambda$lambda$lambda(this$UstadListComponent); renderCreateNewItemOnList($receiver, this$UstadListComponent.addNewEntryText); return Unit; }; } function UstadListComponent$renderNewItem$lambda(this$UstadListComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().listCreateNewContainer); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().horizontalList); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderNewItem$lambda$lambda(this$UstadListComponent)); return Unit; }; } function UstadListComponent$renderNewItem$lambda$lambda_0(this$UstadListComponent) { return function () { this$UstadListComponent.handleInviteClicked(); return Unit; }; } function UstadListComponent$renderNewItem$lambda_0(this$UstadListComponent) { return function ($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().listCreateNewContainer); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().horizontalList); $receiver.attrs.onClick = UstadListComponent$renderNewItem$lambda$lambda_0(this$UstadListComponent); renderCreateNewItemOnList($receiver, this$UstadListComponent.inviteNewText); return Unit; }; } function UstadListComponent$renderNewItem$lambda$lambda_1(this$UstadListComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$UstadListComponent.handleClickAddNewEntry(); return Unit; }; } function UstadListComponent$renderNewItem$lambda_1(this$UstadListComponent) { return function ($receiver) { StyleManager_getInstance().listCreateNewContainer($receiver.css); $receiver.attrs.divider = true; $receiver.attrs.onClick = UstadListComponent$renderNewItem$lambda$lambda_1(this$UstadListComponent); renderCreateNewItemOnList($receiver, this$UstadListComponent.addNewEntryText); return Unit; }; } function UstadListComponent$renderNewItem$lambda$lambda_2(this$UstadListComponent) { return function (it) { this$UstadListComponent.handleInviteClicked(); return Unit; }; } function UstadListComponent$renderNewItem$lambda_2(this$UstadListComponent) { return function ($receiver) { StyleManager_getInstance().listCreateNewContainer($receiver.css); $receiver.attrs.divider = true; $receiver.attrs.onClick = UstadListComponent$renderNewItem$lambda$lambda_2(this$UstadListComponent); renderCreateNewItemOnList($receiver, this$UstadListComponent.inviteNewText, ''); return Unit; }; } UstadListComponent.prototype.renderNewItem_t5csie$_0 = function ($receiver, multiColumn) { if (multiColumn === void 0) multiColumn = false; if (this.showCreateNewItem) { if (multiColumn) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderNewItem$lambda(this)); if (this.inviteNewText.length > 0) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderNewItem$lambda_0(this)); }} else { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, ListItemAlignItems$flexStart_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderNewItem$lambda_1(this)); if (this.inviteNewText.length > 0) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, ListItemAlignItems$flexStart_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderNewItem$lambda_2(this)); }} }}; function UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda(closure$entry, this$UstadListComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$UstadListComponent.handleListItemPress_buifw9$_0(closure$entry); return Unit; }; } function UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda_0(closure$entry, this$UstadListComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); this$UstadListComponent.handleListItemRelease_6kdv3x$_0(closure$entry); return Unit; }; } function UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda_1(closure$entry, this$UstadListComponent) { return function ($receiver) { set_width($receiver.css, get_pct(97)); this$UstadListComponent.renderListItem_js0tu9$($receiver, closure$entry); return Unit; }; } function UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda_2(closure$entry, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.renderListItem_js0tu9$($receiver, closure$entry); return Unit; }; } function UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda(this$UstadListComponent, closure$entry) { return function ($receiver) { var this$UstadListComponent_0 = this$UstadListComponent; var closure$entry_0 = closure$entry; var $receiver_0 = $receiver.css; set_cursor($receiver_0, Cursor.pointer); set_backgroundColor($receiver_0, new Color(this$UstadListComponent_0.selectedListItems_5g120i$_0.indexOf_11rb$(closure$entry_0) !== -1 ? StyleManager_getInstance().theme.palette.action.selected : StyleManager_getInstance().theme.palette.background.default)); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); padding($receiver_0, get_spacingUnits(1)); $receiver.attrs.onMouseDown = UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda(closure$entry, this$UstadListComponent); $receiver.attrs.onMouseUp = UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda_0(closure$entry, this$UstadListComponent); if (this$UstadListComponent.useCardsOnGridLayout) { umPaper($receiver, 4, void 0, void 0, void 0, UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda_1(closure$entry, this$UstadListComponent)); } else { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda$lambda_2(closure$entry, this$UstadListComponent)); } return Unit; }; } function UstadListComponent$renderMultiColumnList$lambda$lambda(this$UstadListComponent) { return function ($receiver) { var $receiver_0 = this$UstadListComponent.dataListItems; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var this$UstadListComponent_0 = this$UstadListComponent; umItem($receiver, GridSize$cells12_getInstance(), this$UstadListComponent_0.columnSize, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderMultiColumnList$lambda$lambda$lambda$lambda(this$UstadListComponent_0, element)); } return Unit; }; } function UstadListComponent$renderMultiColumnList$lambda(this$UstadListComponent) { return function ($receiver) { if (this$UstadListComponent.showCreateNewItem) { this$UstadListComponent.renderNewItem_t5csie$_0($receiver); }if (!this$UstadListComponent.dataListItems.isEmpty()) { this$UstadListComponent.renderListJoinView_ss14n$($receiver); }if (this$UstadListComponent.dataListItems.isEmpty()) { this$UstadListComponent.renderEmptyList_vv6veb$_0($receiver); } else { umGridContainer($receiver, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderMultiColumnList$lambda$lambda(this$UstadListComponent)); } return Unit; }; } UstadListComponent.prototype.renderMultiColumnList_97phrf$_0 = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderMultiColumnList$lambda(this)); }; function UstadListComponent$renderSingleColumnList$lambda$lambda$lambda$lambda(closure$entry, this$UstadListComponent) { return function () { this$UstadListComponent.handleListItemPress_buifw9$_0(closure$entry); return Unit; }; } function UstadListComponent$renderSingleColumnList$lambda$lambda$lambda$lambda_0(closure$entry, this$UstadListComponent) { return function () { this$UstadListComponent.handleListItemRelease_6kdv3x$_0(closure$entry); return Unit; }; } function UstadListComponent$renderSingleColumnList$lambda$lambda$lambda(this$UstadListComponent, closure$entry) { return function ($receiver) { var this$UstadListComponent_0 = this$UstadListComponent; var closure$entry_0 = closure$entry; var $receiver_0 = $receiver.css; set_backgroundColor($receiver_0, new Color(this$UstadListComponent_0.selectedListItems_5g120i$_0.indexOf_11rb$(closure$entry_0) !== -1 ? StyleManager_getInstance().theme.palette.action.selected : StyleManager_getInstance().theme.palette.background.paper)); set_width($receiver_0, get_pct(100)); $receiver.attrs.alignItems = ListItemAlignItems$flexStart_getInstance(); $receiver.attrs.divider = true; $receiver.attrs.onMouseDown = UstadListComponent$renderSingleColumnList$lambda$lambda$lambda$lambda(closure$entry, this$UstadListComponent); $receiver.attrs.onMouseUp = UstadListComponent$renderSingleColumnList$lambda$lambda$lambda$lambda_0(closure$entry, this$UstadListComponent); this$UstadListComponent.renderListItem_js0tu9$($receiver, closure$entry); return Unit; }; } function UstadListComponent$renderSingleColumnList$lambda(this$UstadListComponent) { return function ($receiver) { var this$UstadListComponent_0 = this$UstadListComponent; $receiver.css; if (!this$UstadListComponent_0.dataListItems.isEmpty()) StyleManager_getInstance().horizontalList; else StyleManager_getInstance().horizontalListEmpty; this$UstadListComponent.renderNewItem_t5csie$_0($receiver, false); if (!this$UstadListComponent.dataListItems.isEmpty()) { this$UstadListComponent.renderListJoinView_ss14n$($receiver); }if (this$UstadListComponent.dataListItems.isEmpty()) { this$UstadListComponent.renderEmptyList_vv6veb$_0($receiver); } else { var $receiver_0 = this$UstadListComponent.dataListItems; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderSingleColumnList$lambda$lambda$lambda(this$UstadListComponent, element)); } } return Unit; }; } UstadListComponent.prototype.renderSingleColumnList_qg23e6$_0 = function ($receiver) { umList($receiver, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderSingleColumnList$lambda(this)); }; UstadListComponent.prototype.handleListItemPress_buifw9$_0 = function (entry) { if (this.listItemPressTimer_iby9u0$_0 !== -1) window.clearTimeout(this.listItemPressTimer_iby9u0$_0); this.listItemPressTimer_iby9u0$_0 = window.setTimeout(this.itemPressEventHandler_sk9sm1$_0, 1000, entry); this.isPressEventHandled_gwjzb2$_0 = false; }; UstadListComponent.prototype.handleListItemRelease_6kdv3x$_0 = function (entry) { if (!this.showEditOptionsMenu) { this.handleClickEntry_11rc$(entry); } else { if (!this.isPressEventHandled_gwjzb2$_0) { this.isPressEventHandled_gwjzb2$_0 = true; if (this.selectedListItems_5g120i$_0.isEmpty()) { this.handleClickEntry_11rc$(entry); } else { this.handleSelectedEntry_7n6ndu$_0(entry); } }} window.clearTimeout(this.listItemPressTimer_iby9u0$_0); }; function UstadListComponent$handleSelectedEntry$lambda(closure$exists, this$UstadListComponent, closure$entry) { return function ($receiver) { var tmp$; if (closure$exists) { this$UstadListComponent.selectedListItems_5g120i$_0.remove_11rb$(closure$entry); } else { this$UstadListComponent.selectedListItems_5g120i$_0.add_11rb$(closure$entry); } (tmp$ = this$UstadListComponent.listPresenter) != null ? (tmp$.handleSelectionOptionChanged_4ezy6h$(this$UstadListComponent.selectedListItems_5g120i$_0), Unit) : null; return Unit; }; } UstadListComponent.prototype.handleSelectedEntry_7n6ndu$_0 = function (entry) { var exists = this.selectedListItems_5g120i$_0.indexOf_11rb$(entry) !== -1; setState(this, UstadListComponent$handleSelectedEntry$lambda(exists, this, entry)); }; function UstadListComponent$renderEntriesFilterOptions$lambda$lambda$lambda$lambda$lambda(closure$chip, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.checkedFilterOptionChip = closure$chip; return Unit; }; } function UstadListComponent$renderEntriesFilterOptions$lambda$lambda$lambda$lambda(closure$chip, this$UstadListComponent) { return function (it) { var tmp$; setState(this$UstadListComponent, UstadListComponent$renderEntriesFilterOptions$lambda$lambda$lambda$lambda$lambda(closure$chip, this$UstadListComponent)); (tmp$ = this$UstadListComponent.listPresenter) != null ? (tmp$.onListFilterOptionSelected_5mmfk3$(closure$chip), Unit) : null; return Unit; }; } function UstadListComponent$renderEntriesFilterOptions$lambda$lambda$lambda(closure$chip, this$UstadListComponent) { return function ($receiver) { margin_0($receiver.css, get_spacingUnits(1)); $receiver.attrs.onClick = UstadListComponent$renderEntriesFilterOptions$lambda$lambda$lambda$lambda(closure$chip, this$UstadListComponent); return Unit; }; } UstadListComponent.prototype.renderEntriesFilterOptions_n0rhfs$_0 = function ($receiver) { if (this.listFilterOptionChips == null) return; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_53); var tmp$; var $receiver_1 = $receiver_0.css; margin_0($receiver_1, get_spacingUnits(2)); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().chipSetFilter); if ((tmp$ = this.listFilterOptionChips) != null) { var tmp$_0; tmp$_0 = tmp$.iterator(); while (tmp$_0.hasNext()) { var element = tmp$_0.next(); var mColor = equals(element, this.checkedFilterOptionChip) ? ThemeManager_getInstance().isDarkModeActive() ? ChipColor$secondary_getInstance() : ChipColor$primary_getInstance() : ChipColor$default_getInstance(); umChip($receiver_0, element.description, void 0, void 0, void 0, void 0, mColor, void 0, void 0, void 0, UstadListComponent$renderEntriesFilterOptions$lambda$lambda$lambda(element, this)); } }$receiver.child_30b5ua$($receiver_0.create()); }; function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda$lambda(this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.selectedListItems_5g120i$_0 = ArrayList_init_0(); return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda(this$UstadListComponent) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); setState(this$UstadListComponent, UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda$lambda(this$UstadListComponent)); return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda(this$UstadListComponent) { return function ($receiver) { set_marginTop($receiver.css, get_px(4)); $receiver.attrs.onClick = UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda(this$UstadListComponent); return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda_0(closure$hideOptions, this$UstadListComponent) { return function ($receiver) { var closure$hideOptions_0 = closure$hideOptions; var $receiver_0 = $receiver.css; set_marginTop($receiver_0, get_px(10)); set_marginLeft($receiver_0, get_spacingUnits(2)); set_fontSize($receiver_0, get_em(1.2)); set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(!closure$hideOptions_0)); $receiver.unaryPlus_pdl1vz$(format(this$UstadListComponent.getString_za3lpa$(2555), [this$UstadListComponent.selectedListItems_5g120i$_0.size])); return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda(this$UstadListComponent, closure$hideOptions) { return function ($receiver) { if (!this$UstadListComponent.selectedListItems_5g120i$_0.isEmpty()) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_5); var this$UstadListComponent_0 = this$UstadListComponent; set_marginRight($receiver_0.css, get_spacingUnits(2)); umIconButton($receiver_0, 'close', UMColor$default_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda(this$UstadListComponent_0)); $receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_5); var closure$hideOptions_0 = closure$hideOptions; var this$UstadListComponent_1 = this$UstadListComponent; umTypography($receiver_0_0, void 0, TypographyVariant$subtitle1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda_0(closure$hideOptions_0, this$UstadListComponent_1)); $receiver.child_30b5ua$($receiver_0_0.create()); }return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.selectedListItems_5g120i$_0.clear(); return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda$lambda_0(this$UstadListComponent, closure$option) { return function (it) { var tmp$; Util_getInstance().stopEventPropagation_za3rmp$(it); var selectedEntries = copyOnWriteListOf([this$UstadListComponent.selectedListItems_5g120i$_0]); (tmp$ = this$UstadListComponent.listPresenter) != null ? (tmp$.handleClickSelectionOption_psq284$(first_0(selectedEntries), closure$option), Unit) : null; setState(this$UstadListComponent, UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda$lambda$lambda(this$UstadListComponent)); return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda_0(this$UstadListComponent, closure$option) { return function ($receiver) { $receiver.attrs.onClick = UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda$lambda_0(this$UstadListComponent, closure$option); return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda_0(this$UstadListComponent) { return function ($receiver) { var tmp$, tmp$_0; if (this$UstadListComponent.selectedListItems_5g120i$_0.isEmpty()) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_5); var this$UstadListComponent_0 = this$UstadListComponent; set_marginLeft($receiver_0.css, get_spacingUnits(2)); this$UstadListComponent_0.renderEditOptionMenu_ss14n$($receiver_0); $receiver.child_30b5ua$($receiver_0.create()); }if (!this$UstadListComponent.selectedListItems_5g120i$_0.isEmpty()) { if ((tmp$_0 = (tmp$ = this$UstadListComponent.selectionOptions) != null ? reversed(tmp$) : null) != null) { var tmp$_1; tmp$_1 = tmp$_0.iterator(); while (tmp$_1.hasNext()) { var element = tmp$_1.next(); var this$UstadListComponent_1 = this$UstadListComponent; var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_5); var tmp$_2; set_marginLeft($receiver_0_0.css, get_spacingUnits(2)); umIconButton($receiver_0_0, (tmp$_2 = UstadListComponent$Companion_getInstance().SELECTION_ICONS_MAP.get_11rb$(element)) != null ? tmp$_2 : 'delete', UMColor$default_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda$lambda$lambda$lambda_0(this$UstadListComponent_1, element)); $receiver.child_30b5ua$($receiver_0_0.create()); } }}return Unit; }; } function UstadListComponent$renderEntrySelectionMenuOptions$lambda(this$UstadListComponent, closure$hideOptions) { return function ($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().selectionContainer); umItem($receiver, GridSize$cells7_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda(this$UstadListComponent, closure$hideOptions)); umItem($receiver, GridSize$cells5_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.rowReverse, UstadListComponent$renderEntrySelectionMenuOptions$lambda$lambda_0(this$UstadListComponent)); return Unit; }; } UstadListComponent.prototype.renderEntrySelectionMenuOptions_5gsf3n$_0 = function ($receiver) { var $receiver_0 = this.selectedListItems_5g120i$_0; var hideOptions = ($receiver_0 == null || $receiver_0.isEmpty()) | !this.showEditOptionsMenu; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadListComponent$renderEntrySelectionMenuOptions$lambda(this, hideOptions)); }; UstadListComponent.prototype.renderAddContentOptionsDialog_ss14n$ = function ($receiver) { }; Object.defineProperty(UstadListComponent.prototype, 'emptyList', { configurable: true, get: function () { return this.emptyList_bg95u6$_0; } }); UstadListComponent.prototype.renderEditOptionMenu_ss14n$ = function ($receiver) { }; UstadListComponent.prototype.renderListHeaderView_ss14n$ = function ($receiver) { }; UstadListComponent.prototype.renderListJoinView_ss14n$ = function ($receiver) { }; UstadListComponent.prototype.renderListFooterView_ss14n$ = function ($receiver) { }; UstadListComponent.prototype.handleClickCreateNewEntry = function () { var tmp$; (tmp$ = this.listPresenter) != null ? (tmp$.handleClickCreateNewFab(), Unit) : null; }; UstadListComponent.prototype.handleClickAddNewEntry = function () { var tmp$; (tmp$ = this.listPresenter) != null ? (tmp$.handleClickAddNewItem_a4m1mt$(), Unit) : null; }; UstadListComponent.prototype.handleInviteClicked = function () { }; UstadListComponent.prototype.onClickSort_o8nuns$ = function (sortOption) { var tmp$; (tmp$ = this.listPresenter) != null ? (tmp$.onClickSort_o8nuns$(sortOption), Unit) : null; }; UstadListComponent.prototype.onFabClicked = function () { UstadBaseComponent.prototype.onFabClicked.call(this); this.handleClickCreateNewEntry(); }; UstadListComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); this.dbRepo = null; (tmp$ = this.listPresenter) != null ? (tmp$.onDestroy(), Unit) : null; this.selectedListItems_5g120i$_0.clear(); }; function UstadListComponent$Companion() { UstadListComponent$Companion_instance = this; this.SELECTION_ICONS_MAP = mapOf_0([to(SelectionOption.EDIT, 'edit'), to(SelectionOption.DELETE, 'delete'), to(SelectionOption.MOVE, 'drive_file_move'), to(SelectionOption.HIDE, 'visibility_off'), to(SelectionOption.UNHIDE, 'visibility')]); this.UI_EVENT_LISTENER_TIMEOUT_0 = 100; } UstadListComponent$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var UstadListComponent$Companion_instance = null; function UstadListComponent$Companion_getInstance() { if (UstadListComponent$Companion_instance === null) { new UstadListComponent$Companion(); }return UstadListComponent$Companion_instance; } function UstadListComponent$itemPressEventHandler$lambda(this$UstadListComponent) { return function (it) { var tmp$, tmp$_0; if (!this$UstadListComponent.isPressEventHandled_gwjzb2$_0) { tmp$_0 = (tmp$ = it) == null || Kotlin.isType(tmp$, Any) ? tmp$ : throwCCE(); this$UstadListComponent.handleSelectedEntry_7n6ndu$_0(tmp$_0); }this$UstadListComponent.isPressEventHandled_gwjzb2$_0 = true; return Unit; }; } function UstadListComponent$dataObserver$lambda$lambda(closure$it, this$UstadListComponent) { return function ($receiver) { this$UstadListComponent.dataListItems = closure$it; return Unit; }; } function UstadListComponent$dataObserver$lambda(this$UstadListComponent) { return function (it) { setState(this$UstadListComponent, UstadListComponent$dataObserver$lambda$lambda(it, this$UstadListComponent)); this$UstadListComponent.onDataListLoaded(); return Unit; }; } UstadListComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'UstadListComponent', interfaces: [OnSortOptionSelected, UstadListView, UstadBaseComponent] }; function styledDiv$lambda_54(it) { return new DIV_init(html.emptyMap, it); } function SimpleListProps() { } SimpleListProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'SimpleListProps', interfaces: [UmProps] }; function CreateNewItem(visible, text, onClickCreateNew) { if (visible === void 0) visible = false; if (text === void 0) text = ''; if (onClickCreateNew === void 0) onClickCreateNew = null; this.visible = visible; this.text = text; this.onClickCreateNew = onClickCreateNew; } CreateNewItem.$metadata$ = { kind: Kind_CLASS, simpleName: 'CreateNewItem', interfaces: [] }; CreateNewItem.prototype.component1 = function () { return this.visible; }; CreateNewItem.prototype.component2 = function () { return this.text; }; CreateNewItem.prototype.component3 = function () { return this.onClickCreateNew; }; CreateNewItem.prototype.copy_stch53$ = function (visible, text, onClickCreateNew) { return new CreateNewItem(visible === void 0 ? this.visible : visible, text === void 0 ? this.text : text, onClickCreateNew === void 0 ? this.onClickCreateNew : onClickCreateNew); }; CreateNewItem.prototype.toString = function () { return 'CreateNewItem(visible=' + Kotlin.toString(this.visible) + (', text=' + Kotlin.toString(this.text)) + (', onClickCreateNew=' + Kotlin.toString(this.onClickCreateNew)) + ')'; }; CreateNewItem.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.visible) | 0; result = result * 31 + Kotlin.hashCode(this.text) | 0; result = result * 31 + Kotlin.hashCode(this.onClickCreateNew) | 0; return result; }; CreateNewItem.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.visible, other.visible) && Kotlin.equals(this.text, other.text) && Kotlin.equals(this.onClickCreateNew, other.onClickCreateNew))))); }; function UstadSimpleList(mProps) { UstadBaseComponent.call(this, mProps); } UstadSimpleList.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_54); var $receiver_1 = $receiver_0.css; if (!this.props.mainList) { $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().listComponentContainer); set_width($receiver_1, get_pct(98)); } else { $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().listComponentContainerWithScroll); } this.renderMoreDialogOptions_ss14n$($receiver_0); this.renderList_wzp5y7$_0($receiver_0); $receiver.child_30b5ua$($receiver_0.create()); }; UstadSimpleList.prototype.renderMoreDialogOptions_ss14n$ = function ($receiver) { }; function UstadSimpleList$renderItems$lambda$lambda(this$UstadSimpleList) { return function (it) { var tmp$, tmp$_0; Util_getInstance().stopEventPropagation_za3rmp$(it); (tmp$_0 = (tmp$ = this$UstadSimpleList.props.createNewItem) != null ? tmp$.onClickCreateNew : null) != null ? tmp$_0() : null; return Unit; }; } function UstadSimpleList$renderItems$lambda(this$UstadSimpleList) { return function ($receiver) { var tmp$, tmp$_0; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().listCreateNewContainer); set_marginBottom($receiver_0, get_spacingUnits(1)); $receiver.attrs.onClick = UstadSimpleList$renderItems$lambda$lambda(this$UstadSimpleList); renderCreateNewItemOnList($receiver, (tmp$_0 = (tmp$ = this$UstadSimpleList.props.createNewItem) != null ? tmp$.text : null) != null ? tmp$_0 : ''); return Unit; }; } function UstadSimpleList$renderItems$lambda$lambda$lambda$lambda(this$UstadSimpleList, closure$entry) { return function (it) { var tmp$; it.stopPropagation(); (tmp$ = this$UstadSimpleList.props.onEntryClicked) != null ? tmp$(closure$entry) : null; return Unit; }; } function UstadSimpleList$renderItems$lambda$lambda$lambda(closure$entry, this$UstadSimpleList) { return function ($receiver) { var $receiver_0 = $receiver.css; set_backgroundColor($receiver_0, new Color(StyleManager_getInstance().theme.palette.background.paper)); set_width($receiver_0, get_pct(100)); $receiver.attrs.divider = true; this$UstadSimpleList.renderListItem_f4dmsf$($receiver, closure$entry, UstadSimpleList$renderItems$lambda$lambda$lambda$lambda(this$UstadSimpleList, closure$entry)); return Unit; }; } function UstadSimpleList$renderItems$lambda$lambda_0(closure$entry, this$UstadSimpleList) { return function ($receiver) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, ListItemAlignItems$flexStart_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadSimpleList$renderItems$lambda$lambda$lambda(closure$entry, this$UstadSimpleList)); return Unit; }; } function UstadSimpleList$renderItems$lambda$lambda$lambda_0(this$UstadSimpleList, closure$entry) { return function (it) { var tmp$; it.stopPropagation(); (tmp$ = this$UstadSimpleList.props.onEntryClicked) != null ? tmp$(closure$entry) : null; return Unit; }; } function UstadSimpleList$renderItems$lambda$lambda_1(closure$entry, this$UstadSimpleList) { return function ($receiver) { var $receiver_0 = $receiver.css; set_backgroundColor($receiver_0, new Color(StyleManager_getInstance().theme.palette.background.paper)); set_width($receiver_0, get_pct(100)); $receiver.attrs.divider = true; this$UstadSimpleList.renderListItem_f4dmsf$($receiver, closure$entry, UstadSimpleList$renderItems$lambda$lambda$lambda_0(this$UstadSimpleList, closure$entry)); return Unit; }; } UstadSimpleList.prototype.renderItems_m09ek9$_0 = function ($receiver) { var tmp$, tmp$_0; var tmp$_1 = ((tmp$ = this.props.createNewItem) != null ? tmp$.visible : null) === true; if (tmp$_1) { var $receiver_0 = (tmp$_0 = this.props.createNewItem) != null ? tmp$_0.text : null; tmp$_1 = !($receiver_0 == null || $receiver_0.length === 0); }if (tmp$_1) { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, ListItemAlignItems$flexStart_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadSimpleList$renderItems$lambda(this)); }var tmp$_2, tmp$_0_0; var index = 0; tmp$_2 = this.props.entries.iterator(); while (tmp$_2.hasNext()) { var item = tmp$_2.next(); var index_0 = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); if (this.props.draggable) { umSortableItem($receiver, 'key_' + index_0, void 0, UstadSimpleList$renderItems$lambda$lambda_0(item, this)); } else { umListItem_0($receiver, true, void 0, void 0, void 0, void 0, void 0, ListItemAlignItems$flexStart_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, UstadSimpleList$renderItems$lambda$lambda_1(item, this)); } } return null; }; function UstadSimpleList$renderList$lambda(this$UstadSimpleList) { return function ($receiver) { StyleManager_getInstance().horizontalList($receiver.css); this$UstadSimpleList.renderItems_m09ek9$_0($receiver); return Unit; }; } function UstadSimpleList$renderList$lambda_0(this$UstadSimpleList) { return function ($receiver) { StyleManager_getInstance().horizontalList($receiver.css); this$UstadSimpleList.renderItems_m09ek9$_0($receiver); return Unit; }; } UstadSimpleList.prototype.renderList_wzp5y7$_0 = function ($receiver) { if (!this.props.draggable) { umList($receiver, void 0, void 0, void 0, void 0, void 0, UstadSimpleList$renderList$lambda(this)); } else { umSortableList($receiver, this.props.onSortEnd, void 0, void 0, UstadSimpleList$renderList$lambda_0(this)); } }; UstadSimpleList.$metadata$ = { kind: Kind_CLASS, simpleName: 'UstadSimpleList', interfaces: [UstadBaseComponent] }; function styledVideo$lambda(it) { return new VIDEO_init(html.emptyMap, it); } function VideoContentComponent(mProps) { UstadBaseComponent.call(this, mProps); this.entry_7fdeio$_0 = null; this.videoParams_bzznbj$_0 = null; this.mPresenter_0 = null; this.containerUid_0 = L0; } Object.defineProperty(VideoContentComponent.prototype, 'entry', { configurable: true, get: function () { return this.entry_7fdeio$_0; }, set: function (value) { var tmp$; this.entry_7fdeio$_0 = value; this.ustadComponentTitle = value != null ? value.title : null; (tmp$ = this.mPresenter_0) != null ? (tmp$.onResume(), Unit) : null; } }); function VideoContentComponent$set_VideoContentComponent$videoParams$lambda(closure$value, this$VideoContentComponent) { return function ($receiver) { this$VideoContentComponent.videoParams_bzznbj$_0 = closure$value; return Unit; }; } Object.defineProperty(VideoContentComponent.prototype, 'videoParams', { configurable: true, get: function () { return this.videoParams_bzznbj$_0; }, set: function (value) { this.loading = value == null; setState(this, VideoContentComponent$set_VideoContentComponent$videoParams$lambda(value, this)); } }); VideoContentComponent.prototype.onCreateView = function () { var tmp$, tmp$_0, tmp$_1, tmp$_2; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.containerUid_0 = (tmp$_1 = (tmp$_0 = this.arguments.get_11rb$(UstadView.Companion.ARG_CONTAINER_UID)) != null ? toLong(tmp$_0) : null) != null ? tmp$_1 : L0; this.mPresenter_0 = new VideoContentPresenter(this, this.arguments, this, this.di); if ((tmp$_2 = this.mPresenter_0) != null) { tmp$_2.onCreate(emptyMap()); }}; function VideoContentComponent$render$lambda$lambda(this$VideoContentComponent) { return function ($receiver) { StyleManager_getInstance().videoPlayerWrapper($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledVideo$lambda); var this$VideoContentComponent_0 = this$VideoContentComponent; var tmp$, tmp$_0; StyleManager_getInstance().videoComponentResponsiveMedia($receiver_0.css); $receiver_0.attrs.src = (tmp$_0 = (tmp$ = this$VideoContentComponent_0.videoParams) != null ? tmp$.videoPath : null) != null ? tmp$_0 : ''; $receiver_0.attrs.autoPlay = false; $receiver_0.attrs.autoBuffer = true; $receiver_0.attrs.controls = true; $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function VideoContentComponent$render$lambda(this$VideoContentComponent) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, VideoContentComponent$render$lambda$lambda(this$VideoContentComponent)); return Unit; }; } VideoContentComponent.prototype.render_ss14n$ = function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, VideoContentComponent$render$lambda(this)); }; VideoContentComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entry = null; this.videoParams = null; }; VideoContentComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'VideoContentComponent', interfaces: [VideoContentView, UstadBaseComponent] }; function WebChunkComponent(mProps) { UstadBaseComponent.call(this, mProps); this.mPresenter_0 = null; this.entry_v3ekvv$_0 = null; this.url_xalxsy$_0 = ''; } Object.defineProperty(WebChunkComponent.prototype, 'entry', { configurable: true, get: function () { return this.entry_v3ekvv$_0; }, set: function (value) { this.entry_v3ekvv$_0 = value; this.ustadComponentTitle = value != null ? value.title : null; } }); Object.defineProperty(WebChunkComponent.prototype, 'url', { configurable: true, get: function () { return this.url_xalxsy$_0; }, set: function (value) { this.loading = value.length === 0; this.url_xalxsy$_0 = value; } }); WebChunkComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new WebChunkPresenter(this, this.arguments, this, this.di); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; WebChunkComponent.prototype.render_ss14n$ = function ($receiver) { if (this.url.length > 0) { renderIframe($receiver, listOf_0(this.url), 1); }}; function WebChunkComponent$showNoAppFoundError$lambda() { return Unit; } WebChunkComponent.prototype.showNoAppFoundError_h6sd2a$ = function (message, actionMessageId, mimeType) { this.showSnackBar_9pu0dj$(message, WebChunkComponent$showNoAppFoundError$lambda, actionMessageId); }; WebChunkComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; this.entry = null; }; WebChunkComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'WebChunkComponent', interfaces: [WebChunkView, UstadBaseComponent] }; function styledIframe$lambda_0(closure$sandbox) { return function (it) { return new IFRAME_init(attributesMapOf('sandbox', closure$sandbox != null ? enumEncode(closure$sandbox) : null), it); }; } function XapiPackageContentComponent(mProps) { UstadBaseComponent.call(this, mProps); this.setTitle_1pusuj$_0 = ''; this.url_bwq2re$_0 = ''; this.mPresenter_0 = null; } Object.defineProperty(XapiPackageContentComponent.prototype, 'setTitle', { configurable: true, get: function () { return this.setTitle_1pusuj$_0; }, set: function (value) { this.setTitle_1pusuj$_0 = value; this.ustadComponentTitle = value; } }); function XapiPackageContentComponent$set_XapiPackageContentComponent$url$lambda(closure$value, this$XapiPackageContentComponent) { return function ($receiver) { this$XapiPackageContentComponent.url_bwq2re$_0 = closure$value; return Unit; }; } Object.defineProperty(XapiPackageContentComponent.prototype, 'url', { configurable: true, get: function () { return this.url_bwq2re$_0; }, set: function (value) { this.loading = value.length === 0; setState(this, XapiPackageContentComponent$set_XapiPackageContentComponent$url$lambda(value, this)); } }); XapiPackageContentComponent.prototype.onCreateView = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.onCreateView.call(this); (tmp$ = this.fabManager) != null ? (tmp$.visible = false) : null; this.mPresenter_0 = new XapiPackageContentPresenter(this, this.arguments, this, this.di); if ((tmp$_0 = this.mPresenter_0) != null) { tmp$_0.onCreate(emptyMap()); }}; XapiPackageContentComponent.prototype.render_ss14n$ = function ($receiver) { if (this.url.length > 0) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledIframe$lambda_0(null)); StyleManager_getInstance().iframeComponentResponsiveIframe($receiver_0.css); set_height($receiver_0.css, get_vh(80)); $receiver_0.attrs.src = this.url; $receiver.child_30b5ua$($receiver_0.create()); }}; XapiPackageContentComponent.prototype.onDestroyView = function () { var tmp$; UstadBaseComponent.prototype.onDestroyView.call(this); (tmp$ = this.mPresenter_0) != null ? (tmp$.onDestroy(), Unit) : null; this.mPresenter_0 = null; }; XapiPackageContentComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'XapiPackageContentComponent', interfaces: [XapiPackageContentView, UstadBaseComponent] }; function styledInput$lambda_1(closure$type, closure$formEncType, closure$formMethod, closure$name) { return function (it) { return new INPUT_init(attributesMapOf_0(['type', closure$type != null ? enumEncode(closure$type) : null, 'formenctype', closure$formEncType != null ? enumEncode(closure$formEncType) : null, 'formmethod', closure$formMethod != null ? enumEncode(closure$formMethod) : null, 'name', closure$name]), it); }; } function styledDiv$lambda_55(it) { return new DIV_init(html.emptyMap, it); } function AttachmentImageProps() { } AttachmentImageProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'AttachmentImageProps', interfaces: [UmProps] }; function AttachmentImageState() { } AttachmentImageState.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'AttachmentImageState', interfaces: [UmState] }; function AttachmentImageComponent(props) { UstadBaseComponent.call(this, props); var $receiver = this.di; var context = this.accountManager.activeAccount; var trigger; trigger = $receiver.diTrigger; var tmp$; var tmp$_0; this.db_dhhva6$_0 = Instance(On($receiver, DIContext.Companion.invoke_np530x$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UmAccount), [], false)), TypeToken) ? tmp$ : throwCCE(), context), trigger), Kotlin.isType(tmp$_0 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_0 : throwCCE(), 1).provideDelegate_tpuvb9$(this, AttachmentImageComponent$db_metadata); } var AttachmentImageComponent$db_metadata = new PropertyMetadata('db'); Object.defineProperty(AttachmentImageComponent.prototype, 'db_0', { configurable: true, get: function () { return this.db_dhhva6$_0.value; } }); function Coroutine$AttachmentImageComponent$componentDidMount$lambda(this$AttachmentImageComponent_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$this$AttachmentImageComponent = this$AttachmentImageComponent_0; } Coroutine$AttachmentImageComponent$componentDidMount$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$AttachmentImageComponent$componentDidMount$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$AttachmentImageComponent$componentDidMount$lambda.prototype.constructor = Coroutine$AttachmentImageComponent$componentDidMount$lambda; Coroutine$AttachmentImageComponent$componentDidMount$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: this.state_0 = 2; this.result_0 = this.local$this$AttachmentImageComponent.resolveUrl(this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 1: throw this.exception_0; case 2: return this.result_0; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function AttachmentImageComponent$componentDidMount$lambda(this$AttachmentImageComponent_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$AttachmentImageComponent$componentDidMount$lambda(this$AttachmentImageComponent_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } AttachmentImageComponent.prototype.componentDidMount = function () { launch(coroutines.GlobalScope, void 0, void 0, AttachmentImageComponent$componentDidMount$lambda(this)); }; function Coroutine$AttachmentImageComponent$componentDidUpdate$lambda(this$AttachmentImageComponent_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$this$AttachmentImageComponent = this$AttachmentImageComponent_0; } Coroutine$AttachmentImageComponent$componentDidUpdate$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$AttachmentImageComponent$componentDidUpdate$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$AttachmentImageComponent$componentDidUpdate$lambda.prototype.constructor = Coroutine$AttachmentImageComponent$componentDidUpdate$lambda; Coroutine$AttachmentImageComponent$componentDidUpdate$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: this.state_0 = 2; this.result_0 = this.local$this$AttachmentImageComponent.resolveUrl(this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 1: throw this.exception_0; case 2: return this.result_0; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function AttachmentImageComponent$componentDidUpdate$lambda(this$AttachmentImageComponent_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$AttachmentImageComponent$componentDidUpdate$lambda(this$AttachmentImageComponent_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } AttachmentImageComponent.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) { UstadBaseComponent.prototype.componentDidUpdate.call(this, prevProps, prevState, snapshot); if (!equals(prevProps.attachmentUri, this.props.attachmentUri)) { launch(coroutines.GlobalScope, void 0, void 0, AttachmentImageComponent$componentDidUpdate$lambda(this)); }}; AttachmentImageComponent.prototype.componentWillUnmount = function () { }; function AttachmentImageComponent$resolveUrl$lambda(closure$newImgSrc) { return function ($receiver) { $receiver.imageSrc = closure$newImgSrc.toString(); return Unit; }; } function Coroutine$resolveUrl($this, continuation_0) { CoroutineImpl.call(this, continuation_0); this.exceptionState_0 = 1; this.$this = $this; this.local$tmp$ = void 0; } Coroutine$resolveUrl.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$resolveUrl.prototype = Object.create(CoroutineImpl.prototype); Coroutine$resolveUrl.prototype.constructor = Coroutine$resolveUrl; Coroutine$resolveUrl.prototype.doResume = function () { do try { switch (this.state_0) { case 0: var attachmentUri = this.$this.props.attachmentUri; console.log('AttachmentImage: resolving ' + toString(attachmentUri)); if (attachmentUri != null) { if (startsWith(attachmentUri, DoorDatabaseRepository.Companion.DOOR_ATTACHMENT_URI_PREFIX)) { this.state_0 = 2; this.result_0 = retrieveAttachment(this.$this.db_0, attachmentUri, this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; } else { this.local$tmp$ = DoorUri.Companion.parse_61zpoe$(attachmentUri); this.state_0 = 3; continue; } } else { this.state_0 = 4; continue; } case 1: throw this.exception_0; case 2: this.local$tmp$ = this.result_0; this.state_0 = 3; continue; case 3: var newImgSrc = this.local$tmp$; setState(this.$this, AttachmentImageComponent$resolveUrl$lambda(newImgSrc)); this.state_0 = 4; continue; case 4: return; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; AttachmentImageComponent.prototype.resolveUrl = function (continuation_0, suspended) { var instance = new Coroutine$resolveUrl(this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; function AttachmentImageComponent$render$lambda$lambda(it) { document.getElementById('imguploadfile').click(); return Unit; } function Coroutine$AttachmentImageComponent$render$lambda$lambda$lambda$lambda(closure$evt_0, this$AttachmentImageComponent_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$closure$evt = closure$evt_0; this.local$this$AttachmentImageComponent = this$AttachmentImageComponent_0; } Coroutine$AttachmentImageComponent$render$lambda$lambda$lambda$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$AttachmentImageComponent$render$lambda$lambda$lambda$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$AttachmentImageComponent$render$lambda$lambda$lambda$lambda.prototype.constructor = Coroutine$AttachmentImageComponent$render$lambda$lambda$lambda$lambda; Coroutine$AttachmentImageComponent$render$lambda$lambda$lambda$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: var tmp$; var file = Kotlin.isType(tmp$ = this.local$closure$evt.target.files[0], File) ? tmp$ : throwCCE(); var url = URL.createObjectURL(file); return this.local$this$AttachmentImageComponent.props.onNewImageSelected(url); case 1: throw this.exception_0; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function AttachmentImageComponent$render$lambda$lambda$lambda$lambda(closure$evt_0, this$AttachmentImageComponent_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$AttachmentImageComponent$render$lambda$lambda$lambda$lambda(closure$evt_0, this$AttachmentImageComponent_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } function AttachmentImageComponent$render$lambda$lambda$lambda(this$AttachmentImageComponent) { return function (evt) { evt.stopPropagation(); evt.preventDefault(); launch(coroutines.GlobalScope, void 0, void 0, AttachmentImageComponent$render$lambda$lambda$lambda$lambda(evt, this$AttachmentImageComponent)); return Unit; }; } AttachmentImageComponent.prototype.render_ss14n$ = function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_55); var tmp$; set_onClick($receiver_0.attrs, AttachmentImageComponent$render$lambda$lambda); (tmp$ = this.props.contentBlock) != null ? tmp$($receiver_0, this.state.imageSrc) : null; var type = InputType.file; var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledInput$lambda_1(type, null, null, null)); set_visibility($receiver_0_0.css, Visibility.hidden); $receiver_0_0.attrs.accept = '.jpg,.webp,.png,image/jpg,image/webp,image/png'; set_id($receiver_0_0.attrs, 'imguploadfile'); set_onChange($receiver_0_0.attrs, AttachmentImageComponent$render$lambda$lambda$lambda(this)); $receiver_0.child_30b5ua$($receiver_0_0.create()); $receiver.child_30b5ua$($receiver_0.create()); }; AttachmentImageComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'AttachmentImageComponent', interfaces: [UstadBaseComponent] }; function AttachmentImageLookupAdapter(f) { this.function$ = f; } AttachmentImageLookupAdapter.prototype.lookupAttachmentUri_nhes9s$ = function (db, entityUid) { return this.function$(db, entityUid); }; AttachmentImageLookupAdapter.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'AttachmentImageLookupAdapter', interfaces: [] }; function AttachmentImageLookupProps() { } AttachmentImageLookupProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'AttachmentImageLookupProps', interfaces: [UmProps] }; function AttachmentImageLookupState() { } AttachmentImageLookupState.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'AttachmentImageLookupState', interfaces: [UmState] }; function AttachmentImageLookupComponent(props) { UstadBaseComponent.call(this, props); this.lastAttachmentUri_gybgxn$_0 = null; this.imageLookupJob_ufjr5u$_0 = null; this.currentLiveData_5w1drz$_0 = null; this.db_115ryg$_qpalce$_0 = this.db_115ryg$_qpalce$_0; this.uriObserver_d7wdw$_0 = new DoorObserver(AttachmentImageLookupComponent$uriObserver$lambda(this, props)); } Object.defineProperty(AttachmentImageLookupComponent.prototype, 'db_115ryg$_0', { configurable: true, get: function () { if (this.db_115ryg$_qpalce$_0 == null) return throwUPAE('db'); return this.db_115ryg$_qpalce$_0; }, set: function (db) { this.db_115ryg$_qpalce$_0 = db; } }); AttachmentImageLookupComponent.prototype.setupLiveData_m4u3yd$_0 = function () { var tmp$, tmp$_0, tmp$_1; (tmp$ = this.currentLiveData_5w1drz$_0) != null ? (tmp$.removeObserver_jsfaok$(this.uriObserver_d7wdw$_0), Unit) : null; this.currentLiveData_5w1drz$_0 = (tmp$_0 = this.props.lookupAdapter) != null ? tmp$_0.lookupAttachmentUri_nhes9s$(this.db_115ryg$_0, this.props.entityUid) : null; (tmp$_1 = this.currentLiveData_5w1drz$_0) != null ? (tmp$_1.observe_igxi3b$(this, this.uriObserver_d7wdw$_0), Unit) : null; }; AttachmentImageLookupComponent.prototype.onCreateView = function () { UstadBaseComponent.prototype.onCreateView.call(this); var $receiver = this.di; var context = this.accountManager.activeAccount; var trigger; trigger = $receiver.diTrigger; var tmp$; var tmp$_0; this.db_115ryg$_0 = get_direct(On($receiver, DIContext.Companion.invoke_np530x$(Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UmAccount), [], false)), TypeToken) ? tmp$ : throwCCE(), context), trigger)).directDI.Instance_ohrpre$(Kotlin.isType(tmp$_0 = typeToken(createKType(getKClass(UmAppDatabase), [], false)), TypeToken) ? tmp$_0 : throwCCE(), 1); this.setupLiveData_m4u3yd$_0(); }; AttachmentImageLookupComponent.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) { UstadBaseComponent.prototype.componentDidUpdate.call(this, prevProps, prevState, snapshot); if (!equals(prevProps.entityUid, this.props.entityUid) || !equals(prevProps.lookupAdapter, this.props.lookupAdapter)) this.setupLiveData_m4u3yd$_0(); }; AttachmentImageLookupComponent.prototype.componentWillUnmount = function () { var tmp$, tmp$_0; UstadBaseComponent.prototype.componentWillUnmount.call(this); (tmp$ = this.currentLiveData_5w1drz$_0) != null ? (tmp$.removeObserver_jsfaok$(this.uriObserver_d7wdw$_0), Unit) : null; if ((tmp$_0 = this.state.imgSrc) != null) { console.log('AttachmentImageLookupComp: unmount / revoke ' + tmp$_0); URL.revokeObjectURL(tmp$_0); }}; AttachmentImageLookupComponent.prototype.render_ss14n$ = function ($receiver) { var tmp$; (tmp$ = this.props.contentBlock) != null ? tmp$($receiver, this.state.imgSrc) : null; }; function AttachmentImageLookupComponent$uriObserver$lambda$lambda$lambda(closure$imgSrcUrl) { return function ($receiver) { $receiver.imgSrc = closure$imgSrcUrl != null ? closure$imgSrcUrl.toString() : null; return Unit; }; } function Coroutine$AttachmentImageLookupComponent$uriObserver$lambda$lambda(closure$props_0, this$AttachmentImageLookupComponent_0, closure$attachmentUri_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$closure$props = closure$props_0; this.local$this$AttachmentImageLookupComponent = this$AttachmentImageLookupComponent_0; this.local$closure$attachmentUri = closure$attachmentUri_0; this.local$tmp$ = void 0; } Coroutine$AttachmentImageLookupComponent$uriObserver$lambda$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$AttachmentImageLookupComponent$uriObserver$lambda$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$AttachmentImageLookupComponent$uriObserver$lambda$lambda.prototype.constructor = Coroutine$AttachmentImageLookupComponent$uriObserver$lambda$lambda; Coroutine$AttachmentImageLookupComponent$uriObserver$lambda$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: var tmp$; console.log('AttachmentImageLookupComp: Lookup entity uid = ' + this.local$closure$props.entityUid.toString()); if ((tmp$ = this.local$this$AttachmentImageLookupComponent.state.imgSrc) != null) { console.log('AttachmentImageLookupComp: revoke ' + tmp$); URL.revokeObjectURL(tmp$); } if (this.local$closure$attachmentUri != null) { var $receiver = this.local$closure$attachmentUri; this.state_0 = 2; this.result_0 = retrieveAttachment(this.local$this$AttachmentImageLookupComponent.db_115ryg$_0, $receiver, this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; } else { this.local$tmp$ = null; this.state_0 = 3; continue; } case 1: throw this.exception_0; case 2: this.local$tmp$ = this.result_0; this.state_0 = 3; continue; case 3: var imgSrcUrl = this.local$tmp$; console.log('AttachmentImageLookupComp: imgSrcUrl= ' + toString(imgSrcUrl)); return setState(this.local$this$AttachmentImageLookupComponent, AttachmentImageLookupComponent$uriObserver$lambda$lambda$lambda(imgSrcUrl)), Unit; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function AttachmentImageLookupComponent$uriObserver$lambda$lambda(closure$props_0, this$AttachmentImageLookupComponent_0, closure$attachmentUri_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$AttachmentImageLookupComponent$uriObserver$lambda$lambda(closure$props_0, this$AttachmentImageLookupComponent_0, closure$attachmentUri_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } function AttachmentImageLookupComponent$uriObserver$lambda(this$AttachmentImageLookupComponent, closure$props) { return function (attachmentUri) { var tmp$; if (equals(attachmentUri, this$AttachmentImageLookupComponent.lastAttachmentUri_gybgxn$_0)) return; (tmp$ = this$AttachmentImageLookupComponent.imageLookupJob_ufjr5u$_0) != null ? (tmp$.cancel_x5z25k$(), Unit) : null; this$AttachmentImageLookupComponent.lastAttachmentUri_gybgxn$_0 = attachmentUri; this$AttachmentImageLookupComponent.imageLookupJob_ufjr5u$_0 = launch(coroutines.GlobalScope, void 0, void 0, AttachmentImageLookupComponent$uriObserver$lambda$lambda(closure$props, this$AttachmentImageLookupComponent, attachmentUri)); return Unit; }; } AttachmentImageLookupComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'AttachmentImageLookupComponent', interfaces: [UstadBaseComponent] }; function styledDiv$lambda_56(it) { return new DIV_init(html.emptyMap, it); } function styledSpan$lambda_6(it) { return new SPAN_init(html.emptyMap, it); } function styledImg$lambda_1(closure$alt, closure$src) { return function (it) { return new IMG_init(attributesMapOf_0(['alt', closure$alt, 'src', closure$src]), it); }; } var compareBy$lambda = wrapFunction(function () { var compareValues = Kotlin.kotlin.comparisons.compareValues_s00gnj$; return function (closure$selector) { return function (a, b) { var selector = closure$selector; return compareValues(selector(a), selector(b)); }; }; }); function styledIframe$lambda_1(closure$sandbox) { return function (it) { return new IFRAME_init(attributesMapOf('sandbox', closure$sandbox != null ? enumEncode(closure$sandbox) : null), it); }; } function appBarSpacer$lambda($receiver, theme) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); toolbarJsCssToPartialCss($receiver_0.css, theme.mixins.toolbar); $receiver.child_30b5ua$($receiver_0.create()); return Unit; } function appBarSpacer($receiver) { $receiver.invoke_c0v1gl$(themeContext.Consumer, appBarSpacer$lambda); } function errorFallBack$lambda(closure$text) { return function ($receiver) { StyleManager_getInstance().mainComponentErrorPaper($receiver.css); umTypography($receiver, closure$text); return Unit; }; } function errorFallBack($receiver, text) { umPaper(RBuilder(), void 0, void 0, void 0, void 0, errorFallBack$lambda(text)); } var routeGuardRedirected; function guardRoute$lambda$lambda(closure$ustadUrlComponents, closure$loginWithNextParamUrl) { return function () { return 'User is not logged in : should not see ' + closure$ustadUrlComponents.viewName + ' . Go to ' + closure$loginWithNextParamUrl; }; } function guardRoute$lambda$lambda_0() { return window.location.href + ' not an UstadUrl, not doing anything'; } function guardRoute$lambda$lambda_1($receiver) { return Unit; } function guardRoute$lambda(closure$systemImpl, closure$component) { return function ($receiver) { var screenRequiresLocationRedirect = false; try { var ustadUrlComponents = UstadUrlComponents.Companion.parse_puj7f4$(window.location.href); var accessibleViews = listOf([Login2View.Companion.VIEW_NAME, PersonEditView.Companion.VIEW_NAME_REGISTER, RedirectView.Companion.VIEW_NAME, RegisterAgeRedirectView.Companion.VIEW_NAME, SiteTermsDetailView.Companion.VIEW_NAME_ACCEPT_TERMS, RegisterMinorWaitForParentView.Companion.VIEW_NAME]); var activeSession = closure$systemImpl.getAppPref(UstadAccountManager.Companion.ACCOUNTS_ACTIVE_SESSION_PREFKEY, $receiver); screenRequiresLocationRedirect = (activeSession == null && !accessibleViews.contains_11rb$(ustadUrlComponents.viewName)); if (screenRequiresLocationRedirect && !routeGuardRedirected) { var urlComponents = UstadUrlComponents.Companion.parse_puj7f4$(window.location.href); var loginWithNextParamUrl = urlComponents.endpoint + '#/' + Login2View.Companion.VIEW_NAME + '?' + UstadView.Companion.ARG_NEXT + '=' + encodeURIComponent(urlComponents.viewUri); napier_0.Napier.d_9h2hdn$(void 0, void 0, guardRoute$lambda$lambda(ustadUrlComponents, loginWithNextParamUrl)); routeGuardRedirected = true; window.location.href = loginWithNextParamUrl; }} catch (e) { if (Kotlin.isType(e, Exception)) { napier_0.Napier.d_9h2hdn$(void 0, void 0, guardRoute$lambda$lambda_0); } else throw e; } if (!screenRequiresLocationRedirect) { $receiver.child_up9nw1$(closure$component, guardRoute$lambda$lambda_1); }return Unit; }; } function guardRoute(component, accountManager, systemImpl) { return createElement(guardRoute$lambda(systemImpl, component)); } var renderRoutes$systemImpl_metadata = new PropertyMetadata('systemImpl'); var renderRoutes$accountManager_metadata = new PropertyMetadata('accountManager'); function renderRoutes$lambda$lambda$lambda(closure$accountManager, closure$systemImpl) { return function ($receiver) { $receiver.attrs.path = '/'; $receiver.attrs.element = guardRoute(RouteManager_getInstance().defaultDestination.component, closure$accountManager.value, closure$systemImpl.value); return Unit; }; } function renderRoutes$lambda$lambda$lambda$lambda(closure$it, closure$accountManager, closure$systemImpl) { return function ($receiver) { $receiver.attrs.path = '/' + closure$it.view; $receiver.attrs.element = guardRoute(closure$it.component, closure$accountManager.value, closure$systemImpl.value); return Unit; }; } function renderRoutes$lambda$lambda(closure$accountManager, closure$systemImpl) { return function ($receiver) { $receiver.invoke_qk0v40$($module$react_router.Route, renderRoutes$lambda$lambda$lambda(closure$accountManager, closure$systemImpl)); var $receiver_0 = RouteManager_getInstance().destinationList; var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var closure$accountManager_0 = closure$accountManager; var closure$systemImpl_0 = closure$systemImpl; $receiver.invoke_qk0v40$($module$react_router.Route, renderRoutes$lambda$lambda$lambda$lambda(element, closure$accountManager_0, closure$systemImpl_0)); } return Unit; }; } function renderRoutes$lambda(closure$accountManager, closure$systemImpl) { return function ($receiver) { $receiver.invoke_qk0v40$($module$react_router.Routes, renderRoutes$lambda$lambda(closure$accountManager, closure$systemImpl)); return Unit; }; } function renderRoutes($receiver, di) { var tmp$; var systemImpl = Instance(di, Kotlin.isType(tmp$ = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$ : throwCCE(), null).provideDelegate_tpuvb9$(this, renderRoutes$systemImpl_metadata); var tmp$_0; var accountManager = Instance(di, Kotlin.isType(tmp$_0 = typeToken(createKType(getKClass(UstadAccountManager), [], false)), TypeToken) ? tmp$_0 : throwCCE(), null).provideDelegate_tpuvb9$(this, renderRoutes$accountManager_metadata); $receiver.invoke_qk0v40$($module$react_router_dom.HashRouter, renderRoutes$lambda(accountManager, systemImpl)); } function umGridContainer($receiver, spacing, alignContent, alignItems, direction, columnSpacing, rowSpacing, wrap, className, handler) { if (spacing === void 0) spacing = GridSpacing$spacing0_getInstance(); if (alignContent === void 0) alignContent = GridAlignContent$stretch_getInstance(); if (alignItems === void 0) alignItems = GridAlignItems$stretch_getInstance(); if (direction === void 0) direction = FlexDirection.row; if (columnSpacing === void 0) columnSpacing = GridSpacing$spacing0_getInstance(); if (rowSpacing === void 0) rowSpacing = GridSpacing$spacing0_getInstance(); if (wrap === void 0) wrap = GridWrap$wrap; if (className === void 0) className = null; if (handler === void 0) handler = null; gridContainer($receiver, spacing, alignContent, alignItems, direction, wrap, columnSpacing, rowSpacing, className, handler); } function umItem($receiver, xs, sm, lg, className, alignItems, display, flexDirection, handler) { if (xs === void 0) xs = GridSize$cells12_getInstance(); if (sm === void 0) sm = null; if (lg === void 0) lg = null; if (className === void 0) className = null; if (alignItems === void 0) alignItems = null; if (display === void 0) display = Display.flex; if (flexDirection === void 0) flexDirection = FlexDirection.column; if (handler === void 0) handler = null; gridItem($receiver, xs, sm, void 0, lg, void 0, alignItems, void 0, className, display, flexDirection, handler); } function umEntityAvatar$lambda$lambda(closure$clickEvent, closure$showIcon, closure$iconName, closure$iconClassName) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$clickEvent_0 = closure$clickEvent; var closure$showIcon_0 = closure$showIcon; var closure$iconName_0 = closure$iconName; var closure$iconClassName_0 = closure$iconClassName; var $receiver_1 = $receiver_0.css; set_position($receiver_1, Position.absolute); set_cursor($receiver_1, Cursor.pointer); if (closure$clickEvent_0 != null) { set_onClickFunction($receiver_0.attrs, closure$clickEvent_0); }if (closure$showIcon_0) { umIcon($receiver_0, closure$iconName_0, void 0, void 0, closure$iconClassName_0); }$receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function umEntityAvatar($receiver, src, fallbackSrc, iconName, imgProps, variant, showIcon, listItem, className, iconClassName, clickEvent) { if (src === void 0) src = null; if (fallbackSrc === void 0) fallbackSrc = Util_getInstance().ASSET_ACCOUNT; if (iconName === void 0) iconName = 'add_a_photo'; if (imgProps === void 0) imgProps = null; if (variant === void 0) variant = AvatarVariant$rounded_getInstance(); if (showIcon === void 0) showIcon = true; if (listItem === void 0) listItem = false; if (className === void 0) className = StyleManager_getInstance().name + '-entityImageClass'; if (iconClassName === void 0) iconClassName = StyleManager_getInstance().name + '-entityImageIconClass'; if (clickEvent === void 0) clickEvent = null; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().entryItemImageContainer); if (!listItem) { set_margin($receiver_1, '1.5%'); }umAvatar($receiver_0, src == null || src.length === 0 ? fallbackSrc : src, void 0, void 0, variant, imgProps, void 0, className, umEntityAvatar$lambda$lambda(clickEvent, showIcon, iconName, iconClassName)); $receiver.child_30b5ua$($receiver_0.create()); } function umProfileAvatar$lambda$lambda(closure$src, closure$fallback) { return function ($receiver) { StyleManager_getInstance().personListItemAvatar($receiver.css); if (closure$src == null) umIcon($receiver, closure$fallback, void 0, void 0, StyleManager_getInstance().name + '-fallBackAvatarClass'); return Unit; }; } function umProfileAvatar$lambda(closure$fallback) { return function ($receiver, src) { umAvatar($receiver, src, void 0, void 0, AvatarVariant$circular_getInstance(), void 0, void 0, void 0, umProfileAvatar$lambda$lambda(src, closure$fallback)); return Unit; }; } function umProfileAvatar($receiver, personUid, fallback) { withAttachmentLocalUrlLookup($receiver, personUid, PersonDetailComponent$Companion_getInstance().PERSON_PICTURE_LOOKUP_ADAPTER, umProfileAvatar$lambda(fallback)); } function umItemThumbnail$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick != null ? closure$onClick() : null; return Unit; }; } function umItemThumbnail$lambda(closure$onClick, closure$marginTop, closure$width, closure$avatarBackgroundColor, closure$iconColor, closure$src, closure$iconName, closure$className) { return function ($receiver) { $receiver.attrs.onClick = umItemThumbnail$lambda$lambda(closure$onClick); var closure$marginTop_0 = closure$marginTop; var closure$width_0 = closure$width; var closure$avatarBackgroundColor_0 = closure$avatarBackgroundColor; var closure$iconColor_0 = closure$iconColor; var $receiver_0 = $receiver.css; set_marginTop($receiver_0, closure$marginTop_0); set_width($receiver_0, new LinearDimension(closure$width_0.toString() + 'px')); set_height($receiver_0, new LinearDimension(closure$width_0.toString() + 'px')); set_backgroundColor($receiver_0, closure$avatarBackgroundColor_0); set_color($receiver_0, closure$iconColor_0); if (closure$src == null) { umIcon($receiver, closure$iconName, void 0, void 0, closure$className); }return Unit; }; } function umItemThumbnail($receiver, iconName, src, iconColor, avatarBackgroundColor, width, marginTop, avatarVariant, className, onClick) { if (src === void 0) src = null; if (iconColor === void 0) iconColor = new Color(StyleManager_getInstance().theme.palette.background.paper); if (avatarBackgroundColor === void 0) avatarBackgroundColor = new Color(StyleManager_getInstance().theme.palette.action.disabled); if (width === void 0) width = 50; if (marginTop === void 0) marginTop = get_spacingUnits(1); if (avatarVariant === void 0) avatarVariant = AvatarVariant$square_getInstance(); if (className === void 0) className = StyleManager_getInstance().name + '-' + (width <= 50 ? 'defaultThumbnailClass' : 51 <= width && width <= 69 ? 'mediumThumbnailClass' : 'maxThumbnailClass'); if (onClick === void 0) onClick = null; umAvatar($receiver, src, void 0, void 0, avatarVariant, void 0, void 0, void 0, umItemThumbnail$lambda(onClick, marginTop, width, avatarBackgroundColor, iconColor, src, iconName, className)); } function renderListSectionTitle$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListSectionTitle($receiver, titleText, variant, leftMargin) { if (variant === void 0) variant = null; if (leftMargin === void 0) leftMargin = 0; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginBottom); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); if (leftMargin > 0) { set_marginLeft($receiver_1, get_spacingUnits(leftMargin)); }umTypography($receiver_0, titleText, variant != null ? variant : TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListSectionTitle$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); } function renderInformationOnDetailScreen$lambda$lambda(closure$icon) { return function ($receiver) { if (closure$icon != null) { umIcon($receiver, closure$icon, void 0, void 0, StyleManager_getInstance().name + '-detailIconClass'); }return Unit; }; } function renderInformationOnDetailScreen$lambda$lambda$lambda(closure$onClick) { return function () { closure$onClick(); return Unit; }; } function renderInformationOnDetailScreen$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderInformationOnDetailScreen$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderInformationOnDetailScreen$lambda$lambda_0(closure$onClick, closure$data, closure$label) { return function ($receiver) { if (closure$onClick != null) { $receiver.attrs.onClick = renderInformationOnDetailScreen$lambda$lambda$lambda(closure$onClick); }umTypography($receiver, toString(closure$data), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderInformationOnDetailScreen$lambda$lambda$lambda_0); var $receiver_0 = closure$label; if (!($receiver_0 == null || isBlank($receiver_0))) { umTypography($receiver, closure$label, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderInformationOnDetailScreen$lambda$lambda$lambda_1); }return Unit; }; } function renderInformationOnDetailScreen$lambda(closure$data, closure$shrink, closure$icon, closure$onClick, closure$label) { return function ($receiver) { var closure$data_0 = closure$data; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().defaultMarginTop); var tmp$ = StyleManager_getInstance(); var tmp$_0 = !equals(closure$data_0, '0'); if (tmp$_0) { tmp$_0 = !(closure$data_0 == null || closure$data_0.length === 0); }set_display($receiver_0, tmp$.displayProperty_dqye30$(tmp$_0, true)); umItem($receiver, GridSize$cells2_getInstance(), closure$shrink ? GridSize$cells1_getInstance() : GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, renderInformationOnDetailScreen$lambda$lambda(closure$icon)); umItem($receiver, GridSize$cells10_getInstance(), closure$shrink ? GridSize$cells11_getInstance() : GridSize$cells10_getInstance(), void 0, void 0, void 0, void 0, void 0, renderInformationOnDetailScreen$lambda$lambda_0(closure$onClick, closure$data, closure$label)); return Unit; }; } function renderInformationOnDetailScreen($receiver, icon, data, label, shrink, onClick) { if (icon === void 0) icon = null; if (label === void 0) label = null; if (shrink === void 0) shrink = false; if (onClick === void 0) onClick = null; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderInformationOnDetailScreen$lambda(data, shrink, icon, onClick, label)); } function statusCircleIndicator$lambda($receiver) { StyleManager_getInstance().gridListSecondaryItemIcons($receiver.css); return Unit; } function statusCircleIndicator($receiver, threshold) { var tmp$; if (threshold > 0.8) tmp$ = IconColor$primary_getInstance(); else if (threshold > 0.6) tmp$ = IconColor$inherit_getInstance(); else tmp$ = IconColor$error_getInstance(); umIcon($receiver, 'circle', tmp$, void 0, void 0, statusCircleIndicator$lambda); } function renderCreateNewItemOnList$lambda$lambda($receiver) { set_marginTop($receiver.css, get_px(4)); return Unit; } function renderCreateNewItemOnList($receiver, createNewText, iconName) { if (iconName === void 0) iconName = 'add'; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); StyleManager_getInstance().listItemCreateNewDiv($receiver_0.css); umListItemIcon($receiver_0, iconName, StyleManager_getInstance().name + '-listCreateNewIconClass'); umTypography($receiver_0, createNewText, TypographyVariant$button_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCreateNewItemOnList$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); } function setBitmaskListText$lambda(closure$systemImpl, this$setBitmaskListText) { return function (it) { return closure$systemImpl.getString(it.messageId, this$setBitmaskListText); }; } function setBitmaskListText($receiver, systemImpl, textBitmaskValue) { var $receiver_0 = BitmaskEditPresenter.Companion.FLAGS_AVAILABLE; var destination = ArrayList_init_0(); var tmp$; tmp$ = $receiver_0.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); if (equals(element.flagVal.and(textBitmaskValue != null ? textBitmaskValue : L_1), element.flagVal)) destination.add_11rb$(element); } return joinToString_0(destination, void 0, void 0, void 0, void 0, void 0, setBitmaskListText$lambda(systemImpl, $receiver)); } function renderListItemWithLeftIconTitleAndDescription$lambda$lambda(closure$iconName, closure$avatarVariant) { return function ($receiver) { umItemThumbnail($receiver, closure$iconName, void 0, void 0, void 0, void 0, void 0, closure$avatarVariant); return Unit; }; } function renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda$lambda(closure$description) { return function ($receiver) { var closure$description_0 = closure$description; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); if (closure$description_0 == null || closure$description_0.length === 0) { set_marginTop($receiver_0, get_spacingUnits(2)); }return Unit; }; } function renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda(closure$title, closure$titleVariant, closure$description) { return function ($receiver) { umTypography($receiver, closure$title, closure$titleVariant, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda$lambda(closure$description)); return Unit; }; } function renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda_0(closure$description) { return function ($receiver) { umTypography($receiver, closure$description, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda(closure$title, closure$titleVariant, closure$description) { return function ($receiver) { if (closure$title != null) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda(closure$title, closure$titleVariant, closure$description)); }if (closure$description != null) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda$lambda_0(closure$description)); }return Unit; }; } function renderListItemWithLeftIconTitleAndDescription$lambda$lambda_0(closure$title, closure$titleVariant, closure$description) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda$lambda$lambda(closure$title, closure$titleVariant, closure$description)); return Unit; }; } function renderListItemWithLeftIconTitleAndDescription$lambda(closure$onMainList, closure$iconName, closure$avatarVariant, closure$title, closure$titleVariant, closure$description) { return function ($receiver) { umItem($receiver, GridSize$cells3_getInstance(), closure$onMainList ? GridSize$cells1_getInstance() : GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda$lambda(closure$iconName, closure$avatarVariant)); umItem($receiver, GridSize$cells9_getInstance(), closure$onMainList ? GridSize$cells11_getInstance() : GridSize$cells10_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda$lambda_0(closure$title, closure$titleVariant, closure$description)); return Unit; }; } function renderListItemWithLeftIconTitleAndDescription($receiver, iconName, title, description, onMainList, avatarVariant, titleVariant) { if (title === void 0) title = null; if (description === void 0) description = null; if (onMainList === void 0) onMainList = false; if (avatarVariant === void 0) avatarVariant = AvatarVariant$circle_getInstance(); if (titleVariant === void 0) titleVariant = TypographyVariant$body1_getInstance(); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndDescription$lambda(onMainList, iconName, avatarVariant, title, titleVariant, description)); } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(false, it.nativeEvent); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda_0(closure$leftIcon) { return function ($receiver) { umProfileAvatar($receiver, L_1, closure$leftIcon); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda(closure$title) { return function ($receiver) { umTypography($receiver, closure$title, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda_0(closure$description) { return function ($receiver) { umTypography($receiver, closure$description, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda(closure$title, closure$description) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda(closure$title)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda_0(closure$description)); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda_1(closure$title, closure$description) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda(closure$title, closure$description)); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda_1(closure$onClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(true, it); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().defaultMarginTop($receiver.css); return Unit; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda_2(closure$iconName, closure$onClick) { return function ($receiver) { StyleManager_getInstance().alignCenterItems($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$iconName_0 = closure$iconName; var closure$onClick_0 = closure$onClick; set_width($receiver_0.css, get_px(40)); umIconButton($receiver_0, closure$iconName_0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda_1(closure$onClick_0), IconButtonSize$medium_getInstance(), void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda$lambda$lambda_2); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda(closure$onClick, closure$onMainList, closure$leftIcon, closure$title, closure$description, closure$iconName) { return function ($receiver) { $receiver.attrs.onClick = renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda(closure$onClick); umItem($receiver, GridSize$cells2_getInstance(), closure$onMainList ? GridSize$cells1_getInstance() : GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda_0(closure$leftIcon)); umItem($receiver, GridSize$cells8_getInstance(), closure$onMainList ? GridSize$cells10_getInstance() : GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda_1(closure$title, closure$description)); umItem($receiver, GridSize$cells2_getInstance(), closure$onMainList ? GridSize$cells1_getInstance() : GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda$lambda_2(closure$iconName, closure$onClick)); return Unit; }; } function renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight($receiver, leftIcon, iconName, title, description, onMainList, onClick) { if (onMainList === void 0) onMainList = false; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight$lambda(onClick, onMainList, leftIcon, title, description, iconName)); } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda(closure$personUid) { return function ($receiver) { umProfileAvatar($receiver, closure$personUid, 'person'); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda(closure$fullName) { return function ($receiver) { umTypography($receiver, closure$fullName, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().gridListSecondaryItemDesc); return Unit; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda_0(closure$attendance, closure$attendanceLabel) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$attendance_0 = closure$attendance; padding_0($receiver_0.css, void 0, get_spacingUnits(2)); statusCircleIndicator($receiver_0, closure$attendance_0); $receiver.child_30b5ua$($receiver_0.create()); umTypography($receiver, closure$attendanceLabel != null ? format(closure$attendanceLabel, [roundTo(closure$attendance)]) : null, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$onClickAccept) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClickAccept != null ? closure$onClickAccept() : null; return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$onClickAccept) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$onClickAccept_0 = closure$onClickAccept; var tmp$; set_width($receiver_0.css, get_px(50)); tmp$ = StyleManager_getInstance().name + '-successClass'; umIconButton($receiver_0, 'check', void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$onClickAccept_0), IconButtonSize$small_getInstance(), void 0, void 0, void 0, tmp$); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$onClickDecline) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClickDecline != null ? closure$onClickDecline() : null; return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$onClickDecline) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$onClickDecline_0 = closure$onClickDecline; var tmp$; set_width($receiver_0.css, get_px(50)); tmp$ = StyleManager_getInstance().name + '-errorClass'; umIconButton($receiver_0, 'close', void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$onClickDecline_0), IconButtonSize$small_getInstance(), void 0, void 0, void 0, tmp$); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$onClickAccept, closure$onClickDecline) { return function ($receiver) { umItem($receiver, GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$onClickAccept)); umItem($receiver, GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$onClickDecline)); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda_1(closure$onClickAccept, closure$onClickDecline) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing2_getInstance(), void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$onClickAccept, closure$onClickDecline)); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda_0(closure$attendance, closure$attendanceLabel, closure$pending, closure$onClickAccept, closure$onClickDecline) { return function ($receiver) { if (closure$attendance >= 0) { umItem($receiver, GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda_0(closure$attendance, closure$attendanceLabel)); }if (closure$pending) { umItem($receiver, GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda$lambda_1(closure$onClickAccept, closure$onClickDecline)); }return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda(closure$fullName, closure$student, closure$attendance, closure$attendanceLabel, closure$pending, closure$onClickAccept, closure$onClickDecline) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda(closure$fullName)); if (closure$student) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda$lambda_0(closure$attendance, closure$attendanceLabel, closure$pending, closure$onClickAccept, closure$onClickDecline)); }return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda_0(closure$fullName, closure$student, closure$attendance, closure$attendanceLabel, closure$pending, closure$onClickAccept, closure$onClickDecline) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda$lambda(closure$fullName, closure$student, closure$attendance, closure$attendanceLabel, closure$pending, closure$onClickAccept, closure$onClickDecline)); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests$lambda(closure$personUid, closure$fullName, closure$student, closure$attendance, closure$attendanceLabel, closure$pending, closure$onClickAccept, closure$onClickDecline) { return function ($receiver) { umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda(closure$personUid)); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda$lambda_0(closure$fullName, closure$student, closure$attendance, closure$attendanceLabel, closure$pending, closure$onClickAccept, closure$onClickDecline)); return Unit; }; } function renderListItemWithPersonAttendanceAndPendingRequests($receiver, personUid, fullName, pending, attendance, attendanceLabel, student, onClickDecline, onClickAccept) { if (pending === void 0) pending = false; if (attendance === void 0) attendance = -1.0; if (attendanceLabel === void 0) attendanceLabel = null; if (student === void 0) student = true; if (onClickDecline === void 0) onClickDecline = null; if (onClickAccept === void 0) onClickAccept = null; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonAttendanceAndPendingRequests$lambda(personUid, fullName, student, attendance, attendanceLabel, pending, onClickAccept, onClickDecline)); } function renderPersonWithAttemptProgress$lambda$lambda(closure$item) { return function ($receiver) { umProfileAvatar($receiver, closure$item.personUid, 'person'); return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda(closure$item) { return function ($receiver) { umTypography($receiver, toString(closure$item.firstNames) + ' ' + toString(closure$item.lastName), TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { set_marginTop($receiver.css, get_px(1)); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_0(closure$item, closure$systemImpl) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$item_0 = closure$item; var closure$systemImpl_0 = closure$systemImpl; padding_0($receiver_0.css, void 0, get_spacingUnits(4)); umTypography($receiver_0, closure$item_0.attempts.toString() + ' ' + closure$systemImpl_0.getString(2116, $receiver_0), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); if (closure$item.duration.toNumber() > 60000) { var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); padding_0($receiver_0_0.css, void 0, get_spacingUnits(2)); umIcon($receiver_0_0, 'timer', void 0, IconFontSize$small_getInstance(), void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_0); $receiver.child_30b5ua$($receiver_0_0.create()); var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$item_1 = closure$item; var closure$systemImpl_1 = closure$systemImpl; padding_0($receiver_0_1.css, void 0, get_spacingUnits(2)); umTypography($receiver_0_1, formatToStringHoursMinutesSeconds(closure$item_1.duration, closure$systemImpl_1), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_1); $receiver.child_30b5ua$($receiver_0_1.create()); }return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_1(closure$item) { return function ($receiver) { umTypography($receiver, formatDateRange(closure$item.startDate, closure$item.endDate), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().studentProgressBar($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_2(closure$item, closure$systemImpl) { return function ($receiver) { var tmp$, tmp$_0; umLinearProgress($receiver, (tmp$_0 = (tmp$ = closure$item.scoreProgress) != null ? tmp$.progress : null) != null ? tmp$_0 : null, void 0, ProgressVariant$determinate_getInstance(), void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_1); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$systemImpl_0 = closure$systemImpl; var closure$item_0 = closure$item; var tmp$_1, tmp$_2; padding_0($receiver_0.css, void 0, void 0, void 0, get_spacingUnits(4)); umTypography($receiver_0, format(closure$systemImpl_0.getString(2534, $receiver_0), [(tmp$_2 = (tmp$_1 = closure$item_0.scoreProgress) != null ? tmp$_1.progress : null) != null ? tmp$_2 : 0]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_2); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().studentProgressBar($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_3($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_3(closure$item, closure$systemImpl) { return function ($receiver) { var tmp$, tmp$_0; umLinearProgress($receiver, (tmp$_0 = (tmp$ = closure$item.scoreProgress) != null ? tmp$.resultMax : null) != null ? tmp$_0 : null, void 0, ProgressVariant$determinate_getInstance(), void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_2); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$systemImpl_0 = closure$systemImpl; var closure$item_0 = closure$item; var tmp$_1, tmp$_2; padding_0($receiver_0.css, void 0, void 0, void 0, get_spacingUnits(4)); umTypography($receiver_0, format(closure$systemImpl_0.getString(2535, $receiver_0), [(tmp$_2 = (tmp$_1 = closure$item_0.scoreProgress) != null ? calculateScoreWithPenalty(tmp$_1) : null) != null ? tmp$_2 : 0]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_3); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_4($receiver) { set_marginTop($receiver.css, get_px(1)); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_3($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_4(closure$item) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); padding_0($receiver_0.css, void 0, get_spacingUnits(4)); umIcon($receiver_0, 'comment', void 0, IconFontSize$small_getInstance(), void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda$lambda_4); $receiver.child_30b5ua$($receiver_0.create()); umTypography($receiver, closure$item.latestPrivateComment, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda$lambda_3); return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda$lambda(closure$item, closure$systemImpl) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_0(closure$item, closure$systemImpl)); if (closure$item.startDate.compareTo_11rb$(L0) > 0) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_1(closure$item)); }if (((tmp$_0 = (tmp$ = closure$item.scoreProgress) != null ? tmp$.progress : null) != null ? tmp$_0 : 0) > 0) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_2(closure$item, closure$systemImpl)); }if (((tmp$_2 = (tmp$_1 = closure$item.scoreProgress) != null ? tmp$_1.resultMax : null) != null ? tmp$_2 : 0) > 0) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_3(closure$item, closure$systemImpl)); }var $receiver_0 = closure$item.latestPrivateComment; if (!($receiver_0 == null || $receiver_0.length === 0)) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderPersonWithAttemptProgress$lambda$lambda$lambda$lambda_4(closure$item)); }return Unit; }; } function renderPersonWithAttemptProgress$lambda$lambda_0(closure$item, closure$systemImpl) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda$lambda(closure$item, closure$systemImpl)); return Unit; }; } function renderPersonWithAttemptProgress$lambda(closure$onMainList, closure$item, closure$systemImpl) { return function ($receiver) { var padding = new LinearDimension('4px'); padding_0($receiver.css, padding, void 0, padding); umItem($receiver, GridSize$cells3_getInstance(), closure$onMainList ? GridSize$cells1_getInstance() : GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells9_getInstance(), closure$onMainList ? GridSize$cells11_getInstance() : GridSize$cells10_getInstance(), void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda$lambda_0(closure$item, closure$systemImpl)); return Unit; }; } function renderPersonWithAttemptProgress($receiver, item, systemImpl, onMainList) { if (onMainList === void 0) onMainList = false; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderPersonWithAttemptProgress$lambda(onMainList, item, systemImpl)); } function renderAssignmentSubmittedProgress$lambda$lambda(closure$item) { return function ($receiver) { umProfileAvatar($receiver, closure$item.submitterUid, 'person'); return Unit; }; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda(closure$item) { return function ($receiver) { umTypography($receiver, toString(closure$item.name), TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { set_marginTop($receiver.css, get_px(1)); return Unit; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); padding_0($receiver_0.css, void 0, get_spacingUnits(4)); umIcon($receiver_0, 'comment', void 0, IconFontSize$small_getInstance(), void 0, renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda$lambda$lambda); $receiver.child_30b5ua$($receiver_0.create()); umTypography($receiver, closure$item.latestPrivateComment, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda(closure$item) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda(closure$item)); var $receiver_0 = closure$item.latestPrivateComment; if (!($receiver_0 == null || $receiver_0.length === 0)) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda_0(closure$item)); }return Unit; }; } function renderAssignmentSubmittedProgress$lambda$lambda_0(closure$item) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderAssignmentSubmittedProgress$lambda$lambda$lambda(closure$item)); return Unit; }; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda_1($receiver) { set_marginTop($receiver.css, get_px(1)); return Unit; } function renderAssignmentSubmittedProgress$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderAssignmentSubmittedProgress$lambda$lambda_1(closure$systemImpl, closure$item) { return function ($receiver) { var tmp$, tmp$_0; var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); padding_0($receiver_0.css, void 0, get_spacingUnits(1)); umIcon($receiver_0, 'check', void 0, IconFontSize$small_getInstance(), void 0, renderAssignmentSubmittedProgress$lambda$lambda$lambda$lambda_1); $receiver.child_30b5ua$($receiver_0.create()); tmp$_0 = (tmp$ = controller.SubmissionConstants.STATUS_MAP.get_11rb$(closure$item.fileSubmissionStatus)) != null ? tmp$ : 0; umTypography($receiver, closure$systemImpl.getString(tmp$_0, $receiver), TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderAssignmentSubmittedProgress$lambda$lambda$lambda_0); return Unit; }; } function renderAssignmentSubmittedProgress$lambda(closure$onMainList, closure$item, closure$systemImpl) { return function ($receiver) { var padding = new LinearDimension('4px'); padding_0($receiver.css, padding, void 0, padding); umItem($receiver, GridSize$cells3_getInstance(), closure$onMainList ? GridSize$cells1_getInstance() : GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, renderAssignmentSubmittedProgress$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells6_getInstance(), closure$onMainList ? GridSize$cells8_getInstance() : GridSize$cells7_getInstance(), void 0, void 0, void 0, void 0, void 0, renderAssignmentSubmittedProgress$lambda$lambda_0(closure$item)); if (closure$item.fileSubmissionStatus !== 0) { umItem($receiver, GridSize$cells3_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderAssignmentSubmittedProgress$lambda$lambda_1(closure$systemImpl, closure$item)); }return Unit; }; } function renderAssignmentSubmittedProgress($receiver, item, systemImpl, onMainList) { if (onMainList === void 0) onMainList = false; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderAssignmentSubmittedProgress$lambda(onMainList, item, systemImpl)); } function renderPersonListItemWithNameAndUserName$lambda$lambda(closure$item) { return function ($receiver) { umProfileAvatar($receiver, closure$item.personUid, 'person'); return Unit; }; } function renderPersonListItemWithNameAndUserName$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonListItemWithNameAndUserName$lambda$lambda$lambda(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.fullName(), TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPersonListItemWithNameAndUserName$lambda$lambda$lambda$lambda); return Unit; }; } function renderPersonListItemWithNameAndUserName$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPersonListItemWithNameAndUserName$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { var $receiver_0 = closure$item.username; umTypography($receiver, $receiver_0 == null || $receiver_0.length === 0 ? '' : '@' + toString(closure$item.username), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderPersonListItemWithNameAndUserName$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderPersonListItemWithNameAndUserName$lambda$lambda_0(closure$item) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPersonListItemWithNameAndUserName$lambda$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPersonListItemWithNameAndUserName$lambda$lambda$lambda_0(closure$item)); return Unit; }; } function renderPersonListItemWithNameAndUserName$lambda(closure$item) { return function ($receiver) { var padding = new LinearDimension('4px'); padding_0($receiver.css, padding, void 0, padding); umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderPersonListItemWithNameAndUserName$lambda$lambda(closure$item)); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderPersonListItemWithNameAndUserName$lambda$lambda_0(closure$item)); return Unit; }; } function renderPersonListItemWithNameAndUserName($receiver, item) { umGridContainer($receiver, GridSpacing$spacing5_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderPersonListItemWithNameAndUserName$lambda(item)); } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda(closure$onClick) { return function (it) { closure$onClick != null ? closure$onClick() : null; return Unit; }; } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda_0(closure$personUid, closure$iconName) { return function ($receiver) { umProfileAvatar($receiver, closure$personUid, closure$iconName); return Unit; }; } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda$lambda(closure$title) { return function ($receiver) { umTypography($receiver, closure$title, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda$lambda$lambda); return Unit; }; } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda$lambda_0(closure$subTitle, closure$systemImpl, closure$accountManager, closure$context) { return function ($receiver) { linkifyReactTextView($receiver, closure$subTitle, closure$systemImpl, closure$accountManager, closure$context); return Unit; }; } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda_1(closure$title, closure$subTitle, closure$systemImpl, closure$accountManager, closure$context) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda$lambda(closure$title)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda$lambda_0(closure$subTitle, closure$systemImpl, closure$accountManager, closure$context)); return Unit; }; } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda(closure$onClick, closure$personUid, closure$iconName, closure$title, closure$subTitle, closure$systemImpl, closure$accountManager, closure$context) { return function ($receiver) { $receiver.attrs.onClick = renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda(closure$onClick); var padding = new LinearDimension('4px'); padding_0($receiver.css, padding, void 0, padding); umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda_0(closure$personUid, closure$iconName)); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda$lambda_1(closure$title, closure$subTitle, closure$systemImpl, closure$accountManager, closure$context)); return Unit; }; } function renderListItemWithPersonTitleDescriptionAndAvatarOnLeft($receiver, title, subTitle, iconName, systemImpl, accountManager, context, personUid, onClick) { if (subTitle === void 0) subTitle = null; if (personUid === void 0) personUid = L_1; if (onClick === void 0) onClick = null; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithPersonTitleDescriptionAndAvatarOnLeft$lambda(onClick, personUid, iconName, title, subTitle, systemImpl, accountManager, context)); } function renderCourseBlockAssignment$lambda$lambda($receiver) { umItemThumbnail($receiver, 'assignment', void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda(closure$withAction) { return function ($receiver) { var closure$withAction_0 = closure$withAction; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_fontSize($receiver_0, get_em(closure$withAction_0 ? 1.2 : 1.4)); return Unit; }; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda(closure$item, closure$withAction) { return function ($receiver) { var tmp$, tmp$_0; umTypography($receiver, (tmp$_0 = (tmp$ = closure$item.assignment) != null ? tmp$.caTitle : null) != null ? tmp$_0 : '', TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda(closure$withAction)); return Unit; }; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda(closure$withAction) { return function ($receiver) { var closure$withAction_0 = closure$withAction; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_fontSize($receiver_0, get_em(closure$withAction_0 ? 1 : 1.1)); return Unit; }; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda_0(closure$item, closure$withAction) { return function ($receiver) { var tmp$, tmp$_0; tmp$_0 = (tmp$ = closure$item.assignment) != null ? tmp$.caDescription : null; umTypography($receiver, DraftJsUtil_getInstance().clean_pdl1vj$(tmp$_0), TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda(closure$withAction)); return Unit; }; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda_0(closure$item, closure$withAction) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda_0(closure$item, closure$withAction)); return Unit; }; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { set_marginTop($receiver.css, get_px(1)); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_3($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_color($receiver_0, Color.Companion.red); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_4($receiver) { set_marginTop($receiver.css, get_px(1)); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda_1($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderCourseBlockAssignment$lambda$lambda$lambda$lambda_1(closure$item, closure$timeZoneId, closure$systemImpl) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17; var date = toDate(closure$item.cbDeadlineDate, true); if (date != null) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); padding_0($receiver_0.css, void 0, get_spacingUnits(1)); umIcon($receiver_0, 'event', void 0, IconFontSize$small_getInstance(), void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_0); $receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$timeZoneId_0 = closure$timeZoneId; padding_0($receiver_0_0.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_0, standardFormat(date, closure$timeZoneId_0), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_1); $receiver.child_30b5ua$($receiver_0_0.create()); }if (((tmp$ = closure$item.assignment) != null ? tmp$.mark : null) != null) { var $receiver_0_1 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$item_0 = closure$item; var closure$systemImpl_0 = closure$systemImpl; var tmp$_18, tmp$_19; padding_0($receiver_0_1.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_1, toString((tmp$_19 = (tmp$_18 = closure$item_0.assignment) != null ? tmp$_18.mark : null) != null ? tmp$_19.camMark : null) + ' / ' + closure$item_0.cbMaxPoints + ' ' + closure$systemImpl_0.getString(2594, $receiver_0_1), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_2); $receiver.child_30b5ua$($receiver_0_1.create()); }if (((tmp$_0 = closure$item.assignment) != null ? tmp$_0.mark : null) != null && ((tmp$_2 = (tmp$_1 = closure$item.assignment) != null ? tmp$_1.mark : null) != null ? tmp$_2.camPenalty : null) !== 0) { var $receiver_0_2 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$systemImpl_1 = closure$systemImpl; var closure$item_1 = closure$item; padding_0($receiver_0_2.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_2, format(closure$systemImpl_1.getString(2600, $receiver_0_2), [closure$item_1.cbLateSubmissionPenalty]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_3); $receiver.child_30b5ua$($receiver_0_2.create()); }if (((tmp$_4 = (tmp$_3 = closure$item.assignment) != null ? tmp$_3.progressSummary : null) != null ? tmp$_4.hasMetricsPermission : null) === false) { if (((tmp$_5 = closure$item.assignment) != null ? tmp$_5.fileSubmissionStatus : null) !== 0) { var $receiver_0_3 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$item_2 = closure$item; var tmp$_20, tmp$_21, tmp$_22; padding_0($receiver_0_3.css, void 0, get_spacingUnits(1)); umIcon($receiver_0_3, (tmp$_22 = ClazzAssignmentDetailOverviewComponent$Companion_getInstance().ASSIGNMENT_STATUS_MAP.get_11rb$((tmp$_21 = (tmp$_20 = closure$item_2.assignment) != null ? tmp$_20.fileSubmissionStatus : null) != null ? tmp$_21 : 0)) != null ? tmp$_22 : '', void 0, IconFontSize$small_getInstance(), void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda$lambda_4); $receiver.child_30b5ua$($receiver_0_3.create()); }tmp$_9 = (tmp$_8 = controller.SubmissionConstants.STATUS_MAP.get_11rb$((tmp$_7 = (tmp$_6 = closure$item.assignment) != null ? tmp$_6.fileSubmissionStatus : null) != null ? tmp$_7 : 0)) != null ? tmp$_8 : 0; umTypography($receiver, closure$systemImpl.getString(tmp$_9, $receiver), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda_1); }if (((tmp$_11 = (tmp$_10 = closure$item.assignment) != null ? tmp$_10.progressSummary : null) != null ? tmp$_11.hasMetricsPermission : null) === true) { umTypography($receiver, format(closure$systemImpl.getString(2624, $receiver), [toString((tmp$_13 = (tmp$_12 = closure$item.assignment) != null ? tmp$_12.progressSummary : null) != null ? tmp$_13.calculateNotSubmittedStudents() : null), closure$systemImpl.getString(2574, $receiver), toString((tmp$_15 = (tmp$_14 = closure$item.assignment) != null ? tmp$_14.progressSummary : null) != null ? tmp$_15.submittedStudents : null), closure$systemImpl.getString(2573, $receiver), toString((tmp$_17 = (tmp$_16 = closure$item.assignment) != null ? tmp$_16.progressSummary : null) != null ? tmp$_17.markedStudents : null), closure$systemImpl.getString(2601, $receiver)]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda$lambda_2); }return Unit; }; } function renderCourseBlockAssignment$lambda$lambda$lambda(closure$item, closure$withAction, closure$timeZoneId, closure$systemImpl) { return function ($receiver) { var tmp$; umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda(closure$item, closure$withAction)); var $receiver_0 = (tmp$ = closure$item.assignment) != null ? tmp$.caDescription : null; if (!($receiver_0 == null || $receiver_0.length === 0)) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda$lambda$lambda_0(closure$item, closure$withAction)); }umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderCourseBlockAssignment$lambda$lambda$lambda$lambda_1(closure$item, closure$timeZoneId, closure$systemImpl)); return Unit; }; } function renderCourseBlockAssignment$lambda$lambda_0(closure$item, closure$withAction, closure$timeZoneId, closure$systemImpl) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda$lambda(closure$item, closure$withAction, closure$timeZoneId, closure$systemImpl)); return Unit; }; } function renderCourseBlockAssignment$lambda(closure$item, closure$withAction, closure$timeZoneId, closure$systemImpl) { return function ($receiver) { var padding = new LinearDimension('4px'); var leftPadding = get_spacingUnits(closure$item.cbIndentLevel * 3 | 0); padding_0($receiver.css, padding, void 0, padding, leftPadding); umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda); umItem($receiver, GridSize$cells10_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda$lambda_0(closure$item, closure$withAction, closure$timeZoneId, closure$systemImpl)); return Unit; }; } function renderCourseBlockAssignment($receiver, item, systemImpl, timeZoneId, withAction) { if (timeZoneId === void 0) timeZoneId = null; if (withAction === void 0) withAction = false; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockAssignment$lambda(item, withAction, timeZoneId, systemImpl)); } function renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda(closure$icon) { return function ($receiver) { umItemThumbnail($receiver, closure$icon, void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); return Unit; }; } function renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_marginTop($receiver_0, get_spacingUnits(2)); return Unit; } function renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda_0(closure$title) { return function ($receiver) { umTypography($receiver, closure$title != null ? closure$title : '', TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda$lambda); return Unit; }; } function renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda$lambda_0(closure$onChange) { return function (it) { closure$onChange(it); return Unit; }; } function renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda_1(closure$fieldLabel, closure$value, closure$options, closure$onChange) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5; tmp$ = toString(closure$fieldLabel.text); tmp$_1 = (tmp$_0 = closure$fieldLabel.errorText) != null ? tmp$_0 : ''; tmp$_2 = closure$fieldLabel.error; var tmp$_6; if (closure$options != null) { var $receiver_0 = closure$options; var destination = ArrayList_init(collectionSizeOrDefault($receiver_0, 10)); var tmp$_7; tmp$_7 = $receiver_0.iterator(); while (tmp$_7.hasNext()) { var item = tmp$_7.next(); destination.add_11rb$(new Pair(item.optionId.toString(), item.toString())); } tmp$_6 = destination; } else tmp$_6 = null; tmp$_4 = (tmp$_3 = tmp$_6) != null ? toList(tmp$_3) : null; tmp$_5 = renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda$lambda_0(closure$onChange); umTextFieldSelect($receiver, tmp$, closure$value, tmp$_1, void 0, tmp$_4, void 0, tmp$_5, void 0, void 0, tmp$_2); return Unit; }; } function renderListItemWithLeftIconTitleAndOptionOnRight$lambda(closure$icon, closure$title, closure$fieldLabel, closure$value, closure$options, closure$onChange) { return function ($receiver) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda(closure$icon)); umItem($receiver, GridSize$cells8_getInstance(), GridSize$cells9_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda_0(closure$title)); umItem($receiver, GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndOptionOnRight$lambda$lambda_1(closure$fieldLabel, closure$value, closure$options, closure$onChange)); return Unit; }; } function renderListItemWithLeftIconTitleAndOptionOnRight($receiver, value, icon, title, options, fieldLabel, onChange) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithLeftIconTitleAndOptionOnRight$lambda(icon, title, fieldLabel, value, options, onChange)); } function renderConversationListItem$lambda$lambda($receiver) { umItemThumbnail($receiver, 'person', void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); return Unit; } function renderConversationListItem$lambda$lambda$lambda$lambda(closure$left, closure$systemImpl) { return function ($receiver) { var closure$left_0 = closure$left; var closure$systemImpl_0 = closure$systemImpl; var $receiver_0 = $receiver.css; set_fontSize($receiver_0, get_em(0.9)); set_color($receiver_0, new Color(StyleManager_getInstance().theme.palette.action.disabled)); padding_2($receiver_0, get_spacingUnits(0), get_spacingUnits(1)); margin($receiver_0, get_px(4)); set_textAlign($receiver_0, closure$left_0 ? closure$systemImpl_0.isRtlActive() ? TextAlign.right : TextAlign.left : closure$systemImpl_0.isRtlActive() ? TextAlign.left : TextAlign.right); return Unit; }; } function renderConversationListItem$lambda$lambda_0(closure$left, closure$systemImpl, closure$message, closure$accountManager, closure$context, closure$messageTime) { return function ($receiver) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); var closure$left_0 = closure$left; var closure$systemImpl_0 = closure$systemImpl; var closure$message_0 = closure$message; var closure$accountManager_0 = closure$accountManager; var closure$context_0 = closure$context; var closure$messageTime_0 = closure$messageTime; var tmp$; set_textAlign($receiver_0.css, closure$left_0 ? closure$systemImpl_0.isRtlActive() ? TextAlign.right : TextAlign.left : closure$systemImpl_0.isRtlActive() ? TextAlign.left : TextAlign.right); linkifyReactMessage($receiver_0, closure$message_0, closure$left_0, new LinkifyOptions(), closure$systemImpl_0, closure$accountManager_0, closure$context_0); umTypography($receiver_0, (tmp$ = toDate(closure$messageTime_0)) != null ? fromNow(tmp$, closure$systemImpl_0.getDisplayedLocale_za3rmp$($receiver_0)) : null, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderConversationListItem$lambda$lambda$lambda$lambda(closure$left_0, closure$systemImpl_0)); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderConversationListItem$lambda(closure$left, closure$systemImpl, closure$message, closure$accountManager, closure$context, closure$messageTime) { return function ($receiver) { margin($receiver.css, get_spacingUnits(2)); if (closure$left) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderConversationListItem$lambda$lambda); }umItem($receiver, GridSize$cells8_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderConversationListItem$lambda$lambda_0(closure$left, closure$systemImpl, closure$message, closure$accountManager, closure$context, closure$messageTime)); return Unit; }; } function renderConversationListItem($receiver, left, messageOwner, message, systemImpl, accountManager, context, messageTime) { if (left === void 0) left = true; umGridContainer($receiver, GridSpacing$spacing1_getInstance(), void 0, void 0, left ? FlexDirection.row : FlexDirection.rowReverse, void 0, void 0, void 0, void 0, renderConversationListItem$lambda(left, systemImpl, message, accountManager, context, messageTime)); } function renderChatListItemWithCounter$lambda$lambda($receiver) { umItemThumbnail($receiver, 'person', void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); return Unit; } function renderChatListItemWithCounter$lambda$lambda$lambda($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); return Unit; } function renderChatListItemWithCounter$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_marginTop($receiver_0, get_spacingUnits(1)); return Unit; } function renderChatListItemWithCounter$lambda$lambda_0(closure$userFullName, closure$latestMessage) { return function ($receiver) { umTypography($receiver, closure$userFullName, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda$lambda); umTypography($receiver, closure$latestMessage, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda$lambda_0); return Unit; }; } function renderChatListItemWithCounter$lambda$lambda$lambda$lambda($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); return Unit; } function renderChatListItemWithCounter$lambda$lambda$lambda_1(closure$time) { return function ($receiver) { umTypography($receiver, closure$time, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda$lambda$lambda); return Unit; }; } function renderChatListItemWithCounter$lambda$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_fontSize($receiver_0, get_em(0.8)); return Unit; } function renderChatListItemWithCounter$lambda$lambda$lambda$lambda_0(closure$counter) { return function ($receiver) { var $receiver_0 = $receiver.css; set_width($receiver_0, get_spacingUnits(3)); set_height($receiver_0, get_spacingUnits(3)); set_color($receiver_0, Color.Companion.white); set_backgroundColor($receiver_0, new Color(StyleManager_getInstance().theme.palette.primary.dark)); umTypography($receiver, (closure$counter > 9 ? '9+' : closure$counter).toString(), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderChatListItemWithCounter$lambda$lambda$lambda_2(closure$counter) { return function ($receiver) { var $receiver_0 = $receiver.css; set_display($receiver_0, Display.flex); set_alignItems($receiver_0, Align.center); set_justifyContent($receiver_0, JustifyContent.center); if (closure$counter > 0) { umAvatar($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda$lambda$lambda_0(closure$counter)); }return Unit; }; } function renderChatListItemWithCounter$lambda$lambda_1(closure$time, closure$counter) { return function ($receiver) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda$lambda_1(closure$time)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda$lambda_2(closure$counter)); return Unit; }; } function renderChatListItemWithCounter$lambda(closure$userFullName, closure$latestMessage, closure$time, closure$counter) { return function ($receiver) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda); umItem($receiver, GridSize$cells8_getInstance(), GridSize$cells9_getInstance(), void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda$lambda_0(closure$userFullName, closure$latestMessage)); umItem($receiver, GridSize$cells2_getInstance(), void 0, void 0, void 0, GridAlignItems$flexEnd_getInstance(), void 0, void 0, renderChatListItemWithCounter$lambda$lambda_1(closure$time, closure$counter)); return Unit; }; } function renderChatListItemWithCounter($receiver, userFullName, latestMessage, time, counter) { if (counter === void 0) counter = 0; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderChatListItemWithCounter$lambda(userFullName, latestMessage, time, counter)); } function renderPostsDetail$lambda$lambda($receiver) { umItemThumbnail($receiver, 'person', void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); return Unit; } function renderPostsDetail$lambda$lambda$lambda($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); return Unit; } function renderPostsDetail$lambda$lambda$lambda_0($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_marginTop($receiver_0, get_spacingUnits(1)); return Unit; } function renderPostsDetail$lambda$lambda_0(closure$userFullName, closure$message) { return function ($receiver) { umTypography($receiver, closure$userFullName, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda$lambda); umTypography($receiver, closure$message, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda$lambda_0); return Unit; }; } function renderPostsDetail$lambda$lambda$lambda$lambda($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); return Unit; } function renderPostsDetail$lambda$lambda$lambda_1(closure$time) { return function ($receiver) { umTypography($receiver, closure$time, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda$lambda$lambda); return Unit; }; } function renderPostsDetail$lambda$lambda$lambda$lambda_0($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); return Unit; } function renderPostsDetail$lambda$lambda$lambda_2(closure$systemImpl, closure$counter) { return function ($receiver) { umTypography($receiver, format(closure$systemImpl.getString(2907, $receiver), [closure$counter]), TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderPostsDetail$lambda$lambda_1(closure$time, closure$systemImpl, closure$counter) { return function ($receiver) { umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda$lambda_1(closure$time)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda$lambda_2(closure$systemImpl, closure$counter)); return Unit; }; } function renderPostsDetail$lambda$lambda$lambda$lambda_1($receiver) { set_marginTop($receiver.css, get_px(1)); return Unit; } function renderPostsDetail$lambda$lambda$lambda$lambda_2($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderPostsDetail$lambda$lambda_2(closure$latestMessage) { return function ($receiver) { if (closure$latestMessage != null) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); padding_0($receiver_0.css, void 0, get_spacingUnits(1)); umIcon($receiver_0, 'chat', void 0, IconFontSize$small_getInstance(), void 0, renderPostsDetail$lambda$lambda$lambda$lambda_1); $receiver.child_30b5ua$($receiver_0.create()); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$latestMessage_0 = closure$latestMessage; padding_0($receiver_0_0.css, void 0, get_spacingUnits(4)); umTypography($receiver_0_0, closure$latestMessage_0, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderPostsDetail$lambda$lambda$lambda$lambda_2); $receiver.child_30b5ua$($receiver_0_0.create()); }return Unit; }; } function renderPostsDetail$lambda(closure$userFullName, closure$message, closure$time, closure$systemImpl, closure$counter, closure$latestMessage) { return function ($receiver) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda); umItem($receiver, GridSize$cells8_getInstance(), GridSize$cells9_getInstance(), void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda$lambda_0(closure$userFullName, closure$message)); umItem($receiver, GridSize$cells2_getInstance(), void 0, void 0, void 0, GridAlignItems$flexEnd_getInstance(), void 0, void 0, renderPostsDetail$lambda$lambda_1(closure$time, closure$systemImpl, closure$counter)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, FlexDirection.row, renderPostsDetail$lambda$lambda_2(closure$latestMessage)); return Unit; }; } function renderPostsDetail($receiver, userFullName, message, latestMessage, time, counter, systemImpl) { if (counter === void 0) counter = 0; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderPostsDetail$lambda(userFullName, message, time, systemImpl, counter, latestMessage)); } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda($receiver) { set_marginRight($receiver.css, get_spacingUnits(2)); return Unit; } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda(closure$hidden) { return function ($receiver) { umIcon($receiver, 'reorder', closure$hidden ? IconColor$disabled_getInstance() : IconColor$inherit_getInstance(), void 0, StyleManager_getInstance().name + '-dragToReorderClass', renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda(closure$showReorder, closure$hidden, closure$leftPadding, closure$iconName) { return function ($receiver) { if (closure$showReorder) { umSortableKnob($receiver, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda(closure$hidden)); }var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); var closure$leftPadding_0 = closure$leftPadding; var closure$iconName_0 = closure$iconName; set_paddingLeft($receiver_0.css, closure$leftPadding_0); umItemThumbnail($receiver_0, closure$iconName_0, void 0, void 0, void 0, void 0, void 0, AvatarVariant$circle_getInstance()); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda$lambda(closure$showReorder, closure$hidden) { return function ($receiver) { var closure$showReorder_0 = closure$showReorder; var closure$hidden_0 = closure$hidden; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); if (closure$showReorder_0 && closure$hidden_0) { $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().textGrayedOut); }set_fontSize($receiver_0, get_em(1.2)); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda_0(closure$title, closure$showReorder, closure$hidden) { return function ($receiver) { umTypography($receiver, closure$title != null ? closure$title : '', TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda$lambda(closure$showReorder, closure$hidden)); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda$lambda_0(closure$showReorder, closure$hidden) { return function ($receiver) { var closure$showReorder_0 = closure$showReorder; var closure$hidden_0 = closure$hidden; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); if (closure$showReorder_0 && closure$hidden_0) { $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().textGrayedOut); }set_fontSize($receiver_0, get_em(1)); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda_1(closure$description, closure$showReorder, closure$hidden) { return function ($receiver) { umTypography($receiver, closure$description, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda$lambda_0(closure$showReorder, closure$hidden)); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda_0(closure$leftPadding, closure$title, closure$showReorder, closure$hidden, closure$description) { return function ($receiver) { var closure$leftPadding_0 = closure$leftPadding; set_paddingLeft($receiver.css, closure$leftPadding_0); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda_0(closure$title, closure$showReorder, closure$hidden)); if (closure$description != null) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda_1(closure$description, closure$showReorder, closure$hidden)); }return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda_0(closure$leftPadding, closure$title, closure$showReorder, closure$hidden, closure$description) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda_0(closure$leftPadding, closure$title, closure$showReorder, closure$hidden, closure$description)); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda_2(closure$onActionClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onActionClick != null ? closure$onActionClick(it) : null; return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda$lambda_1(closure$actionIconName, closure$id, closure$hidden, closure$showReorder, closure$onActionClick) { return function ($receiver) { StyleManager_getInstance().alignEndItems($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$actionIconName_0 = closure$actionIconName; var closure$id_0 = closure$id; var closure$hidden_0 = closure$hidden; var closure$showReorder_0 = closure$showReorder; var closure$onActionClick_0 = closure$onActionClick; var $receiver_1 = $receiver_0.css; set_marginLeft($receiver_1, get_pct(50)); set_marginTop($receiver_1, get_pct(15)); set_width($receiver_1, get_px(40)); umIconButton($receiver_0, closure$actionIconName_0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda$lambda$lambda_2(closure$onActionClick_0), void 0, closure$hidden_0 && closure$showReorder_0 ? IconColor$disabled_getInstance() : IconColor$inherit_getInstance(), closure$id_0); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderCourseBlockTextOrModuleListItem$lambda(closure$showReorder, closure$hidden, closure$leftPadding, closure$iconName, closure$withAction, closure$title, closure$description, closure$actionIconName, closure$id, closure$onActionClick) { return function ($receiver) { umItem($receiver, GridSize$cells2_getInstance(), closure$showReorder ? GridSize$cells2_getInstance() : GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, FlexDirection.row, renderCourseBlockTextOrModuleListItem$lambda$lambda(closure$showReorder, closure$hidden, closure$leftPadding, closure$iconName)); umItem($receiver, closure$withAction ? GridSize$cells8_getInstance() : GridSize$cells10_getInstance(), closure$withAction ? closure$showReorder ? GridSize$cells9_getInstance() : GridSize$cells10_getInstance() : GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda_0(closure$leftPadding, closure$title, closure$showReorder, closure$hidden, closure$description)); if (closure$withAction) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda$lambda_1(closure$actionIconName, closure$id, closure$hidden, closure$showReorder, closure$onActionClick)); }return Unit; }; } function renderCourseBlockTextOrModuleListItem($receiver, blockType, blockLevel, title, description, showReorder, withAction, actionIconName, hidden, id, onActionClick) { if (description === void 0) description = null; if (showReorder === void 0) showReorder = false; if (withAction === void 0) withAction = false; if (actionIconName === void 0) actionIconName = ''; if (hidden === void 0) hidden = false; if (id === void 0) id = ''; if (onActionClick === void 0) onActionClick = null; var tmp$; var iconName = (tmp$ = ClazzEditComponent$Companion_getInstance().BLOCK_ICON_MAP.get_11rb$(blockType)) != null ? tmp$ : ''; var leftPadding = get_spacingUnits(blockLevel * 3 | 0); umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockTextOrModuleListItem$lambda(showReorder, hidden, leftPadding, iconName, withAction, title, description, actionIconName, id, onActionClick)); } function renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda(closure$title) { return function ($receiver) { umTypography($receiver, closure$title, TypographyVariant$body1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda$lambda); return Unit; }; } function renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda_0(closure$description) { return function ($receiver) { umTypography($receiver, closure$description, TypographyVariant$body2_getInstance(), void 0, true, void 0, void 0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderListItemWithTitleDescriptionAndRightAction$lambda$lambda(closure$title, closure$description) { return function ($receiver) { set_paddingTop($receiver.css, new LinearDimension('8px')); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda(closure$title)); if (closure$description != null) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda_0(closure$description)); }return Unit; }; } function renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda$lambda_1(closure$onActionClick) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onActionClick != null ? closure$onActionClick(it) : null; return Unit; }; } function renderListItemWithTitleDescriptionAndRightAction$lambda$lambda_0(closure$iconName, closure$onActionClick) { return function ($receiver) { StyleManager_getInstance().alignCenterItems($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$iconName_0 = closure$iconName; var closure$onActionClick_0 = closure$onActionClick; set_width($receiver_0.css, get_px(40)); umIconButton($receiver_0, closure$iconName_0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda$lambda$lambda$lambda_1(closure$onActionClick_0)); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderListItemWithTitleDescriptionAndRightAction$lambda(closure$withAction, closure$title, closure$description, closure$iconName, closure$onActionClick) { return function ($receiver) { umItem($receiver, closure$withAction ? GridSize$cells10_getInstance() : GridSize$cells12_getInstance(), closure$withAction ? GridSize$cells11_getInstance() : GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda$lambda(closure$title, closure$description)); if (closure$withAction) { umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda$lambda_0(closure$iconName, closure$onActionClick)); }return Unit; }; } function renderListItemWithTitleDescriptionAndRightAction($receiver, title, iconName, withAction, description, onActionClick) { if (withAction === void 0) withAction = false; if (description === void 0) description = null; if (onActionClick === void 0) onActionClick = null; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleDescriptionAndRightAction$lambda(withAction, title, description, iconName, onActionClick)); } function renderListItemWithAttendance$lambda$lambda(closure$iconName) { return function ($receiver) { umProfileAvatar($receiver, L_1, closure$iconName); return Unit; }; } function renderListItemWithAttendance$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListItemWithAttendance$lambda$lambda$lambda(closure$title) { return function ($receiver) { umTypography($receiver, closure$title, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda$lambda); return Unit; }; } function renderListItemWithAttendance$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderListItemWithAttendance$lambda$lambda$lambda_0(closure$subTitle) { return function ($receiver) { umTypography($receiver, closure$subTitle, TypographyVariant$body2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderListItemWithAttendance$lambda$lambda$lambda$lambda$lambda(closure$attendance) { return function ($receiver) { statusCircleIndicator($receiver, closure$attendance); return Unit; }; } function renderListItemWithAttendance$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().gridListSecondaryItemDesc); return Unit; } function renderListItemWithAttendance$lambda$lambda$lambda$lambda$lambda_0(closure$attendanceLabel, closure$attendance) { return function ($receiver) { umTypography($receiver, format(closure$attendanceLabel, [roundTo(closure$attendance)]), void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderListItemWithAttendance$lambda$lambda$lambda$lambda_1(closure$attendance, closure$attendanceLabel) { return function ($receiver) { umItem($receiver, GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda$lambda$lambda(closure$attendance)); umItem($receiver, GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda$lambda$lambda_0(closure$attendanceLabel, closure$attendance)); return Unit; }; } function renderListItemWithAttendance$lambda$lambda$lambda_1(closure$attendance, closure$attendanceLabel) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda$lambda_1(closure$attendance, closure$attendanceLabel)); return Unit; }; } function renderListItemWithAttendance$lambda$lambda_0(closure$title, closure$subTitle, closure$attendance, closure$attendanceLabel) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda(closure$title)); if (closure$subTitle.length > 0) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda_0(closure$subTitle)); }umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda$lambda_1(closure$attendance, closure$attendanceLabel)); return Unit; }; } function renderListItemWithAttendance$lambda(closure$iconName, closure$title, closure$subTitle, closure$attendance, closure$attendanceLabel) { return function ($receiver) { umItem($receiver, GridSize$cells3_getInstance(), GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda(closure$iconName)); umItem($receiver, GridSize$cells9_getInstance(), GridSize$cells10_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda$lambda_0(closure$title, closure$subTitle, closure$attendance, closure$attendanceLabel)); return Unit; }; } function renderListItemWithAttendance($receiver, iconName, title, subTitle, attendance, attendanceLabel) { if (attendance === void 0) attendance = -1.0; umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithAttendance$lambda(iconName, title, subTitle, attendance, attendanceLabel)); } function renderListItemWithIconAndTitle$lambda$lambda(closure$onClick) { return function (it) { closure$onClick != null ? closure$onClick() : null; return Unit; }; } function renderListItemWithIconAndTitle$lambda$lambda$lambda(closure$iconName) { return function ($receiver) { umIcon($receiver, closure$iconName); return Unit; }; } function renderListItemWithIconAndTitle$lambda$lambda_0(closure$iconName) { return function ($receiver) { umAvatar($receiver, void 0, void 0, void 0, AvatarVariant$circle_getInstance(), void 0, void 0, void 0, renderListItemWithIconAndTitle$lambda$lambda$lambda(closure$iconName)); return Unit; }; } function renderListItemWithIconAndTitle$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; set_justifyContent($receiver_0, JustifyContent.left); set_alignItems($receiver_0, Align.center); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); return Unit; } function renderListItemWithIconAndTitle$lambda$lambda$lambda_0(closure$title) { return function ($receiver) { umTypography($receiver, closure$title, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithIconAndTitle$lambda$lambda$lambda$lambda); return Unit; }; } function renderListItemWithIconAndTitle$lambda$lambda_1(closure$title) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithIconAndTitle$lambda$lambda$lambda_0(closure$title)); return Unit; }; } function renderListItemWithIconAndTitle$lambda(closure$onClick, closure$iconName, closure$title) { return function ($receiver) { $receiver.attrs.onClick = renderListItemWithIconAndTitle$lambda$lambda(closure$onClick); umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithIconAndTitle$lambda$lambda_0(closure$iconName)); umItem($receiver, GridSize$cells10_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithIconAndTitle$lambda$lambda_1(closure$title)); return Unit; }; } function renderListItemWithIconAndTitle($receiver, iconName, title, onClick) { if (onClick === void 0) onClick = null; umGridContainer($receiver, GridSpacing$spacing1_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithIconAndTitle$lambda(onClick, iconName, title)); } function umSpacer($receiver, left, right, top, bottom) { if (left === void 0) left = null; if (right === void 0) right = null; if (top === void 0) top = get_spacingUnits(1); if (bottom === void 0) bottom = get_spacingUnits(1); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); var $receiver_1 = $receiver_0.css; if (left != null) { set_marginLeft($receiver_1, left); }if (right != null) { set_marginRight($receiver_1, right); }if (top != null) { set_marginTop($receiver_1, top); }if (bottom != null) { set_marginBottom($receiver_1, bottom); }$receiver.child_30b5ua$($receiver_0.create()); } function umTopBar$lambda$lambda$lambda$lambda() { return Unit; } function umTopBar$lambda$lambda$lambda$lambda$lambda(this$) { return function () { this$.sm = 'block'; return Unit; }; } function umTopBar$lambda$lambda$lambda($receiver) { var props = umTopBar$lambda$lambda$lambda$lambda; var $receiver_0 = {}; $receiver_0.flexGrow = 1; $receiver_0.display = umTopBar$lambda$lambda$lambda$lambda$lambda($receiver_0); props.style = $receiver_0; $receiver.attrs.sx = props; var $receiver_1 = $receiver.css; set_flexGrow($receiver_1, 1.0); $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().toolbarTitle); return Unit; } function umTopBar$lambda$lambda$lambda$lambda$ObjectLiteral() { this.className = StyleManager_getInstance().name + '-mainComponentInputSearchClass'; this.id = 'um-search'; } umTopBar$lambda$lambda$lambda$lambda$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [] }; function umTopBar$lambda$lambda$lambda$lambda_0($receiver) { $receiver.attrs.inputProps = new umTopBar$lambda$lambda$lambda$lambda$ObjectLiteral(); return Unit; } function umTopBar$lambda$lambda$lambda$lambda_1(closure$onClick) { return function (it) { closure$onClick != null ? closure$onClick() : null; return Unit; }; } function umTopBar$lambda$lambda$lambda$lambda$lambda_0($receiver) { set_marginTop($receiver.css, new LinearDimension('1.5px')); return Unit; } function umTopBar$lambda$lambda$lambda$lambda_2(closure$name) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1; StyleManager_getInstance().mainComponentProfileInnerAvatar($receiver.css); tmp$_0 = (tmp$ = closure$name != null ? first_1(closure$name) : null) === null ? null : String.fromCharCode(tmp$); tmp$_1 = TypographyAlign$center_getInstance(); umTypography($receiver, tmp$_0, TypographyVariant$h5_getInstance(), tmp$_1, void 0, void 0, void 0, void 0, void 0, umTopBar$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function umTopBar$lambda$lambda$lambda_0(closure$currentDestination, closure$onClick, closure$name) { return function ($receiver) { var closure$currentDestination_0 = closure$currentDestination; var $receiver_0 = $receiver.css; set_display($receiver_0, StyleManager_getInstance().displayProperty_dqye30$(closure$currentDestination_0.showNavigation)); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().mainComponentProfileOuterAvatar); $receiver.attrs.onClick = umTopBar$lambda$lambda$lambda$lambda_1(closure$onClick); umAvatar($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, umTopBar$lambda$lambda$lambda$lambda_2(closure$name)); return Unit; }; } function umTopBar$lambda$lambda(closure$appState, closure$currentDestination, closure$searchLabel, closure$onClick, closure$name) { return function ($receiver) { var tmp$; $receiver.attrs.id = 'um-toolbar'; umTypography($receiver, (tmp$ = closure$appState.appToolbar.title) != null ? tmp$ : '', TypographyVariant$h6_getInstance(), void 0, void 0, true, 'div', void 0, void 0, umTopBar$lambda$lambda$lambda); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); var closure$currentDestination_0 = closure$currentDestination; var closure$searchLabel_0 = closure$searchLabel; var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().mainComponentSearch); set_display($receiver_1, StyleManager_getInstance().displayProperty_dqye30$(closure$currentDestination_0.showSearch)); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledDiv$lambda_56); StyleManager_getInstance().mainComponentSearchIcon($receiver_0_0.css); umIcon($receiver_0_0, 'search'); $receiver_0.child_30b5ua$($receiver_0_0.create()); umInput($receiver_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, closure$searchLabel_0, true, void 0, void 0, void 0, void 0, void 0, void 0, Color.Companion.white, void 0, void 0, void 0, void 0, void 0, void 0, umTopBar$lambda$lambda$lambda$lambda_0); $receiver.child_30b5ua$($receiver_0.create()); umAvatar($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, umTopBar$lambda$lambda$lambda_0(closure$currentDestination, closure$onClick, closure$name)); return Unit; }; } function umTopBar$lambda(closure$currentDestination, closure$appState, closure$searchLabel, closure$onClick, closure$name) { return function ($receiver) { (closure$currentDestination.showNavigation ? StyleManager_getInstance().mainComponentAppBar : StyleManager_getInstance().mainComponentAppBarWithNoNav)($receiver.css); umToolbar($receiver, void 0, void 0, void 0, umTopBar$lambda$lambda(closure$appState, closure$currentDestination, closure$searchLabel, closure$onClick, closure$name)); return Unit; }; } function umTopBar($receiver, appState, currentDestination, searchLabel, name, onClick) { if (name === void 0) name = null; umAppBar($receiver, void 0, AppBarPosition$fixed_getInstance(), void 0, void 0, umTopBar$lambda(currentDestination, appState, searchLabel, onClick, name)); } function renderTopMainAction$lambda$lambda$lambda(closure$action) { return function (it) { closure$action(); return Unit; }; } function renderTopMainAction$lambda$lambda$lambda_0($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().personDetailComponentActionIcon); return Unit; } function renderTopMainAction$lambda$lambda(closure$action, closure$icon, closure$title, closure$variant, closure$textAlign, closure$textClassName) { return function ($receiver) { $receiver.attrs.onClick = renderTopMainAction$lambda$lambda$lambda(closure$action); $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().personDetailComponentActions); umIcon($receiver, closure$icon, void 0, void 0, void 0, renderTopMainAction$lambda$lambda$lambda_0); umTypography($receiver, closure$title, closure$variant, closure$textAlign, true, void 0, void 0, void 0, closure$textClassName); return Unit; }; } function renderTopMainAction$lambda(closure$action, closure$icon, closure$title, closure$variant, closure$textAlign, closure$textClassName) { return function ($receiver) { umPaper($receiver, void 0, void 0, PaperVariant$elevation_getInstance(), void 0, renderTopMainAction$lambda$lambda(closure$action, closure$icon, closure$title, closure$variant, closure$textAlign, closure$textClassName)); return Unit; }; } function renderTopMainAction($receiver, icon, title, xs, sm, visible, variant, textAlign, textClassName, action) { if (sm === void 0) sm = null; if (visible === void 0) visible = false; if (variant === void 0) variant = TypographyVariant$body1_getInstance(); if (textAlign === void 0) textAlign = TypographyAlign$left_getInstance(); if (textClassName === void 0) textClassName = null; if (visible) { umItem($receiver, xs, sm, void 0, void 0, void 0, void 0, void 0, renderTopMainAction$lambda(action, icon, title, variant, textAlign, textClassName)); }} function renderCourseBlockCommonFields$lambda$lambda$lambda(closure$dateSet) { return function (it) { closure$dateSet(it); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda(closure$doNotShowBeforeLabel, closure$startDate, closure$dateSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$doNotShowBeforeLabel.text); tmp$_0 = closure$doNotShowBeforeLabel.error; tmp$_1 = closure$doNotShowBeforeLabel.errorText; tmp$_2 = toDate(closure$startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, renderCourseBlockCommonFields$lambda$lambda$lambda(closure$dateSet), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_0(closure$dateSet) { return function (it) { closure$dateSet(it); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_0(closure$startTimeLabel, closure$startDate, closure$dateSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$startTimeLabel.text); tmp$_0 = closure$startTimeLabel.error; tmp$_1 = closure$startTimeLabel.errorText; tmp$_2 = toDate(closure$startDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, renderCourseBlockCommonFields$lambda$lambda$lambda_0(closure$dateSet), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda(closure$doNotShowBeforeLabel, closure$startDate, closure$dateSet, closure$startTimeLabel) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda(closure$doNotShowBeforeLabel, closure$startDate, closure$dateSet)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_0(closure$startTimeLabel, closure$startDate, closure$dateSet)); return Unit; }; } function renderCourseBlockCommonFields$lambda_0(closure$timeZone) { return function ($receiver) { renderListSectionTitle($receiver, closure$timeZone != null ? closure$timeZone : '', TypographyVariant$h6_getInstance()); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_1(closure$completionCriteriaSet) { return function (it) { var tmp$, tmp$_0; tmp$_0 = (tmp$ = toIntOrNull(it)) != null ? tmp$ : 0; closure$completionCriteriaSet(tmp$_0); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_1(closure$completionCriteriaLabel, closure$block, closure$completionCriteriaOptions, closure$completionCriteriaSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; tmp$ = toString(closure$completionCriteriaLabel.text); tmp$_0 = toString(closure$block != null ? closure$block.cbCompletionCriteria : null); tmp$_2 = (tmp$_1 = closure$completionCriteriaLabel.errorText) != null ? tmp$_1 : ''; tmp$_3 = closure$completionCriteriaLabel.error; var tmp$_5; if (closure$completionCriteriaOptions != null) { var $receiver_0 = closure$completionCriteriaOptions; var destination = ArrayList_init(collectionSizeOrDefault($receiver_0, 10)); var tmp$_6; tmp$_6 = $receiver_0.iterator(); while (tmp$_6.hasNext()) { var item = tmp$_6.next(); destination.add_11rb$(new Pair(item.optionId.toString(), item.toString())); } tmp$_5 = destination; } else tmp$_5 = null; umTextFieldSelect($receiver, tmp$, tmp$_0, tmp$_2, void 0, (tmp$_4 = tmp$_5) != null ? toList(tmp$_4) : null, void 0, renderCourseBlockCommonFields$lambda$lambda$lambda_1(closure$completionCriteriaSet), void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_2(closure$minPointsSet) { return function (it) { var tmp$, tmp$_0; tmp$_0 = (tmp$ = toIntOrNull(it)) != null ? tmp$ : 0; closure$minPointsSet != null ? closure$minPointsSet(tmp$_0) : null; return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_2(closure$minPointsLabel, closure$block, closure$minPointsSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$minPointsLabel != null ? closure$minPointsLabel.text : null); tmp$_0 = closure$minPointsLabel != null ? closure$minPointsLabel.errorText : null; tmp$_1 = toString(closure$block != null ? closure$block.cbMinPoints : null); tmp$_3 = (tmp$_2 = closure$minPointsLabel != null ? closure$minPointsLabel.error : null) != null ? tmp$_2 : false; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), renderCourseBlockCommonFields$lambda$lambda$lambda_2(closure$minPointsSet), void 0, void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda_1(closure$minScoreVisible, closure$completionCriteriaLabel, closure$block, closure$completionCriteriaOptions, closure$completionCriteriaSet, closure$minPointsLabel, closure$minPointsSet) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), closure$minScoreVisible ? GridSize$cells6_getInstance() : null, void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_1(closure$completionCriteriaLabel, closure$block, closure$completionCriteriaOptions, closure$completionCriteriaSet)); if (closure$minScoreVisible) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_2(closure$minPointsLabel, closure$block, closure$minPointsSet)); }return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_3(closure$maxPointsSet) { return function (it) { var tmp$, tmp$_0; tmp$_0 = (tmp$ = toIntOrNull(it)) != null ? tmp$ : 0; closure$maxPointsSet(tmp$_0); return Unit; }; } function renderCourseBlockCommonFields$lambda_2(closure$maxPointsLabel, closure$block, closure$maxPointsSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; tmp$ = toString(closure$maxPointsLabel.text); tmp$_0 = closure$maxPointsLabel.errorText; tmp$_1 = toString(closure$block != null ? closure$block.cbMaxPoints : null); tmp$_2 = closure$maxPointsLabel.error; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), renderCourseBlockCommonFields$lambda$lambda_3(closure$maxPointsSet), void 0, void 0, void 0, tmp$_2); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_3(closure$deadlineDateSet) { return function (it) { closure$deadlineDateSet(it); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_4(closure$deadlineDateLabel, closure$deadlineDate, closure$deadlineDateSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$deadlineDateLabel.text); tmp$_0 = closure$deadlineDateLabel.error; tmp$_1 = closure$deadlineDateLabel.errorText; tmp$_2 = toDate(closure$deadlineDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, renderCourseBlockCommonFields$lambda$lambda$lambda_3(closure$deadlineDateSet), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_4(closure$deadlineDateSet) { return function (it) { closure$deadlineDateSet(it); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_5(closure$deadlineTimeLabel, closure$deadlineDate, closure$deadlineDateSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$deadlineTimeLabel.text); tmp$_0 = closure$deadlineTimeLabel.error; tmp$_1 = closure$deadlineTimeLabel.errorText; tmp$_2 = toDate(closure$deadlineDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, renderCourseBlockCommonFields$lambda$lambda$lambda_4(closure$deadlineDateSet), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda_3(closure$deadlineDateLabel, closure$deadlineDate, closure$deadlineDateSet, closure$deadlineTimeLabel) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_4(closure$deadlineDateLabel, closure$deadlineDate, closure$deadlineDateSet)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_5(closure$deadlineTimeLabel, closure$deadlineDate, closure$deadlineDateSet)); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_5(closure$gracePeriodSet) { return function (it) { closure$gracePeriodSet(it); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_6(closure$gracePeriodDateLabel, closure$gracePeriodDate, closure$gracePeriodSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$gracePeriodDateLabel.text); tmp$_0 = closure$gracePeriodDateLabel.error; tmp$_1 = closure$gracePeriodDateLabel.errorText; tmp$_2 = toDate(closure$gracePeriodDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umDatePicker($receiver, tmp$, renderCourseBlockCommonFields$lambda$lambda$lambda_5(closure$gracePeriodSet), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_6(closure$gracePeriodSet) { return function (it) { closure$gracePeriodSet(it); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_7(closure$gracePeriodTimeLabel, closure$gracePeriodDate, closure$gracePeriodSet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; tmp$ = toString(closure$gracePeriodTimeLabel.text); tmp$_0 = closure$gracePeriodTimeLabel.error; tmp$_1 = closure$gracePeriodTimeLabel.errorText; tmp$_2 = toDate(closure$gracePeriodDate, true); tmp$_3 = FormControlVariant$outlined_getInstance(); umTimePicker($receiver, tmp$, renderCourseBlockCommonFields$lambda$lambda$lambda_6(closure$gracePeriodSet), tmp$_2, void 0, tmp$_1, tmp$_0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, tmp$_3); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda$lambda_7(closure$penaltySet) { return function (it) { var tmp$, tmp$_0; tmp$_0 = (tmp$ = toIntOrNull(it)) != null ? tmp$ : 0; closure$penaltySet(tmp$_0); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_8(closure$penaltyLabel, closure$block, closure$penaltySet) { return function ($receiver) { var tmp$, tmp$_0, tmp$_1, tmp$_2; tmp$ = toString(closure$penaltyLabel.text); tmp$_0 = closure$penaltyLabel.errorText; tmp$_1 = toString(closure$block != null ? closure$block.cbLateSubmissionPenalty : null); tmp$_2 = closure$penaltyLabel.error; umTextField($receiver, tmp$, tmp$_1, tmp$_0, void 0, FormControlVariant$outlined_getInstance(), renderCourseBlockCommonFields$lambda$lambda$lambda_7(closure$penaltySet), void 0, void 0, void 0, tmp$_2); return Unit; }; } function renderCourseBlockCommonFields$lambda$lambda_9(closure$penaltyLabelString) { return function ($receiver) { renderListSectionTitle($receiver, closure$penaltyLabelString, TypographyVariant$body2_getInstance()); return Unit; }; } function renderCourseBlockCommonFields$lambda_4(closure$gracePeriodDateLabel, closure$gracePeriodDate, closure$gracePeriodSet, closure$gracePeriodTimeLabel, closure$penaltyLabel, closure$block, closure$penaltySet, closure$penaltyLabelString) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_6(closure$gracePeriodDateLabel, closure$gracePeriodDate, closure$gracePeriodSet)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells6_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_7(closure$gracePeriodTimeLabel, closure$gracePeriodDate, closure$gracePeriodSet)); umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_8(closure$penaltyLabel, closure$block, closure$penaltySet)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda$lambda_9(closure$penaltyLabelString)); return Unit; }; } function renderCourseBlockCommonFields($receiver, block, doNotShowBeforeLabel, startDate, startTimeLabel, dateSet, timeZone, completionCriteriaLabel, completionCriteriaOptions, completionCriteriaSet, maxPointsLabel, maxPointsSet, deadlineDateLabel, deadlineTimeLabel, deadlineDate, deadlineDateSet, gracePeriodDateLabel, gracePeriodTimeLabel, gracePeriodDate, gracePeriodVisiblity, gracePeriodSet, penaltyLabel, penaltySet, penaltyLabelString, minScoreVisible, minPointsLabel, minPointsSet) { if (minPointsLabel === void 0) minPointsLabel = null; if (minPointsSet === void 0) minPointsSet = null; umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, renderCourseBlockCommonFields$lambda(doNotShowBeforeLabel, startDate, dateSet, startTimeLabel)); umItem($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda_0(timeZone)); umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, renderCourseBlockCommonFields$lambda_1(minScoreVisible, completionCriteriaLabel, block, completionCriteriaOptions, completionCriteriaSet, minPointsLabel, minPointsSet)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderCourseBlockCommonFields$lambda_2(maxPointsLabel, block, maxPointsSet)); umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, renderCourseBlockCommonFields$lambda_3(deadlineDateLabel, deadlineDate, deadlineDateSet, deadlineTimeLabel)); if (gracePeriodVisiblity) { umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, renderCourseBlockCommonFields$lambda_4(gracePeriodDateLabel, gracePeriodDate, gracePeriodSet, gracePeriodTimeLabel, penaltyLabel, block, penaltySet, penaltyLabelString)); }} function renderListItemWithTitleAndSwitch$lambda$lambda(closure$onClick) { return function (it) { closure$onClick(it.nativeEvent); return Unit; }; } function renderListItemWithTitleAndSwitch$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_marginTop($receiver_0, new LinearDimension('3px')); return Unit; } function renderListItemWithTitleAndSwitch$lambda$lambda_0(closure$title) { return function ($receiver) { umTypography($receiver, closure$title, TypographyVariant$body1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, renderListItemWithTitleAndSwitch$lambda$lambda$lambda); return Unit; }; } function renderListItemWithTitleAndSwitch$lambda$lambda_1(closure$enabled) { return function ($receiver) { $receiver.css.unaryPlus_uoyjcc$(StyleManager_getInstance().switchMargin); umSwitch($receiver, closure$enabled, void 0, UMColor$secondary_getInstance()); return Unit; }; } function renderListItemWithTitleAndSwitch$lambda(closure$onClick, closure$title, closure$enabled) { return function ($receiver) { $receiver.attrs.onClick = renderListItemWithTitleAndSwitch$lambda$lambda(closure$onClick); umItem($receiver, GridSize$cells10_getInstance(), GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleAndSwitch$lambda$lambda_0(closure$title)); umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleAndSwitch$lambda$lambda_1(closure$enabled)); var $receiver_0 = $receiver.css; set_marginLeft($receiver_0, new LinearDimension('20px')); set_marginTop($receiver_0, new LinearDimension('16px')); set_marginBottom($receiver_0, new LinearDimension('16px')); return Unit; }; } function renderListItemWithTitleAndSwitch($receiver, title, enabled, onClick) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderListItemWithTitleAndSwitch$lambda(onClick, title, enabled)); } function umPartner($receiver, logo) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var $receiver_1 = $receiver_0.css; $receiver_1.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); padding_0($receiver_1, void 0, void 0, void 0, get_spacingUnits(3)); var $receiver_0_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledImg$lambda_1(null, null)); StyleManager_getInstance().partnerItem($receiver_0_0.css); $receiver_0_0.attrs.src = 'assets/' + logo; $receiver_0.child_30b5ua$($receiver_0_0.create()); $receiver.child_30b5ua$($receiver_0.create()); } function renderContentEntryListItem$lambda$lambda(closure$onClick, closure$item) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onClick(closure$item); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda($receiver) { StyleManager_getInstance().itemContentProgress($receiver.css); return Unit; } function renderContentEntryListItem$lambda$lambda$lambda(closure$item) { return function ($receiver, attachmentSrc) { var tmp$, tmp$_0; umItemThumbnail($receiver, closure$item.leaf ? 'class' : 'folder', attachmentSrc, new Color(StyleManager_getInstance().theme.palette.action.disabled), Color.Companion.transparent, 80); var progress = (tmp$_0 = (tmp$ = closure$item.scoreProgress) != null ? tmp$.progress : null) != null ? tmp$_0 : 0; if (progress > 0) { umLinearProgress($receiver, progress, void 0, ProgressVariant$determinate_getInstance(), void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda); }return Unit; }; } function renderContentEntryListItem$lambda$lambda_0(closure$item) { return function ($receiver) { withAttachmentLocalUrlLookup($receiver, closure$item.contentEntryUid, ContentEntryDetailOverviewComponent$Companion_getInstance().ATTACHMENT_URI_LOOKUP_ADAPTER, renderContentEntryListItem$lambda$lambda$lambda(closure$item)); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda($receiver) { var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignTextToStart); set_marginBottom($receiver_0, new LinearDimension('10px')); return Unit; } function renderContentEntryListItem$lambda$lambda$lambda$lambda_0(closure$item) { return function ($receiver) { umTypography($receiver, closure$item.title, TypographyVariant$h6_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderContentEntryListItem$lambda$lambda$lambda$lambda_1(closure$item) { return function ($receiver) { var tmp$; umTypography($receiver, (tmp$ = closure$item.description) != null ? wordBreakLimit(tmp$, Util_getInstance().isMobile() ? 8 : 50) : null, TypographyVariant$body1_getInstance(), void 0, void 0, void 0, void 0, true, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda_0); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda($receiver) { set_marginTop($receiver.css, get_px(4)); return Unit; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$icon) { return function ($receiver) { umIcon($receiver, closure$icon, void 0, void 0, StyleManager_getInstance().name + '-contentEntryListContentTyeIconClass', renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda(closure$item, closure$icon) { return function ($receiver) { if (closure$item.leaf) { umAvatar($receiver, void 0, void 0, void 0, void 0, void 0, void 0, StyleManager_getInstance().name + '-contentEntryListContentAvatarClass', renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$icon)); }return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$item, closure$systemImpl, closure$messageId) { return function ($receiver) { if (closure$item.leaf) { umTypography($receiver, closure$systemImpl.getString(closure$messageId, $receiver), TypographyVariant$body2_getInstance(), void 0, true); }return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(it) { Util_getInstance().stopEventPropagation_za3rmp$(it); return Unit; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().secondaryActionBtn($receiver.css); return Unit; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$downloaded) { return function ($receiver) { StyleManager_getInstance().alignCenterItems($receiver.css); var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledSpan$lambda_6); var closure$downloaded_0 = closure$downloaded; set_width($receiver_0.css, get_px(45)); umIconButton($receiver_0, closure$downloaded_0 ? 'check_circle' : 'download', void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda, IconButtonSize$medium_getInstance(), void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0); $receiver.child_30b5ua$($receiver_0.create()); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$onSecondaryAction) { return function (it) { Util_getInstance().stopEventPropagation_za3rmp$(it); closure$onSecondaryAction != null ? closure$onSecondaryAction() : null; return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$systemImpl, closure$onSecondaryAction) { return function ($receiver) { var tmp$, tmp$_0; StyleManager_getInstance().alignCenterItems($receiver.css); tmp$ = format(closure$systemImpl.getString(2549, $receiver), ['']); tmp$_0 = ButtonVariant$outlined_getInstance(); umButton($receiver, tmp$, UMColor$secondary_getInstance(), tmp$_0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$onSecondaryAction)); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$systemImpl, closure$onSecondaryAction) { return function ($receiver) { if (closure$showStatus) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$downloaded)); }if (closure$showSelectBtn) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$systemImpl, closure$onSecondaryAction)); }return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$systemImpl, closure$onSecondaryAction) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$systemImpl, closure$onSecondaryAction)); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda_1(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction) { return function ($receiver) { var tmp$, tmp$_0; var messageId = (tmp$ = ContentEntryListComponent$Companion_getInstance().CONTENT_ENTRY_TYPE_LABEL_MAP.get_11rb$(closure$item.contentTypeFlag)) != null ? tmp$ : 2570; var icon = (tmp$_0 = ContentEntryListComponent$Companion_getInstance().CONTENT_ENTRY_TYPE_ICON_MAP.get_11rb$(closure$item.contentTypeFlag)) != null ? tmp$_0 : ''; umItem($receiver, GridSize$cells2_getInstance(), GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda(closure$item, icon)); umItem($receiver, GridSize$cells8_getInstance(), GridSize$cells9_getInstance(), void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda_0(closure$item, closure$systemImpl, messageId)); umItem($receiver, GridSize$cells2_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda$lambda_1(closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$systemImpl, closure$onSecondaryAction)); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda$lambda_2(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing1_getInstance(), void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda$lambda_1(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction)); return Unit; }; } function renderContentEntryListItem$lambda$lambda$lambda_0(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction) { return function ($receiver) { umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda_0(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda_1(closure$item)); umItem($receiver, GridSize$cells12_getInstance(), void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda$lambda_2(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction)); return Unit; }; } function renderContentEntryListItem$lambda$lambda_1(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction) { return function ($receiver) { umGridContainer($receiver, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda$lambda_0(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction)); return Unit; }; } function renderContentEntryListItem$lambda(closure$block, closure$onClick, closure$item, closure$mainList, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction) { return function ($receiver) { var tmp$; var leftPadding = get_spacingUnits(((tmp$ = closure$block != null ? closure$block.cbIndentLevel : null) != null ? tmp$ : 0) * 3 | 0); padding_0($receiver.css, void 0, void 0, void 0, leftPadding); if (closure$onClick != null) { $receiver.attrs.onClick = renderContentEntryListItem$lambda$lambda(closure$onClick, closure$item); }umItem($receiver, GridSize$cells4_getInstance(), closure$mainList ? GridSize$cells2_getInstance() : GridSize$cells1_getInstance(), void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda_0(closure$item)); umItem($receiver, GridSize$cells8_getInstance(), closure$mainList ? GridSize$cells10_getInstance() : GridSize$cells11_getInstance(), void 0, void 0, void 0, void 0, void 0, renderContentEntryListItem$lambda$lambda_1(closure$item, closure$systemImpl, closure$showStatus, closure$downloaded, closure$showSelectBtn, closure$onSecondaryAction)); return Unit; }; } function renderContentEntryListItem($receiver, item, systemImpl, showSelectBtn, showStatus, downloaded, onClick, mainList, block, onSecondaryAction) { if (showSelectBtn === void 0) showSelectBtn = false; if (showStatus === void 0) showStatus = false; if (downloaded === void 0) downloaded = true; if (onClick === void 0) onClick = null; if (mainList === void 0) mainList = true; if (block === void 0) block = null; if (onSecondaryAction === void 0) onSecondaryAction = null; umGridContainer($receiver, void 0, void 0, void 0, void 0, GridSpacing$spacing4_getInstance(), void 0, void 0, void 0, renderContentEntryListItem$lambda(block, onClick, item, mainList, systemImpl, showStatus, downloaded, showSelectBtn, onSecondaryAction)); } function iconProgress($receiver, progress) { var tmp$; switch (progress != null ? isContentComplete(progress) : null) { case 100: case 102: tmp$ = 'check_circle'; break; case 103: tmp$ = 'cancel'; break; default:tmp$ = ''; break; } return tmp$; } function isContentCompleteImage(person) { var tmp$; if (person.resultComplete) { switch (person.resultSuccess) { case 2: tmp$ = 'done'; break; case 1: tmp$ = 'close'; break; default:tmp$ = 'query_builder'; break; } } else { tmp$ = 'query_builder'; } return tmp$; } function setContentComplete(systemImpl, person) { var tmp$; var context = new Any(); if (person.resultComplete) { switch (person.resultSuccess) { case 2: tmp$ = systemImpl.getString(2090, context); break; case 1: tmp$ = systemImpl.getString(2089, context); break; case 0: tmp$ = systemImpl.getString(2093, context); break; default:tmp$ = ''; break; } } else { tmp$ = systemImpl.getString(2092, context); } return tmp$ + ' - '; } function setStatementQuestionAnswer(statementEntity) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8; try { tmp$ = statementEntity.fullStatement; if (tmp$ == null) { return ''; }var fullStatementJson = tmp$; var statement = JSON.parse(fullStatementJson); var statementText = {v: ((tmp$_1 = (tmp$_0 = statement['object']) != null ? tmp$_0.definition : null) != null ? tmp$_1.description : null)['en-US'].toString()}; var answerResponse = (tmp$_2 = statement.result) != null ? tmp$_2.response : null; if ((answerResponse != null ? answerResponse.length > 0 : null) === true || (answerResponse != null ? contains(answerResponse, '[,]') : null) === true) { var responses = split(answerResponse, ['[,]']); var choiceMap = (tmp$_4 = (tmp$_3 = statement.object) != null ? tmp$_3.definition : null) != null ? tmp$_4.choices : null; var sourceMap = (tmp$_6 = (tmp$_5 = statement.object) != null ? tmp$_5.definition : null) != null ? tmp$_6.source : null; var targetMap = (tmp$_8 = (tmp$_7 = statement.object) != null ? tmp$_7.definition : null) != null ? tmp$_8.target : null; statementText.v += '\n'; var tmp$_9, tmp$_0_0; var index = 0; tmp$_9 = responses.iterator(); while (tmp$_9.hasNext()) { var item = tmp$_9.next(); var i = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); var tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15; var tmp$_16; if (choiceMap != null) { var firstOrNull$result; firstOrNull$break: do { var tmp$_17; tmp$_17 = choiceMap.iterator(); while (tmp$_17.hasNext()) { var element = tmp$_17.next(); if (equals(element.id, item)) { firstOrNull$result = element; break firstOrNull$break; }} firstOrNull$result = null; } while (false); tmp$_16 = firstOrNull$result; } else tmp$_16 = null; var description = (tmp$_11 = (tmp$_10 = tmp$_16) != null ? tmp$_10.description : null) != null ? tmp$_11.get_11rb$('en-US') : null; if (contains(item, '[.]')) { var dragResponse = split(item, ['[.]']); description = ''; var tmp$_18; if (sourceMap != null) { var firstOrNull$result_0; firstOrNull$break: do { var tmp$_19; tmp$_19 = sourceMap.iterator(); while (tmp$_19.hasNext()) { var element_0 = tmp$_19.next(); if (equals(element_0.id, dragResponse.get_za3lpa$(0))) { firstOrNull$result_0 = element_0; break firstOrNull$break; }} firstOrNull$result_0 = null; } while (false); tmp$_18 = firstOrNull$result_0; } else tmp$_18 = null; description += (tmp$_13 = (tmp$_12 = tmp$_18) != null ? tmp$_12.description : null) != null ? tmp$_13.get_11rb$('en-US') : null; description += ' on '; var tmp$_20; if (targetMap != null) { var firstOrNull$result_1; firstOrNull$break: do { var tmp$_21; tmp$_21 = targetMap.iterator(); while (tmp$_21.hasNext()) { var element_1 = tmp$_21.next(); if (equals(element_1.id, dragResponse.get_za3lpa$(1))) { firstOrNull$result_1 = element_1; break firstOrNull$break; }} firstOrNull$result_1 = null; } while (false); tmp$_20 = firstOrNull$result_1; } else tmp$_20 = null; description += (tmp$_15 = (tmp$_14 = tmp$_20) != null ? tmp$_14.description : null) != null ? tmp$_15.get_11rb$('en-US') : null; }var $receiver = description; statementText.v += (i + 1 | 0).toString() + ': ' + ($receiver == null || $receiver.length === 0 ? item : description) + ' ' + '\n'; } }return statementText.v; } catch (e) { if (Kotlin.isType(e, Exception)) { return ''; } else throw e; } } function renderSummaryCard$lambda$lambda$lambda($receiver) { StyleManager_getInstance().alignTextCenter($receiver.css); return Unit; } function renderSummaryCard$lambda$lambda$lambda_0($receiver) { StyleManager_getInstance().alignTextToStart($receiver.css); return Unit; } function renderSummaryCard$lambda$lambda(closure$title, closure$subTitle) { return function ($receiver) { var tmp$; var $receiver_0 = $receiver.css; $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().personDetailComponentActions); $receiver_0.unaryPlus_uoyjcc$(StyleManager_getInstance().alignCenterItems); umTypography($receiver, (tmp$ = closure$title != null ? closure$title.toString() : null) != null ? tmp$ : '', TypographyVariant$h4_getInstance(), void 0, true, void 0, void 0, void 0, void 0, renderSummaryCard$lambda$lambda$lambda); umTypography($receiver, closure$subTitle, TypographyVariant$body1_getInstance(), void 0, true, void 0, void 0, void 0, void 0, renderSummaryCard$lambda$lambda$lambda_0); return Unit; }; } function renderSummaryCard$lambda(closure$title, closure$subTitle) { return function ($receiver) { umPaper($receiver, void 0, void 0, PaperVariant$elevation_getInstance(), void 0, renderSummaryCard$lambda$lambda(closure$title, closure$subTitle)); return Unit; }; } function renderSummaryCard($receiver, title, subTitle) { umItem($receiver, GridSize$cells12_getInstance(), GridSize$cells4_getInstance(), void 0, void 0, void 0, void 0, void 0, renderSummaryCard$lambda(title, subTitle)); } function renderChart$lambda(it) { return formatDate(new Date(it), DATE_FORMAT_MM_YYYY); } function renderChart$lambda_0($receiver) { return Unit; } function renderChart($receiver, chartData, height, chartType, onChartRendered) { if (chartData === void 0) chartData = null; if (height === void 0) height = 400; if (chartType === void 0) chartType = ChartType$ComboChart_getInstance(); if (onChartRendered === void 0) onChartRendered = null; if (chartData != null) { var dataTable = ArrayList_init_0(); var $receiver_0 = new ChartOptions(); $receiver_0.colors = ['#009999', '#FF9900', '#0099FF', '#FF3333', '#663399', '#669999', '#FF3366', '#990099', '#996666', '#339933', '#FFCC00', '#9966CC', '#FFCC99', '#99FFCC', '#0066CC', '#66CCFF', '#FF66FF', '#4D4D4D', '#0066FF', '#FF6600', '#33FFFF', '#669933', '#808080', '#AF4CAB', '#0040FF', '#99CC66', '#B1DEFB', '#FF7FAA', '#FF8000', '#F0AA89', '#6AFF6A', '#339999', '#CCCCCC']; var chartOption = $receiver_0; var $receiver_1 = chartData.seriesData; var destination = ArrayList_init_0(); var tmp$; tmp$ = $receiver_1.iterator(); while (tmp$.hasNext()) { var element = tmp$.next(); var list = element.dataList; addAll(destination, list); } var destination_0 = ArrayList_init_0(); var tmp$_0; tmp$_0 = destination.iterator(); while (tmp$_0.hasNext()) { var element_0 = tmp$_0.next(); var tmp$_0_0; if ((tmp$_0_0 = element_0.xAxis) != null) { destination_0.add_11rb$(tmp$_0_0); }} var distinctXAxisSet = {v: toSet(destination_0)}; var xAxisData = chartData.reportWithFilters.xAxis; if (xAxisData === 302) { distinctXAxisSet.v = toSet(sortedWith(distinctXAxisSet.v, new Comparator(compareBy$lambda(renderChart$lambda)))); }var labels = mutableListOf(['']); var $receiver_2 = chartData.seriesData; var destination_1 = ArrayList_init(collectionSizeOrDefault($receiver_2, 10)); var tmp$_1; tmp$_1 = $receiver_2.iterator(); while (tmp$_1.hasNext()) { var item = tmp$_1.next(); var tmp$_2; destination_1.add_11rb$((tmp$_2 = item.series.reportSeriesName) != null ? tmp$_2 : ''); } labels.addAll_brywnq$(toList(destination_1)); dataTable.add_11rb$(labels); var options = json([to('', '')]); var dataSet = LinkedHashMap_init(); var tmp$_3; tmp$_3 = distinctXAxisSet.v.iterator(); while (tmp$_3.hasNext()) { var element_1 = tmp$_3.next(); var tmp$_4, tmp$_5; var value = mutableListOf([(tmp$_5 = (tmp$_4 = chartData.xAxisValueFormatter) != null ? tmp$_4.format_za3rmp$(element_1) : null) != null ? tmp$_5 : '']); dataSet.put_xwzc9p$(element_1, value); } var tmp$_6, tmp$_0_1; var index = 0; tmp$_6 = chartData.seriesData.iterator(); while (tmp$_6.hasNext()) { var item_0 = tmp$_6.next(); var index_0 = checkIndexOverflow((tmp$_0_1 = index, index = tmp$_0_1 + 1 | 0, tmp$_0_1)); var seriesType = item_0.series.reportSeriesVisualType === 100 ? 'bars' : 'line'; if (chartData.seriesData.size === 1 && index_0 === 0) { chartOption.seriesType = seriesType; }if (chartData.seriesData.size > 1) { options[index_0.toString()] = json([to('type', seriesType)]); }var $receiver_3 = item_0.dataList; var destination_2 = ArrayList_init_0(); var tmp$_7; tmp$_7 = $receiver_3.iterator(); while (tmp$_7.hasNext()) { var element_2 = tmp$_7.next(); if (element_2.xAxis != null) destination_2.add_11rb$(element_2); } var destination_3 = LinkedHashMap_init(); var tmp$_8; tmp$_8 = destination_2.iterator(); while (tmp$_8.hasNext()) { var element_3 = tmp$_8.next(); var key = element_3.xAxis; var tmp$_0_2; var value_0 = destination_3.get_11rb$(key); if (value_0 == null) { var answer = ArrayList_init_0(); destination_3.put_xwzc9p$(key, answer); tmp$_0_2 = answer; } else { tmp$_0_2 = value_0; } var list_0 = tmp$_0_2; list_0.add_11rb$(element_3); } var groupedByXAxis = destination_3; var $receiver_4 = item_0.dataList; var destination_4 = ArrayList_init_0(); var tmp$_9; tmp$_9 = $receiver_4.iterator(); while (tmp$_9.hasNext()) { var element_4 = tmp$_9.next(); var tmp$_0_3; if ((tmp$_0_3 = element_4.subgroup) != null) { destination_4.add_11rb$(tmp$_0_3); }} var distinctSubgroups = toSet(destination_4); var tmp$_10; tmp$_10 = distinctXAxisSet.v.iterator(); while (tmp$_10.hasNext()) { var element_5 = tmp$_10.next(); var tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15; tmp$_15 = dataSet.get_11rb$(element_5); tmp$_14 = (tmp$_13 = (tmp$_12 = (tmp$_11 = groupedByXAxis.get_11rb$(element_5)) != null ? firstOrNull(tmp$_11) : null) != null ? tmp$_12.yAxis : null) != null ? tmp$_13 : 0.0; tmp$_15 != null ? tmp$_15.add_11rb$(tmp$_14) : null; } if (!distinctSubgroups.isEmpty()) { var tmp$_16; tmp$_16 = distinctSubgroups.iterator(); while (tmp$_16.hasNext()) { var element_6 = tmp$_16.next(); var tmp$_17; var label = toString(item_0.series.reportSeriesName) + ' - ' + ((tmp$_17 = item_0.subGroupFormatter) != null ? tmp$_17.format_za3rmp$(element_6) : null); first_0(dataTable).add_11rb$(label); var tmp$_18; tmp$_18 = distinctXAxisSet.v.iterator(); loop_label: while (tmp$_18.hasNext()) { var element_7 = tmp$_18.next(); var tmp$_19, tmp$_20; var tmp$_21; if ((tmp$_19 = groupedByXAxis.get_11rb$(element_7)) != null) { var firstOrNull$result; firstOrNull$break: do { var tmp$_22; tmp$_22 = tmp$_19.iterator(); while (tmp$_22.hasNext()) { var element_8 = tmp$_22.next(); if (equals(element_8.subgroup, element_6)) { firstOrNull$result = element_8; break firstOrNull$break; }} firstOrNull$result = null; } while (false); tmp$_21 = firstOrNull$result; } else tmp$_21 = null; var valData = tmp$_21; if (valData != null) { (tmp$_20 = dataSet.get_11rb$(element_7)) != null ? tmp$_20.add_11rb$(valData.yAxis) : null; }} } }} var tmp$_23; tmp$_23 = dataSet.values.iterator(); while (tmp$_23.hasNext()) { var element_9 = tmp$_23.next(); dataTable.add_11rb$(element_9); } var destination_5 = ArrayList_init(collectionSizeOrDefault(dataTable, 10)); var tmp$_24; tmp$_24 = dataTable.iterator(); while (tmp$_24.hasNext()) { var item_1 = tmp$_24.next(); destination_5.add_11rb$(copyToArray(item_1)); } var dataSetTable = copyToArray(destination_5); var drawChart = first(dataSetTable).length === last(dataSetTable).length && dataSetTable.length > 1; if (drawChart) { umChart($receiver, dataSetTable, void 0, get_px(height), chartType, chartOption, void 0, renderChart$lambda_0); }onChartRendered != null ? onChartRendered(drawChart) : null; }} function renderRawHtmlOnIframe($receiver, content) { var $receiver_0 = StyledDOMBuilder.Companion.invoke_f6ihu2$(styledIframe$lambda_1(null)); StyleManager_getInstance().iframeComponentResponsiveIframe($receiver_0.css); $receiver_0.attrs.src = "data:text/html;charset=utf-8,
" + toString(content) + '<\/div>'; $receiver.child_30b5ua$($receiver_0.create()); } function renderAddContentEntryOptionsDialog$lambda() { return Unit; } function renderAddContentEntryOptionsDialog($receiver, systemImpl, showCreateNewFolder, onClickNewFolder, onClickAddFromLink, onClickAddFile, onDismiss) { if (showCreateNewFolder === void 0) showCreateNewFolder = true; if (onClickNewFolder === void 0) onClickNewFolder = renderAddContentEntryOptionsDialog$lambda; var tmp$; if (showCreateNewFolder) { tmp$ = listOf_0(new UmDialogOptionItem('create_new_folder', 2700, void 0, onClickNewFolder)); } else { tmp$ = emptyList(); } var options = plus(tmp$, listOf([new UmDialogOptionItem('link', 2746, 2118, onClickAddFromLink), new UmDialogOptionItem('note_add', 2750, 2120, onClickAddFile)])); renderDialogOptions($receiver, systemImpl, options, systemTimeInMillis(), void 0, onDismiss); } function withAttachmentLocalUrlLookup$lambda$lambda(closure$block) { return function ($receiver, attachmentUri) { closure$block($receiver, attachmentUri); return Unit; }; } function withAttachmentLocalUrlLookup$lambda(closure$entityUid, closure$lookupAdapter, closure$block) { return function ($receiver) { $receiver.attrs.entityUid = closure$entityUid; $receiver.attrs.lookupAdapter = closure$lookupAdapter; $receiver.attrs.contentBlock = withAttachmentLocalUrlLookup$lambda$lambda(closure$block); return Unit; }; } function withAttachmentLocalUrlLookup($receiver, entityUid, lookupAdapter, block) { $receiver.child_up9nw1$(getKClass(AttachmentImageLookupComponent), withAttachmentLocalUrlLookup$lambda(entityUid, lookupAdapter, block)); } function main$lambda$lambda() { return Random.Default.nextLong_3pjtqy$(L0, Long$Companion$MAX_VALUE).toString(); } function main$lambda$lambda_0() { return randomUuid().toString(); } function main$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$di, closure$activeTabRunning) { return function ($receiver) { $receiver.attrs.di = closure$di; $receiver.attrs.activeTabRunning = closure$activeTabRunning; return Unit; }; } function main$lambda$lambda$lambda$lambda$lambda$lambda(closure$di, this$) { return function (activeTabRunning) { this$.child_up9nw1$(getKClass(IndexComponent), main$lambda$lambda$lambda$lambda$lambda$lambda$lambda(closure$di, activeTabRunning)); return Unit; }; } function main$lambda$lambda$lambda$lambda$lambda(closure$di) { return function ($receiver) { ReduxAppStateManager_getInstance().dispatch_quwr82$(new ReduxDiState(closure$di)); BrowserTabTracker_getInstance().init_y8twos$(main$lambda$lambda$lambda$lambda$lambda$lambda(closure$di, $receiver)); return Unit; }; } function main$lambda$lambda$lambda$lambda(closure$theme, closure$di) { return function ($receiver) { umThemeProvider($receiver, closure$theme, main$lambda$lambda$lambda$lambda$lambda(closure$di)); return Unit; }; } function main$lambda$lambda$lambda(closure$di) { return function ($receiver) { var theme = ThemeManager_getInstance().createAppTheme(); provider($receiver, ReduxAppStateManager_getInstance().createStore_7xsz26$(new ReduxThemeState(theme)), void 0, main$lambda$lambda$lambda$lambda(theme, closure$di)); return Unit; }; } function Coroutine$main$lambda$lambda(closure$dbBuilder_0, closure$defaultAssetPath_0, closure$dbNodeIdAndAuth_0, closure$apiUrl_0, $receiver_0, controller, continuation_0) { CoroutineImpl.call(this, continuation_0); this.$controller = controller; this.exceptionState_0 = 1; this.local$closure$dbBuilder = closure$dbBuilder_0; this.local$closure$defaultAssetPath = closure$defaultAssetPath_0; this.local$closure$dbNodeIdAndAuth = closure$dbNodeIdAndAuth_0; this.local$closure$apiUrl = closure$apiUrl_0; this.local$tmp$ = void 0; this.local$dbBuilt = void 0; this.local$appConfigs = void 0; this.local$defaultStringsXmlStr = void 0; this.local$displayedLocale = void 0; } Coroutine$main$lambda$lambda.$metadata$ = { kind: Kotlin.Kind.CLASS, simpleName: null, interfaces: [CoroutineImpl] }; Coroutine$main$lambda$lambda.prototype = Object.create(CoroutineImpl.prototype); Coroutine$main$lambda$lambda.prototype.constructor = Coroutine$main$lambda$lambda; Coroutine$main$lambda$lambda.prototype.doResume = function () { do try { switch (this.state_0) { case 0: var tmp$, tmp$_0; this.state_0 = 2; this.result_0 = this.local$closure$dbBuilder.build(this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 1: throw this.exception_0; case 2: this.local$dbBuilt = this.result_0; napier_0.Napier.d_82mfvz$('Index: built db'); this.state_0 = 3; this.result_0 = Util_getInstance().loadFileContentAsMap_ytbaoo$('appconfig.json', this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 3: this.local$appConfigs = this.result_0; napier_0.Napier.d_82mfvz$('Index: loaded appConfig'); this.state_0 = 4; this.result_0 = Util_getInstance().loadAssetsAsText_61zpoe$(this.local$closure$defaultAssetPath, this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; case 4: this.local$defaultStringsXmlStr = this.result_0; this.local$displayedLocale = UstadMobileSystemImpl.Companion.displayedLocale; if (!equals(this.local$displayedLocale, 'en')) { this.state_0 = 5; this.result_0 = Util_getInstance().loadAssetsAsText_61zpoe$('locales/' + this.local$displayedLocale + '.xml', this); if (this.result_0 === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED; continue; } else { this.local$tmp$ = null; this.state_0 = 6; continue; } case 5: this.local$tmp$ = this.result_0; this.state_0 = 6; continue; case 6: var foreignStringXmlStr = this.local$tmp$; var rootElement = document.getElementById('root'); if (contains_0(impl.UstadMobileConstants.RTL_LANGUAGES, this.local$displayedLocale)) { tmp$ = 'rtl'; } else { tmp$ = 'ltr'; } var rootDirectionAttrVal = tmp$; rootElement != null ? (rootElement.setAttribute('dir', rootDirectionAttrVal), Unit) : null; var di = ustadJsDi(this.local$dbBuilt, this.local$closure$dbNodeIdAndAuth, this.local$appConfigs, this.local$closure$apiUrl, this.local$defaultStringsXmlStr, foreignStringXmlStr); var tmp$_1; var systemImpl = get_direct(di).directDI.Instance_ohrpre$(Kotlin.isType(tmp$_1 = typeToken(createKType(getKClass(UstadMobileSystemImpl), [], false)), TypeToken) ? tmp$_1 : throwCCE(), null); document.title = systemImpl.getString(2000, new Any()); (tmp$_0 = document.getElementById('loading')) != null ? (tmp$_0.remove(), Unit) : null; render(rootElement, void 0, main$lambda$lambda$lambda(di)); return napier_0.Napier.d_82mfvz$('Index: Made DI'), Unit; default:this.state_0 = 1; throw new Error('State Machine Unreachable execution'); } } catch (e) { if (this.state_0 === 1) { this.exceptionState_0 = this.state_0; throw e; } else { this.state_0 = this.exceptionState_0; this.exception_0 = e; } } while (true); }; function main$lambda$lambda_1(closure$dbBuilder_0, closure$defaultAssetPath_0, closure$dbNodeIdAndAuth_0, closure$apiUrl_0) { return function ($receiver_0, continuation_0, suspended) { var instance = new Coroutine$main$lambda$lambda(closure$dbBuilder_0, closure$defaultAssetPath_0, closure$dbNodeIdAndAuth_0, closure$apiUrl_0, $receiver_0, this, continuation_0); if (suspended) return instance; else return instance.doResume(null); }; } function main$lambda(it) { var tmp$; napier_0.Napier.d_82mfvz$('Index: Window.onLoad'); var url = window.location.href; var apiUrl = (tmp$ = urlSearchParamsToMap().get_11rb$(impl.AppConfig.KEY_API_URL)) != null ? tmp$ : substringBefore(url, indexOf_0(url, 'umapp/') !== -1 ? 'umapp/' : '#/'); var dbName = sanitizeDbNameFromUrl(window.location.origin); var nodeId = toLong(getOrPut(localStorage, dbName + '_nodeId', main$lambda$lambda)); var nodeAuth = getOrPut(localStorage, dbName + '_nodeAuth', main$lambda$lambda_0); var dbNodeIdAndAuth = new NodeIdAndAuth(nodeId, nodeAuth); var builderOptions = new DatabaseBuilderOptions(getKClass(UmAppDatabase), db.UmAppDatabaseJsImplementations, dbName, './worker.sql-wasm.js'); var dbBuilder = addSyncCallback(DatabaseBuilder.Companion.databaseBuilder_navwph$(builderOptions).addCallback_zdc9ji$(new ContentJobItemTriggersCallback()), dbNodeIdAndAuth).addMigrations_q7ft3$(copyToArray(UmAppDatabase.Companion.migrationList_s8cxhz$(dbNodeIdAndAuth.nodeId)).slice()); var defaultAssetPath = 'locales/en.xml'; return launch(coroutines.GlobalScope, void 0, void 0, main$lambda$lambda_1(dbBuilder, defaultAssetPath, dbNodeIdAndAuth, apiUrl)); } function main() { defaultJsonSerializer(); napier_0.Napier.base_gqnbhx$(new UstadAntilog()); window.onload = main$lambda; } function IndexProps() { } IndexProps.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'IndexProps', interfaces: [UmProps] }; function IndexComponent(props) { RComponent_init(props, this); this.showMainComponent_0 = false; } function IndexComponent$componentDidMount$lambda(this$IndexComponent) { return function ($receiver) { this$IndexComponent.showMainComponent_0 = true; return Unit; }; } IndexComponent.prototype.componentDidMount = function () { setState(this, IndexComponent$componentDidMount$lambda(this)); }; function IndexComponent$render$lambda(this$IndexComponent) { return function ($receiver, f) { if (this$IndexComponent.showMainComponent_0 && !this$IndexComponent.props.activeTabRunning) { renderMainComponent($receiver); } else if (this$IndexComponent.showMainComponent_0 && this$IndexComponent.props.activeTabRunning) { renderExtraActiveTabWarningComponent($receiver, this$IndexComponent.props.di); } else { renderSplashComponent($receiver); } return Unit; }; } IndexComponent.prototype.render_ss14n$ = function ($receiver) { umCssBaseline($receiver); $receiver.invoke_c0v1gl$(themeContext.Consumer, IndexComponent$render$lambda(this)); }; IndexComponent.$metadata$ = { kind: Kind_CLASS, simpleName: 'IndexComponent', interfaces: [RComponent] }; $$importsForInline$$['Kodein-DI-kodein-di'] = $module$Kodein_DI_kodein_di; $$importsForInline$$['door-door-runtime'] = $module$door_door_runtime; _.ustadJsDi_5hb57o$ = ustadJsDi; Object.defineProperty(AppBarPosition, 'fixed', { get: AppBarPosition$fixed_getInstance }); Object.defineProperty(AppBarPosition, 'absolute', { get: AppBarPosition$absolute_getInstance }); Object.defineProperty(AppBarPosition, 'sticky', { get: AppBarPosition$sticky_getInstance }); Object.defineProperty(AppBarPosition, 'static', { get: AppBarPosition$static_getInstance }); Object.defineProperty(AppBarPosition, 'relative', { get: AppBarPosition$relative_getInstance }); var package$com = _.com || (_.com = {}); var package$ustadmobile = package$com.ustadmobile || (package$com.ustadmobile = {}); var package$mui = package$ustadmobile.mui || (package$ustadmobile.mui = {}); var package$components = package$mui.components || (package$mui.components = {}); package$components.AppBarPosition = AppBarPosition; Object.defineProperty(AppBarColor, 'primary', { get: AppBarColor$primary_getInstance }); Object.defineProperty(AppBarColor, 'secondary', { get: AppBarColor$secondary_getInstance }); Object.defineProperty(AppBarColor, 'transparent', { get: AppBarColor$transparent_getInstance }); Object.defineProperty(AppBarColor, 'default', { get: AppBarColor$default_getInstance }); Object.defineProperty(AppBarColor, 'inherit', { get: AppBarColor$inherit_getInstance }); package$components.AppBarColor = AppBarColor; package$components.umAppBar_tun668$ = umAppBar; Object.defineProperty(AvatarVariant, 'rounded', { get: AvatarVariant$rounded_getInstance }); Object.defineProperty(AvatarVariant, 'square', { get: AvatarVariant$square_getInstance }); Object.defineProperty(AvatarVariant, 'circle', { get: AvatarVariant$circle_getInstance }); Object.defineProperty(AvatarVariant, 'circular', { get: AvatarVariant$circular_getInstance }); package$components.AvatarVariant = AvatarVariant; package$components.umAvatar_j8p1dk$ = umAvatar; package$components.umBottomNavigation_3uh5ip$ = umBottomNavigation; $$importsForInline$$['kotlin-react'] = $module$kotlin_react; package$components.umBottomNavigationAction_66yg9z$ = umBottomNavigationAction; Object.defineProperty(ButtonSize, 'small', { get: ButtonSize$small_getInstance }); Object.defineProperty(ButtonSize, 'medium', { get: ButtonSize$medium_getInstance }); Object.defineProperty(ButtonSize, 'large', { get: ButtonSize$large_getInstance }); package$components.ButtonSize = ButtonSize; Object.defineProperty(ButtonVariant, 'text', { get: ButtonVariant$text_getInstance }); Object.defineProperty(ButtonVariant, 'outlined', { get: ButtonVariant$outlined_getInstance }); Object.defineProperty(ButtonVariant, 'contained', { get: ButtonVariant$contained_getInstance }); package$components.ButtonVariant = ButtonVariant; $$importsForInline$$['kotlin-styled'] = $module$kotlin_styled; package$components.umButton_jv7xg1$ = umButton; Object.defineProperty(ChipVariant, 'default', { get: ChipVariant$default_getInstance }); Object.defineProperty(ChipVariant, 'outlined', { get: ChipVariant$outlined_getInstance }); package$components.ChipVariant = ChipVariant; Object.defineProperty(ChipColor, 'default', { get: ChipColor$default_getInstance }); Object.defineProperty(ChipColor, 'primary', { get: ChipColor$primary_getInstance }); Object.defineProperty(ChipColor, 'secondary', { get: ChipColor$secondary_getInstance }); package$components.ChipColor = ChipColor; Object.defineProperty(ChipSize, 'small', { get: ChipSize$small_getInstance }); Object.defineProperty(ChipSize, 'medium', { get: ChipSize$medium_getInstance }); package$components.ChipSize = ChipSize; package$components.umChip_qkt2tq$ = umChip; package$components.umCssBaseline_ss14n$ = umCssBaseline; Object.defineProperty(DateTimePickerOpenTo, 'day', { get: DateTimePickerOpenTo$day_getInstance }); Object.defineProperty(DateTimePickerOpenTo, 'month', { get: DateTimePickerOpenTo$month_getInstance }); Object.defineProperty(DateTimePickerOpenTo, 'year', { get: DateTimePickerOpenTo$year_getInstance }); Object.defineProperty(DateTimePickerOpenTo, 'hours', { get: DateTimePickerOpenTo$hours_getInstance }); Object.defineProperty(DateTimePickerOpenTo, 'minutes', { get: DateTimePickerOpenTo$minutes_getInstance }); Object.defineProperty(DateTimePickerOpenTo, 'seconds', { get: DateTimePickerOpenTo$seconds_getInstance }); package$components.DateTimePickerOpenTo = DateTimePickerOpenTo; package$components.timePicker_rujl7$ = timePicker; package$components.datePicker_ka4uet$ = datePicker; package$components.umDatePicker_ka4uet$ = umDatePicker; package$components.umTimePicker_5jrynf$ = umTimePicker; package$components.umDialog_hqycu3$ = umDialog; package$components.umDialogTitle_qnf75p$ = umDialogTitle; package$components.umDialogActions_pcli16$ = umDialogActions; package$components.umDialogContent_h9otji$ = umDialogContent; Object.defineProperty(MDividerOrientation, 'horizontal', { get: MDividerOrientation$horizontal_getInstance }); Object.defineProperty(MDividerOrientation, 'vertical', { get: MDividerOrientation$vertical_getInstance }); package$components.MDividerOrientation = MDividerOrientation; Object.defineProperty(MDividerVariant, 'fullWidth', { get: MDividerVariant$fullWidth_getInstance }); Object.defineProperty(MDividerVariant, 'inset', { get: MDividerVariant$inset_getInstance }); Object.defineProperty(MDividerVariant, 'middle', { get: MDividerVariant$middle_getInstance }); package$components.MDividerVariant = MDividerVariant; package$components.umDivider_bo4jaq$ = umDivider; Object.defineProperty(DrawerAnchor, 'left', { get: DrawerAnchor$left_getInstance }); Object.defineProperty(DrawerAnchor, 'top', { get: DrawerAnchor$top_getInstance }); Object.defineProperty(DrawerAnchor, 'right', { get: DrawerAnchor$right_getInstance }); Object.defineProperty(DrawerAnchor, 'bottom', { get: DrawerAnchor$bottom_getInstance }); package$components.DrawerAnchor = DrawerAnchor; Object.defineProperty(DrawerVariant, 'permanent', { get: DrawerVariant$permanent_getInstance }); Object.defineProperty(DrawerVariant, 'temporary', { get: DrawerVariant$temporary_getInstance }); Object.defineProperty(DrawerVariant, 'persistent', { get: DrawerVariant$persistent_getInstance }); package$components.DrawerVariant = DrawerVariant; package$components.umDrawer_mvcrfz$ = umDrawer; Object.defineProperty(FabVariant, 'round', { get: FabVariant$round_getInstance }); Object.defineProperty(FabVariant, 'extended', { get: FabVariant$extended_getInstance }); package$components.FabVariant = FabVariant; package$components.umFab_llaz2w$ = umFab; Object.defineProperty(FormControlComponent, 'div', { get: FormControlComponent$div_getInstance }); Object.defineProperty(FormControlComponent, 'fieldSet', { get: FormControlComponent$fieldSet_getInstance }); package$components.FormControlComponent = FormControlComponent; package$components.umFormControl_x3jkj4$ = umFormControl; package$components.umFormHelperText_lpdb43$ = umFormHelperText; Object.defineProperty(GridAlignContent, 'stretch', { get: GridAlignContent$stretch_getInstance }); Object.defineProperty(GridAlignContent, 'center', { get: GridAlignContent$center_getInstance }); Object.defineProperty(GridAlignContent, 'flexStart', { get: GridAlignContent$flexStart_getInstance }); Object.defineProperty(GridAlignContent, 'flexEnd', { get: GridAlignContent$flexEnd_getInstance }); Object.defineProperty(GridAlignContent, 'spaceBetween', { get: GridAlignContent$spaceBetween_getInstance }); Object.defineProperty(GridAlignContent, 'spaceAround', { get: GridAlignContent$spaceAround_getInstance }); package$components.GridAlignContent = GridAlignContent; Object.defineProperty(GridAlignItems, 'stretch', { get: GridAlignItems$stretch_getInstance }); Object.defineProperty(GridAlignItems, 'center', { get: GridAlignItems$center_getInstance }); Object.defineProperty(GridAlignItems, 'flexStart', { get: GridAlignItems$flexStart_getInstance }); Object.defineProperty(GridAlignItems, 'flexEnd', { get: GridAlignItems$flexEnd_getInstance }); Object.defineProperty(GridAlignItems, 'baseline', { get: GridAlignItems$baseline_getInstance }); package$components.GridAlignItems = GridAlignItems; Object.defineProperty(GridJustify, 'flexStart', { get: GridJustify$flexStart_getInstance }); Object.defineProperty(GridJustify, 'center', { get: GridJustify$center_getInstance }); Object.defineProperty(GridJustify, 'flexEnd', { get: GridJustify$flexEnd_getInstance }); Object.defineProperty(GridJustify, 'spaceBetween', { get: GridJustify$spaceBetween_getInstance }); Object.defineProperty(GridJustify, 'spaceAround', { get: GridJustify$spaceAround_getInstance }); package$components.GridJustify = GridJustify; Object.defineProperty(GridSize, 'cellsFalse', { get: GridSize$cellsFalse_getInstance }); Object.defineProperty(GridSize, 'cellsAuto', { get: GridSize$cellsAuto_getInstance }); Object.defineProperty(GridSize, 'cellsTrue', { get: GridSize$cellsTrue_getInstance }); Object.defineProperty(GridSize, 'cells1', { get: GridSize$cells1_getInstance }); Object.defineProperty(GridSize, 'cells2', { get: GridSize$cells2_getInstance }); Object.defineProperty(GridSize, 'cells3', { get: GridSize$cells3_getInstance }); Object.defineProperty(GridSize, 'cells4', { get: GridSize$cells4_getInstance }); Object.defineProperty(GridSize, 'cells5', { get: GridSize$cells5_getInstance }); Object.defineProperty(GridSize, 'cells6', { get: GridSize$cells6_getInstance }); Object.defineProperty(GridSize, 'cells7', { get: GridSize$cells7_getInstance }); Object.defineProperty(GridSize, 'cells8', { get: GridSize$cells8_getInstance }); Object.defineProperty(GridSize, 'cells9', { get: GridSize$cells9_getInstance }); Object.defineProperty(GridSize, 'cells10', { get: GridSize$cells10_getInstance }); Object.defineProperty(GridSize, 'cells11', { get: GridSize$cells11_getInstance }); Object.defineProperty(GridSize, 'cells12', { get: GridSize$cells12_getInstance }); package$components.GridSize = GridSize; Object.defineProperty(GridSpacing, 'spacing0', { get: GridSpacing$spacing0_getInstance }); Object.defineProperty(GridSpacing, 'spacing1', { get: GridSpacing$spacing1_getInstance }); Object.defineProperty(GridSpacing, 'spacing2', { get: GridSpacing$spacing2_getInstance }); Object.defineProperty(GridSpacing, 'spacing3', { get: GridSpacing$spacing3_getInstance }); Object.defineProperty(GridSpacing, 'spacing4', { get: GridSpacing$spacing4_getInstance }); Object.defineProperty(GridSpacing, 'spacing5', { get: GridSpacing$spacing5_getInstance }); Object.defineProperty(GridSpacing, 'spacing6', { get: GridSpacing$spacing6_getInstance }); Object.defineProperty(GridSpacing, 'spacing7', { get: GridSpacing$spacing7_getInstance }); Object.defineProperty(GridSpacing, 'spacing8', { get: GridSpacing$spacing8_getInstance }); Object.defineProperty(GridSpacing, 'spacing9', { get: GridSpacing$spacing9_getInstance }); Object.defineProperty(GridSpacing, 'spacing10', { get: GridSpacing$spacing10_getInstance }); package$components.GridSpacing = GridSpacing; package$components.gridContainer_jzceju$ = gridContainer; package$components.gridItem_m78rdj$ = gridItem; Object.defineProperty(IconColor, 'action', { get: IconColor$action_getInstance }); Object.defineProperty(IconColor, 'error', { get: IconColor$error_getInstance }); Object.defineProperty(IconColor, 'disabled', { get: IconColor$disabled_getInstance }); Object.defineProperty(IconColor, 'inherit', { get: IconColor$inherit_getInstance }); Object.defineProperty(IconColor, 'primary', { get: IconColor$primary_getInstance }); Object.defineProperty(IconColor, 'secondary', { get: IconColor$secondary_getInstance }); package$components.IconColor = IconColor; Object.defineProperty(IconFontSize, 'default', { get: IconFontSize$default_getInstance }); Object.defineProperty(IconFontSize, 'small', { get: IconFontSize$small_getInstance }); Object.defineProperty(IconFontSize, 'large', { get: IconFontSize$large_getInstance }); Object.defineProperty(IconFontSize, 'inherit', { get: IconFontSize$inherit_getInstance }); package$components.IconFontSize = IconFontSize; package$components.umIcon_j9940w$ = umIcon; Object.defineProperty(IconButtonSize, 'small', { get: IconButtonSize$small_getInstance }); Object.defineProperty(IconButtonSize, 'medium', { get: IconButtonSize$medium_getInstance }); Object.defineProperty(IconButtonSize, 'large', { get: IconButtonSize$large_getInstance }); package$components.IconButtonSize = IconButtonSize; Object.defineProperty(IconEdge, 'start', { get: IconEdge$start_getInstance }); Object.defineProperty(IconEdge, 'end', { get: IconEdge$end_getInstance }); package$components.IconEdge = IconEdge; package$components.umIconButton_mdnhg1$ = umIconButton; Object.defineProperty(LabelMargin, 'dense', { get: LabelMargin$dense_getInstance }); package$components.LabelMargin = LabelMargin; package$components.umInputLabel_wtphs0$ = umInputLabel; package$components.umInput_qif3eb$ = umInput; package$components.umList_ybibk6$ = umList; Object.defineProperty(ListItemAlignItems, 'flexStart', { get: ListItemAlignItems$flexStart_getInstance }); Object.defineProperty(ListItemAlignItems, 'center', { get: ListItemAlignItems$center_getInstance }); package$components.ListItemAlignItems = ListItemAlignItems; package$components.umListItem_4j5ty3$ = umListItem; package$components.umListItemWithIcon_7537i$ = umListItemWithIcon; package$components.mListItemWithAvatar_tg7dar$ = mListItemWithAvatar; package$components.umListItem_5x4af3$ = umListItem_0; package$components.umListItemAvatar_s9mog1$ = umListItemAvatar; package$components.umListItemAvatar_f3gjvr$ = umListItemAvatar_0; package$components.umListItemIcon_sykc5g$ = umListItemIcon; package$components.umListItemText_fq55eq$ = umListItemText; package$components.listIstItemText_jm2f1h$ = listIstItemText; package$components.useMediaQuery_ypoo7q$ = useMediaQuery; package$components.useMediaQuery_aj5yx7$ = useMediaQuery_0; $$importsForInline$$['kotlin-extensions'] = $module$kotlin_extensions; Object.defineProperty(MenuVariant, 'menu', { get: MenuVariant$menu_getInstance }); Object.defineProperty(MenuVariant, 'selectedMenu', { get: MenuVariant$selectedMenu_getInstance }); package$components.MenuVariant = MenuVariant; package$components.umMenu_i7zxd0$ = umMenu; package$components.umMenuItem_5q89eb$ = umMenuItem; package$components.umMenuItem_9bholw$ = umMenuItem_0; package$components.umOutlinedInput_j9ztcv$ = umOutlinedInput; Object.defineProperty(PaperVariant, 'elevation', { get: PaperVariant$elevation_getInstance }); Object.defineProperty(PaperVariant, 'outlined', { get: PaperVariant$outlined_getInstance }); package$components.PaperVariant = PaperVariant; package$components.umPaper_wqfdpe$ = umPaper; Object.defineProperty(ProgressVariant, 'determinate', { get: ProgressVariant$determinate_getInstance }); Object.defineProperty(ProgressVariant, 'indeterminate', { get: ProgressVariant$indeterminate_getInstance }); Object.defineProperty(ProgressVariant, 'buffer', { get: ProgressVariant$buffer_getInstance }); Object.defineProperty(ProgressVariant, 'query', { get: ProgressVariant$query_getInstance }); package$components.ProgressVariant = ProgressVariant; package$components.umLinearProgress_hythu3$ = umLinearProgress; package$components.umCircularProgress_26rnx8$ = umCircularProgress; Object.defineProperty(SnackbarHorizAnchor, 'left', { get: SnackbarHorizAnchor$left_getInstance }); Object.defineProperty(SnackbarHorizAnchor, 'center', { get: SnackbarHorizAnchor$center_getInstance }); Object.defineProperty(SnackbarHorizAnchor, 'right', { get: SnackbarHorizAnchor$right_getInstance }); package$components.SnackbarHorizAnchor = SnackbarHorizAnchor; package$components.umSnackbar_w8ps4t$ = umSnackbar; package$components.umSnackbar_tnkohq$ = umSnackbar_0; package$components.umSortableList_gfx6yl$ = umSortableList; package$components.umSortableItem_61xnlr$ = umSortableItem; package$components.umSortableKnob_r0gr1o$ = umSortableKnob; Object.defineProperty(SwitchSize, 'small', { get: SwitchSize$small_getInstance }); Object.defineProperty(SwitchSize, 'medium', { get: SwitchSize$medium_getInstance }); package$components.SwitchSize = SwitchSize; package$components.umSwitch_48o6zx$ = umSwitch; Object.defineProperty(TableSize, 'small', { get: TableSize$small_getInstance }); Object.defineProperty(TableSize, 'medium', { get: TableSize$medium_getInstance }); Object.defineProperty(TableSize, 'large', { get: TableSize$large_getInstance }); package$components.TableSize = TableSize; Object.defineProperty(TablePadding, 'normal', { get: TablePadding$normal_getInstance }); Object.defineProperty(TablePadding, 'checkbox', { get: TablePadding$checkbox_getInstance }); Object.defineProperty(TablePadding, 'none', { get: TablePadding$none_getInstance }); package$components.TablePadding = TablePadding; package$components.umTable_ypgoli$ = umTable; package$components.umTableBody_y516y7$ = umTableBody; package$components.umTableHead_c1w0en$ = umTableHead; package$components.umTableRow_8gr0h$ = umTableRow; package$components.umTableCell_ixkznn$ = umTableCell; package$components.umTableContainer_w44c9k$ = umTableContainer; Object.defineProperty(TabTextColor, 'secondary', { get: TabTextColor$secondary_getInstance }); Object.defineProperty(TabTextColor, 'primary', { get: TabTextColor$primary_getInstance }); Object.defineProperty(TabTextColor, 'inherit', { get: TabTextColor$inherit_getInstance }); package$components.TabTextColor = TabTextColor; Object.defineProperty(TabScrollButtons, 'auto', { get: TabScrollButtons$auto_getInstance }); Object.defineProperty(TabScrollButtons, 'desktop', { get: TabScrollButtons$desktop_getInstance }); Object.defineProperty(TabScrollButtons, 'on', { get: TabScrollButtons$on_getInstance }); Object.defineProperty(TabScrollButtons, 'off', { get: TabScrollButtons$off_getInstance }); package$components.TabScrollButtons = TabScrollButtons; Object.defineProperty(TabIndicatorColor, 'secondary', { get: TabIndicatorColor$secondary_getInstance }); Object.defineProperty(TabIndicatorColor, 'primary', { get: TabIndicatorColor$primary_getInstance }); package$components.TabIndicatorColor = TabIndicatorColor; Object.defineProperty(TabVariant, 'standard', { get: TabVariant$standard_getInstance }); Object.defineProperty(TabVariant, 'scrollable', { get: TabVariant$scrollable_getInstance }); Object.defineProperty(TabVariant, 'fullWidth', { get: TabVariant$fullWidth_getInstance }); package$components.TabVariant = TabVariant; Object.defineProperty(TabOrientation, 'horizontal', { get: TabOrientation$horizontal_getInstance }); Object.defineProperty(TabOrientation, 'vertical', { get: TabOrientation$vertical_getInstance }); package$components.TabOrientation = TabOrientation; package$components.umTabs_5d82zt$ = umTabs; package$components.umTab_3qz4zh$ = umTab; Object.defineProperty(FormControlVariant, 'standard', { get: FormControlVariant$standard_getInstance }); Object.defineProperty(FormControlVariant, 'outlined', { get: FormControlVariant$outlined_getInstance }); Object.defineProperty(FormControlVariant, 'filled', { get: FormControlVariant$filled_getInstance }); package$components.FormControlVariant = FormControlVariant; Object.defineProperty(FormControlMargin, 'none', { get: FormControlMargin$none_getInstance }); Object.defineProperty(FormControlMargin, 'dense', { get: FormControlMargin$dense_getInstance }); Object.defineProperty(FormControlMargin, 'normal', { get: FormControlMargin$normal_getInstance }); package$components.FormControlMargin = FormControlMargin; package$components.umTextField_vhlftn$ = umTextField; package$components.umTextFieldMultiLine_o74212$ = umTextFieldMultiLine; package$components.umTextFieldSelect_npgiiq$ = umTextFieldSelect; Object.defineProperty(package$components, 'defaultTheme', { get: function () { return defaultTheme; } }); Object.defineProperty(package$components, 'themeContext', { get: function () { return themeContext; } }); package$components.get_spacingUnits_s8ev3n$ = get_spacingUnits; package$components.useTheme = useTheme; package$components.umThemeProvider_dvfucy$ = umThemeProvider; Object.defineProperty(ToggleButtonSize, 'small', { get: ToggleButtonSize$small_getInstance }); Object.defineProperty(ToggleButtonSize, 'medium', { get: ToggleButtonSize$medium_getInstance }); Object.defineProperty(ToggleButtonSize, 'large', { get: ToggleButtonSize$large_getInstance }); package$components.ToggleButtonSize = ToggleButtonSize; Object.defineProperty(ToggleButtonOrientation, 'horizontal', { get: ToggleButtonOrientation$horizontal_getInstance }); Object.defineProperty(ToggleButtonOrientation, 'vertical', { get: ToggleButtonOrientation$vertical_getInstance }); package$components.ToggleButtonOrientation = ToggleButtonOrientation; package$components.umToggleButtonGroup_1krh5g$ = umToggleButtonGroup; package$components.umToggleButton_p91d5z$ = umToggleButton; Object.defineProperty(ToolbarVariant, 'regular', { get: ToolbarVariant$regular_getInstance }); Object.defineProperty(ToolbarVariant, 'dense', { get: ToolbarVariant$dense_getInstance }); package$components.ToolbarVariant = ToolbarVariant; package$components.umToolbar_ee8feq$ = umToolbar; Object.defineProperty(TypographyAlign, 'inherit', { get: TypographyAlign$inherit_getInstance }); Object.defineProperty(TypographyAlign, 'left', { get: TypographyAlign$left_getInstance }); Object.defineProperty(TypographyAlign, 'center', { get: TypographyAlign$center_getInstance }); Object.defineProperty(TypographyAlign, 'right', { get: TypographyAlign$right_getInstance }); Object.defineProperty(TypographyAlign, 'justify', { get: TypographyAlign$justify_getInstance }); package$components.TypographyAlign = TypographyAlign; Object.defineProperty(TypographyColor, 'initial', { get: TypographyColor$initial_getInstance }); Object.defineProperty(TypographyColor, 'inherit', { get: TypographyColor$inherit_getInstance }); Object.defineProperty(TypographyColor, 'primary', { get: TypographyColor$primary_getInstance }); Object.defineProperty(TypographyColor, 'secondary', { get: TypographyColor$secondary_getInstance }); Object.defineProperty(TypographyColor, 'textPrimary', { get: TypographyColor$textPrimary_getInstance }); Object.defineProperty(TypographyColor, 'textSecondary', { get: TypographyColor$textSecondary_getInstance }); Object.defineProperty(TypographyColor, 'error', { get: TypographyColor$error_getInstance }); package$components.TypographyColor = TypographyColor; Object.defineProperty(TypographyVariant, 'h1', { get: TypographyVariant$h1_getInstance }); Object.defineProperty(TypographyVariant, 'h2', { get: TypographyVariant$h2_getInstance }); Object.defineProperty(TypographyVariant, 'h3', { get: TypographyVariant$h3_getInstance }); Object.defineProperty(TypographyVariant, 'h4', { get: TypographyVariant$h4_getInstance }); Object.defineProperty(TypographyVariant, 'h5', { get: TypographyVariant$h5_getInstance }); Object.defineProperty(TypographyVariant, 'h6', { get: TypographyVariant$h6_getInstance }); Object.defineProperty(TypographyVariant, 'body1', { get: TypographyVariant$body1_getInstance }); Object.defineProperty(TypographyVariant, 'body2', { get: TypographyVariant$body2_getInstance }); Object.defineProperty(TypographyVariant, 'subtitle1', { get: TypographyVariant$subtitle1_getInstance }); Object.defineProperty(TypographyVariant, 'subtitle2', { get: TypographyVariant$subtitle2_getInstance }); Object.defineProperty(TypographyVariant, 'caption', { get: TypographyVariant$caption_getInstance }); Object.defineProperty(TypographyVariant, 'button', { get: TypographyVariant$button_getInstance }); Object.defineProperty(TypographyVariant, 'overline', { get: TypographyVariant$overline_getInstance }); Object.defineProperty(TypographyVariant, 'srOnly', { get: TypographyVariant$srOnly_getInstance }); Object.defineProperty(TypographyVariant, 'inherit', { get: TypographyVariant$inherit_getInstance }); package$components.TypographyVariant = TypographyVariant; package$components.umTypography_xc2d7r$ = umTypography; var package$ext = package$mui.ext || (package$mui.ext = {}); package$ext.toolbarJsCssToPartialCss_27f97l$ = toolbarJsCssToPartialCss; package$ext.get_targetInputValue_g0pdir$ = get_targetInputValue; package$ext.createStyledComponent_5sz0lf$ = createStyledComponent; Object.defineProperty(Breakpoint, 'xs', { get: Breakpoint$xs_getInstance }); Object.defineProperty(Breakpoint, 'sm', { get: Breakpoint$sm_getInstance }); Object.defineProperty(Breakpoint, 'md', { get: Breakpoint$md_getInstance }); Object.defineProperty(Breakpoint, 'lg', { get: Breakpoint$lg_getInstance }); Object.defineProperty(Breakpoint, 'xl', { get: Breakpoint$xl_getInstance }); _.Breakpoint = Breakpoint; _.up_sz5e4e$ = up; _.down_sz5e4e$ = down; _.between_ehz4xr$ = between; _.only_sz5e4e$ = only; _.width_sz5e4e$ = width; var package$theme = package$mui.theme || (package$mui.theme = {}); Object.defineProperty(package$theme, 'alpha', { get: function () { return alpha; } }); Object.defineProperty(UMColor, 'default', { get: UMColor$default_getInstance }); Object.defineProperty(UMColor, 'inherit', { get: UMColor$inherit_getInstance }); Object.defineProperty(UMColor, 'primary', { get: UMColor$primary_getInstance }); Object.defineProperty(UMColor, 'secondary', { get: UMColor$secondary_getInstance }); Object.defineProperty(UMColor, 'error', { get: UMColor$error_getInstance }); Object.defineProperty(UMColor, 'info', { get: UMColor$info_getInstance }); Object.defineProperty(UMColor, 'success', { get: UMColor$success_getInstance }); Object.defineProperty(UMColor, 'standard', { get: UMColor$standard_getInstance }); package$theme.UMColor = UMColor; package$theme.createMuiTheme_72cybx$ = createMuiTheme; var package$navigation = package$ustadmobile.navigation || (package$ustadmobile.navigation = {}); Object.defineProperty(package$navigation, 'RouteManager', { get: RouteManager_getInstance }); package$navigation.UstadDestination = UstadDestination; var package$redux = package$ustadmobile.redux || (package$ustadmobile.redux = {}); package$redux.ReduxAppState = ReduxAppState; Object.defineProperty(package$redux, 'ReduxAppStateManager', { get: ReduxAppStateManager_getInstance }); package$redux.ReduxDbState = ReduxDbState; package$redux.ReduxDiState = ReduxDiState; package$redux.ReduxNavStackState = ReduxNavStackState; package$redux.ReduxSnackBarState = ReduxSnackBarState; package$redux.ReduxStore = ReduxStore; package$redux.ReduxThemeState = ReduxThemeState; package$redux.ReduxToolbarState = ReduxToolbarState; Object.defineProperty(TabState, 'Companion', { get: TabState$Companion_getInstance }); Object.defineProperty(TabState, '$serializer', { get: TabState$$serializer_getInstance }); var package$util = package$ustadmobile.util || (package$ustadmobile.util = {}); package$util.TabState_init_8miwjg$ = TabState_init; package$util.TabState = TabState; Object.defineProperty(package$util, 'BrowserTabTracker', { get: BrowserTabTracker_getInstance }); package$util.ContainerMounterJs = ContainerMounterJs; Object.defineProperty(package$util, 'DraftJsUtil', { get: DraftJsUtil_getInstance }); package$util.EmptyList = EmptyList; package$util.FabManager = FabManager; package$util.FieldLabel = FieldLabel; package$util.OnFileAttached = OnFileAttached; package$util.FileDropZoneManager = FileDropZoneManager; package$util.MatchGroup = MatchGroup; package$util.MimeTypeMatcher = MimeTypeMatcher; package$util.PaginateOnScrollManager = PaginateOnScrollManager; package$util.ProgressBarManager = ProgressBarManager; package$util.UmProps = UmProps; package$util.UmState = UmState; package$util.ScrollManager = ScrollManager; package$util.SearchManager = SearchManager; Object.defineProperty(package$util, 'StyleManager', { get: StyleManager_getInstance }); Object.defineProperty(package$util, 'ThemeManager', { get: ThemeManager_getInstance }); Object.defineProperty(TimeZone, 'Companion', { get: TimeZone$Companion_getInstance }); Object.defineProperty(TimeZone, '$serializer', { get: TimeZone$$serializer_getInstance }); package$util.TimeZone_init_wrzq18$ = TimeZone_init; package$util.TimeZone = TimeZone; Object.defineProperty(package$util, 'TimeZonesUtil', { get: TimeZonesUtil_getInstance }); package$util.urlSearchParamsToMap_pdl1vj$ = urlSearchParamsToMap; Object.defineProperty(package$util, 'Util', { get: Util_getInstance }); package$util.getViewNameFromUrl_pdl1vj$ = getViewNameFromUrl; var package$ext_0 = package$util.ext || (package$util.ext = {}); Object.defineProperty(package$ext_0, 'TIME_FORMAT_H_M', { get: function () { return TIME_FORMAT_H_M; } }); Object.defineProperty(package$ext_0, 'DATE_FORMAT_DD_MMM_YYYY_HM', { get: function () { return DATE_FORMAT_DD_MMM_YYYY_HM; } }); Object.defineProperty(package$ext_0, 'DATE_FORMAT_DD_MMM_YYYY', { get: function () { return DATE_FORMAT_DD_MMM_YYYY; } }); Object.defineProperty(package$ext_0, 'DATE_FORMAT_DDDD_MMMM_DD_H_M', { get: function () { return DATE_FORMAT_DDDD_MMMM_DD_H_M; } }); Object.defineProperty(package$ext_0, 'DATE_FORMAT_DD_MM_YYYY', { get: function () { return DATE_FORMAT_DD_MM_YYYY; } }); Object.defineProperty(package$ext_0, 'DATE_FORMAT_MM_YYYY', { get: function () { return DATE_FORMAT_MM_YYYY; } }); Object.defineProperty(package$ext_0, 'DATE_FORMAT_MMMM_DD_YYYY', { get: function () { return DATE_FORMAT_MMMM_DD_YYYY; } }); package$ext_0.formatDate_ssrefx$ = formatDate; package$ext_0.standardFormat_3am96y$ = standardFormat; package$ext_0.fullDateFormat_hmdxbs$ = fullDateFormat; package$ext_0.formattedInHoursAndMinutes_3am96y$ = formattedInHoursAndMinutes; package$ext_0.formattedWithFullMonth_3am96y$ = formattedWithFullMonth; package$ext_0.formatFullDate_3am96y$ = formatFullDate; package$ext_0.startOfDay_3am96y$ = startOfDay; package$ext_0.fromNow_l7ui3y$ = fromNow; package$ext_0.endOfDay_3am96y$ = endOfDay; package$ext_0.timeInMillsFromStartOfDay_3am96y$ = timeInMillsFromStartOfDay; package$ext_0.addDays_m7zp0i$ = addDays; package$ext_0.exportToPng_jyasbz$ = exportToPng; Object.defineProperty(package$ext_0, 'MAX_VALUE', { get: get_MAX_VALUE }); package$ext_0.toDate_up3qdw$ = toDate; package$ext_0.formatToStringHoursMinutesSeconds_vkn4lq$ = formatToStringHoursMinutesSeconds; package$ext_0.isRealDate_2nurcp$ = isRealDate; package$ext_0.formatDateRange_9b3vz$ = formatDateRange; package$ext_0.currentBackStackEntrySavedStateMap_klq9oh$ = currentBackStackEntrySavedStateMap; package$ext_0.format_e33kwl$ = format; package$ext_0.joinString_e33kwl$ = joinString; package$ext_0.clean_pdl1vz$ = clean; package$ext_0.wordBreakLimit_6ic1pp$ = wordBreakLimit; package$ext_0.toArgumentsMap_pdl1vz$ = toArgumentsMap; AccountListComponent.AccountPros = AccountListComponent$AccountPros; AccountListComponent.AccountListComponent = AccountListComponent$AccountListComponent; var package$view = package$ustadmobile.view || (package$ustadmobile.view = {}); package$view.AccountListComponent = AccountListComponent; package$view.BitmaskEditComponent = BitmaskEditComponent; package$view.ChatDetailComponent = ChatDetailComponent; package$view.ChatListComponent = ChatListComponent; Object.defineProperty(ClazzAssignmentDetailComponent, 'Companion', { get: ClazzAssignmentDetailComponent$Companion_getInstance }); package$view.ClazzAssignmentDetailComponent = ClazzAssignmentDetailComponent; Object.defineProperty(ClazzAssignmentDetailOverviewComponent, 'Companion', { get: ClazzAssignmentDetailOverviewComponent$Companion_getInstance }); package$view.ClazzAssignmentDetailOverviewComponent = ClazzAssignmentDetailOverviewComponent; package$view.ClazzAssignmentDetailStudentProgressComponent = ClazzAssignmentDetailStudentProgressComponent; package$view.ClazzAssignmentDetailStudentProgressListOverviewComponent = ClazzAssignmentDetailStudentProgressListOverviewComponent; package$view.ClazzAssignmentEditComponent = ClazzAssignmentEditComponent; Object.defineProperty(ClazzDetailComponent, 'Companion', { get: ClazzDetailComponent$Companion_getInstance }); package$view.ClazzDetailComponent = ClazzDetailComponent; ClazzDetailOverviewComponent.CourseBlockWithCompleteListProps = ClazzDetailOverviewComponent$CourseBlockWithCompleteListProps; ClazzDetailOverviewComponent.CourseBlockWithCompleteListComponent = ClazzDetailOverviewComponent$CourseBlockWithCompleteListComponent; Object.defineProperty(ClazzDetailOverviewComponent, 'Companion', { get: ClazzDetailOverviewComponent$Companion_getInstance }); package$view.ClazzDetailOverviewComponent = ClazzDetailOverviewComponent; Object.defineProperty(ClazzEditComponent, 'Companion', { get: ClazzEditComponent$Companion_getInstance }); ClazzEditComponent.CourseBlockListProps = ClazzEditComponent$CourseBlockListProps; ClazzEditComponent.CourseOption = ClazzEditComponent$CourseOption; ClazzEditComponent.CourseBlockListComponent = ClazzEditComponent$CourseBlockListComponent; package$view.ClazzEditComponent = ClazzEditComponent; package$view.ClazzEnrolmentEditComponent = ClazzEnrolmentEditComponent; package$view.ClazzEnrolmentListComponent = ClazzEnrolmentListComponent; package$view.ClazzListComponent = ClazzListComponent; package$view.ClazzLogEditAttendanceComponent = ClazzLogEditAttendanceComponent; package$view.ClazzLogEditComponent = ClazzLogEditComponent; Object.defineProperty(ClazzLogListAttendanceComponent, 'Companion', { get: ClazzLogListAttendanceComponent$Companion_getInstance }); package$view.ClazzLogListAttendanceComponent = ClazzLogListAttendanceComponent; package$view.ClazzMemberListComponent = ClazzMemberListComponent; package$view.MemberListProps = MemberListProps; package$view.MembersListComponent = MembersListComponent; package$view.renderMembers_6248oo$ = renderMembers; package$view.CommentsListComponent = CommentsListComponent; package$view.renderComments_tjo70e$ = renderComments; package$view.ContentEntryDetailAttemptsListComponent = ContentEntryDetailAttemptsListComponent; Object.defineProperty(ContentEntryDetailComponent, 'Companion', { get: ContentEntryDetailComponent$Companion_getInstance }); package$view.ContentEntryDetailComponent = ContentEntryDetailComponent; Object.defineProperty(ContentEntryDetailOverviewComponent, 'Companion', { get: ContentEntryDetailOverviewComponent$Companion_getInstance }); package$view.ContentEntryDetailOverviewComponent = ContentEntryDetailOverviewComponent; package$view.ContentEntryEditComponent = ContentEntryEditComponent; package$view.createSwitchItem_3iz48g$ = createSwitchItem; package$view.ContentEntryImportLinkComponent = ContentEntryImportLinkComponent; Object.defineProperty(ContentEntryListComponent, 'Companion', { get: ContentEntryListComponent$Companion_getInstance }); package$view.ContentEntryListComponent = ContentEntryListComponent; package$view.ContentListProps = ContentListProps; package$view.ContentListComponent = ContentListComponent; package$view.renderContentEntries_w87zov$ = renderContentEntries; CourseDiscussionDetailComponent.TopicListDetailComponent = CourseDiscussionDetailComponent$TopicListDetailComponent; Object.defineProperty(CourseDiscussionDetailComponent, 'Companion', { get: CourseDiscussionDetailComponent$Companion_getInstance }); package$view.CourseDiscussionDetailComponent = CourseDiscussionDetailComponent; CourseDiscussionEditComponent.DiscussionTopicListProps = CourseDiscussionEditComponent$DiscussionTopicListProps; CourseDiscussionEditComponent.DiscussionTopicListComponent = CourseDiscussionEditComponent$DiscussionTopicListComponent; package$view.CourseDiscussionEditComponent = CourseDiscussionEditComponent; package$view.CourseGroupSetDetailComponent = CourseGroupSetDetailComponent; package$view.CourseGroupSetEditComponent = CourseGroupSetEditComponent; package$view.CourseGroupSetListComponent = CourseGroupSetListComponent; package$view.CourseTerminologyEditComponent = CourseTerminologyEditComponent; package$view.CourseTerminologyListComponent = CourseTerminologyListComponent; package$view.DiscussionPostDetailComponent = DiscussionPostDetailComponent; package$view.DiscussionPostEditComponent = DiscussionPostEditComponent; DiscussionTopicDetailComponent.PostListDetailComponent = DiscussionTopicDetailComponent$PostListDetailComponent; Object.defineProperty(DiscussionTopicDetailComponent, 'Companion', { get: DiscussionTopicDetailComponent$Companion_getInstance }); package$view.DiscussionTopicDetailComponent = DiscussionTopicDetailComponent; package$view.DiscussionTopicEditComponent = DiscussionTopicEditComponent; package$view.EpubContentComponent = EpubContentComponent; package$view.ExtraActiveTabWarningComponent = ExtraActiveTabWarningComponent; package$view.renderExtraActiveTabWarningComponent_i66prf$ = renderExtraActiveTabWarningComponent; package$view.ChartOptions = ChartOptions; Object.defineProperty(ChartType, 'ColumnChart', { get: ChartType$ColumnChart_getInstance }); Object.defineProperty(ChartType, 'ComboChart', { get: ChartType$ComboChart_getInstance }); Object.defineProperty(ChartType, 'LineChart', { get: ChartType$LineChart_getInstance }); package$view.ChartType = ChartType; package$view.umChart_yhzypq$ = umChart; package$view.HolidayCalendarEditComponent = HolidayCalendarEditComponent; package$view.HolidayListComponent = HolidayListComponent; package$view.renderHolidays_3586ig$ = renderHolidays; package$view.HolidayCalendarListComponent = HolidayCalendarListComponent; package$view.HolidayEditComponent = HolidayEditComponent; package$view.HtmlTextViewComponent = HtmlTextViewComponent; package$view.IframeProps = IframeProps; $$importsForInline$$['kotlin-react-dom'] = $module$kotlin_react_dom; package$view.IframeComponent = IframeComponent; package$view.renderIframe_rjjqzv$ = renderIframe; package$view.InviteViaLinkComponent = InviteViaLinkComponent; package$view.JoinWithCodeComponent = JoinWithCodeComponent; package$view.LanguageEditComponent = LanguageEditComponent; package$view.LanguageListComponent = LanguageListComponent; package$view.LanguageProps = LanguageProps; package$view.LanguageOptionComponent = LanguageOptionComponent; package$view.renderLanguages_qlyll3$ = renderLanguages; package$view.LeavingReasonEditComponent = LeavingReasonEditComponent; package$view.LeavingReasonListComponent = LeavingReasonListComponent; package$view.LinkifyOptionsAttributes = LinkifyOptionsAttributes; package$view.LinkifyOptions = LinkifyOptions; package$view.linkifyReactMessage_9i9zod$ = linkifyReactMessage; package$view.linkifyReactTextView_xzu3u5$ = linkifyReactTextView; package$view.LoginComponent = LoginComponent; package$view.MainComponent = MainComponent; package$view.renderMainComponent_ss14n$ = renderMainComponent; package$view.ModuleCourseBlockEditComponent = ModuleCourseBlockEditComponent; package$view.umMuiHtmlEditor_ye6ir3$ = umMuiHtmlEditor; package$view.CommentProps = CommentProps; package$view.NewCommentsComponent = NewCommentsComponent; package$view.renderCreateNewComment_2q7w2o$ = renderCreateNewComment; package$view.ParentalConsentManagementComponent = ParentalConsentManagementComponent; package$view.PersonAccountEditComponent = PersonAccountEditComponent; PersonDetailComponent.ClazzEnrolmentWithClazzSimpleListComponent = PersonDetailComponent$ClazzEnrolmentWithClazzSimpleListComponent; Object.defineProperty(PersonDetailComponent, 'Companion', { get: PersonDetailComponent$Companion_getInstance }); package$view.PersonDetailComponent = PersonDetailComponent; package$view.PersonEditComponent = PersonEditComponent; package$view.PersonListComponent = PersonListComponent; package$view.RedirectComponent = RedirectComponent; package$view.RegisterAgeRedirectComponent = RegisterAgeRedirectComponent; package$view.ReportDetailComponent = ReportDetailComponent; package$view.ReportEditComponent = ReportEditComponent; package$view.ReportFilterEditComponent = ReportFilterEditComponent; package$view.ReportListComponent = ReportListComponent; Object.defineProperty(ReportTemplateListComponent, 'Companion', { get: ReportTemplateListComponent$Companion_getInstance }); package$view.ReportTemplateListComponent = ReportTemplateListComponent; package$view.ScheduleEditComponent = ScheduleEditComponent; package$view.ScheduleListProps = ScheduleListProps; package$view.ScheduleListComponent = ScheduleListComponent; package$view.renderSchedules_1n09pw$ = renderSchedules; package$view.SchoolDetailComponent = SchoolDetailComponent; SchoolDetailOverviewComponent.SchoolClazzesComponent = SchoolDetailOverviewComponent$SchoolClazzesComponent; package$view.SchoolDetailOverviewComponent = SchoolDetailOverviewComponent; package$view.SchoolEditComponent = SchoolEditComponent; package$view.SchoolListComponent = SchoolListComponent; SchoolMemberListComponent.MembersListComponent = SchoolMemberListComponent$MembersListComponent; package$view.SchoolMemberListComponent = SchoolMemberListComponent; package$view.ScopeGrantListComponent = ScopeGrantListComponent; package$view.permissionListText_obxc4p$ = permissionListText; package$view.renderScopedGrants_urfo5f$ = renderScopedGrants; ScopedGrantEditComponent.ScopedGrantComponent = ScopedGrantEditComponent$ScopedGrantComponent; package$view.ScopedGrantEditComponent = ScopedGrantEditComponent; package$view.SelectExtractFileComponent = SelectExtractFileComponent; package$view.SelectFileComponent = SelectFileComponent; package$view.SessionListComponent = SessionListComponent; package$view.SettingsComponent = SettingsComponent; package$view.SiteDetailComponent = SiteDetailComponent; package$view.SiteEditComponent = SiteEditComponent; package$view.SiteTermsDetailComponent = SiteTermsDetailComponent; package$view.SiteTermsEditComponent = SiteTermsEditComponent; package$view.SiteTermsListPropsProps = SiteTermsListPropsProps; package$view.SiteTermsListComponent = SiteTermsListComponent; package$view.renderSiteTerms_k4195f$ = renderSiteTerms; package$view.SplashComponent = SplashComponent; package$view.renderSplashComponent_ss14n$ = renderSplashComponent; Object.defineProperty(SplashView, 'Companion', { get: SplashView$Companion_getInstance }); package$view.SplashView = SplashView; Object.defineProperty(StatementListComponent, 'Companion', { get: StatementListComponent$Companion_getInstance }); package$view.StatementListComponent = StatementListComponent; package$view.TabsProps = TabsProps; package$view.UmTab = UmTab; package$view.TabsComponent = TabsComponent; package$view.renderTabs_nc3a23$ = renderTabs; package$view.TextAssignmentEditComponent = TextAssignmentEditComponent; package$view.TextCourseBlockEditComponent = TextCourseBlockEditComponent; package$view.TimeZoneListComponent = TimeZoneListComponent; package$view.ZonesListComponent = ZonesListComponent; package$view.renderZoneList_3ircw2$ = renderZoneList; package$view.UmDialogOptionItem = UmDialogOptionItem; package$view.UmBottomSheetProps = UmBottomSheetProps; package$view.UmBottomSheetOptionsComponent = UmBottomSheetOptionsComponent; package$view.renderDialogOptions_nxu8sr$ = renderDialogOptions; Object.defineProperty(UstadBaseComponent, 'Companion', { get: UstadBaseComponent$Companion_getInstance }); package$view.UstadBaseComponent = UstadBaseComponent; package$view.UstadDetailComponent = UstadDetailComponent; Object.defineProperty(UstadEditComponent, 'Companion', { get: UstadEditComponent$Companion_getInstance }); package$view.UstadEditComponent = UstadEditComponent; Object.defineProperty(UstadListComponent, 'Companion', { get: UstadListComponent$Companion_getInstance }); package$view.UstadListComponent = UstadListComponent; package$view.SimpleListProps = SimpleListProps; package$view.CreateNewItem = CreateNewItem; package$view.UstadSimpleList = UstadSimpleList; package$view.VideoContentComponent = VideoContentComponent; package$view.WebChunkComponent = WebChunkComponent; package$view.XapiPackageContentComponent = XapiPackageContentComponent; var package$components_0 = package$view.components || (package$view.components = {}); package$components_0.AttachmentImageProps = AttachmentImageProps; package$components_0.AttachmentImageState = AttachmentImageState; package$components_0.AttachmentImageComponent = AttachmentImageComponent; package$components_0.AttachmentImageLookupAdapter = AttachmentImageLookupAdapter; package$components_0.AttachmentImageLookupProps = AttachmentImageLookupProps; package$components_0.AttachmentImageLookupState = AttachmentImageLookupState; package$components_0.AttachmentImageLookupComponent = AttachmentImageLookupComponent; var package$ext_1 = package$view.ext || (package$view.ext = {}); package$ext_1.appBarSpacer_ss14n$ = appBarSpacer; package$ext_1.errorFallBack_hw0qe1$ = errorFallBack; package$ext_1.renderRoutes_i66prf$ = renderRoutes; package$ext_1.umGridContainer_hjiu6w$ = umGridContainer; package$ext_1.umItem_tprmv0$ = umItem; package$ext_1.umEntityAvatar_73vv2n$ = umEntityAvatar; package$ext_1.umProfileAvatar_jqjjmk$ = umProfileAvatar; package$ext_1.umItemThumbnail_d41fml$ = umItemThumbnail; package$ext_1.renderListSectionTitle_ct59kv$ = renderListSectionTitle; package$ext_1.renderInformationOnDetailScreen_mx9qd$ = renderInformationOnDetailScreen; package$ext_1.statusCircleIndicator_s9wzwa$ = statusCircleIndicator; package$ext_1.renderCreateNewItemOnList_lzccvt$ = renderCreateNewItemOnList; package$ext_1.setBitmaskListText_7b872q$ = setBitmaskListText; package$ext_1.renderListItemWithLeftIconTitleAndDescription_562vfa$ = renderListItemWithLeftIconTitleAndDescription; package$ext_1.renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight_xpj0e2$ = renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight; package$ext_1.renderListItemWithPersonAttendanceAndPendingRequests_ykdyx6$ = renderListItemWithPersonAttendanceAndPendingRequests; package$ext_1.renderPersonWithAttemptProgress_j79v1c$ = renderPersonWithAttemptProgress; package$ext_1.renderAssignmentSubmittedProgress_fw4xa4$ = renderAssignmentSubmittedProgress; package$ext_1.renderPersonListItemWithNameAndUserName_9x44ya$ = renderPersonListItemWithNameAndUserName; package$ext_1.renderListItemWithPersonTitleDescriptionAndAvatarOnLeft_xllrw6$ = renderListItemWithPersonTitleDescriptionAndAvatarOnLeft; package$ext_1.renderCourseBlockAssignment_57vw5s$ = renderCourseBlockAssignment; package$ext_1.renderListItemWithLeftIconTitleAndOptionOnRight_v94j2l$ = renderListItemWithLeftIconTitleAndOptionOnRight; package$ext_1.renderConversationListItem_tkb4t8$ = renderConversationListItem; package$ext_1.renderChatListItemWithCounter_x67fxy$ = renderChatListItemWithCounter; package$ext_1.renderPostsDetail_lqgsjs$ = renderPostsDetail; package$ext_1.renderCourseBlockTextOrModuleListItem_9kp4na$ = renderCourseBlockTextOrModuleListItem; package$ext_1.renderListItemWithTitleDescriptionAndRightAction_9bumzd$ = renderListItemWithTitleDescriptionAndRightAction; package$ext_1.renderListItemWithAttendance_8v4l9e$ = renderListItemWithAttendance; package$ext_1.renderListItemWithIconAndTitle_w9o58b$ = renderListItemWithIconAndTitle; package$ext_1.umSpacer_plx3f9$ = umSpacer; package$ext_1.umTopBar_fvuy7l$ = umTopBar; package$ext_1.renderTopMainAction_hes7zh$ = renderTopMainAction; package$ext_1.renderCourseBlockCommonFields_3xbevs$ = renderCourseBlockCommonFields; package$ext_1.renderListItemWithTitleAndSwitch_rixypj$ = renderListItemWithTitleAndSwitch; package$ext_1.umPartner_hw0qe1$ = umPartner; package$ext_1.renderContentEntryListItem_emtrpb$ = renderContentEntryListItem; package$ext_1.isContentCompleteImage_lvxw6c$ = isContentCompleteImage; package$ext_1.setContentComplete_o86awz$ = setContentComplete; package$ext_1.setStatementQuestionAnswer_rc5k18$ = setStatementQuestionAnswer; package$ext_1.renderSummaryCard_rhpfd1$ = renderSummaryCard; package$ext_1.renderChart_cpv22c$ = renderChart; package$ext_1.renderRawHtmlOnIframe_do9prs$ = renderRawHtmlOnIframe; package$ext_1.renderAddContentEntryOptionsDialog_yxogj$ = renderAddContentEntryOptionsDialog; package$ext_1.withAttachmentLocalUrlLookup_pvkdzq$ = withAttachmentLocalUrlLookup; _.main = main; _.IndexProps = IndexProps; _.IndexComponent = IndexComponent; TabState$$serializer.prototype.typeParametersSerializers = GeneratedSerializer.prototype.typeParametersSerializers; ContainerMounterJs.prototype.mountContainer_dckg8j$ = ContainerMounter.prototype.mountContainer_dckg8j$; Object.defineProperty(StyleManager.prototype, 'diContext', Object.getOwnPropertyDescriptor(DIAware.prototype, 'diContext')); Object.defineProperty(StyleManager.prototype, 'diTrigger', Object.getOwnPropertyDescriptor(DIAware.prototype, 'diTrigger')); TimeZone$$serializer.prototype.typeParametersSerializers = GeneratedSerializer.prototype.typeParametersSerializers; Object.defineProperty(UstadBaseComponent.prototype, 'diContext', Object.getOwnPropertyDescriptor(DIAware.prototype, 'diContext')); Object.defineProperty(UstadBaseComponent.prototype, 'diTrigger', Object.getOwnPropertyDescriptor(DIAware.prototype, 'diTrigger')); UstadBaseComponent.prototype.showSnackBar_9pu0dj$ = UstadView.prototype.showSnackBar_9pu0dj$; EpubContentComponent.prototype.scrollToSpinePosition_vqvrqt$ = EpubContentView.prototype.scrollToSpinePosition_vqvrqt$; SplashView.prototype.showSnackBar_9pu0dj$ = SplashScreenView.prototype.showSnackBar_9pu0dj$; SortableListComponent = $module$react_easy_sort.default; SortableItemComponent = $module$react_easy_sort.SortableItem; SortableHandleComponent = $module$react_easy_sort.SortableKnob; themeOptions = {typography: {useNextVariants: true}}; defaultTheme = createMuiTheme(themeOptions); themeContext = createContext(defaultTheme); alpha = $module$_mui_material_styles.default; TIME_FORMAT_H_M = 'HH:mm'; DATE_FORMAT_DD_MMM_YYYY_HM = 'DD MMM YYYY - HH:mm'; DATE_FORMAT_DD_MMM_YYYY = 'DD MMM YYYY'; DATE_FORMAT_DDDD_MMMM_DD_H_M = 'dddd, MMMM DD HH:mm'; DATE_FORMAT_DD_MM_YYYY = 'DD/MM/YYYY'; DATE_FORMAT_MM_YYYY = 'MM/YYYY'; DATE_FORMAT_MMMM_DD_YYYY = 'MMMM DD, YYYY'; googleChartsComponent = $module$react_google_charts.default; linkifyReactComponent = $module$linkify_react.default; muiHtmlEditorComponent = $module$mui_rte.default; routeGuardRedirected = false; main(); Kotlin.defineModule('UstadMobile-app-react', _); return _; })); //# sourceMappingURL=UstadMobile-app-react.js.map